コード例 #1
0
ファイル: app.py プロジェクト: kensholiu/git-cola
    def __init__(self, argv, locale=None, gui=True):
        cfgactions.install()
        i18n.install(locale)
        qtcompat.install()
        qtutils.install()
        icons.install()

        self.notifier = QtCore.QObject()
        self.notifier.connect(self.notifier, SIGNAL('update_files()'),
                              self._update_files, Qt.QueuedConnection)
        # Call _update_files when inotify detects changes
        inotify.observer(self._update_files_notifier)

        if gui:
            self._app = current(tuple(argv))
            self._app.setWindowIcon(icons.cola())
            self._app.setStyleSheet("""
                QMainWindow::separator {
                    width: 3px;
                    height: 3px;
                }
                QMainWindow::separator:hover {
                    background: white;
                }
                """)
        else:
            self._app = QtCore.QCoreApplication(argv)
コード例 #2
0
ファイル: app.py プロジェクト: Chetwyn/git-cola
    def __init__(self, argv, locale=None, gui=True):
        cfgactions.install()
        i18n.install(locale)
        qtcompat.install()
        qtutils.install()
        icons.install()

        self.notifier = QtCore.QObject()
        self.notifier.connect(self.notifier, SIGNAL('update_files()'),
                              self._update_files, Qt.QueuedConnection)
        # Call _update_files when inotify detects changes
        inotify.observer(self._update_files_notifier)

        if gui:
            self._app = current(tuple(argv))
            self._app.setWindowIcon(icons.cola())
            self._app.setStyleSheet("""
                QMainWindow::separator {
                    width: 3px;
                    height: 3px;
                }
                QMainWindow::separator:hover {
                    background: white;
                }
                """)
        else:
            self._app = QtCore.QCoreApplication(argv)
コード例 #3
0
ファイル: app.py プロジェクト: runt18/git-cola
    def __init__(self, argv, locale=None, gui=True):
        cfgactions.install()
        i18n.install(locale)
        qtcompat.install()
        qtutils.install()
        icons.install()

        QtCore.QObject.connect(fsmonitor.instance(), SIGNAL('files_changed'),
                               self._update_files)

        if gui:
            self._app = current(tuple(argv))
            self._app.setWindowIcon(icons.cola())
        else:
            self._app = QtCore.QCoreApplication(argv)
コード例 #4
0
ファイル: app.py プロジェクト: rmax-contrib/git-cola
    def __init__(self, argv, locale=None, gui=True):
        cfgactions.install()
        i18n.install(locale)
        qtcompat.install()
        qtutils.install()
        icons.install()

        QtCore.QObject.connect(fsmonitor.current(), SIGNAL('files_changed'),
                               self._update_files)

        if gui:
            self._app = current(tuple(argv))
            self._app.setWindowIcon(icons.cola())
        else:
            self._app = QtCore.QCoreApplication(argv)