[PythonCE] Tiny alteration to event-check

2005-02-07 Thread Ed Blake
Tab delimited columns so the results are readable.import sys for p in sys.path: if p[-12:].lower() == "python23.zip": sys.path.append(p + "\\lib-tk") break from Tkinter import * import tkMessageBox def lister(event): text.insert(INSERT, '%s\t%s\t%s\t%s\n' %(event.keycode,ev

Re: [PythonCE] IdleCE Feature Request

2005-02-07 Thread Ed Blake
--- Michael Foord <[EMAIL PROTECTED]> wrote: > A couple of feature requests. The first of which isn't straightforward - > but would be nice. > > 1) Get IdleCE to use the windows clipboard for cut/copy/past operations. > At the moment it's not possible to copy and paste into IdleCE from other

[PythonCE] IdleCE Feature Request

2005-02-07 Thread Michael Foord
A couple of feature requests. The first of which isn't straightforward - but would be nice. 1) Get IdleCE to use the windows clipboard for cut/copy/past operations. At the moment it's not possible to copy and paste into IdleCE from other applications. This would mean finding the right function

Re: [PythonCE] line-endings problem with PythonCE

2005-02-07 Thread Michael Foord
This is because many python files are saved with UNIX line endings instead of windows ones. The easiest solution is simply to get python to open them and then write them back out again. handle = open(filename, 'r') thefile = handle.read() handle.close() open(filename, 'w')..write(thefile) will