Re: [python-win32] Possibility of calling static functions using window/thread handles?

2005-08-23 Thread Gabriel Genellina
At Monday 22/8/2005 15:09, Kevin White wrote: I don't know much about Windows API programming, so this may be a laughable question. Is it possible to use the win32process.CreateProcess() function to launch a program then somehow use the returned window/thread handle to invoke a static method.

[python-win32] Null provokes unicode error.

2005-08-23 Thread Peter Jessop
Good day all: I have a trivial problem that I would be grateful for help with. I am running python 2.4.1 withPython for Windows extensions build 204.When I run the following script after returning some lines correctly I find the following error. 'Traceback (most recent call last): File

Re: [python-win32] Null provokes unicode error.

2005-08-23 Thread Amit Upadhyay
This happens when the description value is null. How do I avoid this problem? You can not add string to None, ASd+None Traceback (most recent call last): File stdin, line 1, in ? TypeError: cannot concatenate 'str' and 'NoneType' objects try something like: import win32com.client

Re: [python-win32] Null provokes unicode error.

2005-08-23 Thread Simon Brunning
On 8/23/05, Peter Jessop [EMAIL PROTECTED] wrote: 'Traceback (most recent call last): File C:\Scripts\Script2.py, line 4, in ? print objChild.Name + '\t' + objChild.Description TypeError: coercing to Unicode: need string or buffer, NoneType found' Try: print objChild.Name, '\t',

[python-win32] Null provokes unicode error.

2005-08-23 Thread Peter Jessop
Amit, Simon Thanks for the help Peter ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Retreive paper width from printer

2005-08-23 Thread Bill Burns
Is it possible to retrieve the paper width from a printer? To be more specific, I have a Savin 2400WD (wide format printer). It is used for printing blueprints. This printer holds two (2) 500' rolls of paper. On the two (2) rolls, there could be any two (2) combinations of the following sizes