| Reply | « Previous Thread | Next Thread » |
|
Join Date: Mar 2003
Posts: 87
Location: Cambridge, Massachusetts, USA
Offline
Regular Contributor
|
|
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.] |
| pzul_wisner |
| View Public Profile |
| Find all posts by pzul_wisner |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Join Date: Mar 2003
Posts: 87
Location: Cambridge, Massachusetts, USA
Offline
Regular Contributor
|
|
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? |
| pzul_wisner |
| View Public Profile |
| Find all posts by pzul_wisner |
|
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. |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
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 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Join Date: Mar 2003
Posts: 87
Location: Cambridge, Massachusetts, USA
Offline
Regular Contributor
|
|
Thanks! The e32.Ao_lock() and wait() are what I needed.
|
| pzul_wisner |
| View Public Profile |
| Find all posts by pzul_wisner |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| New to Python for S60 (PyS60)? Read this first! | croozeus | Python | 2 | 2008-10-17 20:23 |
| Need help on window server session | gigglie | General Symbian C++ | 0 | 2008-05-03 10:57 |
| App runs under putools but not under pys60 shell | rmcooke | Python | 3 | 2008-01-03 13:20 |
| Problem Creating Window Using RWindow and putting More controls on it | er_gps212 | Symbian User Interface | 0 | 2005-10-28 07:22 |
| About window views | thodime_guru | Symbian User Interface | 1 | 2004-06-17 19:00 |