RE: Help!

Hammond, Mark (MHammond@jm.cmutual.com.au)
Sun, 23 Apr 95 09:33:00 PDT

[My mailer strips most headers, so this typically precludes personal EMail
replies unless the EMail address appears in the body of the message]

>I am new with Python and have just installed the version (Win32 1.1, Nov,
3,
>1994)on my PC (I have downloaded 'win32all.tar.gz').
>I run the sample script 'splittst.py' with the 'pythonwi.exe' and it works.
>However I failed to run the rest of the sample scripts (e.g. running the
>editor.py I couldn't get the editor although the message on the status bar
>is 'Script executed without errors'). Anything wrong with the script/me?
Can
>you Advice please!
>Many thanks in advanve.

The "run script" command in PythonWin doesnt really work too well.

But even if it did, it wouldnt have worked the way you tried :-)

editor.py is a normal Python module that exports a class called CEditor. To
make use of this class (which incidently is how the framework opens files
for editing) would be to type at the prompt:
>>> import editor # else open editor.py, and click
# on the "import" toolbar/menu option.
>>> editor.CEditor().Create('filename.txt')

Mark.