bottom_frame.add( bottom_box )
# Top frame population
+ notebook = gtk.Notebook()
+ hbox.pack_start( notebook )
+
scrollview = gtk.ScrolledWindow()
- hbox.pack_start( scrollview )
+ notebook.append_page( scrollview , gtk.Label("Scanning") )
+ notebook.append_page( MapWindow() , gtk.Label("Map") )
buttons = gtk.VBox(homogeneous=False, spacing=0)
hbox.pack_end(buttons, expand=False)
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 ) :
gtk.Window.__init__( self )
self.resize(640,400)
- notebook = gtk.Notebook()
- self.add( notebook )
-
AbstractWifiscanner.__init__( self )
- notebook.append_page( self.vbox , gtk.Label("Scanning") )
- notebook.append_page( MapWindow() , gtk.Label("Map") )
+ self.add(self.vbox)
def TextView ( self , placeholder=None ) :
textview = gtk.TextView()