[python-win32] scripting pythonwin
mhammond at skippinet.com.au
Sat Jul 12 15:05:11 CEST 2008
> How can I learn to "script" pythonwin?
> I'd like to start with a script that would open an existing .py file in
> an edit window, then do various things such as:
> set the window size and position
> scroll the text
> position the cursor
> size the "class" pane
> position the splitter
> Any pointers are welcome.
I'm afraid you need to learn MFC. To get started, try something like:
>>> import win32ui
>>> app = win32ui.GetApp()
<pywin.framework.editor.color.coloreditor.SyntEditDocument instance at
Obviously lots of GetParent() calls - in the real world you would loop until
you hit a frame window.
Hope this helps,
More information about the python-win32