MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / TTKPartOverrides

Class TTKPartOverrides

PySimpleGUI/PySimpleGUI.py:758–771  ·  view source on GitHub ↗

This class contains "overrides" to the defaults for ttk scrollbars that are defined in the global settings file. This class is used in every element, in the Window class and there's a global one that is used by set_options.

Source from the content-addressed store, hash-verified

756
757
758class TTKPartOverrides:
759 """
760 This class contains "overrides" to the defaults for ttk scrollbars that are defined in the global settings file.
761 This class is used in every element, in the Window class and there's a global one that is used by set_options.
762 """
763
764 def __init__(self, sbar_trough_color=None, sbar_background_color=None, sbar_arrow_color=None, sbar_width=None, sbar_arrow_width=None, sbar_frame_color=None, sbar_relief=None):
765 self.sbar_trough_color = sbar_trough_color
766 self.sbar_background_color = sbar_background_color
767 self.sbar_arrow_color = sbar_arrow_color
768 self.sbar_width = sbar_width
769 self.sbar_arrow_width = sbar_arrow_width
770 self.sbar_frame_color = sbar_frame_color
771 self.sbar_relief = sbar_relief
772
773
774ttk_part_overrides_from_options = TTKPartOverrides()

Callers 3

PySimpleGUI.pyFile · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected