def __init__(self, extraData, sheetview, sheethandler):
super().__init__()
self.data = extraData
self.sheetview = sheetview
self.sheethandler = sheethandler
self.containerWidgetLayout = QFormLayout(self)
self.containerWidgetLayout.setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow)
self.containerWidgetLayout.setContentsMargins(6, 6, 6, 6)
self.containerWidgetLayout.addRow("Enter your float below:", None)
self.spinBox = QDoubleSpinBox()
if "float" in self.data:
self.spinBox.setValue(self.data["float"])
self.spinBox.setMaximum(99999999)
self.spinBox.setMinimum(-99999999)
self.spinBox.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
self.containerWidgetLayout.addRow(self.spinBox)
self.okButton = QPushButton()
self.okButton.setText("Ok")
self.okButton.clicked.connect(self.okclicked)
self.containerWidgetLayout.addRow(self.okButton)
评论列表
文章目录