# Top frame creation
top_frame = gtk.Frame()
# Top frame creation
top_frame = gtk.Frame()
- self.vbox.pack_start(top_frame)
hbox = gtk.HBox(homogeneous=False, spacing=0)
top_frame.add(hbox)
hbox = gtk.HBox(homogeneous=False, spacing=0)
top_frame.add(hbox)
bottom_frame = gtk.Frame()
self.vbox.pack_end(bottom_frame, expand=False)
bottom_frame = gtk.Frame()
self.vbox.pack_end(bottom_frame, expand=False)
+ self.vbox.pack_end(top_frame)
+
bottom_box = gtk.HBox(homogeneous=False, spacing=0)
bottom_frame.add( bottom_box )
bottom_box = gtk.HBox(homogeneous=False, spacing=0)
bottom_frame.add( bottom_box )
def run ( self ) :
gtk.main()
def run ( self ) :
gtk.main()
+def settings_cb ( widget , config ) :
+ wifimap.config.SettingsWindow( config )
+
+
if hildon :
class MapWindow ( gtk.Frame ) :
if hildon :
class MapWindow ( gtk.Frame ) :
- def settings_cb ( widget , config ) :
- wifimap.config.SettingsWindow( config )
-
-
else :
class MapWindow ( gtk.Frame ) :
else :
class MapWindow ( gtk.Frame ) :
AbstractWifiscanner.__init__( self )
self.add(self.vbox)
AbstractWifiscanner.__init__( self )
self.add(self.vbox)
self.show_all()
def TextView ( self , placeholder=None ) :
self.show_all()
def TextView ( self , placeholder=None ) :
toggle_button.set_label( label )
return toggle_button
toggle_button.set_label( label )
return toggle_button
+ def create_menu ( self ) :
+
+ menubar = gtk.MenuBar()
+ self.vbox.pack_start( menubar )
+
+ settings = gtk.MenuItem( "Settings" )
+ settings.connect( "activate", settings_cb , self.map.config )
+ menubar.append( settings )
+
+ menubar.show_all()
+
window = Wifiscanner()
window.run()
window = Wifiscanner()
window.run()