[python-win32] how to determine the version of pywin programmatically ?

2008-12-09 Thread Jim Vickroy
Hello all, I'm writing a script to determine the versions of various installed software packages. How do I access the pywin32 build number from within a script? For example: * for the numpy package, it is: numpy.__version__ * for the PIL package, PIL.Image.VERSION seems to work I

[python-win32] get window title

2008-12-09 Thread Billy Pilgrim
Hi all, I am rather new to python and haven't been able to find a solution to this (in python or in any other language). The problem: I am trying to find a way to iterate over the set of open windows, and retrieve/extract the window title. The real project, stupid as it is, is to find the

Re: [python-win32] get window title

2008-12-09 Thread Tim Roberts
Billy Pilgrim wrote: I am rather new to python and haven't been able to find a solution to this (in python or in any other language). The problem: I am trying to find a way to iterate over the set of open windows, and retrieve/extract the window title. The real project, stupid as it is,

Re: [python-win32] get window title

2008-12-09 Thread Tim Roberts
Billy Pilgrim wrote: So I presume that window text and title are the same? (text, IMHO, implies contents of window). That's actually a reasonable question, so I'll turn off the sarcasm engine. ;) The GetWindowText and SetWindowText APIs are generic, and can be used with almost any kind of

Re: [python-win32] how to determine the version of pywin programmatically ?

2008-12-09 Thread Mark Hammond
Jim Vickroy wrote: I notice that the build number appears in: * pywin32.version.txt but I was hoping for something similar to numpy or PIL. I can't see a huge gain in pywin32 opening that file just to make it available in __version__, and having it manually maintained in a .py file

Re: [python-win32] how to determine the version of pywin programmatically ?

2008-12-09 Thread Jim Vickroy
Mark Hammond wrote: Jim Vickroy wrote: I notice that the build number appears in: * pywin32.version.txt but I was hoping for something similar to numpy or PIL. I can't see a huge gain in pywin32 opening that file just to make it available in __version__, and having it manually