×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Cambridge, Massachusetts, USA
    Posts
    87

    PyS60 shell hides my appuifw window

    When I use "Run script" from the python shell, it puts my appuifw windows behind the console window.

    If I run the same application from a Bluetooth console it works fine.

    Is there some trick to keep an appuifw window in front?

    [Seems like this must be a common problem but I searched for too long without finding related information.]

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: PyS60 shell hides my appuifw window

    Quote Originally Posted by pzul_wisner View Post
    When I use "Run script" from the python shell, it puts my appuifw windows behind the console window.

    If I run the same application from a Bluetooth console it works fine.

    Is there some trick to keep an appuifw window in front?

    [Seems like this must be a common problem but I searched for too long without finding related information.]
    hi pzul_wisner
    i am not getting your question properly but then also i hope this new globalui module can help you.

    EDIT: You can also check the Top Window Module.

    Hope i got you

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Cambridge, Massachusetts, USA
    Posts
    87

    Re: PyS60 shell hides my appuifw window

    I think my application is exiting at the end of the script.

    What is the best practice to keep a python script alive while its waiting for callbacks?

  4. #4
    Registered User
    Join Date
    Jul 2008
    Location
    Tokyo, Japan
    Posts
    25

    Re: PyS60 shell hides my appuifw window

    Posting your script (simplified one is OK) probably helps other people understand where the problem is.

    I guess that your code doesn't prevent a "main thread" from exiting using an e32.Ao_lock instance. As a result, it ends immediately after launching. Here is a simple HelloWorld script.
    Code:
    import e32
    import appuifw
    
    lock = e32.Ao_lock()                        # Create an e32.Ao_lock instance.
    appuifw.app.title = u'HelloWorld'
    appuifw.app.body = appuifw.Text(u'Hello World!')
    appuifw.app.exit_key_handler = lock.signal  # Signal lock when right softkey pressed.
    lock.wait()                                 # Wait until lock is signaled.
    Perhaps, I'm making a wrong guess, but I hope you understand the concept of Ao_lock.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: PyS60 shell hides my appuifw window

    Quote Originally Posted by pzul_wisner View Post
    I think my application is exiting at the end of the script.

    What is the best practice to keep a python script alive while its waiting for callbacks?
    hi again
    please have a look at this article
    i will request you if you dont mind then can you give a sameple code so that the problem will become more clear.

    Hope This works
    Gaba88

  6. #6
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Cambridge, Massachusetts, USA
    Posts
    87

    Re: PyS60 shell hides my appuifw window

    Thanks! The e32.Ao_lock() and wait() are what I needed.

Similar Threads

  1. New to Python for S60 (PyS60)? Read this first!
    By croozeus in forum Nokia N9
    Replies: 2
    Last Post: 2008-10-17, 19:23
  2. Need help on window server session
    By gigglie in forum Symbian
    Replies: 0
    Last Post: 2008-05-03, 09:57
  3. Replies: 3
    Last Post: 2008-01-03, 12:20
  4. Problem Creating Window Using RWindow and putting More controls on it
    By er_gps212 in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-28, 06:22
  5. About window views
    By thodime_guru in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-17, 18:00

Posting Permissions

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