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


Python QWizardPage.__init__方法代码示例

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


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

示例1: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
 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,代码行数:9,代码来源:DSAddChartMpl.py

示例2: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
 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,代码行数:27,代码来源:run_vcs_flow.py

示例3: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
        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,代码行数:31,代码来源:installer.py

示例4: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:9,代码来源:muWizard.py

示例5: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
  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,代码行数:32,代码来源:pageWizard.py

示例6: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:33,代码来源:wizard.py

示例7: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
 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,代码行数:10,代码来源:wizard.py

示例8: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:10,代码来源:routes.py

示例9: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:11,代码来源:network.py

示例10: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:13,代码来源:net_wizard.py

示例11: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:56,代码来源:wizard_new_project.py

示例12: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:13,代码来源:vlan.py

示例13: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    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,代码行数:13,代码来源:bonding.py

示例14: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    def __init__(self, wizard):
        QWizardPage.__init__(self)
        self.setTitle(self.tr("Project Type"))
        self.setSubTitle(self.tr("Choose the Project Type"))
        self._wizard = wizard

        vbox = QVBoxLayout(self)
        self.listWidget = QListWidget()
        vbox.addWidget(self.listWidget)
        types = settings.get_all_project_types()
        types.sort()
        index = types.index('Python')
        types.insert(0, types.pop(index))
        self.listWidget.addItems(types)
        self.listWidget.setCurrentRow(0)
开发者ID:ntcong,项目名称:ninja-ide,代码行数:17,代码来源:wizard_new_project.py

示例15: __init__

# 需要导入模块: from PyQt4.QtGui import QWizardPage [as 别名]
# 或者: from PyQt4.QtGui.QWizardPage import __init__ [as 别名]
    def __init__(self, wizard):
        QWizardPage.__init__(self)
        self.setTitle(self.tr("Project Type"))
        self.setSubTitle(self.tr("Choose the Project Type"))
        self._wizard = wizard

        vbox = QVBoxLayout(self)
        self.listWidget = QListWidget()
        vbox.addWidget(self.listWidget)
        types = settings.get_all_project_types()
        types.sort()
        index = types.index("Python")
        types.insert(0, types.pop(index))
        self.listWidget.addItems(types)
        self.listWidget.setCurrentRow(0)

        self.connect(self.listWidget, SIGNAL("itemClicked(QListWidgetItem *)"), self.load_pages)
开发者ID:rolandgeider,项目名称:ninja-ide,代码行数:19,代码来源:wizard_new_project.py


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