Hi , I wanted to do a dynamic menu ie when a user select the language I want to 
change the title of the labels with the right traduction.

They can choose with checkbuttons 2 language, i Tried this:  

if ($GENERIC eq 'true'){
        $language='Client Ethernet adress';
                        }       

if ($FRENCH eq 'true'){
        $language='Adresse Ethernet du Client';
                        }       

$mw->Label(-textvariable=>\$language)->pack(-anchor=>'w');


------Menu subroutines

......

my $cc = $mnu1->cascade(-label=>'~Language');

$cc-> checkbutton (-label=>'Generic Alcatel', -variable => \$GENERIC);
$cc-> checkbutton (-label=>'French', -variable => \$FRENCH);


But now I have nothing displayed,neither Client ethernet adress nor Adresse 
Ethernet du Client.

Why ? Thanks 

Reply via email to