[gtk-list] Gtk/Perl more questions =-)




	Thanks to Dermont Musgrove for the help, but i'm reading the
gtk-perl-ref and i don't understand how make a window appears clicking a
button, i have this code:

sub on_boton_1_utiles_clicked {
    my ($class, $data, $object, $instance) = @ARG;
    my $me = __PACKAGE__."->on_boton_1_utiles_clicked";
    # Get ref to hash of all widgets on our form
    my $form = $__PACKAGE__::all_forms->{$instance};
    # REPLACE the line below with the actions to be taken when
__PACKAGE__."->on_boton_1_utiles_cl$
    #__PACKAGE__->show_skeleton_message($me, \@ARG, __PACKAGE__, '');
    $form->{'win_principal'}->{'win_utiles'}->run;    
}

but this error appears:

Can't call method "run" without a package or object reference at
src/SubProject2.pm line 165.

so, how i do to make appears a window?, and how destroy it without exit
the program? 

Sorry for my ingnorance.....and thanks for the help =-)

***************************************____*************
*  Luis Felipe Piccolini Marfull  *   / __ \(_)___  ___*
*    Ingenieria en Computacion    *  / /_/ / / __ \/ _ \
*      Universidad de Chile       * / ____/ / /_/ /  __/
* mailto:lpiccoli@dcc.uchile.cl   */_/   /_/ .___/___/*
* ICQ: 41580700                   *       /_/          *
* http://cipres.cec.uchile.cl/~lpiccoli                *
********************************************************
* "No juzgues a un libro por su tapa...                *
*      juzgalo por sus monitos (imagenes)."  Pipe      *
********************************************************



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