473,597 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Black window

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!
Jul 18 '05 #1
8 1869
Gropius wrote:
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!

Check out py2exe
http://starship.python.net/crew/theller/py2exe/
Jul 18 '05 #2
> Check out py2exe
http://starship.python.net/crew/theller/py2exe/


Ok, but i don't understand what to do..
Jul 18 '05 #3
On Sun, 04 Jul 2004 18:02:00 GMT, "Gropius" <ab****@ghijl.i t>
wrote:
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
Jul 18 '05 #4
"Gropius" <ab****@ghijl.i t> wrote in message news:<sC******* *************@t wister2.libero. it>...
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.
Jul 18 '05 #5
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.

Jul 18 '05 #6
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.
Jul 18 '05 #7
Gropius wrote:
Check out py2exe
http://starship.python.net/crew/theller/py2exe/


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.
Jul 18 '05 #8
Gropius wrote:
Check out py2exe
http://starship.python.net/crew/theller/py2exe/


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.
Jul 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
19166
by: Penna Elabi | last post by:
How do I create a style sheet with black background and white text?
2
2172
by: D Cameron | last post by:
I'm using the (managed) Microsoft.DirectX.AudioVideoPlayback namespace to program an app where I want to quickly swap the video that is being displayed, playing the new video from the position where the old one left off. Here's a sample of the relevant code: // when this code is executed the current video // is happily playing current.Pause(); double pos = current.CurrentPosition; current.Ending -= endHandler;
7
2936
by: JCL | last post by:
I have a winform and on this winform, I have a WebBrowser control. Users can browse the web through this form. Is there a way that I can make web pages show up as grey scale pages, with the color being converted to black and white? In this way, users will always see a colorless web page when they access to the internet. Thank you, Chris
3
1968
by: moondaddy | last post by:
I have some text in a page that when a certain even happens, I need to make it glow from black to red (through a spand of 1 second) pause for a few seconds, and then slowly change from red to black over a span of 1 second again. Lastly, this needs to be compatible with NS 4 if possible, or if not possible, then at least so NS4 doesnt crash or get errors. This is to flag a user that something has happened. Thanks.
0
1642
by: kris_scheyer | last post by:
Ok, here's what im trying to do: I have a machine running XP embedded that has a webserver. I have a button on the aspx web form that is supposed to capture the screen of the computer hosting the webserver and display it on the browser. Now I already have the code that captures the screen of the webserver (using user32.dll and gdi32.dll) and when I run the web application on the ASP.NET Development Server using visual web developer 2005...
0
1105
by: shandy.b | last post by:
Hi all. Here's the problem: I've got a black box and a bunch of particles in an environment. The particles go into the black box, follow a path, and pop out the end after some processing. They are processed first-in-first-out, like a queue. Inside the black box is a physical layout that can be thought of as a series of pipes or a lineup at an airport checkin. The interior layout can change at runtime (ie, a pipe can be rerouted or...
2
2991
by: parasuram | last post by:
Hi friends ............. this is a question regarding the data structures trees Pleas post it if possible with in 2 days I will thankful if some body could help doing this. Operating system: windows xp compiler : Dev c++ Question is as folllows : Genaration of keys : Assume that your keys are character strings of length 10 obtained by scannig a c++ program. If a string has less than 10 characters make it up to 10 characters by...
2
11438
luke14free
by: luke14free | last post by:
Hello guys, I've been searching for a method to hide the console (as c/c++ user would say) under windows, but i found nothing really helpful. What I found is: 1) I need to rename file as pyw. But when I do so, code just doesn't give any output or open windows, it just close itself... 2) I need to create a "python" service...But how? Is there another simpler method to tell python that my main window is the frame and not the console? I'm...
12
2774
by: icarus | last post by:
platform: windows xp professional, python 2.5, wxpython When I double-check on my program file test.py (for simplicity I'll be using this code below), I see the window just fine. But the ms-dos black window pops up in the background. On Linux, no issues at all. How can I get rid of that ms-dos black window in the background? something I need to add to my code? a setting to adjust in windows? thanks in advance.
0
7962
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8024
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8258
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6681
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5844
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3921
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1229
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.