diff options
author | Jezra <jezra@jezra.net> | 2013-06-10 20:10:30 -0700 |
---|---|---|
committer | Jezra <jezra@jezra.net> | 2013-06-10 20:10:30 -0700 |
commit | bb744e1556db4fe11be9c0fb6a29ba5643ec6fff (patch) | |
tree | 2a97272a63a196863d2b9abbb03dffc741c66721 /GtkUI.py | |
parent | fcb1172f7d0cfe52b6e00c984001a0b01ee3ab9e (diff) |
Implemented -i flag to select UI and -c flag to start UI in 'continuous listen' mode
giggity
Diffstat (limited to 'GtkUI.py')
-rw-r--r-- | GtkUI.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/GtkUI.py b/GtkUI.py index 9d68fcc..d9aae7d 100644 --- a/GtkUI.py +++ b/GtkUI.py @@ -12,8 +12,9 @@ class UI(gobject.GObject): 'command' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_STRING,)) } - def __init__(self,args): + def __init__(self,args, continuous): gobject.GObject.__init__(self) + self.continuous = continuous #make a window self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.connect("delete_event", self.delete_event) @@ -37,7 +38,7 @@ class UI(gobject.GObject): #add a label to the UI to display the last command self.label = gtk.Label() layout.add(self.label) - + def ccheckbox_clicked(self, widget): checked = self.ccheckbox.get_active() self.lsbutton.set_sensitive(not checked) @@ -63,6 +64,8 @@ class UI(gobject.GObject): def run(self): self.window.show_all() + if self.continuous: + self.ccheckbox.set_active(True) def quit(self): pass |