[Python-Dev] Fun with whitespace (original) (raw)

Jeff Epler jepler at unpythonic.net
Wed Jul 21 13:59:29 CEST 2004


On Wed, Jul 21, 2004 at 11:38:12AM +0100, Michael Hudson wrote:

kbk at shore.net (Kurt B. Kaiser) writes:

> Alternatively, PS2 could be four spaces (or do you all prefer the > dots?) and indents could be four spaces. It seems that cut/paste > would work if the reindent first magically replaced '^>>> ' (and > '^...') with ''. Is it possible to have copy/paste see the text w/o prompts? Cheers, mwh

This should be possible, through use of Tk's "selection handle" command, available as Tkinter.Misc.selection_handle() in Python. I've never used this, though, under plain tk or under Python.

Jeff -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20040721/d20d153d/attachment.pgp



More information about the Python-Dev mailing list