помогите переделать прогу на питоне с 9 под 7 symbian ]
import appuifw, e32
tim='3'
try:
dat=open('c:\\pyRotate.dat','r')
sck=dat.read().decode('utf-8')
dat.close()
tim=int(sck)
tim=sck
except:
tim='3'
def info():
appuifw.note(u'by:'+u'\n'+'xxxxxxxxxxx'+u'\n'+''+u'\n'+'xxxxxxxxxxxx','info')
appuifw.note(u'Polska wersja pyRotate dla:'+u'\n'+'xxxxxxxxxxxxx','info')
appuifw.note(u'English version pyRotate for:'+u'\n'+'xxxxxxxxxxxx','info')
def wybierz():
global tim
global lista
global listbox
index = listbox.current()
if lista=='Landscape':
q=appuifw.app.orientation = “landscape”
elif lista=='Portrait':
q=appuifw.app.orientation = “portrait”
if (q<>None)and(q<24):
tim=str(q)
try:
dat=open('c:\\pyRotate.dat','w')
dat.write(tim)
dat.close()
except: pass
else:
lista=
appuifw.app.body = listbox = appuifw.Listbox(lista, wybierz)
lista=
appuifw.app.body = listbox = appuifw.Listbox(lista, wybierz)
appuifw.app.menu=
def quit():
app_lock.signal()
appuifw.app.set_exit()
appuifw.app.screen='normal'
appuifw.app.exit_key_handler = quit
app_lock = e32.Ao_lock()
app_lock.wait()