gui_styling module¶
Functions for GUI styling.
In addition to the layout file, these functions focus on the style of the elements composing the GUI.
AUTHOR: Timothy Cote, ANL, Fall 2019.
-
class
gui_styling.
WindowStyle
(theme_background_color: str)[source]¶ Bases:
object
The WindowStyle class sets the styling of the window and most elements.
-
DEF_BACKGROUND
¶ The theme background color.
-
fonts
¶ The dictionary of font styles.
-
DEF_FONT
¶ The default body text font.
-
window_height
¶ Window height.
-
window_width
¶ Window width.
-
tab_size
¶ The tab size.
-
small_tab_size
¶ The small tab size.
-
styles
(key: str, default_folder: Optional[str] = None) → Dict[KT, VT][source]¶ The styles within the GUI.
Parameters: - key – The key for a PySimpleGUI element.
- default_folder – The default folder to browse as defined by defaults.txt.
Returns: - A dictionary of the key-value pairs
for a specific type of element given by ‘key’.
Return type: key_style
-