summary refs log tree commit diff
path: root/QtUI.py
diff options
context:
space:
mode:
authorJezra <jezra@jezra.net>2013-06-10 20:10:30 -0700
committerJezra <jezra@jezra.net>2013-06-10 20:10:30 -0700
commitbb744e1556db4fe11be9c0fb6a29ba5643ec6fff (patch)
tree2a97272a63a196863d2b9abbb03dffc741c66721 /QtUI.py
parentfcb1172f7d0cfe52b6e00c984001a0b01ee3ab9e (diff)
Implemented -i flag to select UI and -c flag to start UI in 'continuous listen' mode
giggity
Diffstat (limited to 'QtUI.py')
-rw-r--r--QtUI.py6
1 files changed, 5 insertions, 1 deletions
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")