wx.py.shell multiline input

Christian ckkart at hoc.net
Fri Mar 2 16:37:55 PST 2007


Robin Dunn wrote:
>>> In SPE, which uses pyshell, you can do this by selecting code and
>>> pressing Ctrl+Shift+E. I know this functionality is added in pyshell
>>> as I proposed it Robin and he implemented it. I don't remember if
>>> there is a shortcut associated in pyshell as well.
>>
>> I just read that SHIFT+CTRL+V will do the same in a plain pyshell.
>> However I
>> still would prefer if plain pasting worked - on unix with
>> middlde-mouse, without
>> even a key stroke. I guess it is the STC that somehow eats the 'return
>> keys. Any
>> ideas how to change that?
> 
> The 'Paste Plus' command also has code that strips off leading
> interpreter prompt characters ('>>>' or '...') so it allows you to
> copy/paste to/from docs, emails, etc. that may be showing an interactive
> interpreter session.  It seems to me however that the regular paste
> should be able to do the Right Thing for a multi-line text value, at
> least when there are no prompts that need stripping.  If somebody wants
> to check into this and come up with something I'll review a patch.

Where do I have to look for? In STC or shell?

Christian





More information about the wxpython-users mailing list