×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Pune, india
    Posts
    186

    Question HOW TO GO ONE STEP BACK?

    Hi
    anyone can help me ?
    how "to go one step back" using key handler in python for mobile application.


    thanks in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: HOW TO GO ONE STEP BACK?

    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

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Pune, india
    Posts
    186

    Re: HOW TO GO ONE STEP BACK?

    hi bogdan,
    u correctly got my question still i have not tried that but i think it will work for me.

    thanks again

Similar Threads

  1. Step by step signing
    By regis.melo in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 9
    Last Post: 2008-07-11, 17:24
  2. Errors building project in VS.2003
    By jensesaat in forum Symbian
    Replies: 11
    Last Post: 2006-11-13, 16:54
  3. Any algorithm of wav compression
    By kingsimba in forum Symbian
    Replies: 3
    Last Post: 2004-01-03, 09:00
  4. Step by Step Application Development
    By Analyzer in forum Mobile Java General
    Replies: 8
    Last Post: 2003-10-07, 20:13

Posting Permissions

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