Primary selection

3 views
Skip to first unread message

Carsten Grohmann

unread,
May 15, 2013, 2:41:06 PM5/15/13
to wx-users
Hi,

I'd like to track changes in a wxTextCtrl and are looking for a possibility to
track changes triggered by the primary selection on Unix.

Is there an possibility to dustinguish text inserted by pressing keys from
text inserted using the primary selection?

A small test using an event handler for EVT_TEXT doesn't point out differences
between keys and primary selection.

BTW: I use wxPython 2.8.12.1 (gtk2-unicode) on a Linux.

Regards,

Carsten

Vadim Zeitlin

unread,
May 15, 2013, 3:46:56 PM5/15/13
to wx-u...@googlegroups.com
On Wed, 15 May 2013 20:41:06 +0200 Carsten Grohmann wrote:

CG> Is there an possibility to dustinguish text inserted by pressing keys from
CG> text inserted using the primary selection?
CG>
CG> A small test using an event handler for EVT_TEXT doesn't point out differences
CG> between keys and primary selection.

You can use wxEVT_TEXT_PASTE to detect the text pasted by the user but we
don't have anything beyond this currently.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages