Plot close APs taken from database
[wifihood] / wifiscanner / wifiscanner.py
index 5c91ebd..2370750 100755 (executable)
@@ -117,6 +117,17 @@ class AbstractWifiscanner :
 
 if hildon :
 
+    class MapWindow ( gtk.Frame ) :
+
+        def __init__(self):
+            gtk.Frame.__init__( self )
+
+            self.config = wifimap.config.Configuration()
+            self.config.zoom = 16
+            self.map = wifiview.mapWidget( self.config )
+            self.map.plot_APs()
+            self.add( self.map )
+
     class Wifiscanner ( AbstractWifiscanner , hildon.Window ) :
 
         def __init__ ( self ) :
@@ -148,12 +159,14 @@ if hildon :
 
 else :
 
-    class MapWindow ( wifiview.AbstractMapWindow , gtk.Frame ) :
+    class MapWindow ( gtk.Frame ) :
 
         def __init__(self):
             gtk.Frame.__init__( self )
-            wifiview.AbstractMapWindow.__init__(self)
-            self.add( self.vbox )
+
+            self.config = wifimap.config.Configuration()
+            self.config.zoom = 16
+            self.add( wifiview.mapWidget( self.config , (640,400) ) )
 
     class Wifiscanner ( AbstractWifiscanner , gtk.Window ) :