FontPropertiesFrame¶
-
class
ttkwidgets.font.FontPropertiesFrame(master=None, callback=None, label=True, fontsize=11, **kwargs)[source]¶ Bases:
ttk.FrameSimple frame with buttons for Bold, Italic and Underline font types.
-
__init__(master=None, callback=None, label=True, fontsize=11, **kwargs)[source]¶ Create a FontPropertiesFrame.
Parameters: - master (widget) – master widget
- callback (function) – callback with argument (bool bold, bool italic, bool underline, bool overstrike)
- label (str) – show a header label
- fontsize (int) – size of the font on the buttons
- kwargs – keyword arguments passed on to the
ttk.Frameinitializer
-
bold¶ Bold property.
Returns: True if bold is selected Return type: bool
-
italic¶ Italic property.
Returns: True if italic is selected Return type: bool
-
overstrike¶ Overstrike property.
Returns: True if overstrike is selected Return type: bool
-
underline¶ Underline property.
Returns: True if underline is selected Return type: bool
-