本文整理汇总了Python中PyQt4.QtGui.QFormLayout方法的典型用法代码示例。如果您正苦于以下问题:Python QtGui.QFormLayout方法的具体用法?Python QtGui.QFormLayout怎么用?Python QtGui.QFormLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.QtGui
的用法示例。
在下文中一共展示了QtGui.QFormLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: quickLayout
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def quickLayout(self, type, ui_name=""):
the_layout = ''
if type in ("form", "QFormLayout"):
the_layout = QtWidgets.QFormLayout()
the_layout.setLabelAlignment(QtCore.Qt.AlignLeft)
the_layout.setFieldGrowthPolicy(QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
elif type in ("grid", "QGridLayout"):
the_layout = QtWidgets.QGridLayout()
elif type in ("hbox", "QHBoxLayout"):
the_layout = QtWidgets.QHBoxLayout()
the_layout.setAlignment(QtCore.Qt.AlignTop)
else:
the_layout = QtWidgets.QVBoxLayout()
the_layout.setAlignment(QtCore.Qt.AlignTop)
if ui_name != "":
self.uiList[ui_name] = the_layout
return the_layout
示例2: quickLayout
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def quickLayout(self, type, ui_name=""):
the_layout = ''
if type in ("form", "QFormLayout"):
the_layout = QtGui.QFormLayout()
the_layout.setLabelAlignment(QtCore.Qt.AlignLeft)
the_layout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
elif type in ("grid", "QGridLayout"):
the_layout = QtGui.QGridLayout()
elif type in ("hbox", "QHBoxLayout"):
the_layout = QtGui.QHBoxLayout()
the_layout.setAlignment(QtCore.Qt.AlignTop)
else:
the_layout = QtGui.QVBoxLayout()
the_layout.setAlignment(QtCore.Qt.AlignTop)
if ui_name != "":
self.uiList[ui_name] = the_layout
return the_layout
示例3: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def __init__(self):
super(AppWindow, self).__init__()
self.setWindowFlags(self.windowFlags() | QtCore.Qt.Window)
self.imageLabel = None
self.imageFilePath = None
self.RoiFilePath = None
self.uploadTextView = None
self.layout = QtGui.QVBoxLayout()
self.create_toolbar()
self.input_section = QtGui.QFormLayout()
self.layout.addLayout(self.input_section)
self.display_section = QtGui.QFormLayout()
self.layout.addLayout(self.display_section)
self.extraction_section = QtGui.QFormLayout()
self.layout.addLayout(self.extraction_section)
self.final_section = QtGui.QFormLayout()
self.layout.addLayout(self.final_section)
self.initUI()
示例4: initUI
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def initUI(self):
# Create layout
layout = QtGui.QFormLayout()
label1 = QtGui.QLabel("Clusters")
combo1 = QtGui.QComboBox(self)
combo1.addItems(CLUSTER_SETTING_OPTIONS)
combo1.currentIndexChanged.connect(self.selectionInClusterComboBox)
combo1.setCurrentIndex(SELECTED_CLUSTER_SETTING_INDEX)
layout.addRow(label1, combo1)
label2 = QtGui.QLabel("Compactness")
combo2 = QtGui.QComboBox(self)
combo2.addItems(COMPACTNESS_SETTING_OPTIONS)
combo2.currentIndexChanged.connect(self.selectionInCompactnessComboBox)
combo2.setCurrentIndex(SELECTED_COMPACTNESS_SETTING_INDEX)
layout.addRow(label2, combo2)
self.setLayout(layout)
示例5: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def setupUi(self, VarcharProperty):
VarcharProperty.setObjectName(_fromUtf8("VarcharProperty"))
VarcharProperty.resize(246, 67)
self.formLayout = QtGui.QFormLayout(VarcharProperty)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.label = QtGui.QLabel(VarcharProperty)
self.label.setObjectName(_fromUtf8("label"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
self.edtCharLen = QtGui.QLineEdit(VarcharProperty)
self.edtCharLen.setObjectName(_fromUtf8("edtCharLen"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.edtCharLen)
self.buttonBox = QtGui.QDialogButtonBox(VarcharProperty)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.formLayout.setWidget(1, QtGui.QFormLayout.SpanningRole, self.buttonBox)
self.retranslateUi(VarcharProperty)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), VarcharProperty.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), VarcharProperty.reject)
QtCore.QMetaObject.connectSlotsByName(VarcharProperty)
示例6: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def __init__(self, parent=None):
super(TrialDetailsWidget, self).__init__(parent)
self.layout = QtGui.QVBoxLayout()
self.setLayout(self.layout)
self.box = QtGui.QGroupBox("Trial Settings")
self.layout.addWidget(self.box)
self.box_layout = QtGui.QFormLayout()
self.box_layout.setFormAlignment(QtCore.Qt.AlignTop | QtCore.Qt.AlignLeft)
self.box.setLayout(self.box_layout)
self.type = QtGui.QLabel("")
self.box_layout.addRow("<b>Type</b>", self.type)
self.name = QtGui.QLabel("")
self.box_layout.addRow("<b>Name</b>", self.name)
self.description = QtGui.QLabel("")
self.box_layout.addRow("<b>Description</b>", self.description)
示例7: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def __init__(self, app, fcdraw):
FlatCAMTool.__init__(self, app)
self.fcdraw = fcdraw
## Title
title_label = QtGui.QLabel("<font size=4><b>%s</b></font>" % self.toolName)
self.layout.addWidget(title_label)
## Form Layout
form_layout = QtGui.QFormLayout()
self.layout.addLayout(form_layout)
## Buffer distance
self.buffer_distance_entry = LengthEntry()
form_layout.addRow("Buffer distance:", self.buffer_distance_entry)
## Buttons
hlay = QtGui.QHBoxLayout()
self.layout.addLayout(hlay)
hlay.addStretch()
self.buffer_button = QtGui.QPushButton("Buffer")
hlay.addWidget(self.buffer_button)
self.layout.addStretch()
## Signals
self.buffer_button.clicked.connect(self.on_buffer)
示例8: qui
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def qui(self, ui_list_string, parentObject_string='', opt=''):
# pre-defined user short name syntax
type_dict = {
'vbox': 'QVBoxLayout','hbox':'QHBoxLayout','grid':'QGridLayout', 'form':'QFormLayout',
'split': 'QSplitter', 'grp':'QGroupBox', 'tab':'QTabWidget',
'btn':'QPushButton', 'btnMsg':'QPushButton', 'label':'QLabel', 'input':'QLineEdit', 'check':'QCheckBox', 'choice':'QComboBox',
'txtEdit': 'LNTextEdit', 'txt': 'QTextEdit',
'tree': 'QTreeWidget', 'table': 'QTableWidget',
'space': 'QSpacerItem',
}
# get ui_list, creation or existing ui object
ui_list = [x.strip() for x in ui_list_string.split('|')]
for i in range(len(ui_list)):
if ui_list[i] in self.uiList:
# - exisiting object
ui_list[i] = self.uiList[ui_list[i]]
else:
# - string creation:
# get part info
partInfo = ui_list[i].split(';',1)
uiName = partInfo[0].split('@')[0]
uiType = uiName.rsplit('_',1)[-1]
if uiType in type_dict:
uiType = type_dict[uiType]
# set quickUI string format
ui_list[i] = partInfo[0]+';'+uiType
if len(partInfo)==1:
# give empty button and label a place holder name
if uiType in ('btn', 'btnMsg', 'QPushButton','label', 'QLabel'):
ui_list[i] = partInfo[0]+';'+uiType + ';'+uiName
elif len(partInfo)==2:
ui_list[i]=ui_list[i]+";"+partInfo[1]
# get parentObject or exisiting object
parentObject = parentObject_string
if parentObject in self.uiList:
parentObject = self.uiList[parentObject]
# process quickUI
self.quickUI(ui_list, parentObject, opt)
示例9: qui
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def qui(self, ui_list_string, parentObject_string='', opt=''):
# pre-defined user short name syntax
type_dict = {
'vbox': 'QVBoxLayout','hbox':'QHBoxLayout','grid':'QGridLayout', 'form':'QFormLayout',
'split': 'QSplitter', 'grp':'QGroupBox', 'tab':'QTabWidget',
'btn':'QPushButton', 'btnMsg':'QPushButton', 'label':'QLabel', 'input':'QLineEdit', 'check':'QCheckBox', 'choice':'QComboBox',
'txt': 'QTextEdit',
'list': 'QListWidget', 'tree': 'QTreeWidget', 'table': 'QTableWidget',
'space': 'QSpacerItem',
}
# get ui_list, creation or existing ui object
ui_list = [x.strip() for x in ui_list_string.split('|')]
for i in range(len(ui_list)):
if ui_list[i] in self.uiList:
# - exisiting object
ui_list[i] = self.uiList[ui_list[i]]
else:
# - string creation:
# get part info
partInfo = ui_list[i].split(';',1)
uiName = partInfo[0].split('@')[0]
uiType = uiName.rsplit('_',1)[-1]
if uiType in type_dict:
uiType = type_dict[uiType]
# set quickUI string format
ui_list[i] = partInfo[0]+';'+uiType
if len(partInfo)==1:
# give empty button and label a place holder name
if uiType in ('btn', 'btnMsg', 'QPushButton','label', 'QLabel'):
ui_list[i] = partInfo[0]+';'+uiType + ';'+uiName
elif len(partInfo)==2:
ui_list[i]=ui_list[i]+";"+partInfo[1]
# get parentObject or exisiting object
parentObject = parentObject_string
if parentObject in self.uiList:
parentObject = self.uiList[parentObject]
# process quickUI
self.quickUI(ui_list, parentObject, opt)
示例10: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def __init__(self, parent=None, mode=0):
super_class.__init__(self, parent)
#------------------------------
# class variables
#------------------------------
self.version="0.1"
self.help = "How to Use:\n1. Put source info in\n2. Click Process button\n3. Check result output\n4. Save memory info into a file."
self.uiList={} # for ui obj storage
self.memoData = {} # key based variable data storage
self.location = ""
if getattr(sys, 'frozen', False):
# frozen - cx_freeze
self.location = sys.executable
else:
# unfrozen
self.location = os.path.realpath(sys.modules[self.__class__.__module__].__file__)
self.name = self.__class__.__name__
self.iconPath = os.path.join(os.path.dirname(self.location),'icons',self.name+'.png')
self.iconPix = QtGui.QPixmap(self.iconPath)
self.icon = QtGui.QIcon(self.iconPath)
self.fileType='.{0}_EXT'.format(self.name)
#------------------------------
# core function variable
#------------------------------
self.qui_core_dict = {
'vbox': 'QVBoxLayout','hbox':'QHBoxLayout','grid':'QGridLayout', 'form':'QFormLayout',
'split': 'QSplitter', 'grp':'QGroupBox', 'tab':'QTabWidget',
'btn':'QPushButton', 'btnMsg':'QPushButton', 'label':'QLabel', 'input':'QLineEdit', 'check':'QCheckBox', 'choice':'QComboBox',
'txt': 'QTextEdit',
'list': 'QListWidget', 'tree': 'QTreeWidget', 'table': 'QTableWidget',
'space': 'QSpacerItem',
}
self.qui_user_dict = {}
#------------------------------
示例11: qui
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def qui(self, ui_list_string, parentObject_string='', opt=''):
# pre-defined user short name syntax
type_dict = {
'vbox': 'QVBoxLayout','hbox':'QHBoxLayout','grid':'QGridLayout', 'form':'QFormLayout',
'split': 'QSplitter', 'grp':'QGroupBox', 'tab':'QTabWidget',
'btn':'QPushButton', 'btnMsg':'QPushButton', 'label':'QLabel', 'input':'QLineEdit', 'check':'QCheckBox', 'choice':'QComboBox',
'txtEdit': 'LNTextEdit', 'txt': 'QTextEdit',
'tree': 'QTreeWidget',
'space': 'QSpacerItem',
}
# get ui_list, creation or existing ui object
ui_list = [x.strip() for x in ui_list_string.split('|')]
for i in range(len(ui_list)):
if ui_list[i] in self.uiList:
# - exisiting object
ui_list[i] = self.uiList[ui_list[i]]
else:
# - string creation:
# get part info
partInfo = ui_list[i].split(';',1)
uiName = partInfo[0].split('@')[0]
uiType = uiName.rsplit('_',1)[-1]
if uiType in type_dict:
uiType = type_dict[uiType]
# set quickUI string format
ui_list[i] = partInfo[0]+';'+uiType
if len(partInfo)==1:
# give empty button and label a place holder name
if uiType in ('btn', 'btnMsg', 'QPushButton','label', 'QLabel'):
ui_list[i] = partInfo[0]+';'+uiType + ';'+uiName
elif len(partInfo)==2:
ui_list[i]=ui_list[i]+";"+partInfo[1]
# get parentObject or exisiting object
parentObject = parentObject_string
if parentObject in self.uiList:
parentObject = self.uiList[parentObject]
# process quickUI
self.quickUI(ui_list, parentObject, opt)
示例12: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.setWindowModality(QtCore.Qt.ApplicationModal)
Dialog.resize(364, 138)
Dialog.setModal(True)
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.formLayout = QtGui.QFormLayout()
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout.setContentsMargins(-1, 10, -1, -1)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.login_or_email_label = QtGui.QLabel(Dialog)
self.login_or_email_label.setObjectName(_fromUtf8("login_or_email_label"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.login_or_email_label)
self.login_or_email_lineEdit = QtGui.QLineEdit(Dialog)
self.login_or_email_lineEdit.setInputMask(_fromUtf8(""))
self.login_or_email_lineEdit.setObjectName(_fromUtf8("login_or_email_lineEdit"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.login_or_email_lineEdit)
self.password_label = QtGui.QLabel(Dialog)
self.password_label.setObjectName(_fromUtf8("password_label"))
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.password_label)
self.password_lineEdit = QtGui.QLineEdit(Dialog)
self.password_lineEdit.setInputMask(_fromUtf8(""))
self.password_lineEdit.setText(_fromUtf8(""))
self.password_lineEdit.setEchoMode(QtGui.QLineEdit.Password)
self.password_lineEdit.setObjectName(_fromUtf8("password_lineEdit"))
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.password_lineEdit)
self.buttonBox = QtGui.QDialogButtonBox(Dialog)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.buttonBox)
self.verticalLayout.addLayout(self.formLayout)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
示例13: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def setupUi(self, Dialog):
Dialog.setObjectName(_fromUtf8("Dialog"))
Dialog.resize(923, 542)
self.verticalLayout = QtGui.QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.formLayout = QtGui.QFormLayout()
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.media_files_path_lineEdit = QtGui.QLineEdit(Dialog)
self.media_files_path_lineEdit.setObjectName(_fromUtf8("media_files_path_lineEdit"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.media_files_path_lineEdit)
self.label = QtGui.QLabel(Dialog)
self.label.setObjectName(_fromUtf8("label"))
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
self.label_2 = QtGui.QLabel(Dialog)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
self.verticalLayout.addLayout(self.formLayout)
self.edl_preview_plainTextEdit = QtGui.QPlainTextEdit(Dialog)
self.edl_preview_plainTextEdit.setReadOnly(True)
self.edl_preview_plainTextEdit.setObjectName(_fromUtf8("edl_preview_plainTextEdit"))
self.verticalLayout.addWidget(self.edl_preview_plainTextEdit)
self.horizontalLayout_2 = QtGui.QHBoxLayout()
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
self.send_pushButton = QtGui.QPushButton(Dialog)
self.send_pushButton.setObjectName(_fromUtf8("send_pushButton"))
self.horizontalLayout_2.addWidget(self.send_pushButton)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
Dialog.setTabOrder(self.media_files_path_lineEdit, self.edl_preview_plainTextEdit)
Dialog.setTabOrder(self.edl_preview_plainTextEdit, self.send_pushButton)
示例14: __init__
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def __init__(self, controller):
super(NewOctoPrintDialog, self).__init__(controller.view, Qt.WindowSystemMenuHint | Qt.WindowTitleHint)
self.controller = controller
layout = QFormLayout(self)
# nice widget for editing the date
self.name_label = QLabel(self.tr("Name"))
self.name_edit = QLineEdit()
self.ip_address_label = QLabel(self.tr("IP"))
self.ip_address_edit = QLineEdit()
self.apikey_label = QLabel(self.tr("ApiKey"))
self.apikey_edit = QLineEdit()
#self.username_label = QLabel(self.tr("User"))
#self.username_edit = QLineEdit()
#self.password_label = QLabel(self.tr("Password"))
#self.password_edit = QLineEdit()
layout.addRow(self.name_label, self.name_edit)
layout.addRow(self.ip_address_label, self.ip_address_edit)
layout.addRow(self.apikey_label, self.apikey_edit)
#layout.addRow(self.username_label, self.username_edit)
#layout.addRow(self.password_label, self.password_edit)
# OK and Cancel buttons
buttons = QDialogButtonBox(
QDialogButtonBox.Ok | QDialogButtonBox.Cancel,
Qt.Horizontal, self)
buttons.accepted.connect(self.accept)
buttons.rejected.connect(self.reject)
layout.addWidget(buttons)
示例15: setupUi
# 需要导入模块: from PyQt4 import QtGui [as 别名]
# 或者: from PyQt4.QtGui import QFormLayout [as 别名]
def setupUi(self, dlgCopyProfile):
dlgCopyProfile.setObjectName(_fromUtf8("dlgCopyProfile"))
dlgCopyProfile.resize(467, 147)
dlgCopyProfile.setMinimumSize(QtCore.QSize(0, 0))
self.formLayout = QtGui.QFormLayout(dlgCopyProfile)
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.label_2 = QtGui.QLabel(dlgCopyProfile)
self.label_2.setObjectName(_fromUtf8("label_2"))
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
self.edtFromProfile = QtGui.QLineEdit(dlgCopyProfile)
self.edtFromProfile.setReadOnly(True)
self.edtFromProfile.setObjectName(_fromUtf8("edtFromProfile"))
self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.edtFromProfile)
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.formLayout.setItem(1, QtGui.QFormLayout.FieldRole, spacerItem)
self.label = QtGui.QLabel(dlgCopyProfile)
self.label.setMinimumSize(QtCore.QSize(60, 0))
self.label.setObjectName(_fromUtf8("label"))
self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
self.edtName = QtGui.QLineEdit(dlgCopyProfile)
self.edtName.setObjectName(_fromUtf8("edtName"))
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.edtName)
self.label_3 = QtGui.QLabel(dlgCopyProfile)
self.label_3.setObjectName(_fromUtf8("label_3"))
self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_3)
self.edtDesc = QtGui.QLineEdit(dlgCopyProfile)
self.edtDesc.setObjectName(_fromUtf8("edtDesc"))
self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.edtDesc)
self.buttonBox = QtGui.QDialogButtonBox(dlgCopyProfile)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.buttonBox)
spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.formLayout.setItem(3, QtGui.QFormLayout.FieldRole, spacerItem1)
self.retranslateUi(dlgCopyProfile)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), dlgCopyProfile.accept)
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), dlgCopyProfile.reject)
QtCore.QMetaObject.connectSlotsByName(dlgCopyProfile)