[python-win32] hide subshell os.system

2005-09-23 Thread le dahut
Hi everyone, How can the subshell be hidden when executing code such as : os.system('ping host') ? The program uses GTK and it's very annoying to see a black window when using a graphical program ... Thanks, K. ___ Python-win32 mailing list Python-w

[python-win32] wmi - 9x and py2exe

2005-09-23 Thread le dahut
I've crawled google and its search results in broad, length and through but I didn't find a real explanation concerning the use of wmi with py2exe under win 9x/Me. My program works fine on the 98 machine where python pygtk gtk runtime and wmi are installed. I want to run it on fresh installed mach

Re: [python-win32] hide subshell os.system

2005-09-23 Thread Thomas Heller
le dahut <[EMAIL PROTECTED]> writes: > Hi everyone, > > How can the subshell be hidden when executing code such as : > > os.system('ping host') ? > > The program uses GTK and it's very annoying to see a black window when > using a graphical program ... You should use the subprocess module instead

Re: [python-win32] wmi - 9x and py2exe

2005-09-23 Thread Thomas Heller
le dahut <[EMAIL PROTECTED]> writes: > I've crawled google and its search results in broad, length and through > but I didn't find a real explanation concerning the use of wmi with > py2exe under win 9x/Me. > > My program works fine on the 98 machine where python pygtk gtk runtime > and wmi are in

Re: [python-win32] hide subshell os.system

2005-09-23 Thread le dahut
Here, it's not really an answer but it may help many people. The ping module by Lars Strand : http://www.gnist.org/~lars/code/ping/ping.html Must be run as root on unix stations ... K. Le vendredi 23 septembre 2005 à 11:55 +0200, Thomas Heller a écrit : > le dahut <[EMAIL PROTECTED]> writes: >

Re: [python-win32] TerminateProcess issues

2005-09-23 Thread Sean Q. Hendricks
Roger Upole wrote: >Without knowing how the GUI executes the methods (eg in a different >thread,etc) >it's hard to tell what might be happening with the handle between the calls. > > The GUI processes each method when a button event is caught. The methods startEncode() and stopEncode() are in

Re: [python-win32] testMSOffice.py and Excel 2003

2005-09-23 Thread Cavanagh, Mike
Tim, Thanks for the reply, the test case now passes. However, our internal application is still failing. code snippet: import win32com import win32com.client.dynamic import pythoncom from pywintypes import Unicode from win32com.client import gencache xl = win32com.client.dynamic.Dispatch("Exce

[python-win32] "Hebrew transformation" when printing with SetGraphicsMode(GM_ADVANCED)

2005-09-23 Thread Luc Saffre
Hello, here is a script that prints a simple text to the Windows default printer. But on some printers, each letter is mirrored around its baseline (upside down, but left stays left). I call this effect "Hebrew transformation" because to me the result looked at first glance like hebrew text. The

Re: [python-win32] hide subshell os.system

2005-09-23 Thread Tim Roberts
On Fri, 23 Sep 2005 10:46:38 +0200, le dahut <[EMAIL PROTECTED]> wrote: >Hi everyone, > >How can the subshell be hidden when executing code such as : > >os.system('ping host') ? > >The program uses GTK and it's very annoying to see a black window when >using a graphical program ... > ASPN includ

Re: [python-win32] Simultaneous Adobe Reader

2005-09-23 Thread Tim Roberts
On Thu, 22 Sep 2005 16:48:07 +0200, "Jorge Ramirez" <[EMAIL PROTECTED]> wrote: >From windows, using a python script how can I open Adobe Reader without >displaying a PDF document? > What would be the point? It's certainly possible to look up the location of the Acrobat Reader in the registry (