Re: Installing python's pypiwin32

2016-04-07 Thread Brian Inglis
Dennis Putnam bellsouth.net> writes: > On 4/4/2016 5:53 AM, Marco Atzeri wrote: > > On 04/04/2016 11:28, Dennis Putnam wrote: > >> I'm trying to install pypiwin32 and have hit a stone wall. That module > >> wants _winreg so I installed cygwinreg. However, I cannot find a way to > >> tell pip to u

Re: Installing python's pypiwin32

2016-04-04 Thread Ray Donnelly
On Mon, Apr 4, 2016 at 2:05 PM, Dennis Putnam wrote: > Hi Ray, > > I kind of found the problem. The import should be: > > from ctypes import * > > Now I am getting a message box but the characters in it are garbage. I > was tried to send an image but apparently this list does not allow that. Whic

Re: Installing python's pypiwin32

2016-04-04 Thread Dennis Putnam
Hi Ray, I kind of found the problem. The import should be: from ctypes import * Now I am getting a message box but the characters in it are garbage. I was tried to send an image but apparently this list does not allow that. Here is my trivial test program: #!/usr/bin/python from ctypes import

Re: Installing python's pypiwin32

2016-04-04 Thread Dennis Putnam
Hi Ray, Thanks. That is actually where I started but I was not aware I needed those first 2 assignments. I did not find any examples of MessageBoxW that included that detail. However, now I get a different error. I am guessing there is another import I'm missing: Traceback (most recent call last)

Re: Installing python's pypiwin32

2016-04-04 Thread Ray Donnelly
Yes, you can use the ctypes module [1] for this sort of thing: import ctypes user32=cdll.LoadLibrary('/cygdrive/c/Windows/System32/User32.dll') mbw=getattr(user32,"MessageBoxW") mbw(0,"Hello World","Caption",2) .. but I think the ctypes module on Cygwin's Pythons should support the windll stuff o

Re: Installing python's pypiwin32

2016-04-04 Thread Dennis Putnam
On 4/4/2016 5:53 AM, Marco Atzeri wrote: > On 04/04/2016 11:28, Dennis Putnam wrote: >> I'm trying to install pypiwin32 and have hit a stone wall. That module >> wants _winreg so I installed cygwinreg. However, I cannot find a way to >> tell pip to use cygwinreg rather than _winreg. Is there a way

Re: Installing python's pypiwin32

2016-04-04 Thread Marco Atzeri
On 04/04/2016 11:28, Dennis Putnam wrote: I'm trying to install pypiwin32 and have hit a stone wall. That module wants _winreg so I installed cygwinreg. However, I cannot find a way to tell pip to use cygwinreg rather than _winreg. Is there a way to alias or some way to get pip to use the right

Installing python's pypiwin32

2016-04-04 Thread Dennis Putnam
I'm trying to install pypiwin32 and have hit a stone wall. That module wants _winreg so I installed cygwinreg. However, I cannot find a way to tell pip to use cygwinreg rather than _winreg. Is there a way to alias or some way to get pip to use the right module? TIA. signature.asc Description: O