RE: [Pythoncard-users] frustrating copy and paste behavior in code editor
by Kevin Altis other posts by this author
Jul 8 2002 3:31PM messages near this date
[Pythoncard-users] frustrating copy and paste behavior in code editor
|
Re: [Pythoncard-users] frustrating copy and paste behavior in code editor
> From: David Primmer
>
> I can't tell you how many times I've open a .py file with code editor,
> selected some text and hit ctrl+c and closed the file and gone into
> another file ready to ctrl+v and there was nothing in my clipboard to
> paste. Frustrating. Yes. I have no idea why it works sometimes and not
> others. Is this a known bug? No clipboard between code editor sessions?
I've done it more than you (at least once a day since we've had a shell) and
I've brought it up with Robin and Neil on numerous occasions and so has
Patrick since it also impacts the shell or anything else using wxSTC. I'll
let Robin respond once again to the list for the record. If I remember
correctly this has to do with how the clipboard is handled under GTK/X. The
clipboard from a wxSTC cut or copy will never survive quitting the app. This
really needs to be changed for 2.3.3.
I'm not sure how to work around the current behavior so the clipboard is
preserved on quit, but if there is a way I'll stick it into the component or
framework as soon as Robin or Neil says how it can be done. Even if the
solution is Windows or Mac specific it would be better than the current
behavior which is just plain wrong.
Since text from a wxTextCtrl doesn't ever get destroyed on quit AFAIK, I
thought at one point I could probably create a hidden multi-line wxTextCtrl
during the application close, paste and then copy the data. That would
qualify as a royal hack. If there is nothing special about the data object
in the clipboard, maybe we can just transform that, which would be much less
horrible.
ka
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
David Primmer
Kevin Altis
Neil Hodgson
Robin Dunn
Kevin Altis
Neil Hodgson
Robin Dunn
Kevin Altis
Robin Dunn
Kevin Altis
|