Kahlua_II has asked for the wisdom of the Perl Monks concerning the following question:
Right now the code does indeed display the concatenation of the bits, but the button's text is never updated$bit_10 = \$bit[10]; $bit_9 = \$bit[9]; $bit_10_9 = $$bit_10 . $$bit_9; $bit_10_9_mb = $r2Frame->Menubutton( -textvariable => \$bit_10_9, -menuitems => [['command' => "00", -command => sub {$bit[10] += 0; $bit[9] = 0;}], ['command' => "01", -command => sub {$bit[10] += 0; $bit[9] = 1;}], ['command' => "10", -command => sub {$bit[10] += 1; $bit[9] = 0;}], ['command' => "11", -command => sub {$bit[10] += 1; $bit[9] = 1;}]], -background => "black", -foreground => "white", -tearoff => 0, -relief => "groove", )->pack(-side => "left", "-after" => $bit_ +11_entry);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ichimunki) Re: Updating concatenated text on a Menubutton
by ichimunki (Priest) on Nov 27, 2001 at 02:17 UTC | |
by Fastolfe (Vicar) on Nov 27, 2001 at 02:27 UTC | |
|
(ar0n: tie) Re: Updating concatenated text on a Menubutton
by ar0n (Priest) on Nov 27, 2001 at 03:52 UTC | |
|
Re: Updating concatenated text on a Menubutton
by Kahlua_II (Initiate) on Nov 27, 2001 at 04:39 UTC | |
by ichimunki (Priest) on Nov 27, 2001 at 05:26 UTC | |
by ichimunki (Priest) on Nov 27, 2001 at 22:51 UTC |