Ciao,
girando per il web ho trovato questo codice:
import appuifw, e32
#Create an active object
app_lock = e32.Ao_lock()
#Define the exit function
def quit():
app_lock.signal()
appuifw.app.exit_key_handler = quit
#Define the tabs
tab1 = appuifw.Text(u"This is tab #1")
tab2 = appuifw.Text(u"This is tab #2")
tab3 = appuifw.Text(u"This is tab #3")
#Create a tab handler that switches between tabs
def handle_tab(index):
#Switch to the tab according to index
if(index==0):
appuifw.app.body = tab1
if(index==1):
appuifw.app.body = tab2
if(index==2):
appuifw.app.body = tab3
##Set the tabs
appuifw.app.set_tabs([u"One", u"Two", u"Three"], handle_tab)
#Set the default tab to the first tab, for example
appuifw.app.body = tab1
#Wait for the user to request the exit
app_lock.wait()
Ho provato a compilarlo e come tutte le altre applicazioni che ho compilato ha il solito problema, la parte in alto non si vede.
Ecco acluni screen :
Questa è quella compilata.
Mentre questa è quella avviata con lo scriptshell.
Come posso risolvere questo problema???