builtin.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:pyree-old 作者: DrLuke 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号