From bb744e1556db4fe11be9c0fb6a29ba5643ec6fff Mon Sep 17 00:00:00 2001 From: Jezra Date: Mon, 10 Jun 2013 20:10:30 -0700 Subject: Implemented -i flag to select UI and -c flag to start UI in 'continuous listen' mode giggity --- QtUI.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'QtUI.py') diff --git a/QtUI.py b/QtUI.py index 37910a5..c4a5a54 100644 --- a/QtUI.py +++ b/QtUI.py @@ -13,7 +13,8 @@ class UI(gobject.GObject): 'command' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (gobject.TYPE_STRING,)) } - def __init__(self,args): + def __init__(self,args,continuous): + self.continuous = continuous gobject.GObject.__init__(self) #start by making our app self.app = QApplication(args) @@ -69,6 +70,9 @@ class UI(gobject.GObject): def run(self): self.window.show() + if self.continuous: + self.ccheckbox.setCheckState(Qt.Checked) + self.ccheckbox_clicked() self.app.exec_() self.emit("command", "quit") -- cgit 1.4.1