Re: [python-win32] Specify number of copies and collate when printing

2006-01-13 Thread Bill Burns
Roger Upole wrote: > You can use win32print.DocumentProperties to set up the printer > parameters. Take a look at \win32\demos\print_desktop.py > for an example. > >Roger > > Thank you, Roger! I'll take a look at the example. Bill ___ Python

Re: [python-win32] win32com.client - How to raise an exception after timeout

2006-01-13 Thread Gregory Piñero
After more research, I believe there is no answer for this. I'd like to write a PEP for this problem but I'm not sure I know enough. Can anyone help? Is this perhaps a better question for the Python users or developers list? Thanks, Greg On 12/27/05, Gregory Piñero <[EMAIL PROTECTED]> wrote:

Re: [python-win32] ATT DSP32C to IEEE

2006-01-13 Thread Ray Schumacher
Thanks Thomas Is there not much call for DSP32 use, with Python? A modified Python float() function, that accepts IEEE or DSP32 would be ideal. Something like: float(string, type=DSP32) For now, my last posted implementation is sufficient. arrf = array.array('f') DSP32ToIEEE(arrf, struct.unpack('

Re: [python-win32] ATT DSP32C to IEEE

2006-01-13 Thread Thomas Heller
Ray Schumacher <[EMAIL PROTECTED]> writes: > At 08:00 AM 1/6/2006, Thomas Heller wrote: > >>RayS <[EMAIL PROTECTED]> writes: >> >>> I'm trying to find an efficient way to convert from DSP32C binary files >>> smmm >>> to IEEE float >>> seee emmm m

[python-win32] Dismounting a USB flash drive

2006-01-13 Thread Paul Moore
I'd like to write a script to dismount a USB memory drive. I'm pretty sure this would be possible with something like wmi.py, but I've never been able to navigate through the WMI documentation well enough to see how to do things :-( Can anyone give me any pointers (it doesn't have to be a WMI solu

[python-win32] Re: Unicode style in win32/PythonWin

2006-01-13 Thread Roger Upole
This approach could present problems for some functions on Win98/ME. A lot of the unicode functions are implemented as stubs, returning some form of "not implemented". If an application was passing unicode to a function and it was getting converted to character in order to call the *A form of the

Re: [python-win32] Unicode style in win32/PythonWin

2006-01-13 Thread Mark Hammond
> ok. I have no patches so far as of now - maybe later. Played with > Heller's ctypes for my urgent needs. That works correct with unicode > like this: > > >>> import ctypes > >>> > ctypes.windll.user32.MessageBoxW(0,u'\u041f\u043e\u0448\u0443\u043 > a.txt',0,0) > 1 In general, the "ascii" win32 f

[python-win32] Re: Specify number of copies and collate when printing

2006-01-13 Thread Roger Upole
You can use win32print.DocumentProperties to set up the printer parameters. Take a look at \win32\demos\print_desktop.py for an example. Roger Bill Burns wrote: > I've built a small app (w/PythonCard) which sends PostScript to a > printer. The app uses win32print for printing. I'm using