import os e32 appuifw key_codes def exit if appuifw query Vihodim quer

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os,e32,appuifw,key_codes
def exit():
if appuifw.query(u'Vihodim?', 'query'):
os.abort()
appuifw.app.exit_key_handler=exit
def newsms():
appuifw.app.body = qwe = appuifw.Text()
appuifw.app.body.clear()#неработает
appuifw.app.body = Text = appuifw.Text(u'Hello!')
appuifw.app.body.bind(key_codes.EKeyYes, appuifw.app.body.clear)
appuifw.app.body.focus = False
appuifw.app.body.bind(key_codes.EKey5, newsms)
if appuifw.app.full_name()[-10:-4]==u'Python':
appuifw.app.title=u'TextBox'
lock=e32.Ao_lock()
os.abort=lock.signal
lock.wait()