Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Problem with Tk::chooseColor on Win32

by ldln (Pilgrim)
on May 24, 2007 at 16:28 UTC ( [id://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 ); } ...

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://617262]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-03-28 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found