[wxPython-users] Re: wx.py.shell multiline input
Robin Dunn
robin at alldunn.com
Fri Mar 2 12:40:08 PST 2007
Christian wrote:
> SPE Stani's Python Editor wrote:
>> Hi Christian,
>>
>> 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.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list