本文整理汇总了Python中AnyQt.QtWidgets.QGridLayout.setRowMinimumHeight方法的典型用法代码示例。如果您正苦于以下问题:Python QGridLayout.setRowMinimumHeight方法的具体用法?Python QGridLayout.setRowMinimumHeight怎么用?Python QGridLayout.setRowMinimumHeight使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AnyQt.QtWidgets.QGridLayout
的用法示例。
在下文中一共展示了QGridLayout.setRowMinimumHeight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from AnyQt.QtWidgets import QGridLayout [as 别名]
# 或者: from AnyQt.QtWidgets.QGridLayout import setRowMinimumHeight [as 别名]
def __init__(self):
super().__init__()
self.data = None
grid = QGridLayout()
gui.widgetBox(self.controlArea, orientation=grid)
grid.addWidget(
gui.checkBox(
None, self, "add_type_annotations",
"Add type annotations to header",
tooltip=
"Some formats (Tab-delimited, Comma-separated) can include \n"
"additional information about variables types in header rows.",
callback=self._update_messages),
0, 0, 1, 2)
grid.setRowMinimumHeight(1, 8)
grid.addWidget(
gui.checkBox(
None, self, "auto_save", "Autosave when receiving new data",
callback=self._update_messages),
2, 0, 1, 2)
grid.setRowMinimumHeight(3, 8)
self.bt_save = gui.button(None, self, "Save", callback=self.save_file)
grid.addWidget(self.bt_save, 4, 0)
grid.addWidget(
gui.button(None, self, "Save as ...", callback=self.save_file_as),
4, 1)
self.adjustSize()
self._update_messages()