Example #1
0
    def _init_widgets(self):
        layout = QtGui.QVBoxLayout()
        self.centralWidget().setLayout(layout)

        self._userid = QtGui.QLineEdit()
        # Value of the login prompt when it is empty and not focused.
        self._userid.setPlaceholderText(_("login@hostname"))
        # Help text for the login prompt.
        self._userid.setToolTip(_("Enter your unique userid."))
        self._userid.returnPressed.connect(self.on_connect)
        self._userid.setText(conf.get(["accounts", "default", "userid"]))
        layout.addWidget(self._userid)

        self._password = QtGui.QLineEdit()
        # Value of the password prompt when it is empty and not focused
        self._password.setPlaceholderText(_("password"))
        # Help text for the password prompt.
        self._password.setToolTip(_("The password for your Wididit account."))
        self._password.setEchoMode(QtGui.QLineEdit.Password)
        self._password.returnPressed.connect(self.on_connect)
        self._password.setText(conf.get(["accounts", "default", "pass"]))
        layout.addWidget(self._password)

        self._validate = QtGui.QPushButton(
            # Text of the button used to connect.
            _("Connect")
        )
        layout.addWidget(self._validate)
        self._validate.clicked.connect(self.on_connect)
Example #2
0
    def _init_widgets(self):
        layout = QtGui.QVBoxLayout()
        self.centralWidget().setLayout(layout)

        self._userid = QtGui.QLineEdit()
        # Value of the login prompt when it is empty and not focused.
        self._userid.setPlaceholderText(_('login@hostname'))
        # Help text for the login prompt.
        self._userid.setToolTip(_('Enter your unique userid.'))
        self._userid.returnPressed.connect(self.on_connect)
        self._userid.setText(conf.get(['accounts', 'default', 'userid']))
        layout.addWidget(self._userid)

        self._password = QtGui.QLineEdit()
        # Value of the password prompt when it is empty and not focused
        self._password.setPlaceholderText(_('password'))
        # Help text for the password prompt.
        self._password.setToolTip(_('The password for your Wididit account.'))
        self._password.setEchoMode(QtGui.QLineEdit.Password)
        self._password.returnPressed.connect(self.on_connect)
        self._password.setText(conf.get(['accounts', 'default', 'pass']))
        layout.addWidget(self._password)

        self._validate = QtGui.QPushButton(
                # Text of the button used to connect.
                _('Connect'),
                )
        layout.addWidget(self._validate)
        self._validate.clicked.connect(self.on_connect)
Example #3
0
 def _init_geometry(self):
     width = conf.get(['look', 'mainwindow', 'geometry', 'width'], 800)
     height = conf.get(['look', 'mainwindow', 'geometry', 'height'], 600)
     posx = conf.get(['look', 'mainwindow', 'geometry', 'posx'], 0)
     posy = conf.get(['look', 'mainwindow', 'geometry', 'posy'], 0)
     self.resize(width, height)
     self.move(posx, posy)
Example #4
0
    def _init_tabs(self):
        self._tabs = {'main': {}, 'showuser': {}}

        tabs = conf.get(['look', 'mainwindow', 'tabs', 'opened', 'main'],
                ['timeline', 'all', 'own'])
        for tab in tabs:
            self.openmaintab(tab)

        users = conf.get(['look', 'mainwindow', 'tabs', 'opened', 'showuser'],
                [])
        for userid in users:
            self.showuser(People.from_anything(userid), raises=False)
Example #5
0
 def _init_geometry(self):
     posx = conf.get(["look", "loginwindow", "geometry", "posx"], 0)
     posy = conf.get(["look", "loginwindow", "geometry", "posy"], 0)
     self.move(posx, posy)
Example #6
0
 def _init_geometry(self):
     posx = conf.get(['look', 'loginwindow', 'geometry', 'posx'], 0)
     posy = conf.get(['look', 'loginwindow', 'geometry', 'posy'], 0)
     self.move(posx, posy)