summaryrefslogtreecommitdiffstats
path: root/Src/PyCatcher/src/pyCatcherController.py
diff options
context:
space:
mode:
Diffstat (limited to 'Src/PyCatcher/src/pyCatcherController.py')
-rw-r--r--Src/PyCatcher/src/pyCatcherController.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/Src/PyCatcher/src/pyCatcherController.py b/Src/PyCatcher/src/pyCatcherController.py
new file mode 100644
index 0000000..06d8c8e
--- /dev/null
+++ b/Src/PyCatcher/src/pyCatcherController.py
@@ -0,0 +1,23 @@
+import sys
+import pygtk
+import gtk #@UnresolvedImport
+import gtk.glade #@UnresolvedImport
+from driverConnector import DriverConnector
+from pyCatcherModel import BaseStationInformation
+from pyCatcherView import PyCatcherGUI
+
+class PyCatcherController:
+ def __init__(self):
+ self.gui = PyCatcherGUI(self)
+ gtk.main()
+ self.driver_connector = DriverConnector(self._foundBaseStationCallback)
+
+ def start_scan(self):
+ self.driver_connector.start_scanning()
+
+ def stop_scan(self):
+ self.driver_connector.stop_scanning()
+
+ def _foundBaseStationCallback(self):
+ print "found a station"
+ \ No newline at end of file