in reply to Problem with Tk::chooseColor on Win32
perl5.8.8 (build 817), Tk804.027, WinXP SP2.
UPDATE
Sorry, didn't read text closely enough. Yeah, ugly bug here also if "Cancel" button is pressed. Sorry.
UPDATE
Ok, simple fix. Just make sure you don't try to assign "undef color", if user press cancel. Maybe add simple if test:
... if ($colour) { $colour_button->configure( -background => $colour, -activeback +ground => $colour ); } ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with Tk::chooseColor on Win32
by jdtoronto (Prior) on May 24, 2007 at 17:43 UTC |