hello ,
There's a new update with more functions and much more interesting that basic change !
Run this code example for understand what I mean
YES now you can list profiles and CHANGE any profile name (standard or user profileCode:import xprofile import appuifw import e32 appuifw.app.title = u'Xprofile 1.10 testing' id,ap,ap_long=xprofile.get_ap() def set_menu(): global menu_ap, menu_exit,menu_list_profiles,menu_set_ap,menu_set_profile_name,ap id,ap,ap_long=xprofile.get_ap() menu_ap =(u'AP (%s)'%ap, get_ap) menu_list_profiles =(u'list profiles',get_list_ap ) menu_set_ap =(u'set ap',set_ap ) menu_set_profile_name =(u'set profile name',set_profile_name ) appuifw.app.menu = [menu_list_profiles,menu_ap,menu_set_ap,menu_set_profile_name,menu_exit] def get_ap(): global ap id_profile,shortname_ap,name_ap = xprofile.get_ap() ap=shortname_ap appuifw.note(u'id = %d\nshortname = %s\nname = %s'%(id_profile,shortname_ap,name_ap)) set_menu() def get_list_ap(): global ap l=xprofile.profiles_list() list=[u'%d : %s '%(i[0],i[1]) for i in l] i = appuifw.selection_list(list) set_menu() def set_ap(): global ap l=xprofile.profiles_list() list=[i[1] for i in l] indexes=[i[0] for i in l] i = appuifw.selection_list(list) if i is not None: i_p=indexes[i] xprofile.set_ap(i_p) set_menu() def set_profile_name(): global ap l=xprofile.profiles_list() list=[i[1] for i in l] indexes=[i[0] for i in l] i = appuifw.selection_list(list) if i is not None: inp = appuifw.query(u'new name : ','text',list[i]) if inp is not None: i_p=indexes[i] xprofile.set_profile_name(i_p,inp) set_menu() def handle_exit(): global running running = 0 menu_exit = (u'Exit', handle_exit) set_menu() running = 1 def quit(): global running running = 0 appuifw.app.exit_key_handler= quit while running: e32.ao_sleep(0.1))
With N93 you can WRITE a little word on secondary screen (doesn't work with general profile) ! I succeed in making scroll an sentence on this screen![]()
Yes it's tricky but I don't know any way writing at this place even with C++
links :
xprofile 1.10 unsigned 3rd deprecated
xprofile 1.1.1 opensigned 3rd
Cyke64


)
Reply With Quote




