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)
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)
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)