- self.extOnly.toggled.connect(self.intResolutionsBox.setDisabled) # disable the box if there's just one screen in use
- intRow = makeLayout(QtGui.QHBoxLayout(), [intResLabel, self.intResolutionsBox])
- resBox.setLayout(makeLayout(QtGui.QVBoxLayout(), [extRow, intRow]))
+ self.intRow = makeLayout(QtGui.QHBoxLayout(), [self.intResLabel, self.intResolutionsBox])
+ # both screens
+ self.mirrorResLabel = QtGui.QLabel('Resolution of both screens:', resBox)
+ self.mirrorResolutions = commonResolutions
+ self.mirrorResolutionsBox = QtGui.QComboBox(resBox)
+ for res in commonResolutions:
+ self.mirrorResolutionsBox.addItem(res2user(res))
+ self.mirrorResolutionsBox.setCurrentIndex(0) # select first resolution
+ self.mirrorRow = makeLayout(QtGui.QHBoxLayout(), [self.mirrorResLabel, self.mirrorResolutionsBox])
+ # show them all
+ resBox.setLayout(makeLayout(QtGui.QVBoxLayout(), [self.extRow, self.intRow, self.mirrorRow]))