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
> 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
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
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.
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
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
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
> 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
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