[python-win32] win32pipe.popen and stdout

2005-05-09 Thread Jürgen Kareta
Hi, I have two questions about win32pipe popen methods and stdin and stdout: I played with the ps2pdf batch in ghostscript. If I call the batch from python with win32pipe.popen, giving two real files as soure and destination, it works fine. Calling the batch with a '-' for destination, the ou

Re: [python-win32] win32pipe.popen and stdout

2005-05-09 Thread Leeuw van der, Tim
Just continue reading until end-of-file, just like you'd read any other file! (for instance when reading a file line-by-line). The PDF is still being produced as you read it, so just read on until end of file and append it to your buffer. (Perhaps you can read it line-by-line, isn't PDF as sort

[python-win32] (no subject)

2005-05-09 Thread eric . powell
Hello again, all- I am still trying to understand Windows COM from Python. This time, I am trying to access a custom COM object an in-house developer has developed in C++. The class is stored in a dll registered with my system, and can be called from VB as follows: From a working VB project:  

[python-win32] PyShell's code completion into DrPython

2005-05-09 Thread Daniel Crespo
I would like to adapt the PyShell code completion to DrPython, because both programs are very good... Any clue for start finding the code location in both programs to accomplish this? Thanks ___ Python-win32 mailing list Python-win32@python.org http:

Re: [python-win32] Click detection in Windows (was 'HookMessageFailure?')

2005-05-09 Thread b6y9eq902
Excellent! That's exactly what I was hoping to find. Thanks! -Mark On 5/8/05, Daniel F <[EMAIL PROTECTED]> wrote: > or even better, try using the pyHook module (which wraps > SetWindowHookEx through ctypes for you already, presenting a > convenient python interface). just google "pyhook". > >

Re: [python-win32] how to browse another computer's folder treestructure ?

2005-05-09 Thread Michael Li
Steve Holden wrote: > Michael Li wrote: > >> Hi, Mark >> >> Thank you very much. >> It works, but only shows shared folders, not all the folders, >> is it possible to show all folders ? >> > [...] > Assuming you don't have permission to access administrative shares, what > legitimate use case c

Re: [python-win32] (no subject)

2005-05-09 Thread Mark Hammond
"SRS_CONLib.Point2D" is not the "ProgID" of the object - it is the name of the typelib and interface in that typelib. If your object can be used with Dispatch, it should be possible to create the object in VB using "CreateObject" - CreateObject wants the ProgID too - ie, it will fail with "SRS_CON

Re: [python-win32] how to browse another computer's folder treestructure ?

2005-05-09 Thread d.w. harks
With carefully-arranged electrons, Michael Li wrote: > > > Steve Holden wrote: > > Michael Li wrote: > > > >> Hi, Mark > >> > >> Thank you very much. > >> It works, but only shows shared folders, not all the folders, > >> is it possible to show all folders ? > >> > > [...] > > Assuming you don't

[python-win32] Setting environment variables in windows from Python Programs

2005-05-09 Thread Nalli Dinesh
Folks, This seems very easy, as every programming language provides this. But I don;t know why I have this not working for me in Python scripts. The problem: I am trying to create and set environment variable LANG under windows from Python file. I am using OS module's putenv or environ to do so. B

[python-win32] Python embedded in an MFC app question

2005-05-09 Thread Paul Weimer
I have an MFC app that uses Python. All is working well but I was asked to put in an enhancement whose behavior has me stumped. We use the login dialog that lives in pywin\dialogs and have never had a problem. My users want the cursor to auto tab to the password control after a specified number