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