Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Problem with Tk::chooseColor on Win32

by ldln (Pilgrim)
on May 24, 2007 at 16:28 UTC ( #617262=note: print w/ replies, xml ) Need Help??


in reply to Problem with Tk::chooseColor on Win32

Works fine here.

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 ); } ...


Comment on Re: Problem with Tk::chooseColor on Win32
Download Code
Re^2: Problem with Tk::chooseColor on Win32
by jdtoronto (Prior) on May 24, 2007 at 17:43 UTC
    Thanks for the update ldln, yeah, it is kinda ugly! Now all I have to do is figure out how get the nasty little critter back on his feet instead of lying around on his back!

    jdtoronto

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://617262]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-07-28 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls