Thread Radiobutton bei bedarf ein und ausblenden (2 answers)
Opened by vayu at 2007-01-04 00:20

PerlProfi
 2007-01-04 00:59
#46055 #46055
User since
2006-11-29
340 Artikel
BenutzerIn
[default_avatar]
Das geht zum Beispiel mit packForget().
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
use strict;
use warnings 'all';
use Tk;

my $mw = tkinit();

my $radio = $mw->Radiobutton(-text => "Radiobutton");
$mw->Button(-text => "Radiobutton einblenden",
-command => sub { $radio->pack })->pack;
$mw->Button(-text => "Radiobutton ausblenden",
-command => sub { $radio->packForget })->pack;

MainLoop;


MfG PerlProfi

View full thread Radiobutton bei bedarf ein und ausblenden