# HelloSimpleMaemo.py (c) Kari Laitinen # 2006-08-08 First program version created. # 2006-10-05 Last modification. import gtk import hildon class SimpleHelloApplication( hildon.Program ) : def __init__( self ) : hildon.Program.__init__( self ) self.application_window = hildon.Window() self.application_window.connect( "destroy", gtk.main_quit ) self.add_window( self.application_window ) text_in_window = gtk.Label( "Hello. I am a simple Python/Maemo application." ) self.application_window.add( text_in_window ) self.application_window.show_all() def run( self ) : gtk.main() if __name__ == "__main__" : this_application = SimpleHelloApplication() this_application.run()