You Are Here:

Community: Developer Discussion Boards

#1 Old Keep script running in the background - 2005-03-03, 20:19

Join Date: Oct 2004
Posts: 158
bercobeute
Offline
Regular Contributor
Hi,

Is it possible to keep a Python script running in the background while working with other applications in the meantime? Do I need to create stand-alone applications (.sis) for that?

I know Symbian allows simultaneously running applications, but I'm not sure whether the applications in the background are on hold or are running normally.

What I'm trying to do is build an application that monitors for certain events while running in the background. Whenever an event occurs the application should warn the user. Is this possible at all using Python?

Cheers,
Berco
Reply With Quote

#2 Old 2005-03-08, 01:39

Join Date: Jan 2005
Posts: 8
rjstone
Offline
Registered User
I'm not sure about python bringing itself to the foreground or automatically "backgrounding" itself, but I know that I have run a python script, switched to another app by holding down the application key (or whatever it's called) on my 6620, and then switched back later to find that it had finished its work. It's easy to confirm this by writing a quick test script.

Regarding APIs that aren't wrapped for python yet, I'm hoping at some point to get around to trying my hand at that. (And much thanks to the PDIS people for what they have contributed so far.)
Reply With Quote

#3 Old Re: Keep script running in the background - 2005-03-11, 10:00

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
Quote:
Originally posted by bercobeute
Hi,

Is it possible to keep a Python script running in the background while working with other applications in the meantime?

Do I need to create stand-alone applications (.sis) for that?

I know Symbian allows simultaneously running applications, but I'm not sure whether the applications in the background are on hold or are running normally.

What I'm trying to do is build an application that monitors for certain events while running in the background. Whenever an event occurs the application should warn the user. Is this possible at all using Python?

Cheers,
Berco
I'm not sure what you specifically mean by "running in the background", but the answer is yes. If you have a graphical Python application, and you switch to another application, the Python app will still be running in the background. There is also support for starting a Python script in the background, without GUI support. See the e32.start_server() function.

There is no event monitoring support yet. You'd have to write your own C++ extension module to monitor events with the current Python version.
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

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