Help for this page

Select Code to Download


  1. or download this
      my $label = $frame->Label('Name' => 'title',
                                -text => 'Tk Names Tutorial');
      my $dialog = $top->DialogBox(-title => 'Generated Names',
                                   -buttons => [ 'OK' ]);
      my $page = $notebook->add('Bill', -label => 'Billing');
    
  2. or download this
      my $title = $frame->direct_descendant('title');
      my $button = $dialog->direct_descendant('bottom.button');
      my $bill = $notebook->direct_descendant('Bill');
    
  3. or download this
      my $title = $top->descendant('*title');
      my $mnuTerms = $notebook->descendant('*Bill*terms');
    
  4. or download this
      print join("\n", $notebook->list_descendant_names()), "\n";
      print $mnuTerms->full_name(), "\n";
    
  5. or download this
    # Save this code to a file called MyTkUtils.pm.
    # Then from your main script, add "use MyTkUtils".
    ...
    }
    
    1;