schrodinger.ui.widget.default module

Functions to set up defaults so that Tkinter widgets match the old Schrodinger GUI style.

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.ui.widget.default.FIXED_WIDTH_FONT = '-b&h-lucidatypewriter-medium-r-normal-sans-12-*'

Below we set all Maestro Defaults to appropriate variables. NOTE: The variable names here do not perfectly correspond to those from Maestro.

schrodinger.ui.widget.default.font_catcher()

Utility for grabbing prefered Fonts just as Maestro does. The preference files are parsed, and if no preferences are set, defaults are used. Also, since defaults have changed in the past, we attempt to use the proper defaults given the version of Maestro that is being used. Defaults also used to depend on monitor resolution. font_catcher determines the monitor resolution and attempts to take appropriate action.