Re: [python-win32] COM interface specs

2006-11-14 Thread James Matthews
There should be a mediawiki on this stuff already! On 11/14/06, Roger Upole <[EMAIL PROTECTED]> wrote: Rikard Bosnjakovic wrote: > Greetings > > I'm a Python-programmer since 6 years, and now is the first time I'm > about to program under the Windows environment. > > What I am about to do now i

Re: [python-win32] Building from Source

2006-11-14 Thread Mark Hammond
Hi Michael, > raise RuntimeError, "Can't find a version in Windows.h" > RuntimeError: Can't find a version in Windows.h I've no idea why that would happen unless the Windows.h we found isn't the correct one - no one else has ever reported it before. All I can suggest is to add some 'print' s

[python-win32] Building from Source

2006-11-14 Thread Michael Foord
Hello all, I have just tried to build the Pywin32 extensions from source - using the "pywin32-210.zip" archive. I have Visual Studio 2005 installed and have built Pywin32 from source before. I'm using Python 2.4 under Windows XP. The build fails as follows, can anyone suggest a reason ? C:\Py

Re: [python-win32] [Py2exe-users] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Hi Thomas, > Seems I have to disappoint you - I have no idea anymore. But then, > I've never used these theme functions. > > Sorry, > Thomas Thank you for your help... I guess it is a bit an obscure problem. I don't really want to abandon that really nice interface, so I hope that some PyWin32 g

Re: [python-win32] Unpackaged binary version of pywin32

2006-11-14 Thread Fuzzyman
Paul Moore wrote: >On 11/14/06, Ross McKerchar <[EMAIL PROTECTED]> wrote: > > >>Is there anywhere I can download a compiled but unpackaged version of >>pywin32? >> >>I would like to repackage the win32 extensions as an msi using the the >>bdist_msi distutils extension, allowing me to deploy the

Re: [python-win32] [Py2exe-users] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Sorry, I just would like to add that I also have a file called: MyExecutable.exe.manifest in the dist directory. Andrea. On 11/14/06, Andrea Gavana <[EMAIL PROTECTED]> wrote: > Hi Thomas, > > > > > Let me try to guess: Do you have an XP-style manifest for the exe? > > > > Yes, I have it, embed

Re: [python-win32] Unpackaged binary version of pywin32

2006-11-14 Thread Paul Moore
On 11/14/06, Ross McKerchar <[EMAIL PROTECTED]> wrote: > Is there anywhere I can download a compiled but unpackaged version of > pywin32? > > I would like to repackage the win32 extensions as an msi using the the > bdist_msi distutils extension, allowing me to deploy the package to > multiple clien

Re: [python-win32] py2exe and winxptheme

2006-11-14 Thread Thomas Heller
Andrea Gavana schrieb: > Hi all, > > I am having some troubles mixing py2exe and winxptheme. Basically, > I am using wxPython 2.7.2.0 with Python 2.5, and painting some window > background using the UxTheme via winxptheme. This is what I am doing: > > hwnd = MyWindow.GetHandle() > self.hTheme

Re: [python-win32] [Py2exe-users] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Hi Thomas, Let me try to guess: Do you have an XP-style manifest for the exe? Yes, I have it, embedded in the setup.py script. I have removed it from the file I sent to the mailing list because I thought it was redundant, but if you need to see it I can attach it to my e-mail. Is it a probl

[python-win32] py2exe and winxptheme

2006-11-14 Thread Andrea Gavana
Hi all, I am having some troubles mixing py2exe and winxptheme. Basically, I am using wxPython 2.7.2.0 with Python 2.5, and painting some window background using the UxTheme via winxptheme. This is what I am doing: hwnd = MyWindow.GetHandle() self.hTheme = winxptheme.OpenThemeData(hwnd, "Wind

Re: [python-win32] how to get the interface of an COM object?

2006-11-14 Thread Thomas Heller
Bruce Who schrieb: > Hi, Thomas > > Finally I make it to create a COM object: > > class EventSink: > def OnLoadFinished(self): > print 'load finished' > > o = comtypes.client.CreateObject("SomeObj2.SomeObj.1", sink=EventSink()) > > but the EventSink.OnLoadFinished() is never called,

[python-win32] Unpackaged binary version of pywin32

2006-11-14 Thread Ross McKerchar
Is there anywhere I can download a compiled but unpackaged version of pywin32? I would like to repackage the win32 extensions as an msi using the the bdist_msi distutils extension, allowing me to deploy the package to multiple clients using group policy. The sourceforge project page only lists

[python-win32] Re: COM interface specs

2006-11-14 Thread Roger Upole
Rikard Bosnjakovic wrote: > Greetings > > I'm a Python-programmer since 6 years, and now is the first time I'm > about to program under the Windows environment. > > What I am about to do now is to play around with COM. I read a very > brief tutor (the one found at > http://www.oreilly.com/catalog

Re: [python-win32] how to get the interface of an COM object?

2006-11-14 Thread Bruce Who
Hi, Thomas Finally I make it to create a COM object: class EventSink: def OnLoadFinished(self): print 'load finished' o = comtypes.client.CreateObject("SomeObj2.SomeObj.1", sink=EventSink()) but the EventSink.OnLoadFinished() is never called, and I still donnot know how to get an in

Re: [python-win32] py2exe and winxptheme

2006-11-14 Thread Thomas Heller
Andrea Gavana schrieb: > Hi Thomas, > >> >> Let me try to guess: Do you have an XP-style manifest for the exe? >> > > Yes, I have it, embedded in the setup.py script. I have removed it > from the file I sent to the mailing list because I thought it was > redundant, but if you need to see it I ca

Re: [python-win32] Win32_GroupUser

2006-11-14 Thread Tim Golden
[James Matthews] [... re WMI Win32_GroupUser etc. ] > There should be a central site with all this information! Well, not that I disagree with you as such, but it depends on what exactly your "all this" encompasses. ;) Nearly all of the questions to the list about WMI are really WMI questions,

Re: [python-win32] how to get the interface of an COM object?

2006-11-14 Thread Bruce Who
Hi, Thomas, Thanks, I'll give it a try. On 11/14/06, Thomas Heller <[EMAIL PROTECTED]> wrote: > Bruce Who schrieb: > > > I googled the web and find some old posts in this maillist, it seems > > that only interfaces inherit from IDispatch can be used by pythonCOM, > > and interfaces here inherits

Re: [python-win32] how to get the interface of an COM object?

2006-11-14 Thread Bruce Who
Hi, Mark All the sample VBScript codes I have are embeded in html. I donnot know if this is different from VBScript code that runs under the Windows Scripting Host, I'm not familiar with VBScript, :-( On 11/14/06, Mark Hammond <[EMAIL PROTECTED]> wrote: > > I googled the web and find some old po