コード例 #1
0
    def __init__(self, connectionData, parent):
        Dialog.__init__(self, parent)
        self.cd = connectionData

        self.setLayout(QVBoxLayout(self))

        self.gb = QGroupBox(self)
        self.gb.setTitle(self.tr('Database Connection'))
        self.bb = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel,
                                   Qt.Horizontal, self)
        self.bb.accepted.connect(self.accept)
        self.bb.rejected.connect(self.reject)

        self.layout().addWidget(self.gb)
        self.layout().addWidget(self.bb)

        self.setupWidgets()
        self.hostW.setText(unicode(self.cd.host))
        self.portW.setText(unicode(self.cd.port))
        self.dbW.setText(unicode(self.cd.dbName))
        self.schemaW.setText(unicode(self.cd.schema))
        self.loginW.setText(unicode(self.cd.user))
        self.passwordW.setText(unicode(self.cd.password))
        if self.cd.createSchema:
            self.createSchemaW.setCheckState(Qt.Checked)
        if self.cd.insertTemplateData:
            self.insertTemplateDataW.setCheckState(Qt.Checked)
        self.passwordW.setFocus()
コード例 #2
0
 def __init__(self, master):
     Dialog.__init__(self,
                     master,
                     title='File not Selected',
                     text='File not seletecd',
                     bitmap='warning',
                     default=0,
                     strings=('Cancel', ))
コード例 #3
0
 def __init__(self, master, filename):
     Dialog.__init__(self,
                     master,
                     title='File Format change',
                     text='File ' + filename + 'Not Video Format',
                     bitmap='warning',
                     default=0,
                     strings=('Cancel', ))
コード例 #4
0
 def __init__(self, master, filename):
     Dialog.__init__(self,
                     master,
                     title='File not found',
                     text='File ' + filename + ' does not exist',
                     bitmap='warning',
                     default=0,
                     strings=('Cancel', ))
コード例 #5
0
    def __init__(self, title, parent, callback, callback_data=None):
        Dialog.__init__(self, title, modal=True, exit_callback=self.callback_exit, exit_data=callback_data)
        self.queue = Queue.Queue(1024)
        self.mode = "PULSE"
        self.status_counter = Counter.Counter()
        self._callback = callback

        self.progress_bar = gtk.ProgressBar()

        self.hbox_buttons.pack_start(self.progress_bar, True, True, 2)
        self.add_button_right("Cancel", self.callback_cancel)
        
        self.add_button_hidden("update", self.callback_update_progress, hide=False)
        self.add_button_hidden("done", self.callback_done)

        self.status_bar = gtk.Statusbar()
        self.vbox_main.pack_end(self.status_bar, False, True, 2)

        self.result = "UNKNOWN"
コード例 #6
0
ファイル: AxisChooser.py プロジェクト: bcmd/BCMD
 def __init__(self, parent, fields=[], title=None):
     self.fields = sorted(fields, key=str.lower)
     Dialog.__init__(self, parent, title)
コード例 #7
0
 def __init__(self, parent, entity):
     Dialog.__init__(self, parent)
     self.entity = entity
     self.setLayout(QVBoxLayout(self))
コード例 #8
0
 def __init__(self, parent, fields=[], title=None):
     self.fields = sorted(fields, key=str.lower)
     Dialog.__init__(self, parent, title)