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 contents of your string below", None)
self.plainTextEdit = QPlainTextEdit()
if "string" in self.data:
self.plainTextEdit.setPlainText(self.data["string"])
self.plainTextEdit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
self.containerWidgetLayout.addRow(self.plainTextEdit)
self.okButton = QPushButton()
self.okButton.setText("Ok")
self.okButton.clicked.connect(self.okclicked)
self.containerWidgetLayout.addRow(self.okButton)
评论列表
文章目录