in reply to Re: REAL Dynamic tab creation/deletion in Tk::NoteBook.
in thread REAL Dynamic tab creation/deletion in Tk::NoteBook.
Nice isn't part of the landscape, I was just getting "in theme".
TF.
A little button that saves my config file, then destroys the current tab.my $button2=$thistab->Button(-text => 'Save', -background => '#00F +F00', -foreground => 'black', -command => sub { open(NMAPFD, ">nmap.config"); print NMAPFD "$nmap_file_loc"; close(NMAPFD); $tabsinside->delete($nb->info("active")); } )->pack(-side => 'right', -pady => 2, -anchor => 'e');
No need for the variables and counting and such at all. Unfortunately, the documentation at ActivePerl was missing this little gem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: REAL Dynamic tab creation/deletion in Tk::NoteBook.
by zentara (Cardinal) on Jul 19, 2008 at 18:41 UTC |