summaryrefslogblamecommitdiffstats
path: root/Src/PyCatcher/src/pyCatcherController.py
blob: 06d8c8e453f9d8f99b50201e14f3fcc391db1449 (plain) (tree)






















                                                                               
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"