Win32all documentation?
Jason Orendorff
jason at jorendorff.com
Mon Dec 10 13:18:11 EST 2001
> Um... yes, though I may be splitting hairs. I've got
> a pretty solid grasp of Python in general, and I've
> been programming Windows in C/C++ for nearly 10 years.
> The part I don't understand clearly is win32all
> *itself*.
The API is split across a number of modules, roughly on
"subject matter" lines.
>>> import win32gui
>>> def my_callback(window, extra):
... title = win32gui.GetWindowText(window)
... if title:
... print title
...
>>> win32gui.EnumWindows(my_callback, None)
(70 lines of junk)
>>> import win32net
>>> print win32net.USE_LOTS_OF_FORCE
2
I found some documentation, but it's quite sparse:
http://aspn.activestate.com/ASPN/Python/Reference/Products/ActivePython/Pyth
onWin32Extensions/modules.html
A few console-mode functions are in "import msvcrt".
Good luck.
--
Jason Orendorff http://www.jorendorff.com/
More information about the Python-list
mailing list