| Reply | « Previous Thread | Next Thread » |
|
Hi
anyone can help me ? ![]() how "to go one step back" using key handler in python for mobile application. thanks in advance |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
Hi sagars,
I'm not sure I understand your question so I apologise if what I'm about to say isn't related to it. I assume you are talking about "Back", the right softkey (which is sometimes "Exit"). If so, the only way I can think of is returning the application to its previous state. For example: Code:
import appuifw, graphics #We create the initial state of the application: def UI1(): appuifw.app.title=u'Name' bg=graphics.Image.new((240,240)) def h(rect):canvas.blit(bg) canvas=appuifw.Canvas(event_callback=None, redraw_callback=h) appuifw.app.body=canvas #Now we modify this state: appuifw.app.title=u'New name' bg.text((20,20), u"text") #Now we assign the UI1 function to the right softkey, so that it will "take us back" appuifw.app.exit_key_handler=UI1 |
|
hi bogdan,
u correctly got my question still i have not tried that but i think it will work for me. thanks again |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Step by step signing | regis.melo | Installation, Certification and Security | 9 | 2008-07-11 18:24 |
| Errors building project in VS.2003 | jensesaat | General Symbian C++ | 11 | 2006-11-13 17:54 |
| Any algorithm of wav compression | kingsimba | General Symbian C++ | 3 | 2004-01-03 10:00 |
| Step by Step Application Development | Analyzer | Mobile Java General | 8 | 2003-10-07 21:13 |
| Problem with the 'back' button behaviour | mchallice | General Browsing | 1 | 2003-09-16 13:17 |