in reply to Tk::JComboBox error: Can't set -state to `normal'
can you try the following patch? (The second change is not related to this issue but seems obvious...)
Cheers, Christoph
--- C:\Dokumente und Einstellungen\chris\Desktop\devel\ngre\Tk\JComboB +ox-old.pm Mo Okt 30 05:29:15 2006 +++ C:\Dokumente und Einstellungen\chris\Desktop\devel\ngre\Tk\JComboB +ox.pm So Okt 4 14:05:48 2009 @@ -1030,7 +1030,7 @@ $entry->configure(-background => $bg); } } - if ($fg ne $button->cget('-foreground')) { + if ($fg ne $entry->cget('-foreground')) { $entry->{$SWAP_FG} = $entry->cget('-foreground'); $entry->configure(-foreground => $fg); } @@ -1052,7 +1052,7 @@ $entry->configure(-state => 'normal'); return if $Tk::VERSION >= 804; - my $bg = $entry->{SWAP_BG}; + my $bg = $entry->{$SWAP_BG}; $entry->{$SWAP_BG} = $entry->cget('-background'); $entry->configure(-background => $bg); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk::JComboBox error: Can't set -state to `normal'
by stefbv (Priest) on Oct 04, 2009 at 13:06 UTC |