Re: Composite Widget Problem
Slaven Rezic <[email protected]>
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
Ala Qumsieh <[email protected]> writes: > --- Slaven Rezic <[email protected]> wrote: > > Add > > > > $w->ConfigSpecs(-background => ["SELF"]); > > > > to the Populate method. > > Heh. I had tried: > > $w->ConfigSpecs(-bg => ["SELF"]); > > but that didn't work because -bg is an alias. Yes, that was also my first try :-) > I also > tried: > > $w->ConfigSpecs(DEFAULT => ["SELF"]); > > and that didn't work either because DEFAULT gets > triggered only if the option was not found in the > Config Specs before. Since the SUPER::Populate calls > ConfigSpecs somewhere in the widget hierarchy, the > option was already defined. > > The problem with your approach is that I need it to > override *ALL* options. It's just -background and -foreground which have the special handling. > Hard-coding all possible > options is ugly. Call me a control-freak, but I don't > want the user to be able to change anything. Actually, > the real reason is that this is for ZooZ (the GUI > builder), and once the user is done building the > project, he/she shouldn't need to modify the options > (although ZooZ does offer a way to do it). > Regards, Slaven -- Slaven Rezic - slaven <at> rezic <dot> de tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN) http://ptktools.sourceforge.net/#tkrevdiff -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to [email protected]