- extPosition = PositionSelection(usedExternalConnector, map(res2user, internalResolutions), map(res2user, externalResolutions))
- extPosition.exec_()
- if not extPosition.result(): sys.exit(1) # the user canceled
- extResolution = res2xrandr(externalResolutions[extPosition.extResolutions.currentIndex()])
- intResolution = res2xrandr(internalResolutions[extPosition.intResolutions.currentIndex()])
+ dialogue = gui.getDialogue(usedExternalConnector, map(res2user, internalResolutions), map(res2user, externalResolutions))
+ if not dialogue.run(): sys.exit(1) # the user canceled
+ extResolution = res2xrandr(externalResolutions[dialogue.getExtResolutionIndex()])
+ intResolution = res2xrandr(internalResolutions[dialogue.getIntResolutionIndex()])
+ relPosition = dialogue.getRelativeScreenPosition()