Inherit styles from parent widgets
Nam Nguyen <[email protected]> Thu, 15 Mar 2018 14:41:02 -0700
| Newsgroups | gmane.comp.python.tkinter |
|---|---|
| Message-ID | <CA+YNSmV--d2rJB2vMA_E62Hz-MeRo3FE1tzv8ecMtViGA9_4Pw@mail.gmail.com> |
Hi list, Is there any way to inherit common options from parent widgets? Tk Themed widgets allow me to define a hierarchy of styles on different types of widgets. For example, I can have TButton, or Derived.TButton. What I'm asking is if I have a frame with red background color, I would love for all frames (or button, or any widget making use of the background option) placed in that frame to also inherit its redness unless a style has been specified. I guess (but am not sure) that this is similar to Cascade Style Sheet. Thanks! Nam _______________________________________________ Tkinter-discuss mailing list [email protected] https://mail.python.org/mailman/listinfo/tkinter-discuss