Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > glade whit multiple windows

Thread Tools

glade whit multiple windows

Posts: n/a
I'm making a glade-based tool: there is a window "father" that have to
open more child windows, here my code:

sub btnNewMessage_onclick
my $newWin = Gtk2::GladeXML->new('gui/');
my $newForm = $newWin->get_widget('wSMS');

package callbackSMS;
my $ID;
sub init #it's on

sub btnOk_clicked
print $ID;

ok, if I open more than 1 windows, when i click btnOk i get the some
result from all windows.
so when i run the init(), I overwrite the data of the previous window.
What could be the correct method to open more of the some window? i
don't think the package is the best solution.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glade + GTK.Builder() | Missing Handlers | Handler for multiple objects Python 0 02-08-2013 10:40 PM
glade and windows feo@soy.madre C Programming 4 11-09-2006 02:25 PM
Glade for Windows and Python Richard Lyons Python 2 04-18-2005 08:57 AM
are DLLs needed to run glade interfaces in python with Windows? Fernando Python 1 04-13-2005 07:07 PM
Please help a windows user get started with python/glade and an IDE. Al Dykes Python 2 10-15-2004 11:07 PM