def hello_world_window():
 window = gtk.Window(gtk.WINDOW_TOPLEVEL)
 window.set_border_width(50)
 button = gtk.Button(u'Hello World')
 window.add(button)
 def clicked(data):
  print u'Button clicked!'
 button.connect(u'clicked', clicked)
 button.show()
 window.show()

def hello_world_window ( ) : window = gtk . Window ( gtk . WINDOW_TOPLEVEL ) window . set_border_width ( 50 ) button = gtk . Button ( u'Hello World' ) window . add ( button ) def clicked ( data ) : print u'Button clicked!' button . connect ( u'clicked' , clicked ) button . show ( ) window . show ( )
create a gtk window with one hello world button .