def GetDefaultPath(self, default_path=None): if default_path is None: value = self.path.GetValue() default_path = font_dictionary().get(value, value) if not os.path.isdir(default_path.strip()): for path in FONT_PATHS: if os.path.isdir(path): return path return super(FontFileCtrl, self).GetDefaultPath(default_path)
def _init_fonts(): config.verify_app_user_paths() from lib.fonts import font_dictionary font_dictionary(force=True)
def init_fonts(): from lib.fonts import font_dictionary font_dictionary(force=True)