aboutsummaryrefslogtreecommitdiff
path: root/src/components/text.py
diff options
context:
space:
mode:
authortassaron2017-06-24 23:12:41 -0400
committertassaron2017-06-24 23:12:41 -0400
commite32ba958cb95146728d4985221b08c7e01b35470 (patch)
tree1fce99082617a5a92a758851e51c32999774d212 /src/components/text.py
parent4d955c5a06d8d77c968f594a85b71b516919bcfb (diff)
fixing bugs
Diffstat (limited to 'src/components/text.py')
-rw-r--r--src/components/text.py5
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")