Black window

G

Gropius

Hi
i've a problem, i'd like that my application (for winxp) works in background
in the taskmanager (or in the systray) instead of in a window. How can i do?

Thanks!
 
A

Alan Gauld

Hi
i've a problem, i'd like that my application (for winxp) works in background
in the taskmanager (or in the systray) instead of in a window. How can i do?

Use pythonw.exe to run it instead pf python.exe.
But of course any output will be lost! So you might want to run
it with redirection to a file.

Alan G.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
 
E

Elbert Lev

Gropius said:
Hi
i've a problem, i'd like that my application (for winxp) works in background
in the taskmanager (or in the systray) instead of in a window. How can i do?

Thanks!

In Win NT there are 3 ways to do this: run your application as NT
service, or write a GUI and make the main window hidden. Application
of the second type will work only if somebody is logged in on station,
but service will survive logouts.

L.E.
 
B

Bernd Kaiser

Windows NT services

You can build Windows NT services by passing a service keyword argument
to the setup function, the value must be a list of Python module names
containing a service class (identified by the _svc_name_ attribute):

# setup.py
from distutils.core import setup
import py2exe

setup(service=["MyService"])

The build service executable are able to install and remove themselves
by calling them with certain command line flags, run the exe with the
-help argument to find out more.
 
B

Bernd Kaiser

Windows NT services

You can build Windows NT services by passing a service keyword argument
to the setup function, the value must be a list of Python module names
containing a service class (identified by the _svc_name_ attribute):

# setup.py
from distutils.core import setup
import py2exe

setup(service=["MyService"])

The build service executable are able to install and remove themselves
by calling them with certain command line flags, run the exe with the
-help argument to find out more.
 
B

Bernd Kaiser

Gropius said:
Ok, but i don't understand what to do..
Windows NT services

You can build Windows NT services by passing a service keyword argument
to the setup function, the value must be a list of Python module names
containing a service class (identified by the _svc_name_ attribute):

# setup.py
from distutils.core import setup
import py2exe

setup(service=["MyService"])

The build service executable are able to install and remove themselves
by calling them with certain command line flags, run the exe with the
-help argument to find out more.
 
B

Bernd Kaiser

Gropius said:
Ok, but i don't understand what to do..
Windows NT services

You can build Windows NT services by passing a service keyword argument
to the setup function, the value must be a list of Python module names
containing a service class (identified by the _svc_name_ attribute):

# setup.py
from distutils.core import setup
import py2exe

setup(service=["MyService"])

The build service executable are able to install and remove themselves
by calling them with certain command line flags, run the exe with the
-help argument to find out more.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,662
Latest member
sxarexu

Latest Threads

Top