本文整理汇总了Python中PM.PM_PushButton.PM_PushButton.setFixedHeight方法的典型用法代码示例。如果您正苦于以下问题:Python PM_PushButton.setFixedHeight方法的具体用法?Python PM_PushButton.setFixedHeight怎么用?Python PM_PushButton.setFixedHeight使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PM.PM_PushButton.PM_PushButton
的用法示例。
在下文中一共展示了PM_PushButton.setFixedHeight方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: EditResidues_PropertyManager
# 需要导入模块: from PM.PM_PushButton import PM_PushButton [as 别名]
# 或者: from PM.PM_PushButton.PM_PushButton import setFixedHeight [as 别名]
#.........这里部分代码省略.........
self.set_names = ["Any", "Same", "Locked", "Apolar", "Polar"]
self.rosetta_set_names = ["ALLAA", "NATAA", "NATRO", "APOLA", "POLAR"]
self.descriptor_list = ["PGAVILMFWYCSTNQDEHKR",
"____________________",
"____________________",
"PGAVILMFWYC_________",
"___________STNQDEHKR"]
self.applyAnyPushButton = PM_PushButton( pmGroupBox,
text = "ALLAA",
setAsDefault = True)
self.applySamePushButton = PM_PushButton( pmGroupBox,
text = "NATAA",
setAsDefault = True)
self.applyLockedPushButton = PM_PushButton( pmGroupBox,
text = "NATRO",
setAsDefault = True)
self.applyPolarPushButton = PM_PushButton( pmGroupBox,
text = "APOLA",
setAsDefault = True)
self.applyApolarPushButton = PM_PushButton( pmGroupBox,
text = "POLAR",
setAsDefault = True)
#self.applyBackrubPushButton = PM_PushButton( pmGroupBox,
# text = "BACKRUB",
# setAsDefault = True)
self.applyAnyPushButton.setFixedHeight(25)
self.applyAnyPushButton.setFixedWidth(60)
self.applySamePushButton.setFixedHeight(25)
self.applySamePushButton.setFixedWidth(60)
self.applyLockedPushButton.setFixedHeight(25)
self.applyLockedPushButton.setFixedWidth(60)
self.applyPolarPushButton.setFixedHeight(25)
self.applyPolarPushButton.setFixedWidth(60)
self.applyApolarPushButton.setFixedHeight(25)
self.applyApolarPushButton.setFixedWidth(60)
applyButtonList = [
('PM_PushButton', self.applyAnyPushButton, 0, 0),
('PM_PushButton', self.applySamePushButton, 1, 0),
('PM_PushButton', self.applyLockedPushButton, 2, 0),
('PM_PushButton', self.applyPolarPushButton, 3, 0),
('PM_PushButton', self.applyApolarPushButton, 4, 0) ]
self.applyButtonGrid = PM_WidgetGrid( pmGroupBox,
label = "Apply standard set",
widgetList = applyButtonList)
self.descriptorsTable = PM_TableWidget( pmGroupBox,
label = "Custom descriptors")
self.descriptorsTable.setFixedHeight(100)
self.descriptorsTable.setRowCount(0)
self.descriptorsTable.setColumnCount(2)
self.descriptorsTable.verticalHeader().setVisible(False)