diff options
| author | Maximilian Siess | 2017-04-21 01:00:17 +0200 |
|---|---|---|
| committer | Maximilian Siess | 2017-04-21 01:00:17 +0200 |
| commit | 4aef5bfdb7f04dde13b1c6a94172824ce143be6e (patch) | |
| tree | 9677c2cf51695134e6ffbfc288e33fb74a7ba667 /core.py | |
| parent | 018f5900f0703ad8a2a962d076ac291b0805657d (diff) | |
changed differentiater of text alignment from string to int
Diffstat (limited to 'core.py')
| -rw-r--r-- | core.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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() |
