Ejemplo n.º 1
0
    def __init__(self, parent=None):
        QStatusBar.__init__(self, parent)
        self.default_message = __appname__ + ' ' + _('version') + ' ' + \
                __version__ + ' ' + _('created by Kovid Goyal')
        self.device_string = ''
        self._font = QFont()
        self._font.setBold(True)
        self.setFont(self._font)

        self.w = QLabel(self.default_message)
        self.w.setFont(self._font)
        self.addWidget(self.w)
Ejemplo n.º 2
0
 def __init__(self, parent=None):
     QStatusBar.__init__(self, parent)
     self.default_message = __appname__ + ' ' + _('version') + ' ' + \
             self.get_version() + ' ' + _('created by Kovid Goyal')
     self.device_string = ''
     self.update_label = UpdateLabel('')
     self.addPermanentWidget(self.update_label)
     self.update_label.setVisible(False)
     self._font = QFont()
     self._font.setBold(True)
     self.setFont(self._font)
     self.defmsg = QLabel(self.default_message)
     self.defmsg.setFont(self._font)
     self.addWidget(self.defmsg)
Ejemplo n.º 3
0
 def __init__(self, parent=None):
     QStatusBar.__init__(self, parent)
     self.default_message = __appname__ + ' ' + _('version') + ' ' + \
             self.get_version() + ' ' + _('created by Kovid Goyal')
     self.device_string = ''
     self.update_label = UpdateLabel('')
     self.addPermanentWidget(self.update_label)
     self.update_label.setVisible(False)
     self._font = QFont()
     self._font.setBold(True)
     self.setFont(self._font)
     self.defmsg = QLabel(self.default_message)
     self.defmsg.setFont(self._font)
     self.addWidget(self.defmsg)
Ejemplo n.º 4
0
 def __init__(self, parent=None):
     QStatusBar.__init__(self, parent)
     self.base_msg = '%s %s' % (__appname__, get_version())
     self.version = get_version()
     self.device_string = ''
     self.update_label = UpdateLabel('')
     self.total = self.current = self.selected = self.library_total = 0
     self.addPermanentWidget(self.update_label)
     self.update_label.setVisible(False)
     self._font = QFont()
     self._font.setBold(True)
     self.setFont(self._font)
     self.defmsg = QLabel('')
     self.defmsg.setFont(self._font)
     self.addWidget(self.defmsg)
     self.set_label()
Ejemplo n.º 5
0
 def __init__(self, parent=None):
     QStatusBar.__init__(self, parent)
     self.version = get_version()
     self.base_msg = '%s %s' % (__appname__, self.version)
     self.device_string = ''
     self.update_label = UpdateLabel('')
     self.total = self.current = self.selected = self.library_total = 0
     self.addPermanentWidget(self.update_label)
     self.update_label.setVisible(False)
     self._font = QFont()
     self._font.setBold(True)
     self.setFont(self._font)
     self.defmsg = QLabel('')
     self.defmsg.setFont(self._font)
     self.addWidget(self.defmsg)
     self.set_label()
Ejemplo n.º 6
0
 def __init__(self, parent=None):
     QStatusBar.__init__(self, parent)
     self.version = get_version()
     self.base_msg = "%s %s" % (__appname__, self.version)
     if tweaks.get("use_new_db", False):
         self.base_msg += " [newdb]"
     self.device_string = ""
     self.update_label = UpdateLabel("")
     self.total = self.current = self.selected = self.library_total = 0
     self.addPermanentWidget(self.update_label)
     self.update_label.setVisible(False)
     self._font = QFont()
     self._font.setBold(True)
     self.setFont(self._font)
     self.defmsg = QLabel("")
     self.defmsg.setFont(self._font)
     self.addWidget(self.defmsg)
     self.set_label()
Ejemplo n.º 7
0
    def __init__(self, win):
        QStatusBar.__init__(self, win)
        self.statusMsgLabel = QLabel()

        self.statusMsgLabel.setMinimumWidth(200)
        self.statusMsgLabel.setFrameStyle(QFrame.Panel | QFrame.Sunken)
        self.addPermanentWidget(self.statusMsgLabel)

        self.progressBar = QProgressBar(win)
        self.progressBar.setMaximumWidth(250)
        qt4todo('StatusBar.progressBar.setCenterIndicator(True)')
        self.addPermanentWidget(self.progressBar)
        self.progressBar.hide()

        self.simAbortButton = QToolButton(win)
        self.simAbortButton.setIcon(
            geticon("ui/actions/Simulation/Stopsign.png"))
        self.simAbortButton.setMaximumWidth(32)
        self.addPermanentWidget(self.simAbortButton)
        self.connect(self.simAbortButton, SIGNAL("clicked()"), self.simAbort)
        self.simAbortButton.hide()

        self.dispbarLabel = QLabel(win)
        #self.dispbarLabel.setFrameStyle( QFrame.Panel | QFrame.Sunken )
        self.dispbarLabel.setText("Global display style:")
        self.addPermanentWidget(self.dispbarLabel)

        # Global display styles combobox
        self.globalDisplayStylesComboBox = GlobalDisplayStylesComboBox(win)
        self.addPermanentWidget(self.globalDisplayStylesComboBox)

        # Selection lock button. It always displays the selection lock state
        # and it is available to click.
        self.selectionLockButton = QToolButton(win)
        self.selectionLockButton.setDefaultAction(win.selectLockAction)
        self.addPermanentWidget(self.selectionLockButton)

        # Only use of this appears to be commented out in MWsemantics as of 2007/12/14
        self.modebarLabel = QLabel(win)
        self.addPermanentWidget(self.modebarLabel)
        self.abortableCommands = {}
Ejemplo n.º 8
0
    def __init__(self, win):
        QStatusBar.__init__(self, win)
        self.statusMsgLabel = QLabel()

        self.statusMsgLabel.setMinimumWidth(200)
        self.statusMsgLabel.setFrameStyle(QFrame.Panel | QFrame.Sunken)
        self.addPermanentWidget(self.statusMsgLabel)

        self.progressBar = QProgressBar(win)
        self.progressBar.setMaximumWidth(250)
        qt4todo("StatusBar.progressBar.setCenterIndicator(True)")
        self.addPermanentWidget(self.progressBar)
        self.progressBar.hide()

        self.simAbortButton = QToolButton(win)
        self.simAbortButton.setIcon(geticon("ui/actions/Simulation/Stopsign.png"))
        self.simAbortButton.setMaximumWidth(32)
        self.addPermanentWidget(self.simAbortButton)
        self.connect(self.simAbortButton, SIGNAL("clicked()"), self.simAbort)
        self.simAbortButton.hide()

        self.dispbarLabel = QLabel(win)
        # self.dispbarLabel.setFrameStyle( QFrame.Panel | QFrame.Sunken )
        self.dispbarLabel.setText("Global display style:")
        self.addPermanentWidget(self.dispbarLabel)

        # Global display styles combobox
        self.globalDisplayStylesComboBox = GlobalDisplayStylesComboBox(win)
        self.addPermanentWidget(self.globalDisplayStylesComboBox)

        # Selection lock button. It always displays the selection lock state
        # and it is available to click.
        self.selectionLockButton = QToolButton(win)
        self.selectionLockButton.setDefaultAction(win.selectLockAction)
        self.addPermanentWidget(self.selectionLockButton)

        # Only use of this appears to be commented out in MWsemantics as of 2007/12/14
        self.modebarLabel = QLabel(win)
        self.addPermanentWidget(self.modebarLabel)
        self.abortableCommands = {}
Ejemplo n.º 9
0
    def __init__(self, parent=None):
        QStatusBar.__init__(self, parent)

        self.showMessage("Not connected to a database")