Re: [python-win32] scripting pythonwin

2008-07-13 Thread Marcus.CM
Hi Bob, Coming from a VC++ to python was not that hard, but there are some mentality changes and "gotchas" when i took up python. In your case, if you want to learn MFC, well, actaully its going to a lot more "gotchas" and finer mentality changes. But i would recommend the following book if yo

Re: [python-win32] scripting pythonwin

2008-07-13 Thread Mark Hammond
> I'd like to have this program run each time I start the IDE. How do I > do that? Check out pywin.framework.intpyapp - you will find almost all the pythonwin "app" framework there, including sys.argv handing. Specifically, "/run" might be the option you want (and alternatively, patches that get

Re: [python-win32] scripting pythonwin

2008-07-13 Thread bob gailer
Mark Hammond wrote: import win32ui app = win32ui.GetApp() o=app.OpenDocumentFile("c:\\whatever\\filename") o o.GetEditorView().GetParent().GetParent().GetParent().MoveWindow((0,0,10,10) ) Obviously lots of GetParent() calls - in the real world you would loop until you hit a frame

Re: [python-win32] scripting pythonwin

2008-07-12 Thread bob gailer
Marcus Low wrote: Bob, Do you mean u want to control pythonwin ide itself as somekind of automation? Yes. I already accomplished my first goal based on what Mark told me, a program to open, size & position 5 py file edit windows - something I was doing by hand each time I started the IDE.

Re: [python-win32] scripting pythonwin

2008-07-12 Thread Marcus Low
Bob, Do you mean u want to control pythonwin ide itself as somekind of automation? Else whether its MFC or wxPython, those are for you to develop windows native like apps where u get to do all those thing that u list. If you want to control pythonwin, then its another story. Marcus. bob gail

Re: [python-win32] scripting pythonwin

2008-07-12 Thread bob gailer
Stef Mientki wrote: bob gailer wrote: 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

Re: [python-win32] scripting pythonwin

2008-07-12 Thread Stef Mientki
bob gailer wrote: 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

Re: [python-win32] scripting pythonwin

2008-07-12 Thread Mark Hammond
> 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 splitte

[python-win32] scripting pythonwin

2008-07-12 Thread bob gailer
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