how to add a key-press event



hi!
This is my first letter here.
I've try to add a key-press event to a entry object by
signal
I did this;
......
$key = Gtk2::Gdk::Event('key-press');
$key -> keyval(105);
$entry -> signal_connect($key => \&CallMeHere);

It didn't work, did I do anything wrong, actually, I
didn't know what I did, how to get connectted to a
key.
thx, a lot.


_________________________________________________________
Do You Yahoo!?
美女明星应有尽有,"一搜"搜遍美图、艳图和酷图
http://image.yisou.com
 
100兆邮箱够不够用?雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]