本文整理汇总了Python中PyQt4.QtGui.QGroupBox.setMaximumSize方法的典型用法代码示例。如果您正苦于以下问题:Python QGroupBox.setMaximumSize方法的具体用法?Python QGroupBox.setMaximumSize怎么用?Python QGroupBox.setMaximumSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.QtGui.QGroupBox
的用法示例。
在下文中一共展示了QGroupBox.setMaximumSize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: LayoutInformations
# 需要导入模块: from PyQt4.QtGui import QGroupBox [as 别名]
# 或者: from PyQt4.QtGui.QGroupBox import setMaximumSize [as 别名]
class LayoutInformations(QHBoxLayout):
def __init__(self, parent):
super(LayoutInformations, self).__init__()
self.settings(parent)
def settings(self, parent):
# CRIANDO O GRUPOBOXINFOS PARA POR OS WIDGETS
self.groupBoxInfos = QGroupBox(parent)
self.groupBoxInfos.setMaximumSize(QSize(16777215, 16777215))
# CRIANDO OS LAYOUT'S
self.LayoutTimeSampling = LayoutTimeSampling(parent)
self.LayoutFile = LayoutFile(parent)
self.LayoutSelectCOM = LayoutSelectCOM(parent)
self.LayoutButtons = LayoutButtons(parent)
self.creatTextBrowser()
self.label()
self.verticalLayoutInformations = QVBoxLayout(self.groupBoxInfos)
self.verticalLayoutInformations.setMargin(11)
self.verticalLayoutInformations.setSpacing(6)
# ADICOINANDO O LAYOUT TIME AMOSTRAGEM, LABEL, LAYOUT ARQUIVO,
# TEXTO LOG E GRID NO LAYOUT VERTICAL
self.verticalLayoutInformations.addLayout(self.LayoutTimeSampling)
self.verticalLayoutInformations.addWidget(self.lbArquivo)
self.verticalLayoutInformations.addLayout(self.LayoutFile)
self.verticalLayoutInformations.addLayout(self.LayoutSelectCOM)
self.verticalLayoutInformations.addWidget(self.TextLog)
self.verticalLayoutInformations.addLayout(self.LayoutButtons)
# ADICIONANDO O GRUPOBOX NO LAYOUT INFOS
self.addWidget(self.groupBoxInfos)
def creatTextBrowser(self):
# DEFININDO O TAMANHO DA FONTE
font = QFont()
font.setPointSize(11)
# CRIANDO O TEXTO DE LOG
self.TextLog = QTextEdit(self.groupBoxInfos)
sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.TextLog.sizePolicy().hasHeightForWidth())
self.TextLog.setReadOnly(True)
# self.TextLog.setEnabled(False)
self.TextLog.setFont(font)
self.TextLog.setSizePolicy(sizePolicy)
self.TextLog.setMaximumSize(QSize(600, 100))
def label(self):
# CRIANDO O LABEL PARA SELECIONAR O LOCAL DO ARQUIVO
self.lbArquivo = QLabel(self.groupBoxInfos)
self.lbArquivo.setText("Selecione onde quer salvar o novo arquivo: ")