diff options
Diffstat (limited to 'kayleevc/gui.py')
-rw-r--r-- | kayleevc/gui.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kayleevc/gui.py b/kayleevc/gui.py index 3369e33..27085a8 100644 --- a/kayleevc/gui.py +++ b/kayleevc/gui.py @@ -10,9 +10,11 @@ from gi.repository import GObject gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk + class GTKTrayInterface(GObject.GObject): __gsignals__ = { - 'command' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)) + 'command' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, + (GObject.TYPE_STRING,)) } idle_text = "Kaylee - Idle" listening_text = "Kaylee - Listening" @@ -106,9 +108,11 @@ class GTKTrayInterface(GObject.GObject): def set_icon_inactive(self): self.statusicon.set_from_file(self.icon_inactive) + class GTKInterface(GObject.GObject): __gsignals__ = { - 'command' : (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_STRING,)) + 'command': (GObject.SIGNAL_RUN_LAST, GObject.TYPE_NONE, + (GObject.TYPE_STRING,)) } def __init__(self, args, continuous): |