Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Reset widget configuration to default

by Phinix (Acolyte)
on Dec 20, 2012 at 03:23 UTC ( #1009681=perlquestion: print w/replies, xml ) Need Help??
Phinix has asked for the wisdom of the Perl Monks concerning the following question:

I have a simple, probably extremely obvious question. Say I have a random widget, a button for the sake of the example, and during the coarse of my program I use configure() to set -background to a non-standard color. Is there a simple way to later reset that widget's colors and other options to "default?"

The reason I ask is that just setting the background color to the window color to reset it also creates a noticeable black border around the button I would prefer not exist.

Replies are listed 'Best First'.
Re: Reset widget configuration to default
by zentara (Archbishop) on Dec 20, 2012 at 09:53 UTC
Re: Reset widget configuration to default
by Anonymous Monk on Dec 20, 2012 at 04:30 UTC

    Sure, create a widget with defaults, copy the defaults to widget with not-defaults

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1009681]
Approved by marto
help
Chatterbox?
[choroba]: Discipulus BTW, I loved Settembrini by Mulino Bianco years ago in Italy
[choroba]: then they stopped producing them...
[choroba]: But it seems they make them again?
[ambrus]: what the heck is a tozzetti?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2017-04-27 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (503 votes). Check out past polls.