本文整理汇总了Python中PyQt4.QtGui.QWizard.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python QWizard.__init__方法的具体用法?Python QWizard.__init__怎么用?Python QWizard.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PyQt4.QtGui.QWizard
的用法示例。
在下文中一共展示了QWizard.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent=None, flags=PyQt4.QtCore.Qt.Widget):
QWizard.__init__(self, parent, flags)
self.setupUi(self)
# need to initialize the pages before connecting signals
self.restart()
attributePixmap = pixmapFromTheme("addattribute", ":/icons/64/add-attribute")
objectclassPixmap = pixmapFromTheme("objectclass", ":/icons/64/objectclass")
self.imageLabel.setPixmap(attributePixmap)
self.objectclassLabel.setPixmap(objectclassPixmap)
self.enableAllBox.toggled.connect(self.initAttributeBox)
self.attributeBox.activated[str].connect(self.newSelection)
self.classBox.itemSelectionChanged.connect(self.classSelection)
# attribute values of the current ldap object
self.OBJECTVALUES = None
# schema information for the ldap server
self.SCHEMAINFO = None
# set of attributes which are possible with the current objectclasses
self.possibleAttributes = None
# set of all attributes which are supported by the server
self.allPossibleAttributes = None
示例2: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, settings):
QWizard.__init__(self)
self.setupUi(self)
self.settings = settings
self.add_screenshots.clicked.connect(self.AddFiles)
self.wizardPage2.pageCreated.connect(self.AnalyzeImg)
self.contrast = 0.0
示例3: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent=None):
"""
Constructor
@param parent reference to the parent widget (QWidget)
"""
QWizard.__init__(self, parent)
self.setupUi(self)
self.pgGeneral.registerField("Name*", self.txtName)
示例4: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent, context):
QWizard.__init__(self, parent)
self.setModal(True)
self.session = context.session
self.identifiers = context.identifiers
self.script_manager = context.script_manager
self.image_version = context.image_version
self.executable_versions = context.executable_versions
示例5: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent, createShortcutFunction):
QWizard.__init__(self, parent)
self.setupUi(self)
self._iconPath = None
self._createShortcutFunction = createShortcutFunction
QObject.connect(self, SIGNAL("currentIdChanged(int)"), self._processEnterInPage)
QObject.connect(self._changeShortcutURI_Btn, SIGNAL("clicked()"), self._changeShortcutURI)
QObject.connect(self._chooseIcon_Btn, SIGNAL("clicked()"), self._chooseIcon)
示例6: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent=None):
QWizard.__init__(self, parent)
self.ui = Ui_placeProjectWizard()
self.ui.setupUi(self)
self.enabledPlugins = []
self.selectedPlugins = []
# Register the project name field so that it will become mandatory
self.page(0).registerField('name*', self.ui.placeProjectNameValue)
self.unit = 'km'
self.myPyObj = self.pyObj()
示例7: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, app, project):
"""
constructor
- initialize UI elements
- connect UI elements to callback
"""
QWizard.__init__(self)
self._initilizing = True
self.ui = Ui_widgetDataWizard()
self.ui.setupUi(self)
self.setFixedSize(self.size())
self.setOption(QWizard.HelpButtonOnRight, False)
self.setOption(QWizard.HaveHelpButton, False)
self.app = app
self.project = project
self.showPopgrid = (app.app_config.get('options', 'allow_popgrid', 0, int) == 1)
if not self.showPopgrid:
self.ui.img_lb_verify_pop.setVisible(False)
self.ui.lb_verify_pop.setVisible(False)
self.ui.img_lb_verify_svy.move(self.ui.img_lb_verify_svy.x(), self.ui.img_lb_verify_pop.y())
self.ui.lb_verify_svy.move(self.ui.lb_verify_svy.x(), self.ui.lb_verify_pop.y())
# connect slots (ui event)
# footprint
self.ui.btn_fp_select_file.clicked.connect(self.openFootprintData)
self.ui.radio_fp_no_data.toggled.connect(self.setFootprintDataType)
self.ui.radio_fp_height.toggled.connect(self.setFootprintDataType)
self.ui.radio_fp_only.toggled.connect(self.setFootprintDataType)
self.ui.cb_fp_story_field.currentIndexChanged[str].connect(self.setFootprintHtField)
# survey
self.ui.btn_svy_select_file.clicked.connect(self.openSurveyData)
self.ui.radio_svy_no_data.toggled.connect(self.setSurveyDataType)
self.ui.radio_svy_complete.toggled.connect(self.setSurveyDataType)
self.ui.radio_svy_sampled.toggled.connect(self.setSurveyDataType)
# zones
self.ui.btn_zones_select_file.clicked.connect(self.openZoneData)
self.ui.radio_zones_no_data.toggled.connect(self.setZoneDataType)
self.ui.radio_zones_only.toggled.connect(self.setZoneDataType)
self.ui.radio_zones_count.toggled.connect(self.setZoneDataType)
self.ui.cb_zones_class_field.currentIndexChanged[str].connect(self.setZoneField)
self.ui.cb_zones_count_field.currentIndexChanged[str].connect(self.setZoneCountField)
# population grid
self.ui.btn_pop_select_file.clicked.connect(self.openPopGridData)
self.ui.radio_pop_no_data.toggled.connect(self.setPopGridType)
self.ui.radio_pop_grid.toggled.connect(self.setPopGridType)
self.ui.cb_pop_pop_field.currentIndexChanged[str].connect(self.setPopField)
self.ui.txt_pop_bldg_ratio.setValidator(QDoubleValidator(0, 10000000, 2, self))
self.ui.txt_pop_bldg_ratio.editingFinished.connect(self.setPopToBldg)
# aggregation
self.ui.radio_aggr_zones.toggled.connect(self.setAggregateType)
self.ui.radio_aggr_grid.toggled.connect(self.setAggregateType)
示例8: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, title, class_pages, parent=None):
QWizard.__init__(self, parent)
self.setWindowTitle(title)
self.resize(800, 600)
# associate current text to comboboxes fields instead of current index
self.setDefaultProperty("QComboBox", "currentText",
"currentIndexChanged")
for klass in class_pages:
self.addPage(klass())
示例9: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, iface, net=None, parent=None):
QWizard.__init__(self, parent)
raise Exception()
self.addPage(WizardNetIntroPage(iface))
self.label_ip_version_page = WizardLabelIPVersionPage()
self.addPage(self.label_ip_version_page)
self.net_add_page = WizardNetAddrPage(self.label_ip_version_page)
self.addPage(self.net_add_page)
self.setWindowTitle("Network Wizard")
self.connect(self, SIGNAL('accepted()'), self._done)
示例10: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent=None):
QWizard.__init__(self, parent)
self.ui = Ui_personProjectWizard()
self.ui.setupUi(self)
self.selectedTargets = []
self.enabledPlugins = []
# Register the project name field so that it will become mandatory
self.page(0).registerField('name*', self.ui.personProjectNameValue)
self.ui.btnAddTarget.clicked.connect(self.addTargetsToSelected)
self.ui.btnRemoveTarget.clicked.connect(self.removeTargetsFromSelected)
self.ui.personProjectSearchForValue.returnPressed.connect(self.ui.personProjectSearchButton.setFocus)
示例11: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent=None):
QWizard.__init__(self, parent)
self.setWindowTitle("Bisection wizard")
self.resize(800, 600)
# associate current text to comboboxes fields instead of current index
self.setDefaultProperty("QComboBox", "currentText", "currentIndexChanged")
self.addPage(IntroPage())
self.addPage(NightliesPage())
self.addPage(InboundPage())
self.addPage(ProfilePage())
示例12: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent):
QWizard.__init__(self, parent)
self.__explorer = parent
self.setWindowTitle(self.tr("NINJA - New Project Wizard"))
self.setPixmap(QWizard.LogoPixmap, QPixmap(resources.IMAGES['icon']))
self.option = 'Python'
#settings.PROJECT_TYPES[self.option] = self
#Add a project type handler for Python
settings.set_project_type_handler(self.option, self)
self.addPage(PageProjectType(self))
self.addPage(PageProjectProperties())
示例13: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent):
QWizard.__init__(self, parent, Qt.Dialog)
ProjectWizard.__init__(self)
self._main = parent
ProjectWizard.types['Python'] = self
self.setWindowTitle('NINJA - New Project Wizard')
self.setPixmap(QWizard.LogoPixmap, QPixmap(resources.images['icon']))
self.option = 'Python'
pageType = PageProjectType(self)
self.addPage(pageType)
self.addPage(PageProjectProperties())
示例14: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, parent):
QWizard.__init__(self, parent)
self.__explorer = parent
self.setWindowTitle(self.tr("NINJA - New Project Wizard"))
self.setPixmap(QWizard.LogoPixmap, QPixmap(resources.IMAGES['icon']))
self.option = 'Python'
#Add a project type handler for Python
settings.set_project_type_handler(self.option,
PythonProjectHandler(self.__explorer))
#Add a project type handler for Import from existing sources
settings.set_project_type_handler('Import from sources',
ImportFromSourcesProjectHandler(self.__explorer))
self.addPage(PageProjectType(self))
self.addPage(PageProjectProperties())
示例15: __init__
# 需要导入模块: from PyQt4.QtGui import QWizard [as 别名]
# 或者: from PyQt4.QtGui.QWizard import __init__ [as 别名]
def __init__(self, settings):
QWizard.__init__(self)
self.setupUi(self)
self.settings = settings
self.wizardPage3.pageCreated.connect(self.showSummary)
self.wizardPage3.fullfilled = True
self.wizardPage2.fullfilled = True
self.errors = 0
self.steps = 0
self.delete_images_button.clicked.connect(self.deleteUserImages)
self.add_files_button.clicked.connect(self.AddFiles)
self.remove_file_button.clicked.connect(self.removeFile)
self.save_button.clicked.connect(self.saveImgData)
self.train_button.clicked.connect(self.trainOCR)
self.ocr_button.clicked.connect(self.runOCR)
self.next_button.clicked.connect(self.nextWord)
self.prev_button.clicked.connect(self.previousWord)
#self.add_screenshots.clicked.connect(self.AddFiles)
#self.wizardPage2.pageCreated.connect(self.AnalyzeImg)
#self.contrast = 0.0
#self.img_fields = [self.g1,self.g2,self.g3,self.g4,self.g5,self.g6,self.g7,self.g8,self.g9,self.g10,self.g11,self.g12,self.g13,self.g14,self.g15,self.g16,self.g17,self.g18,self.g19,self.g20]
#self.input_fields = [self.e1,self.e2,self.e3,self.e4,self.e5,self.e6,self.e7,self.e8,self.e9,self.e10,self.e11,self.e12,self.e13,self.e14,self.e15,self.e16,self.e17,self.e18,self.e19,self.e20]
self.gviews = []
self.ledits = []
self.boxlist = []
self.imglist = []
self.charlist = []
self.words = []
self.boundaries = []
self.wordcount = 0
self.current = 0
self.scene = None
self.ratio_h = 1.0
self.ratio_w = 1.0
self.base = self.loadBase()
self.user = self.loadUser()
if not self.base is None:
self.base_data_label.setText(self.getBaseData())
if not self.user is None:
self.delete_images_button.setEnabled(True)
self.user_data_label.setText(self.getUserData())
#self.resizeElements()
#for index,item in zip(range(20), self.input_fields):
# item.textEdited.connect(partial(self.changeText, index))
self.train_button.setEnabled(True)