Pythonwin interactive window editing?

Steve Holden sholden at holdenweb.com
Fri Apr 13 15:57:58 EDT 2001


"scott" <smarsh at hotmail.com> wrote in message
news:3AD7560F.9FFDB567 at hotmail.com...
> Just installed Pythonwin (ActivePython build 202) on NT4. Seems very
> nice so far except...
>
> Previously (an hour ago) I used the history feature of IDLE 0.6 that
> came with BeOpen Python 2.0 to recall previous commands (Alt-p etc). Is
> something like this available in the Pythonwin interactive window? I
> uninstalled BeOpen Python 2.0 before installing Pythonwin.
> Thanks in advance.
>
Yup. CTRL/R takes you back to the previous command. If you enter a partial
command before CTRL/R it will take you back to the last command beginning
withe the partial command. Form PythonWin take a look at Help | PythonWin
Help and click on "Keyboard Bindings". It's pretty nice.

> P.S.
> On a related note, I can't seem to use IDLE anymore. I tried to start
> c:\Python20\Tools\IDLE\idle.pyw
> I got an error message (unable to locate DLL tk83.dll). Sure enough,
> this isn't on my system.
> Is IDLE supposed to work using Pythonwin?
>
IDLE and PythonWin are different worlds.

> The following (and the fact that IDLE is included in Activestates
> distribution) seems to indicate it should:
> http://www.activestate.com/ASPN/Downloads/ActivePython/More
> "New in this version: ... this distribution includes the _tkinter module
> which allows the use of the IDLE IDE...
>
I believe this relates to running IDLE under Python, not PythonWin. The
_tkinter module simply enable the Tkinter graphicla interface, which is
built on Tcl/Tk.

> Can I / how can I use IDLE from the Pythonwin distribution?
> Again, thanks for any insights.
>
There have been problems locating the right DLL for Tkinter support in
various Windows distributions.

Faq 8.8 may help, but I don't guarantee it.

"""
8.8. Import of _tkinter fails on Windows 95/98
Sometimes, the import of _tkinter fails on Windows 95 or 98, complaining
with a message like the following:

  ImportError: DLL load failed: One of the library files needed
  to run this application cannot be found.

It could be that you haven't installed Tcl/Tk, but if you did install
Tcl/Tk, and the Wish application works correctly, the problem may be that
its installer didn't manage to edit the autoexec.bat file correctly. It
tries to add a statement that changes the PATH environment variable to
include the Tcl/Tk 'bin' subdirectory, but sometimes this edit doesn't quite
work. Opening it with notepad usually reveals what the problem is.
(One additional hint, noted by David Szafranski: you can't use long
filenames here; e.g. use C:\PROGRA~1\Tcl\bin instead of C:\Program
Files\Tcl\bin.)
"""

regards
 Steve






More information about the Python-list mailing list