You Are Here:

Community: Developer Discussion Boards

#1 Old Question HOW TO GO ONE STEP BACK? - 2008-05-13, 17:35

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Hi
anyone can help me ?
how "to go one step back" using key handler in python for mobile application.


thanks in advance
Reply With Quote

#2 Old Re: HOW TO GO ONE STEP BACK? - 2008-05-13, 17:44

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
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
Reply With Quote

#3 Old Re: HOW TO GO ONE STEP BACK? - 2008-05-13, 18:02

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
hi bogdan,
u correctly got my question still i have not tried that but i think it will work for me.

thanks again
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia