本文整理汇总了Python中PyQt4.QtGui.QSizePolicy方法的典型用法代码示例。如果您正苦于以下问题:Python QtGui.QSizePolicy方法的具体用法?Python QtGui.QSizePolicy怎么用?Python QtGui.QSizePolicy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.QtGui
的用法示例。
在下文中一共展示了QtGui.QSizePolicy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setupView
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupView(self,Form):
"""Set up slots for views.
The x- and y-values of higher dimensional datasets can be selected to
be displayed in the 1d plot.
Args:
self: Object of the Ui_Form class.
Form: PlotWindow object that inherits the used calls here from the
underlying QWidget class.
Returns:
No return variable. The function operates on the given object.
"""
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
self._addTraceSelectorIndicator(Form,sizePolicy,TraceSelector = "VTraceXSelector",
TraceIndicator="VTraceXValue", prefix = self.selector_labels[3]+': ')
self._addTraceSelectorIndicator(Form,sizePolicy,TraceSelector = "VTraceYSelector",
TraceIndicator="VTraceYValue", prefix = self.selector_labels[4]+': ')
spacerItem = QtGui.QSpacerItem(40, 1, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self._addIndicatorLabels(Form,sizePolicy,indicators=["PointX","PointY"])
示例2: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(224, 117)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
Form.setSizePolicy(sizePolicy)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setMargin(0)
self.verticalLayout.setSpacing(1)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.translateLabel = QtGui.QLabel(Form)
self.translateLabel.setObjectName(_fromUtf8("translateLabel"))
self.verticalLayout.addWidget(self.translateLabel)
self.rotateLabel = QtGui.QLabel(Form)
self.rotateLabel.setObjectName(_fromUtf8("rotateLabel"))
self.verticalLayout.addWidget(self.rotateLabel)
self.scaleLabel = QtGui.QLabel(Form)
self.scaleLabel.setObjectName(_fromUtf8("scaleLabel"))
self.verticalLayout.addWidget(self.scaleLabel)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.mirrorImageBtn = QtGui.QPushButton(Form)
self.mirrorImageBtn.setToolTip(_fromUtf8(""))
self.mirrorImageBtn.setObjectName(_fromUtf8("mirrorImageBtn"))
self.horizontalLayout.addWidget(self.mirrorImageBtn)
self.reflectImageBtn = QtGui.QPushButton(Form)
self.reflectImageBtn.setObjectName(_fromUtf8("reflectImageBtn"))
self.horizontalLayout.addWidget(self.reflectImageBtn)
self.verticalLayout.addLayout(self.horizontalLayout)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
示例3: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(452, 139)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Dialog.sizePolicy().hasHeightForWidth())
Dialog.setSizePolicy(sizePolicy)
self.gridLayout = QtGui.QGridLayout(Dialog)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.label = QtGui.QLabel(Dialog)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setWordWrap(True)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.progressBar = QtGui.QProgressBar(Dialog)
self.progressBar.setMinimum(0)
self.progressBar.setMaximum(0)
self.progressBar.setProperty("value", -1)
self.progressBar.setObjectName(_fromUtf8("progressBar"))
self.gridLayout.addWidget(self.progressBar, 1, 0, 1, 1)
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Help)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 1)
self.retranslateUi(Dialog)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)
示例4: setupVector
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupVector(self,Form):
"""Set up slots for value_vector.
It is possible to plot the data over the x_axis and display the numeric
values in a table.
Args:
self: Object of the Ui_Form class.
Form: PlotWindow object that inherits the used calls here from the
underlying QWidget class.
Returns:
No return variable. The function operates on the given object.
"""
self.PlotTypeSelector = QtGui.QComboBox(Form)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.PlotTypeSelector.sizePolicy().hasHeightForWidth())
self.PlotTypeSelector.setSizePolicy(sizePolicy)
self.PlotTypeSelector.setObjectName(_fromUtf8("PlotTypeSelector"))
self.PlotTypeSelector.addItem(_fromUtf8(""))
self.PlotTypeSelector.addItem(_fromUtf8(""))
self.horizontalLayout.addWidget(self.PlotTypeSelector)
self.PlotTypeSelector.setItemText(0, _translate("Form", "Line Plot", None))
self.PlotTypeSelector.setItemText(1, _translate("Form", "Table", None))
spacerItem = QtGui.QSpacerItem(40, 1, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self._addIndicatorLabels(Form,sizePolicy,indicators=["PointX","PointY"])
示例5: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, CalculatorWindow):
CalculatorWindow.setObjectName(_fromUtf8("CalculatorWindow"))
CalculatorWindow.resize(450, 140)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(CalculatorWindow.sizePolicy().hasHeightForWidth())
CalculatorWindow.setSizePolicy(sizePolicy)
CalculatorWindow.setMinimumSize(QtCore.QSize(0, 140))
CalculatorWindow.setMaximumSize(QtCore.QSize(16777215, 140))
self.centralwidget = QtGui.QWidget(CalculatorWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
CalculatorWindow.setCentralWidget(self.centralwidget)
self.menubar = QtGui.QMenuBar(CalculatorWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 450, 22))
self.menubar.setObjectName(_fromUtf8("menubar"))
self.menuFile = QtGui.QMenu(self.menubar)
self.menuFile.setObjectName(_fromUtf8("menuFile"))
CalculatorWindow.setMenuBar(self.menubar)
self.statusbar = QtGui.QStatusBar(CalculatorWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
CalculatorWindow.setStatusBar(self.statusbar)
self.actionClear = QtGui.QAction(CalculatorWindow)
self.actionClear.setObjectName(_fromUtf8("actionClear"))
self.menuFile.addAction(self.actionClear)
self.menubar.addAction(self.menuFile.menuAction())
self.retranslateUi(CalculatorWindow)
QtCore.QMetaObject.connectSlotsByName(CalculatorWindow)
示例6: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, InfoWindow):
InfoWindow.setObjectName(_fromUtf8("InfoWindow"))
InfoWindow.resize(611, 396)
self.verticalLayout = QtGui.QVBoxLayout(InfoWindow)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.infoLabel = QtGui.QLabel(InfoWindow)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.infoLabel.sizePolicy().hasHeightForWidth())
self.infoLabel.setSizePolicy(sizePolicy)
self.infoLabel.setAlignment(QtCore.Qt.AlignCenter)
self.infoLabel.setObjectName(_fromUtf8("infoLabel"))
self.verticalLayout.addWidget(self.infoLabel)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.setInfoDumbButton = QtGui.QPushButton(InfoWindow)
self.setInfoDumbButton.setObjectName(_fromUtf8("setInfoDumbButton"))
self.horizontalLayout.addWidget(self.setInfoDumbButton)
self.setInfoSmartButton = QtGui.QPushButton(InfoWindow)
self.setInfoSmartButton.setObjectName(_fromUtf8("setInfoSmartButton"))
self.horizontalLayout.addWidget(self.setInfoSmartButton)
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.verticalLayout.addLayout(self.horizontalLayout)
self.retranslateUi(InfoWindow)
QtCore.QMetaObject.connectSlotsByName(InfoWindow)
示例7: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.setWindowModality(QtCore.Qt.ApplicationModal)
Dialog.resize(1304, 753)
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label = QtGui.QLabel(Dialog)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout.addWidget(self.label)
self.versions_treeView = QtGui.QTreeView(Dialog)
self.versions_treeView.setObjectName(_fromUtf8("versions_treeView"))
self.verticalLayout.addWidget(self.versions_treeView)
self.horizontalWidget = QtGui.QWidget(Dialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.horizontalWidget.sizePolicy().hasHeightForWidth())
self.horizontalWidget.setSizePolicy(sizePolicy)
self.horizontalWidget.setObjectName(_fromUtf8("horizontalWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalWidget)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.selectNone_pushButton = QtGui.QPushButton(self.horizontalWidget)
self.selectNone_pushButton.setObjectName(_fromUtf8("selectNone_pushButton"))
self.horizontalLayout.addWidget(self.selectNone_pushButton)
self.selectAll_pushButton = QtGui.QPushButton(self.horizontalWidget)
self.selectAll_pushButton.setObjectName(_fromUtf8("selectAll_pushButton"))
self.horizontalLayout.addWidget(self.selectAll_pushButton)
self.update_pushButton = QtGui.QPushButton(self.horizontalWidget)
self.update_pushButton.setObjectName(_fromUtf8("update_pushButton"))
self.horizontalLayout.addWidget(self.update_pushButton)
self.cancel_pushButton = QtGui.QPushButton(self.horizontalWidget)
self.cancel_pushButton.setObjectName(_fromUtf8("cancel_pushButton"))
self.horizontalLayout.addWidget(self.cancel_pushButton)
self.verticalLayout.addWidget(self.horizontalWidget)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
示例8: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, SpatialUnitManagerWidget):
SpatialUnitManagerWidget.setObjectName(_fromUtf8("SpatialUnitManagerWidget"))
SpatialUnitManagerWidget.resize(405, 220)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(SpatialUnitManagerWidget.sizePolicy().hasHeightForWidth())
SpatialUnitManagerWidget.setSizePolicy(sizePolicy)
self.dockWidgetContents = QtGui.QWidget()
self.dockWidgetContents.setObjectName(_fromUtf8("dockWidgetContents"))
self.gridLayout_2 = QtGui.QGridLayout(self.dockWidgetContents)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.import_gpx_file_button = QtGui.QPushButton(self.dockWidgetContents)
self.import_gpx_file_button.setObjectName(_fromUtf8("import_gpx_file_button"))
self.gridLayout_2.addWidget(self.import_gpx_file_button, 1, 0, 1, 1)
self.groupBox = QtGui.QGroupBox(self.dockWidgetContents)
self.groupBox.setSizeIncrement(QtCore.QSize(0, 200))
self.groupBox.setObjectName(_fromUtf8("groupBox"))
self.gridLayout = QtGui.QGridLayout(self.groupBox)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.stdm_layers_combo = QtGui.QComboBox(self.groupBox)
self.stdm_layers_combo.setSizeIncrement(QtCore.QSize(0, 0))
self.stdm_layers_combo.setMinimumContentsLength(3)
self.stdm_layers_combo.setIconSize(QtCore.QSize(16, 16))
self.stdm_layers_combo.setObjectName(_fromUtf8("stdm_layers_combo"))
self.gridLayout.addWidget(self.stdm_layers_combo, 0, 1, 1, 1)
self.add_to_canvas_button = QtGui.QPushButton(self.groupBox)
self.add_to_canvas_button.setObjectName(_fromUtf8("add_to_canvas_button"))
self.gridLayout.addWidget(self.add_to_canvas_button, 1, 0, 1, 2)
self.set_display_name_button = QtGui.QPushButton(self.groupBox)
self.set_display_name_button.setObjectName(_fromUtf8("set_display_name_button"))
self.gridLayout.addWidget(self.set_display_name_button, 2, 0, 1, 2)
self.layerLebel = QtGui.QLabel(self.groupBox)
self.layerLebel.setMaximumSize(QtCore.QSize(70, 16777215))
self.layerLebel.setObjectName(_fromUtf8("layerLebel"))
self.gridLayout.addWidget(self.layerLebel, 0, 0, 1, 1)
self.gridLayout_2.addWidget(self.groupBox, 0, 0, 1, 1)
SpatialUnitManagerWidget.setWidget(self.dockWidgetContents)
self.retranslateUi(SpatialUnitManagerWidget)
QtCore.QMetaObject.connectSlotsByName(SpatialUnitManagerWidget)
示例9: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, frmComposerFieldEditor):
frmComposerFieldEditor.setObjectName(_fromUtf8("frmComposerFieldEditor"))
frmComposerFieldEditor.resize(281, 83)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(frmComposerFieldEditor.sizePolicy().hasHeightForWidth())
frmComposerFieldEditor.setSizePolicy(sizePolicy)
self.gridLayout = QtGui.QGridLayout(frmComposerFieldEditor)
self.gridLayout.setVerticalSpacing(11)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.cboDataField = QtGui.QComboBox(frmComposerFieldEditor)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cboDataField.sizePolicy().hasHeightForWidth())
self.cboDataField.setSizePolicy(sizePolicy)
self.cboDataField.setMinimumSize(QtCore.QSize(0, 30))
self.cboDataField.setObjectName(_fromUtf8("cboDataField"))
self.gridLayout.addWidget(self.cboDataField, 1, 1, 1, 1)
self.label_2 = QtGui.QLabel(frmComposerFieldEditor)
self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.label = QtGui.QLabel(frmComposerFieldEditor)
self.label.setStyleSheet(_fromUtf8("padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);"))
self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
self.retranslateUi(frmComposerFieldEditor)
QtCore.QMetaObject.connectSlotsByName(frmComposerFieldEditor)
示例10: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, GeometryProperty):
GeometryProperty.setObjectName(_fromUtf8("GeometryProperty"))
GeometryProperty.resize(290, 108)
self.gridLayout_2 = QtGui.QGridLayout(GeometryProperty)
self.gridLayout_2.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
self.gridLayout = QtGui.QGridLayout()
self.gridLayout.setSizeConstraint(QtGui.QLayout.SetMaximumSize)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.label = QtGui.QLabel(GeometryProperty)
self.label.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.cboGeoType = QtGui.QComboBox(GeometryProperty)
self.cboGeoType.setMaximumSize(QtCore.QSize(500, 16777215))
self.cboGeoType.setObjectName(_fromUtf8("cboGeoType"))
self.gridLayout.addWidget(self.cboGeoType, 0, 1, 1, 1)
self.label_2 = QtGui.QLabel(GeometryProperty)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
self.label_2.setSizePolicy(sizePolicy)
self.label_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.btnCoord = QtGui.QPushButton(GeometryProperty)
self.btnCoord.setObjectName(_fromUtf8("btnCoord"))
self.gridLayout.addWidget(self.btnCoord, 1, 1, 1, 1)
self.gridLayout.setColumnStretch(1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
self.buttonBox = QtGui.QDialogButtonBox(GeometryProperty)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.gridLayout_2.addWidget(self.buttonBox, 1, 0, 1, 1)
self.retranslateUi(GeometryProperty)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), GeometryProperty.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), GeometryProperty.reject)
QtCore.QMetaObject.connectSlotsByName(GeometryProperty)
示例11: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, SourceDocumentTranslatorDialog):
SourceDocumentTranslatorDialog.setObjectName(_fromUtf8("SourceDocumentTranslatorDialog"))
SourceDocumentTranslatorDialog.resize(497, 127)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(SourceDocumentTranslatorDialog.sizePolicy().hasHeightForWidth())
SourceDocumentTranslatorDialog.setSizePolicy(sizePolicy)
SourceDocumentTranslatorDialog.setMinimumSize(QtCore.QSize(0, 127))
self.gridLayout = QtGui.QGridLayout(SourceDocumentTranslatorDialog)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.vlNotification = QtGui.QVBoxLayout()
self.vlNotification.setObjectName(_fromUtf8("vlNotification"))
self.gridLayout.addLayout(self.vlNotification, 0, 0, 1, 3)
self.label = QtGui.QLabel(SourceDocumentTranslatorDialog)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
self.txtRootFolder = QtGui.QLineEdit(SourceDocumentTranslatorDialog)
self.txtRootFolder.setMinimumSize(QtCore.QSize(0, 30))
self.txtRootFolder.setObjectName(_fromUtf8("txtRootFolder"))
self.gridLayout.addWidget(self.txtRootFolder, 1, 1, 1, 1)
self.btn_source_doc_folder = QtGui.QToolButton(SourceDocumentTranslatorDialog)
self.btn_source_doc_folder.setMinimumSize(QtCore.QSize(30, 30))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/plugins/stdm/images/icons/open_file.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.btn_source_doc_folder.setIcon(icon)
self.btn_source_doc_folder.setObjectName(_fromUtf8("btn_source_doc_folder"))
self.gridLayout.addWidget(self.btn_source_doc_folder, 1, 2, 1, 1)
self.buttonBox = QtGui.QDialogButtonBox(SourceDocumentTranslatorDialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 3)
self.retranslateUi(SourceDocumentTranslatorDialog)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), SourceDocumentTranslatorDialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), SourceDocumentTranslatorDialog.reject)
QtCore.QMetaObject.connectSlotsByName(SourceDocumentTranslatorDialog)
示例12: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, frmAbout):
frmAbout.setObjectName(_fromUtf8("frmAbout"))
frmAbout.resize(718, 541)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(frmAbout.sizePolicy().hasHeightForWidth())
frmAbout.setSizePolicy(sizePolicy)
frmAbout.setLayoutDirection(QtCore.Qt.LeftToRight)
self.gridLayout = QtGui.QGridLayout(frmAbout)
self.gridLayout.setMargin(9)
self.gridLayout.setSpacing(6)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.txtAbout = QtGui.QTextEdit(frmAbout)
self.txtAbout.setReadOnly(True)
self.txtAbout.setObjectName(_fromUtf8("txtAbout"))
self.gridLayout.addWidget(self.txtAbout, 0, 0, 1, 2)
self.btnSTDMHome = QtGui.QPushButton(frmAbout)
self.btnSTDMHome.setMinimumSize(QtCore.QSize(0, 30))
self.btnSTDMHome.setObjectName(_fromUtf8("btnSTDMHome"))
self.gridLayout.addWidget(self.btnSTDMHome, 1, 0, 1, 1)
self.btnContactUs = QtGui.QPushButton(frmAbout)
self.btnContactUs.setMinimumSize(QtCore.QSize(0, 30))
self.btnContactUs.setObjectName(_fromUtf8("btnContactUs"))
self.gridLayout.addWidget(self.btnContactUs, 1, 1, 1, 1)
self.buttonBox = QtGui.QDialogButtonBox(frmAbout)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.gridLayout.addWidget(self.buttonBox, 2, 0, 1, 2)
self.retranslateUi(frmAbout)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), frmAbout.reject)
QtCore.QMetaObject.connectSlotsByName(frmAbout)
示例13: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, frmComposerFieldEditor):
frmComposerFieldEditor.setObjectName(_fromUtf8("frmComposerFieldEditor"))
frmComposerFieldEditor.resize(281, 76)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(frmComposerFieldEditor.sizePolicy().hasHeightForWidth())
frmComposerFieldEditor.setSizePolicy(sizePolicy)
self.gridLayout = QtGui.QGridLayout(frmComposerFieldEditor)
self.gridLayout.setVerticalSpacing(11)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.cboDataField = QtGui.QComboBox(frmComposerFieldEditor)
self.cboDataField.setMinimumSize(QtCore.QSize(0, 30))
self.cboDataField.setObjectName(_fromUtf8("cboDataField"))
self.gridLayout.addWidget(self.cboDataField, 1, 1, 1, 1)
self.label_2 = QtGui.QLabel(frmComposerFieldEditor)
self.label_2.setMaximumSize(QtCore.QSize(80, 16777215))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.label = QtGui.QLabel(frmComposerFieldEditor)
self.label.setStyleSheet(_fromUtf8("padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);"))
self.label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 2)
self.retranslateUi(frmComposerFieldEditor)
QtCore.QMetaObject.connectSlotsByName(frmComposerFieldEditor)
示例14: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(224, 117)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
Form.setSizePolicy(sizePolicy)
self.verticalLayout = QtGui.QVBoxLayout(Form)
self.verticalLayout.setSpacing(1)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.translateLabel = QtGui.QLabel(Form)
self.translateLabel.setObjectName(_fromUtf8("translateLabel"))
self.verticalLayout.addWidget(self.translateLabel)
self.rotateLabel = QtGui.QLabel(Form)
self.rotateLabel.setObjectName(_fromUtf8("rotateLabel"))
self.verticalLayout.addWidget(self.rotateLabel)
self.scaleLabel = QtGui.QLabel(Form)
self.scaleLabel.setObjectName(_fromUtf8("scaleLabel"))
self.verticalLayout.addWidget(self.scaleLabel)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.mirrorImageBtn = QtGui.QPushButton(Form)
self.mirrorImageBtn.setToolTip(_fromUtf8(""))
self.mirrorImageBtn.setObjectName(_fromUtf8("mirrorImageBtn"))
self.horizontalLayout.addWidget(self.mirrorImageBtn)
self.reflectImageBtn = QtGui.QPushButton(Form)
self.reflectImageBtn.setObjectName(_fromUtf8("reflectImageBtn"))
self.horizontalLayout.addWidget(self.reflectImageBtn)
self.verticalLayout.addLayout(self.horizontalLayout)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
示例15: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QSizePolicy [as 别名]
def setupUi(self, AboutDialog):
AboutDialog.setObjectName(_fromUtf8("AboutDialog"))
AboutDialog.setWindowModality(QtCore.Qt.ApplicationModal)
AboutDialog.resize(370, 400)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(AboutDialog.sizePolicy().hasHeightForWidth())
AboutDialog.setSizePolicy(sizePolicy)
AboutDialog.setMinimumSize(QtCore.QSize(370, 400))
self.verticalLayout = QtGui.QVBoxLayout(AboutDialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.messageText = QtGui.QTextEdit(AboutDialog)
self.messageText.setEnabled(True)
self.messageText.setAutoFillBackground(False)
self.messageText.setFrameShape(QtGui.QFrame.NoFrame)
self.messageText.setFrameShadow(QtGui.QFrame.Plain)
self.messageText.setLineWidth(0)
self.messageText.setUndoRedoEnabled(False)
self.messageText.setReadOnly(True)
self.messageText.setObjectName(_fromUtf8("messageText"))
self.verticalLayout.addWidget(self.messageText)
self.logoLabel = QtGui.QLabel(AboutDialog)
self.logoLabel.setAutoFillBackground(True)
self.logoLabel.setText(_fromUtf8(""))
self.logoLabel.setObjectName(_fromUtf8("logoLabel"))
self.verticalLayout.addWidget(self.logoLabel)
self.closeButton = QtGui.QPushButton(AboutDialog)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.closeButton.sizePolicy().hasHeightForWidth())
self.closeButton.setSizePolicy(sizePolicy)
self.closeButton.setObjectName(_fromUtf8("closeButton"))
self.verticalLayout.addWidget(self.closeButton)
self.retranslateUi(AboutDialog)
QtCore.QMetaObject.connectSlotsByName(AboutDialog)