Something that is obviously useful is to be able to find the attributes of the font that is currently being used by a widget. It is not obvious from the description here how one does that. The answer, discovered by painful experimentation and reading source code, is:
tkFont.Font(font=widget.cget('font')).actual()
It would be helpful to include that as one of your "patterns".
Something that is obviously useful is to be able to find the attributes of the font that is currently being used by a widget. It is not obvious from the description here how one does that. The answer, discovered by painful experimentation and reading source code, is:
tkFont.Font(font=widget.cget('font')).actual()
It would be helpful to include that as one of your "patterns".