signals for copy and paste

Hello,

Can I somehow bind a method to a widget, which get's fired when text is
pasted into the widget (from the clipoard). At least for a TextCtrl
widget?

Thanks,
Johannes

···

--
BYTEWISE Software GmbH Tel +43 (5577) 89877-0
i.A. Johannes Vetter Fax +43 (5577) 89877-66
A-6890 Lustenau, Enga 2 http://www.bytewise.at
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wir bieten Installation und Support für Ubuntu: ein auf
GNU/Linux basierendes Softwaresystem für Arbeitsplatzrechner

Johannes Vetter wrote:

Hello,

Can I somehow bind a method to a widget, which get's fired when text is
pasted into the widget (from the clipoard). At least for a TextCtrl
widget?

On Windows at least there are the EVT_TEXT_CUT, EVT_TEXT_COPY, and
EVT_TEXT_PASTE events. I've never used them so I'm not sure when exactly they are sent, but they are available.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

If i look into the namespace of the wx module there are no such
attributes (wx.EVT_TEXT_CUT/COPY/PASTE). So how could i trap them?
I've found there are id's wx.ID_CUT wx.ID_PASTE, wx.ID_COPY. Is there a
way to catch these Id's via command-event (in a TextCtrl) ?

Thanks,
Johannes

···

Am Montag, den 30.10.2006, 19:10 -0800 schrieb Robin Dunn:

Johannes Vetter wrote:
> Hello,
>
> Can I somehow bind a method to a widget, which get's fired when text is
> pasted into the widget (from the clipoard). At least for a TextCtrl
> widget?

On Windows at least there are the EVT_TEXT_CUT, EVT_TEXT_COPY, and
EVT_TEXT_PASTE events. I've never used them so I'm not sure when
exactly they are sent, but they are available.

--
BYTEWISE Software GmbH Tel +43 (5577) 89877-0
i.A. Johannes Vetter Fax +43 (5577) 89877-66
A-6890 Lustenau, Enga 2 http://www.bytewise.at
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wir bieten Installation und Support für Ubuntu: ein auf
GNU/Linux basierendes Softwaresystem für Arbeitsplatzrechner

Johannes Vetter wrote:

Johannes Vetter wrote:

Hello,

Can I somehow bind a method to a widget, which get's fired when text is
pasted into the widget (from the clipoard). At least for a TextCtrl
widget?

On Windows at least there are the EVT_TEXT_CUT, EVT_TEXT_COPY, and
EVT_TEXT_PASTE events. I've never used them so I'm not sure when exactly they are sent, but they are available.

If i look into the namespace of the wx module there are no such
attributes (wx.EVT_TEXT_CUT/COPY/PASTE).

They may be new in 2.7...

So how could i trap them?
I've found there are id's wx.ID_CUT wx.ID_PASTE, wx.ID_COPY. Is there a
way to catch these Id's via command-event (in a TextCtrl) ?

Not unless the events are coming from the popup menu or something like that.

···

Am Montag, den 30.10.2006, 19:10 -0800 schrieb Robin Dunn:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!