aboutsummaryrefslogtreecommitdiff
path: root/components/text.py
diff options
context:
space:
mode:
authortassaron2017-06-03 10:01:47 -0400
committertassaron2017-06-03 10:01:47 -0400
commit0bef283f8d4538a6a3cff740a530973e745ad9c8 (patch)
tree28a99ecbf7e6aab4fa4dacaac6b16e2d07085983 /components/text.py
parentfccdee45b291bbb4570650b6c1ff00dd21dbb43f (diff)
saved project dirs
Diffstat (limited to 'components/text.py')
-rw-r--r--components/text.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/components/text.py b/components/text.py
index da2706b..bfc9701 100644
--- a/components/text.py
+++ b/components/text.py
@@ -8,6 +8,10 @@ from . import __base__
class Component(__base__.Component):
'''Title Text'''
+ def __init__(self):
+ super().__init__()
+ self.titleFont = QFont()
+
def widget(self, parent):
height = int(parent.settings.value('outputHeight'))
width = int(parent.settings.value('outputWidth'))
@@ -36,8 +40,8 @@ class Component(__base__.Component):
page.pushButton_textColor.setStyleSheet(btnStyle)
page.lineEdit_title.setText(self.title)
- if not self.titleFont == None:
- page.fontComboBox_titleFont.setCurrentFont(QFont(self.titleFont))
+ #if self.titleFont:
+ # page.fontComboBox_titleFont.setCurrentFont(QFont(self.titleFont))
page.comboBox_textAlign.setCurrentIndex(int(self.alignment))
page.spinBox_fontSize.setValue(int(self.fontSize))
page.spinBox_xTextAlign.setValue(int(self.xPosition))
@@ -146,4 +150,4 @@ class Component(__base__.Component):
self.canceled = True
def reset(self):
- self.canceled = False \ No newline at end of file
+ self.canceled = False