batkins has asked for the wisdom of the Perl Monks concerning the following question:
I could subclass the Button widget, but going through all my files and changing all instances of $parent->Button to $parent->MyButton seems klugey at best.
Is it possible to tinker with the X option database programatically? If so, then I could say "myapp.Button.background" should be white, or something to that effect.
TIA, Bill
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting Standard options for Tk widgets
by bobn (Chaplain) on Jun 09, 2003 at 01:15 UTC | |
by bobn (Chaplain) on Jun 09, 2003 at 01:59 UTC | |
by batkins (Chaplain) on Jun 09, 2003 at 01:42 UTC | |
|
Re: Setting Standard options for Tk widgets
by JamesNC (Chaplain) on Jun 09, 2003 at 00:50 UTC | |
by batkins (Chaplain) on Jun 09, 2003 at 01:01 UTC |