Пример #1
0
    def __init__(self):
        try:
            self.settings = settings.Settings()
            self.xflux_controller = fluxcontroller.FluxController(
                self.settings)
            self.indicator = Indicator(self, self.xflux_controller)
            self.preferences = Preferences(self.settings,
                                           self.xflux_controller)
            self.xflux_controller.start()

        except Exception as e:
            print(e)
            print("Critical error. Exiting.")
            self.exit(1)
Пример #2
0
    def __init__(self):
        self.pidfile = os.path.expanduser("~/.fluxgui.pid")
        self.check_pid()
        try:
            self.settings = settings.Settings()
            self.xflux_controller = fluxcontroller.FluxController(
                self.settings)
            self.indicator = Indicator(self, self.xflux_controller)
            self.preferences = Preferences(self.settings,
                                           self.xflux_controller)
            self.xflux_controller.start()

        except Exception as e:
            print e
            print "Critical error. Exiting."
            self.exit(1)
Пример #3
0
    def __init__(self):
        self.initialized = False
        self.pidfile = os.path.abspath("/var/lock/fluxgui.pid")
        self.check_pid()
        try:
            self.settings = settings.Settings()
            self.xflux_controller = fluxcontroller.FluxController(
                self.settings)
            self.indicator = Indicator(self, self.xflux_controller)
            self.preferences = Preferences(self.settings,
                                           self.xflux_controller)
            self.xflux_controller.start()

        except Exception as e:
            print e
            print "Critical error. Exiting."
            self.exit(1)

        self.initialized = True