def create_Unsign_Backup(root, *args, **kwargs): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel(root) top = Unsign_Backup(w) unsign_support.init(w, top, *args, **kwargs) return (w, top)
def vp_start_gui(): """Starting point when module is the main routine.""" global root root = Tk() if sys.platform.__contains__("win") and not sys.platform.__contains__("darwin"): root.iconbitmap(bitmap=defs.getWorkingDir()+'\icon.ico') top = Unsign_Backup(root) unsign_support.init(root, top)