diff options
author | Clayton G. Hobbs <clay@lakeserv.net> | 2016-05-15 12:18:44 -0400 |
---|---|---|
committer | Clayton G. Hobbs <clay@lakeserv.net> | 2016-05-15 12:18:44 -0400 |
commit | bce8ef1763c0a068e30d6302eb7c0568e22ea525 (patch) | |
tree | 8704d2783d03bc131563efc767a52f0d611329d9 /kayleevc/gui.py | |
parent | 2611c6dcb64efabbd36c4925175c1533aeddb51e (diff) |
Formatting and documentation
Added some blank lines and wrapped some long lines to be closer to PEP 8 compliance. Improved docstrings in NumberParser class. Added docstrings for undocumented code and removed a TODO message that no longer applies.
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): |