- self.resolutions.addItem(res)
- self.resolutions.setCurrentIndex(0) # select first resolution
- makeLayout(resBox, QtGui.QHBoxLayout(), [resLabel, self.resolutions])
+ self.extResolutions.addItem(res)
+ self.extResolutions.setCurrentIndex(0) # select first resolution
+ extRow = makeLayout(QtGui.QHBoxLayout(), [extResLabel, self.extResolutions])
+ intResLabel = QtGui.QLabel('Resolution of internal screen:', resBox)
+ self.extOnly.toggled.connect(intResLabel.setDisabled) # disable the label if there's just one screen in use
+ self.intResolutions = QtGui.QComboBox(resBox)
+ for res in internalResolutions:
+ self.intResolutions.addItem(res)
+ self.intResolutions.setCurrentIndex(0) # select first resolution
+ self.extOnly.toggled.connect(self.intResolutions.setDisabled) # disable the box if there's just one screen in use
+ intRow = makeLayout(QtGui.QHBoxLayout(), [intResLabel, self.intResolutions])
+ resBox.setLayout(makeLayout(QtGui.QVBoxLayout(), [extRow, intRow]))