screen_size¶
Handle small screens by adjusting size of elements
get_figure_size(root, config=None, config_label=C.plot_size)
¶
Return figure size adjusted for screen size in [width, height] inches
Source code in mmg_toolbox/tkguis/misc/screen_size.py
get_screen_size_inches(root, dpi=60)
¶
Return the screen size in inches: [width, height]
Source code in mmg_toolbox/tkguis/misc/screen_size.py
get_text_size(root, config=None)
¶
Return textbox size adjusted for screen size in [characters, lines]
Source code in mmg_toolbox/tkguis/misc/screen_size.py
update_config(root, config)
¶
Update config for screen size