diff options
| author | Brianna | 2017-06-25 10:40:48 -0400 |
|---|---|---|
| committer | GitHub | 2017-06-25 10:40:48 -0400 |
| commit | 55423ca4aa206ec9a082942ca89da7dcb4f452bc (patch) | |
| tree | c65d2d5c908f472389dee4d1e03f8fe88e88dacf /src/components/text.py | |
| parent | 1bb67d1513122ca7fb02e60a92339bd1a73dbee3 (diff) | |
| parent | a2838a0c3898f999e71f76e6e8d5691155438aea (diff) | |
Merge pull request #35 from djfun/newgui-bugfixes
Newgui bugfixes
Diffstat (limited to 'src/components/text.py')
| -rw-r--r-- | src/components/text.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/text.py b/src/components/text.py index 76961c9..7f4659f 100644 --- a/src/components/text.py +++ b/src/components/text.py @@ -1,6 +1,6 @@ from PIL import Image, ImageDraw from PyQt5.QtGui import QPainter, QColor, QFont -from PyQt5 import uic, QtGui, QtCore, QtWidgets +from PyQt5 import QtGui, QtCore, QtWidgets from PIL.ImageQt import ImageQt import os import io @@ -29,8 +29,7 @@ class Component(__base__.Component): self.xPosition = width / 2 - fm.width(self.title)/2 self.yPosition = height / 2 * 1.036 - page = uic.loadUi(os.path.join( - os.path.dirname(os.path.realpath(__file__)), 'text.ui')) + page = self.loadUi('text.ui') page.comboBox_textAlign.addItem("Left") page.comboBox_textAlign.addItem("Middle") page.comboBox_textAlign.addItem("Right") |
