×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2004
    Posts
    158

    Keep script running in the background

    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

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    8
    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.)

  3. #3
    Super Contributor
    Join Date
    Dec 2004
    Posts
    643

    Re: Keep script running in the background

    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.

Posting Permissions

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