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 ) :
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 ) :