def vp_start_gui(): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.title('SH_Mobot_Configuration') geom = "736x584+690+108" root.geometry(geom) UI_Mobot_Configuration_support.set_Tk_var() w = SH_Mobot_Configuration (root) UI_Mobot_Configuration_support.init(root, w) root.mainloop()
def create_SH_Mobot_Configuration(root, param=None): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel (root) w.title('SH_Mobot_Configuration') geom = "736x584+690+108" w.geometry(geom) UI_Mobot_Configuration_support.set_Tk_var() w_win = SH_Mobot_Configuration (w) UI_Mobot_Configuration_support.init(w, w_win, param) return w_win