Example #1
0
    def __init__(self):
        config = Config()
        self.webview = WebQQView(config)
        self.window = MainWindow(self.webview, config)

        tray = __import__("tray", fromlist=['*'])
        if utils.is_unity():
            tray = __import__("unitytray", fromlist=['*'])

        self.tray = tray.Tray(self.window, self.webview, config)
Example #2
0
	def __init__(self):
		config = Config()
		self.webview = WebQQView(config)
		self.window = MainWindow(self.webview, config)
		
		tray = __import__("tray", fromlist = ['*'])
		if utils.is_unity():
			tray = __import__("unitytray", fromlist = ['*'])
		
		self.tray = tray.Tray(self.window, self.webview, config)
Example #3
0
    def __init__(self, app):
        self.window = app.window
        self.webview = app.webview
        self.config = app.config
        self.app = app
        self.blinking = False

        self.icon = self.app.get_app_icon()
        self.icon_alt = self.app.get_app_icon(get_alt=True)

        self.makePopup()

        self.isUnity = utils.is_unity()
        if self.isUnity:
            self.makeUnityTray()
        else:
            self.makeTray()
        if self.config["hot_key"]:
            import keybinder
            keybinder.bind(self.config["hot_key"], self.keybind_callback)