def themes_window(self): """create themes properties window""" uc.window = Tk() uc.window.grid() uc.window.title(gn.win_themes) uc.window.attributes("-topmost", True) theme_name =Label(uc.window, bg=cs.bgc, text=gn.lbl_theme_name) theme_name.grid_configure(row=0, column=0, columnspan=1) theme_name_tt = tt(theme_name, "load themes here, will be replacing with a standard dialog box soon", waittime=100, wraplength=250, text_size=12) theme_display =Entry(uc.window) theme_display.grid_configure(row=0, column=1, columnspan=1, sticky="NSEW") save_theme_button =Button(uc.window, text=gn.btn_save_theme, command=lambda: theme_prompt(theme_display, uc.file_display)) save_theme_button.grid_configure(row=0, column=2, columnspan=1, sticky="NSEW") save_theme_tt = tt(save_theme_button, "save current config to theme, if you type an existing theme name it will overwrite it") open_theme_label =Label(uc.window, text=gn.lbl_open_theme) open_theme_label.grid_configure(row=1, column=0, sticky='NSEW') theme_list = read_theme_list() option_header =StringVar(uc.window) option_header.set(theme_list[0]) themes_list =OptionMenu(uc.window, option_header, *theme_list) themes_list.grid_configure(row=1, column=1, columnspan=1, sticky="NSEW") themes_list_tt = tt(themes_list, "select name of theme you want to load", text_size=12) theme_button =Button(uc.window, text=gn.btn_load_theme) theme_button.grid_configure(row=1, column=2, columnspan=1, sticky="NSEW") theme_button.config(command=lambda: get_theme(uc, uc.file_display, option_header, uc.custom_window)) theme_button_tt = tt(theme_button, "load selected theme", text_size=12) uc.window.mainloop()