aboutsummaryrefslogtreecommitdiff
path: root/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'core.py')
-rw-r--r--core.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/core.py b/core.py
index 1dd6438..b362087 100644
--- a/core.py
+++ b/core.py
@@ -52,11 +52,11 @@ class Core():
yPosition = yOffset
fm = QtGui.QFontMetrics(font)
- if alignment == "Left":
+ if alignment == 0: #Left
xPosition = xOffset
- if alignment == "Middle":
+ if alignment == 1: #Middle
xPosition = xOffset - fm.width(titleText)/2
- if alignment == "Right":
+ if alignment == 2: #Right
xPosition = xOffset - fm.width(titleText)
painter.drawText(xPosition, yPosition, titleText)
painter.end()