def create_widgets(self, width, height):
self.widthLabel = QLabel(self.tr("&Width:"))
self.widthSpinBox = QSpinBox()
self.widthLabel.setBuddy(self.widthSpinBox)
self.widthSpinBox.setAlignment(Qt.AlignRight|Qt.AlignVCenter)
self.widthSpinBox.setRange(4, width * 4)
self.widthSpinBox.setValue(width)
self.heightLabel = QLabel(self.tr("&Height:"))
self.heightSpinBox = QSpinBox()
self.heightLabel.setBuddy(self.heightSpinBox)
self.heightSpinBox.setAlignment(Qt.AlignRight|Qt.AlignVCenter)
self.heightSpinBox.setRange(4, height * 4)
self.heightSpinBox.setValue(height)
self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok|
QDialogButtonBox.Cancel)
评论列表
文章目录