当前位置: 首页>>代码示例>>Python>>正文


Python QtGui.QWizard类代码示例

本文整理汇总了Python中PyQt4.QtGui.QWizard的典型用法代码示例。如果您正苦于以下问题:Python QWizard类的具体用法?Python QWizard怎么用?Python QWizard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了QWizard类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

    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
开发者ID:vegarwe,项目名称:luma,代码行数:26,代码来源:AddAttributeWizard.py

示例2: __init__

 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
开发者ID:AlexSatrapa,项目名称:EliteOCR,代码行数:8,代码来源:colorwizard.py

示例3: accept

 def accept(self):
     if self._iconPath is not None:
         if self._iconPath.lower().find(default_icons_dir.lower()) == 0:
             self._iconPath = self._iconPath[len(default_icons_dir)+1:]
     
     self._createShortcutFunction(self._shortcutName.text(), self._shortcutURI.text(), self._iconPath)
     
     QWizard.accept(self)
开发者ID:nextgis,项目名称:shortcut_manager,代码行数:8,代码来源:shortcut_creator.py

示例4: __init__

 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)
开发者ID:ramast,项目名称:jscomponent,代码行数:9,代码来源:frmCreateJs.py

示例5: __init__

 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()
开发者ID:petterreinholdtsen,项目名称:creepy,代码行数:10,代码来源:PlaceProjectWizard.py

示例6: __init__

    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
开发者ID:Tinkerforge,项目名称:brickv,代码行数:10,代码来源:program_wizard.py

示例7: __init__

 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)
开发者ID:nextgis,项目名称:shortcut_manager,代码行数:10,代码来源:shortcut_creator.py

示例8: __init__

    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)
开发者ID:ImageCatInc,项目名称:sidd,代码行数:55,代码来源:wdg_data_wizard.py

示例9: __init__

    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)
开发者ID:maximerobin,项目名称:Ufwi,代码行数:11,代码来源:net_wizard.py

示例10: __init__

    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())
开发者ID:GopianiS,项目名称:mozregression,代码行数:11,代码来源:wizard.py

示例11: __init__

    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())
开发者ID:pombredanne,项目名称:mozregression,代码行数:12,代码来源:wizard.py

示例12: __init__

 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)
开发者ID:andy737,项目名称:creepy,代码行数:12,代码来源:PersonProjectWizard.py

示例13: __init__

    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())
开发者ID:calpe20,项目名称:PYTHONIZANDO,代码行数:13,代码来源:wizard_new_project.py

示例14: __init__

    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())
开发者ID:sanyaade,项目名称:ninja-ide,代码行数:13,代码来源:wizard_new_project.py

示例15: __init__

    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())
开发者ID:carpincho,项目名称:ninja-ide,代码行数:16,代码来源:wizard_new_project.py


注:本文中的PyQt4.QtGui.QWizard类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。