Re: Gtk2::Entry - manipulating key-press-event?
- From: muppet <scott asofyet org>
- To: Martin Junius <mj+gnome ml m-j-s net>
- Cc: gtk-perl-list gnome org
- Subject: Re: Gtk2::Entry - manipulating key-press-event?
- Date: Sat, 27 Nov 2004 16:10:10 -0500
On Nov 27, 2004, at 1:35 PM, Martin Junius wrote:
My idea to achieve this is catching key-press-events, checking for
keypad something, modify the event, and send it on to the application.
Is this the canonical way to do this? Or is there an easier route?
try the GtkEditable's "insert-text" event --- you get an opportunity to
edit the text that will be entered in the entry. there's an example
using it:
http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/Gtk2/
examples/insert-text-test.pl?rev=1.3&view=auto
--
Examples really shouldn't include unexploded ordnance.
-- Joe Smith, referring to an example program i wrote.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]