Ejemplo n.º 1
0
    def __init__(self, application):
        super(MainWindow, self).__init__()
        self._application = application

        log.debug('Spawning main window.')

        # Title of main window.
        self.setWindowTitle(_('Wididit'))
        self.setWindowIcon(get_qicon())

        self.setCentralWidget(QtGui.QTabWidget(self))
        self.centralWidget().setTabsClosable(True)
        self.centralWidget().setMovable(True)

        self._init_geometry()
        self._init_tabs()
        self._init_toolbar()
Ejemplo n.º 2
0
    def __init__(self, callback):
        super(LoginWindow, self).__init__()
        self._callback = callback

        log.debug("Spawning login window.")

        # Title of login window.
        self.setWindowTitle(_("Connect to Wididit"))
        self.setWindowIcon(get_qicon())

        self.setCentralWidget(QtGui.QWidget())

        self._init_geometry()
        self._init_widgets()

        self.show()

        log.debug("Login window displayed.")
Ejemplo n.º 3
0
    def __init__(self, callback):
        super(LoginWindow, self).__init__()
        self._callback = callback

        log.debug('Spawning login window.')

        # Title of login window.
        self.setWindowTitle(_('Connect to Wididit'))
        self.setWindowIcon(get_qicon())

        self.setCentralWidget(QtGui.QWidget())

        self._init_geometry()
        self._init_widgets()

        self.show()

        log.debug('Login window displayed.')