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


Python QtGui.QWizardPage类代码示例

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


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

示例1: __init__

 def __init__(self, parent, sensorgroup):
     QWizardPage.__init__(self, parent)
     self.setTitle(QCoreApplication.translate('DataStorageBrowser', 'Adjust chart properties'))
     self.mainLayout = QVBoxLayout()
     self.setLayout(self.mainLayout)
     self.propertyWidget = None
     self.sensorgroup = sensorgroup
开发者ID:BackupTheBerlios,项目名称:simuvis4-svn,代码行数:7,代码来源:DSAddChartMpl.py

示例2: __init__

 def __init__(self, model, ui, parent=None):
     QWizardPage.__init__(self, parent)
     self.ui = ui
     self.model = model
     # this one is a little difference since it has background work logic
     self.workerThread = QThread()
     self.workerThread.start()
     self.driver = SimpleDriver()
     self.driver.moveToThread(self.workerThread)
     self.isDone = False
     QObject.connect(
             self,
             QtCore.SIGNAL("startProcessing"),
             self.driver.process,
             Qt.QueuedConnection)
     QObject.connect(
             self.driver,
             QtCore.SIGNAL("progress"),
             self.updateProgress,
             Qt.QueuedConnection)
     QObject.connect(
             self.driver,
             QtCore.SIGNAL("done"),
             self.workerDone,
             Qt.QueuedConnection)
开发者ID:SealLab,项目名称:RepertoireTool,代码行数:25,代码来源:run_vcs_flow.py

示例3: __init__

    def __init__(self, locator):
        QWizardPage.__init__(self)
        # service locator
        self.locator = locator
        # grid
        grid = QGridLayout(self)
        grid.addWidget(QLabel('Ocr Data Folder:'), 0, 0)
        self.txtOcrLangFolder = QLineEdit()
        grid.addWidget(self.txtOcrLangFolder, 0, 1)
        self.registerField('ocrLangFolder*', self.txtOcrLangFolder)
        self.btnExamineOcrFolder = QPushButton(self.tr("Browse..."))
        grid.addWidget(self.btnExamineOcrFolder, 0, 2)

        grid.addWidget(QLabel('Log Folder:'), 1, 0)
        self.txtLogFolder = QLineEdit()
        grid.addWidget(self.txtLogFolder, 1, 1)
        self.registerField('txtLogFolder*', self.txtLogFolder)
        self.btnExamineLogFolder = QPushButton(self.tr("Browse..."))
        grid.addWidget(self.btnExamineLogFolder, 1, 2)

        grid.addWidget(QLabel('Author(s):'), 2, 0)
        self.txtAuthors = QLineEdit()
        grid.addWidget(self.txtAuthors, 2, 1)
        self.registerField('txtAuthors', self.txtAuthors)

        grid.addWidget(QLabel('Website:'), 3, 0)
        self.txtUrl = QLineEdit()
        grid.addWidget(self.txtUrl, 3, 1)

        self.connect(self.btnExamineOcrFolder, SIGNAL('clicked()'), self.load_ocrLangFolder)
        self.connect(self.btnExamineLogFolder, SIGNAL('clicked()'), self.load_LogFolder)
开发者ID:AlexaProjects,项目名称:Alexa2,代码行数:31,代码来源:wizard.py

示例4: __init__

  def __init__( self, wizard, title, fields ):

    ## construct a new QWizardPage
    QWizardPage.__init__( self, wizard )
    self.wizard = wizard

    ## this will store widgets created from fields
    self.widgets = {}

    self.setTitle( title )

    layout = QGridLayout( self )
    self.setLayout( layout )

    ## create and add widget for each field at this page
    ## for each field we add a label with it's name and the widget 
    ## describing the field
    ## @sa Field
    i = 0
    for field in fields:
      item = Field( self, field.name, field.value, field.extra )
      self.widgets[field.name] = item
      self.widgets[field.name].id = i

      if not callable( field.value ):
        label = QLabel( field.name.replace( '_', ' ' ) )
        layout.addWidget( label, i , 0 )

      layout.addWidget( self.widgets[field.name].widget, i, 1 )
      i+=1
开发者ID:lesion,项目名称:strumenti,代码行数:30,代码来源:pageWizard.py

示例5: __init__

    def __init__(self, field='check', parent=None):
        QWizardPage.__init__(self, parent)

        self.check = QCheckBox()
        self.check.setVisible(False)
        self.registerField(field + '*', self.check)
        self.check.setChecked(False)
开发者ID:Xifax,项目名称:muscale,代码行数:7,代码来源:muWizard.py

示例6: __init__

        def __init__(self, parent):
            QWizardPage.__init__(self)
            self.parent = parent

            self.setLayout(QGridLayout())
            self.setTitle('Components')
            self.setSubTitle('Please select components which will be extracted to your destination folder.')

            self.status_label = QLabel()
            self.layout().addWidget(self.status_label, 1, 0)

            self.components_list = QListWidget()
            self.progress = QProgressBar()
            self.layout().addWidget(self.progress, 2, 0, 1, 4)
            self.layout().addWidget(self.components_list, 3, 0, 1, 4)

            addcomponent_button = QPushButton(u'Add component')
            addcomponent_button.setEnabled(False)
            self.layout().addWidget(addcomponent_button, 4, 0)

            self.is_done = False

            self.addComponentItem.connect(self.addListItem)
            self.setProgress.connect(self.progress.setValue)

            self.components_list.itemChanged.connect(self.completeChanged.emit)
            self.components_list.itemClicked.connect(self.completeChanged.emit)

            self.registerField('components', self, 'getComponents', self.components_list.itemClicked)
开发者ID:averrin,项目名称:Skywind_Installer,代码行数:29,代码来源:installer.py

示例7: __init__

    def __init__(self, data, ip_version=4, parent=None):
        QWizardPage.__init__(self, parent)

        self.__editing_default_state = _strdefault(unicode(data[DESTINATION]))

        self.qnetobject = QNetObject.getInstance()
        self.buildGui()
        self.fillView(data)
开发者ID:maximerobin,项目名称:Ufwi,代码行数:8,代码来源:routes.py

示例8: __init__

 def __init__(self):
     QWizardPage.__init__(self)
     self.setTitle(self.TITLE)
     self.setSubTitle(self.SUBTITLE)
     self.ui = self.UI_CLASS()
     self.ui.setupUi(self)
     for name, widget_name in self.FIELDS.iteritems():
         self.registerField(name, resolve_obj_name(self.ui, widget_name))
开发者ID:GopianiS,项目名称:mozregression,代码行数:8,代码来源:wizard.py

示例9: __init__

    def __init__(self, editor, parent=None):
        QWizardPage.__init__(self, parent)

        self.editor = editor

        self.setTitle(tr("Network Editor"))
        self.setSubTitle(tr("Set network parameters below"))
        box = QVBoxLayout(self)
        box.addWidget(self.editor)
开发者ID:maximerobin,项目名称:Ufwi,代码行数:9,代码来源:network.py

示例10: __init__

    def __init__(self, q_netobject, parent=None):
        QWizardPage.__init__(self, parent)
        self.q_netobject = q_netobject

        self.setTitle(self.tr("Bonding interface configuration"))
        self.setSubTitle(self.tr("Please select the ethernet interfaces to aggregate"))
        box = QVBoxLayout(self)
        self.frame = BondingEditor()
        box.addWidget(self.frame)
        self.registerField('user label', self.frame.user_label)
        self.registerField('selected', self.frame.selected)
开发者ID:maximerobin,项目名称:Ufwi,代码行数:11,代码来源:bonding.py

示例11: __init__

    def __init__(self):
        QWizardPage.__init__(self)
        self.setTitle('New Project Data')
        self.setSubTitle('Complete the following fields to create the Project Structure')

        g_box = QGridLayout(self)
        #Names of the blanks to complete
        self.lbl_Name = QLabel('New Project Name:')
        self.lbl_Place = QLabel('Project Location:')
        self.lbl_Folder = QLabel('Projet Folder:')
        self.lbl_Description = QLabel('Project Description:')
        self.lbl_License = QLabel('Project License:')
        g_box.addWidget(self.lbl_Name, 0, 0,Qt.AlignRight)
        g_box.addWidget(self.lbl_Place, 1, 0,Qt.AlignRight)
        g_box.addWidget(self.lbl_Folder, 2, 0,Qt.AlignRight)
        g_box.addWidget(self.lbl_Description, 3, 0,Qt.AlignTop)
        g_box.addWidget(self.lbl_License, 4, 0,Qt.AlignRight)

        #Blanks on de right of the grid
        self.txtName = QLineEdit()
        self.registerField('projectName*', self.txtName)
        #Here comes a LineEdit and a PushButton in a HBoxLayout
        h_Place = QHBoxLayout()
        self.txtPlace = QLineEdit()
        self.txtPlace.setReadOnly(True)
        self.registerField('place*', self.txtPlace)
        self.btnExamine = QPushButton('Examine...')
        h_Place.addWidget(self.txtPlace)
        h_Place.addWidget(self.btnExamine)
        #Now lets continue with the rest
        self.txtFolder = QLineEdit()
        self.txtDescription = QPlainTextEdit()
        self.cboLicense = QComboBox()
        self.cboLicense.setFixedWidth(250)
        self.cboLicense.addItem('Apache License 2.0')
        self.cboLicense.addItem('Artistic License/GPL')
        self.cboLicense.addItem('Eclipse Public License 1.0')
        self.cboLicense.addItem('GNU General Public License v2')
        self.cboLicense.addItem('GNU General Public License v3')
        self.cboLicense.addItem('GNU Lesser General Public License')
        self.cboLicense.addItem('MIT License')
        self.cboLicense.addItem('Mozilla Public License 1.1')
        self.cboLicense.addItem('New BSD License')
        self.cboLicense.addItem('Other Open Source')
        self.cboLicense.addItem('Other')
        self.cboLicense.setCurrentIndex(4)
        g_box.addWidget(self.txtName, 0,1)
        g_box.addLayout(h_Place, 1, 1)
        g_box.addWidget(self.txtFolder, 2,1)
        g_box.addWidget(self.txtDescription, 3,1)
        g_box.addWidget(self.cboLicense, 4,1)

        #Signal
        self.connect(self.btnExamine, SIGNAL('clicked()'), self.load_folder)
开发者ID:calpe20,项目名称:PYTHONIZANDO,代码行数:54,代码来源:wizard_new_project.py

示例12: __init__

    def __init__(self, iface, parent=None):
        QWizardPage.__init__(self, parent)
        self.setTitle("Introduction")
#        self.setPixmap(QWizard.WatermarkPixmap, QPixmap(":/images/watermark1.png"))

        label = QLabel(self.tr("This wizard will configure a network for your interface <b>%s</b>.",  iface.user_label))
        label.setWordWrap(True)

        layout = QVBoxLayout()
        layout.addWidget(label)
        self.setLayout(layout)
开发者ID:maximerobin,项目名称:Ufwi,代码行数:11,代码来源:net_wizard.py

示例13: __init__

    def __init__(self, editor, parent=None):
        QWizardPage.__init__(self, parent)

        self.vlan_editor = editor
        self.buildGUI()

        for item in (
            self.vlan_editor.vlan_id,
            self.vlan_editor.name
            ):
            self.connect(item, SIGNAL('textChanged(QString)'), self._completeChanged)
开发者ID:maximerobin,项目名称:Ufwi,代码行数:11,代码来源:vlan.py

示例14: introPage

    def introPage(self):
        intro = QWizardPage()

        intro.setTitle('Hello and welcome')
        label = QLabel('''This is a wizard.
Now you're ready to forecast some time series!
        ''')

        label.setWordWrap(True)
        layout = QVBoxLayout()
        layout.addWidget(label)
        intro.setLayout(layout)

        return intro
开发者ID:Xifax,项目名称:muscale,代码行数:14,代码来源:muWizard.py

示例15: runConfigWizard

    def runConfigWizard(self):
        try:
            api = InstagramAPI(client_id=self.options_string['hidden_client_id'],
                               client_secret=self.options_string['hidden_client_secret'],
                               redirect_uri=self.options_string['redirect_uri'])
            url = api.get_authorize_login_url()

            self.wizard.setWindowTitle('Instagram plugin configuration wizard')
            page1 = QWizardPage()
            layout1 = QVBoxLayout()
            txtArea = QLabel()
            txtArea.setText('Please copy the following link to your browser window. \n ' +
                            'Once you authenticate with Instagram you will be redirected to ' +
                            'www.geocreepy.com and get your token. Copy the token to the input field below:')
            urlArea = QLineEdit()
            urlArea.setObjectName('urlArea')
            urlArea.setText(url)
            inputLink = QLineEdit()
            inputLink.setObjectName('inputLink')
            labelLink = QLabel('Your token value:')
            openInBrowserButton = QPushButton('Open in browser')
            openInBrowserButton.clicked.connect(functools.partial(self.openLinkInBrowser, url))
            layout1.addWidget(txtArea)
            layout1.addWidget(urlArea)
            layout1.addWidget(openInBrowserButton)
            layout1.addWidget(labelLink)
            layout1.addWidget(inputLink)
            page1.setLayout(layout1)
            self.wizard.addPage(page1)
            self.wizard.resize(600, 400)
            if self.wizard.exec_():
                c = str(inputLink.text())
                if c:
                    try:
                        access_token = api.exchange_code_for_access_token(code=c)
                        self.options_string['hidden_access_token'] = access_token[0]
                        self.saveConfiguration(self.config)
                    except Exception, err:
                        logger.error(err)
                        self.showWarning('Error Getting Access Token',
                                         'Please verify that the link you pasted was correct. '
                                         'Try running the wizard again.')
                else:
                    self.showWarning('Error Getting Access Token',
                                     'Please verify that the link you pasted was correct. Try running the wizard again.')

        except Exception, err:
            logger.error(err)
            self.showWarning('Error', 'Error was {0}'.format(err))
开发者ID:Symph0nyZer0,项目名称:creepy,代码行数:49,代码来源:instagram.py


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