K
Krisztian VASAS
Hello...
I have some problem with perl-gtk2 and POE...
I'd like to write a small chat client in gtk2, but it doesn't want to
work as I'd like to.
If the program starts, 2 Gtk2::Window is opened (the main window and the
login window). After writing the nick and clicking to the OK button, the
connection should start. In the background I'm watching the OK button's
signal_connect("clicked") event, and I'd like to start a POE::Session
callback, but I can't see the $_[SESSION] variable in signal_connect().
The code is viewable here: http://nomorepasting.com/paste.php?pasteID=14758
The problem is in 200th line.
I could see, that the $var variable contains the $okbutton in akarmi()
function insted of the $_[SESSION].
Thanks for the early answer.
IroNiQ
I have some problem with perl-gtk2 and POE...
I'd like to write a small chat client in gtk2, but it doesn't want to
work as I'd like to.
If the program starts, 2 Gtk2::Window is opened (the main window and the
login window). After writing the nick and clicking to the OK button, the
connection should start. In the background I'm watching the OK button's
signal_connect("clicked") event, and I'd like to start a POE::Session
callback, but I can't see the $_[SESSION] variable in signal_connect().
The code is viewable here: http://nomorepasting.com/paste.php?pasteID=14758
The problem is in 200th line.
I could see, that the $var variable contains the $okbutton in akarmi()
function insted of the $_[SESSION].
Thanks for the early answer.
IroNiQ