That is my code by python.I exec it in the emulator of Symbian 9.1 S60 3rd Edition.
this is the order of my commend.
start python shell
run my code
exit my code
exit python shell
and then the error message of "cone 8" show in the screen.
I couldn't find any error from the code below.
Wait for your help.
Code:import appuifw import graphics import e32 class MyApp(object): def __init__(self): self.app_lock=e32.Ao_lock() appuifw.app.exit_key_handler=self.exit_key_handler appuifw.app.title=u'Hello World' appuifw.app.screen='full' appuifw.app.menu=[(u'normal',self.itema), (u'large',self.itemb), (u'full',self.itemc)] self.img=None self.canvas=appuifw.Canvas(redraw_callback=self.redraw) appuifw.app.body=self.canvas self.img=graphics.Image.new(self.canvas.size) self.img.clear(0x00ff00) appuifw.app.body.blit(self.img) def loop(self): self.app_lock.wait() return def exit_key_handler(self): self.app_lock.signal() return def redraw(self): return def itema(self): appuifw.app.screen='normal' return def itemb(self): appuifw.app.screen='large' return def itemc(self): appuifw.app.screen='full' app=MyApp() app.loop()

Reply With Quote




