Re: Fw: [PHP-GTK] expanding the program... FIXED
| From: | Iuri Fiedoruk | Date: | Tue, 29 Jan 2002 22:35:01 +0000 |
| Subject: | Re: Fw: [PHP-GTK] expanding the program... FIXED | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1076@lists.php.net to get a copy of this message | ||
Steph wrote:
$entry->add_events(GDK_KEY_PRESS); I thought it already picked up key press events :-\ ----- Original Message ----- From: "Iuri Fiedoruk" <iuri.f@terra.com.br> To: "Steph" <steph.fox@btinternet.com> Cc: "PHP-GTK gen" <php-gtk-general@lists.php.net> Sent: Tuesday, January 29, 2002 10:25 PM Subject: Re: Fw: [PHP-GTK] expanding the program... FIXEDSo it should be like that? function send_input() {
global $mandar;
$tecla = $input_label->keyval;
echo("Tecla: $tecla \n");
// if($input_label->keyval == GDK_KEY_Return) {
// echo("SEND INPUT\n");
// $mandar = "t";
// }
}
$input_label = $window->get_widget('input_label');
$input_label->add_events(GDK_KEY_PRESS);
$input_label->connect('key_press_event', 'send_input');
I still get nothing :-/
Sorry to ask so many questions about it, but this is a thing I really could not find
elsewhere :)
--
Iuri Fiedoruk, Santa Maria, RS, Brasil.