本文整理汇总了Python中PyQt4.QtGui.QFrame方法的典型用法代码示例。如果您正苦于以下问题:Python QtGui.QFrame方法的具体用法?Python QtGui.QFrame怎么用?Python QtGui.QFrame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.QtGui
的用法示例。
在下文中一共展示了QtGui.QFrame方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def __init__(self, dataitem, parent=None):
super(otherPanel, self).__init__(parent)
self.setFrameStyle(widgets.QFrame.Sunken)
self.setFrameShape(widgets.QFrame.Box)
self.data = dataitem
layout = widgets.QGridLayout()
labelnob = widgets.QLabel(_("Number of bytes"))
lableunit = widgets.QLabel(_("Unit"))
layout.addWidget(labelnob, 0, 0)
layout.addWidget(lableunit, 1, 0)
layout.setRowStretch(2, 1)
self.inputnob = widgets.QSpinBox()
self.inputnob.setRange(1, 10240)
self.inputtype = widgets.QComboBox()
self.inputtype.addItem("ASCII")
self.inputtype.addItem("BCD/HEX")
layout.addWidget(self.inputnob, 0, 1)
layout.addWidget(self.inputtype, 1, 1)
self.setLayout(layout)
self.init()
示例2: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def __init__(self, *args):
QtWidgets.QFrame.__init__(self, *args)
self.setFrameStyle(QtWidgets.QFrame.StyledPanel | QtWidgets.QFrame.Sunken)
self.edit = self.PlainTextEdit()
self.number_bar = self.NumberBar(self.edit)
hbox = QtWidgets.QHBoxLayout(self)
hbox.setSpacing(0)
hbox.setContentsMargins(0,0,0,0) # setMargin
hbox.addWidget(self.number_bar)
hbox.addWidget(self.edit)
self.edit.blockCountChanged.connect(self.number_bar.adjustWidth)
self.edit.updateRequest.connect(self.number_bar.updateContents)
示例3: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def __init__(self, *args):
QtGui.QFrame.__init__(self, *args)
self.setFrameStyle(QtGui.QFrame.StyledPanel | QtGui.QFrame.Sunken)
self.edit = self.PlainTextEdit()
self.number_bar = self.NumberBar(self.edit)
hbox = QtGui.QHBoxLayout(self)
hbox.setSpacing(0)
hbox.setContentsMargins(0,0,0,0) # setMargin
hbox.addWidget(self.number_bar)
hbox.addWidget(self.edit)
self.edit.blockCountChanged.connect(self.number_bar.adjustWidth)
self.edit.updateRequest.connect(self.number_bar.updateContents)
示例4: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def __init__(self, parent=None, title="", collapsed=False):
QtGui.QFrame.__init__(self, parent=parent)
self.setMinimumHeight(24)
self.move(QtCore.QPoint(24, 0))
self.setStyleSheet("border:1px solid rgb(41, 41, 41); ")
self._hlayout = QtGui.QHBoxLayout(self)
self._hlayout.setContentsMargins(0, 0, 0, 0)
self._hlayout.setSpacing(0)
self._arrow = None
self._title = None
self._hlayout.addWidget(self.initArrow(collapsed))
self._hlayout.addWidget(self.initTitle(title))
示例5: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(993, 692)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.pbLevel = QtGui.QProgressBar(self.centralwidget)
self.pbLevel.setMaximum(1000)
self.pbLevel.setProperty("value", 123)
self.pbLevel.setTextVisible(False)
self.pbLevel.setOrientation(QtCore.Qt.Vertical)
self.pbLevel.setObjectName(_fromUtf8("pbLevel"))
self.horizontalLayout.addWidget(self.pbLevel)
self.frame = QtGui.QFrame(self.centralwidget)
self.frame.setFrameShape(QtGui.QFrame.NoFrame)
self.frame.setFrameShadow(QtGui.QFrame.Plain)
self.frame.setObjectName(_fromUtf8("frame"))
self.verticalLayout = QtGui.QVBoxLayout(self.frame)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.label = QtGui.QLabel(self.frame)
self.label.setObjectName(_fromUtf8("label"))
self.verticalLayout.addWidget(self.label)
self.grFFT = PlotWidget(self.frame)
self.grFFT.setObjectName(_fromUtf8("grFFT"))
self.verticalLayout.addWidget(self.grFFT)
self.label_2 = QtGui.QLabel(self.frame)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.verticalLayout.addWidget(self.label_2)
self.grPCM = PlotWidget(self.frame)
self.grPCM.setObjectName(_fromUtf8("grPCM"))
self.verticalLayout.addWidget(self.grPCM)
self.horizontalLayout.addWidget(self.frame)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
示例6: toggle_selected
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def toggle_selected(self, sel):
if sel:
self.setFrameStyle(widgets.QFrame.Panel | widgets.QFrame.StyledPanel)
else:
self.setFrameStyle(widgets.QFrame.NoFrame)
示例7: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def __init__(self):
super(Gui, self).__init__()
self.resize(250, 300)
self._list = QtGui.QListWidget(self)
self._button1 = QtGui.QPushButton("Test CallbackEvent", self)
self._button2 = QtGui.QPushButton("Test CallbackPool", self)
layout = QtGui.QVBoxLayout(self)
layout.setSpacing(2)
layout.addWidget(self._button1)
line = QtGui.QFrame(self)
line.setFrameStyle(line.HLine)
layout.addSpacing(6)
layout.addWidget(line)
layout.addSpacing(6)
layout.addWidget(self._list)
layout.addWidget(self._button2)
self._pool = CallbackThreadPool(4)
self._button1.clicked.connect(self.runCallbackEvents)
self._button2.clicked.connect(self.runCallbackPool)
示例8: setReadOnlyStyle
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setReadOnlyStyle(self, state):
if state == 1:
mainWindowBgColor = QtGui.QPalette().color(QtGui.QPalette.Window)
self.setStyleSheet('QPlainTextEdit[readOnly="true"] { background-color: %s;} QFrame {border: 0px}' % mainWindowBgColor.name() )
self.setHighlight(0)
else:
self.setStyleSheet('')
self.setHighlight(1)
示例9: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, Chat):
self.main=Chat
Chat.setWindowTitle(_translate("Chat", "聊天", None))
Chat.resize(575, 524)
# font
self.font = QtGui.QFont()
self.font.setFamily(_fromUtf8("Helvetica"))
self.font.setPointSize(13)
self.font.setBold(True)
self.font.setItalic(False)
self.font.setWeight(75)
self.font2 = QtGui.QFont()
self.font2.setFamily(_fromUtf8("Helvetica"))
self.font2.setPointSize(9)
# side bar
self.listWidget_Users = QtGui.QListWidget(Chat)
self.listWidget_Users.setGeometry(QtCore.QRect(0, 0, 94, 521))
self.listWidget_Users.setSpacing(2)
self.line = QtGui.QFrame(Chat)
self.line.setGeometry(QtCore.QRect(97, 0, 10, 521))
self.line.setFrameShape(QtGui.QFrame.VLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
# stack widget
self.stackedWidget = QtGui.QStackedWidget(Chat)
self.stackedWidget.setGeometry(QtCore.QRect(100, 0, 471, 521))
# page
self.stack = {}
self.listWidget = {}
self.sideButton = {}
self.button_send = {}
self.button_close ={}
self.item_widget={}
self.textEdit = {}
QtCore.QMetaObject.connectSlotsByName(Chat)
# data
self.groupInfo={} #gcode
self.discussInfo={}
示例10: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, Logs):
Logs.setObjectName(_fromUtf8("Logs"))
Logs.resize(930, 369)
self.label = QtGui.QLabel(Logs)
self.label.setGeometry(QtCore.QRect(10, 10, 911, 31))
self.label.setObjectName(_fromUtf8("label"))
self.line = QtGui.QFrame(Logs)
self.line.setGeometry(QtCore.QRect(10, 40, 911, 21))
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.logs_table = QtGui.QTableWidget(Logs)
self.logs_table.setGeometry(QtCore.QRect(10, 60, 911, 251))
self.logs_table.setObjectName(_fromUtf8("logs_table"))
self.logs_table.setColumnCount(0)
self.logs_table.setRowCount(0)
self.exit_bt = QtGui.QPushButton(Logs)
self.exit_bt.setGeometry(QtCore.QRect(790, 330, 131, 26))
self.exit_bt.setObjectName(_fromUtf8("exit_bt"))
self.save_logs_as_bt = QtGui.QPushButton(Logs)
self.save_logs_as_bt.setGeometry(QtCore.QRect(650, 330, 131, 26))
self.save_logs_as_bt.setObjectName(_fromUtf8("save_logs_as_bt"))
self.logs_settings_bt = QtGui.QPushButton(Logs)
self.logs_settings_bt.setGeometry(QtCore.QRect(510, 330, 131, 26))
self.logs_settings_bt.setObjectName(_fromUtf8("logs_settings_bt"))
self.label_2 = QtGui.QLabel(Logs)
self.label_2.setGeometry(QtCore.QRect(10, 320, 181, 41))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.total_log_positions = QtGui.QLabel(Logs)
self.total_log_positions.setGeometry(QtCore.QRect(200, 320, 131, 41))
self.total_log_positions.setObjectName(_fromUtf8("total_log_positions"))
self.clear_logs_bt = QtGui.QPushButton(Logs)
self.clear_logs_bt.setGeometry(QtCore.QRect(370, 330, 131, 26))
self.clear_logs_bt.setObjectName(_fromUtf8("clear_logs_bt"))
self.retranslateUi(Logs)
QtCore.QMetaObject.connectSlotsByName(Logs)
示例11: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, InitialWindow):
InitialWindow.setObjectName(_fromUtf8("InitialWindow"))
InitialWindow.resize(820, 202)
self.label = QtGui.QLabel(InitialWindow)
self.label.setGeometry(QtCore.QRect(10, 0, 801, 61))
self.label.setObjectName(_fromUtf8("label"))
self.line = QtGui.QFrame(InitialWindow)
self.line.setGeometry(QtCore.QRect(10, 50, 801, 20))
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.login_bt = QtGui.QPushButton(InitialWindow)
self.login_bt.setGeometry(QtCore.QRect(10, 70, 401, 71))
font = QtGui.QFont()
font.setPointSize(18)
self.login_bt.setFont(font)
self.login_bt.setObjectName(_fromUtf8("login_bt"))
self.register_bt = QtGui.QPushButton(InitialWindow)
self.register_bt.setGeometry(QtCore.QRect(420, 70, 391, 71))
font = QtGui.QFont()
font.setPointSize(18)
self.register_bt.setFont(font)
self.register_bt.setObjectName(_fromUtf8("register_bt"))
self.about_bt = QtGui.QPushButton(InitialWindow)
self.about_bt.setGeometry(QtCore.QRect(10, 150, 801, 41))
font = QtGui.QFont()
font.setPointSize(18)
self.about_bt.setFont(font)
self.about_bt.setObjectName(_fromUtf8("about_bt"))
self.retranslateUi(InitialWindow)
QtCore.QMetaObject.connectSlotsByName(InitialWindow)
示例12: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, FileManager):
FileManager.setObjectName(_fromUtf8("FileManager"))
FileManager.resize(977, 313)
self.label = QtGui.QLabel(FileManager)
self.label.setGeometry(QtCore.QRect(290, 0, 141, 61))
self.label.setObjectName(_fromUtf8("label"))
self.file_delete_bt = QtGui.QPushButton(FileManager)
self.file_delete_bt.setGeometry(QtCore.QRect(760, 100, 211, 31))
self.file_delete_bt.setObjectName(_fromUtf8("file_delete_bt"))
self.file_mirrors_bt = QtGui.QPushButton(FileManager)
self.file_mirrors_bt.setGeometry(QtCore.QRect(760, 60, 211, 31))
self.file_mirrors_bt.setObjectName(_fromUtf8("file_mirrors_bt"))
self.line = QtGui.QFrame(FileManager)
self.line.setGeometry(QtCore.QRect(740, 60, 20, 241))
self.line.setFrameShape(QtGui.QFrame.VLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.quit_bt = QtGui.QPushButton(FileManager)
self.quit_bt.setGeometry(QtCore.QRect(760, 240, 211, 61))
self.quit_bt.setObjectName(_fromUtf8("quit_bt"))
self.files_list_tableview = QtGui.QTableView(FileManager)
self.files_list_tableview.setGeometry(QtCore.QRect(10, 60, 731, 241))
self.files_list_tableview.setObjectName(_fromUtf8("files_list_tableview"))
self.file_download_bt = QtGui.QPushButton(FileManager)
self.file_download_bt.setGeometry(QtCore.QRect(760, 140, 211, 31))
self.file_download_bt.setObjectName(_fromUtf8("file_download_bt"))
self.new_file_upload_bt = QtGui.QPushButton(FileManager)
self.new_file_upload_bt.setGeometry(QtCore.QRect(760, 180, 211, 51))
self.new_file_upload_bt.setObjectName(_fromUtf8("new_file_upload_bt"))
self.label_2 = QtGui.QLabel(FileManager)
self.label_2.setGeometry(QtCore.QRect(600, 20, 131, 31))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.bucket_select_combo_box = QtGui.QComboBox(FileManager)
self.bucket_select_combo_box.setGeometry(QtCore.QRect(740, 20, 231, 31))
self.bucket_select_combo_box.setObjectName(_fromUtf8("bucket_select_combo_box"))
self.retranslateUi(FileManager)
QtCore.QMetaObject.connectSlotsByName(FileManager)
示例13: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, BucketManager):
BucketManager.setObjectName(_fromUtf8("BucketManager"))
BucketManager.resize(883, 290)
self.bucket_list_tableview = QtGui.QTableView(BucketManager)
self.bucket_list_tableview.setGeometry(QtCore.QRect(10, 50, 671, 201))
self.bucket_list_tableview.setObjectName(_fromUtf8("bucket_list_tableview"))
self.label = QtGui.QLabel(BucketManager)
self.label.setGeometry(QtCore.QRect(350, 0, 181, 51))
self.label.setObjectName(_fromUtf8("label"))
self.line = QtGui.QFrame(BucketManager)
self.line.setGeometry(QtCore.QRect(690, 50, 20, 201))
self.line.setFrameShape(QtGui.QFrame.VLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.edit_bucket_bt = QtGui.QPushButton(BucketManager)
self.edit_bucket_bt.setGeometry(QtCore.QRect(710, 50, 161, 51))
self.edit_bucket_bt.setObjectName(_fromUtf8("edit_bucket_bt"))
self.delete_bucket_bt = QtGui.QPushButton(BucketManager)
self.delete_bucket_bt.setGeometry(QtCore.QRect(710, 110, 161, 41))
self.delete_bucket_bt.setObjectName(_fromUtf8("delete_bucket_bt"))
self.quit_bt = QtGui.QPushButton(BucketManager)
self.quit_bt.setGeometry(QtCore.QRect(710, 210, 161, 41))
self.quit_bt.setObjectName(_fromUtf8("quit_bt"))
self.label_2 = QtGui.QLabel(BucketManager)
self.label_2.setGeometry(QtCore.QRect(630, 260, 111, 21))
self.label_2.setObjectName(_fromUtf8("label_2"))
self.total_buckets_label = QtGui.QLabel(BucketManager)
self.total_buckets_label.setGeometry(QtCore.QRect(750, 260, 121, 21))
self.total_buckets_label.setObjectName(_fromUtf8("total_buckets_label"))
self.create_new_bucket_bt = QtGui.QPushButton(BucketManager)
self.create_new_bucket_bt.setGeometry(QtCore.QRect(710, 160, 161, 41))
self.create_new_bucket_bt.setObjectName(_fromUtf8("create_new_bucket_bt"))
self.retranslateUi(BucketManager)
QtCore.QMetaObject.connectSlotsByName(BucketManager)
示例14: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(754, 662)
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.dialog_label = QtGui.QLabel(Dialog)
self.dialog_label.setStyleSheet(_fromUtf8("color: rgb(71, 143, 202);\n"
"font: 18pt;"))
self.dialog_label.setObjectName(_fromUtf8("dialog_label"))
self.verticalLayout.addWidget(self.dialog_label)
self.line = QtGui.QFrame(Dialog)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName(_fromUtf8("line"))
self.verticalLayout.addWidget(self.line)
self.formLayout = QtGui.QFormLayout()
self.formLayout.setLabelAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.name_label = QtGui.QLabel(Dialog)
self.name_label.setObjectName(_fromUtf8("name_label"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.name_label)
self.name_fields_verticalLayout = QtGui.QVBoxLayout()
self.name_fields_verticalLayout.setObjectName(_fromUtf8("name_fields_verticalLayout"))
self.name_validator_label = QtGui.QLabel(Dialog)
self.name_validator_label.setStyleSheet(_fromUtf8("color: rgb(255, 0, 0);"))
self.name_validator_label.setObjectName(_fromUtf8("name_validator_label"))
self.name_fields_verticalLayout.addWidget(self.name_validator_label)
self.formLayout.setLayout(0, QtGui.QFormLayout.FieldRole, self.name_fields_verticalLayout)
self.filenmate_templates_label = QtGui.QLabel(Dialog)
self.filenmate_templates_label.setObjectName(_fromUtf8("filenmate_templates_label"))
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.filenmate_templates_label)
self.filename_template_fields_verticalLayout = QtGui.QVBoxLayout()
self.filename_template_fields_verticalLayout.setObjectName(_fromUtf8("filename_template_fields_verticalLayout"))
self.formLayout.setLayout(1, QtGui.QFormLayout.FieldRole, self.filename_template_fields_verticalLayout)
self.custom_template_label = QtGui.QLabel(Dialog)
self.custom_template_label.setObjectName(_fromUtf8("custom_template_label"))
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.custom_template_label)
self.custom_template_plainTextEdit = QtGui.QPlainTextEdit(Dialog)
self.custom_template_plainTextEdit.setObjectName(_fromUtf8("custom_template_plainTextEdit"))
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.custom_template_plainTextEdit)
self.verticalLayout.addLayout(self.formLayout)
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.verticalLayout.addWidget(self.buttonBox)
self.verticalLayout.setStretch(2, 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)
示例15: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFrame [as 别名]
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(640, 480)
Dialog.setModal(True)
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setGeometry(QtCore.QRect(10, 440, 621, 32))
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName("buttonBox")
self.label = QtGui.QLabel(Dialog)
self.label.setGeometry(QtCore.QRect(20, 20, 251, 21))
self.label.setObjectName("label")
self.plainTextEdit = QtGui.QPlainTextEdit(Dialog)
self.plainTextEdit.setGeometry(QtCore.QRect(20, 50, 591, 81))
self.plainTextEdit.setFrameShape(QtGui.QFrame.StyledPanel)
self.plainTextEdit.setReadOnly(True)
self.plainTextEdit.setObjectName("plainTextEdit")
self.frame = QtGui.QFrame(Dialog)
self.frame.setGeometry(QtCore.QRect(20, 140, 591, 131))
self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
self.frame.setFrameShadow(QtGui.QFrame.Raised)
self.frame.setObjectName("frame")
self.formLayout = QtGui.QFormLayout(self.frame)
self.formLayout.setObjectName("formLayout")
self.label_2 = QtGui.QLabel(self.frame)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
self.lineEdit = QtGui.QLineEdit(self.frame)
self.lineEdit.setObjectName("lineEdit")
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.lineEdit)
self.label_3 = QtGui.QLabel(self.frame)
self.label_3.setObjectName("label_3")
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3)
self.checkBox = QtGui.QCheckBox(self.frame)
self.checkBox.setObjectName("checkBox")
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.checkBox)
self.label_4 = QtGui.QLabel(self.frame)
self.label_4.setObjectName("label_4")
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_4)
self.comboBox = QtGui.QComboBox(self.frame)
self.comboBox.setObjectName("comboBox")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.comboBox.addItem("")
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.comboBox)
self.retranslateUi(Dialog)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Dialog.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Dialog.reject)
QtCore.QMetaObject.connectSlotsByName(Dialog)