You Are Here:

Community: Developer Discussion Boards

#1 Old PyS60 shell hides my appuifw window - 2008-08-21, 21:06

Join Date: Mar 2003
Posts: 87
Location: Cambridge, Massachusetts, USA
pzul_wisner
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.]
Reply With Quote

#2 Old Re: PyS60 shell hides my appuifw window - 2008-08-21, 21:17

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
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


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#3 Old Re: PyS60 shell hides my appuifw window - 2008-08-21, 21:34

Join Date: Mar 2003
Posts: 87
Location: Cambridge, Massachusetts, USA
pzul_wisner
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?
Reply With Quote

#4 Old Re: PyS60 shell hides my appuifw window - 2008-08-21, 21:39

Join Date: Jul 2008
Posts: 25
Location: Tokyo, Japan
Hiisi
Offline
Registered User
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.
Reply With Quote

#5 Old Re: PyS60 shell hides my appuifw window - 2008-08-21, 21:43

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
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


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#6 Old Re: PyS60 shell hides my appuifw window - 2008-08-21, 22:04

Join Date: Mar 2003
Posts: 87
Location: Cambridge, Massachusetts, USA
pzul_wisner
Offline
Regular Contributor
Thanks! The e32.Ao_lock() and wait() are what I needed.
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
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

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ