in reply to Unable to completely destroy a Dialog in Perl Tk
Dear Elders, this dialog misbehaves, does not listen to me, what should I do?
Read Coping with Scoping, How do I post a question effectively?, and start posting code that compiles, code like
#!/usr/bin/perl -- use Tk; use Tk::Dialog; my $mw = tkinit; my $snot = "snot"; $mw->Label( -textvariable => \$snot )->pack;; $mw->Button( -text => 'wipe', -command => sub { my $d = $mw->Dialog( -title => "Title", -text => "Text", -buttons => [ "OK", "Cancel" ] ); $d->geometry('200x200+40+40'); $snot .= '('. $d->Show . ")\n"; $d->destroy(); undef $d; }, )->pack; MainLoop; __END__
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unable to completely destroy a Dialog in Perl Tk
by pashanoid (Scribe) on Aug 11, 2011 at 08:21 UTC | |
by Anonymous Monk on Aug 11, 2011 at 09:31 UTC |