X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/ffc98865eecc0de34e0a33d7d83461ed9d4ee29b..19a90b1cacb47a7bbb42e4ac7c7746885f92ac38:/qt_dialogue.py?ds=inline diff --git a/qt_dialogue.py b/qt_dialogue.py index 96c04a7..26f6717 100644 --- a/qt_dialogue.py +++ b/qt_dialogue.py @@ -18,15 +18,6 @@ import os from screen import RelativeScreenPosition, ScreenSetup from PyQt4 import QtCore, QtGui, uic -relPosNames = { - RelativeScreenPosition.LEFT: "left of", - RelativeScreenPosition.RIGHT: "right of", - RelativeScreenPosition.ABOVE: "above", - RelativeScreenPosition.BELOW: "below", - RelativeScreenPosition.MIRROR: "same as", -} - - class PositionSelection(QtGui.QDialog): def __init__(self, situation): # set up main window @@ -37,7 +28,7 @@ class PositionSelection(QtGui.QDialog): # fill relative position box for pos in RelativeScreenPosition: - self.relPos.addItem(relPosNames[pos], pos) + self.relPos.addItem(pos.text, pos) # keep resolutions in sync when in mirror mode def syncIfMirror(source, target):