Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

•Re: multiple method calls against the same object (f.ex GUI programming)

by merlyn (Sage)
on Oct 28, 2002 at 15:07 UTC ( [id://208518] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (my $window = Gtk::Window->new("toplevel"))
      ->signal_connect(delete => sub { Gtk->exit(0); return })
    ...
      ->border_width(15)
      ->add($btn)
      ->show;
    
  2. or download this
    my $window = Gtk::Window->new("toplevel");
    for ($window) {
    ...
      $_->add($btn);
      $_->show;
    }