def vp_start_gui(l_serialconfig): '''Starting point when module is the main routine.''' global val, w, root root = Tk() root.geometry('600x450+497+117') w = frm_Comport1(root) PM2_support.init(root, w) print('via: vp_start_gui' ) root.mainloop()
def create_Test_Comport1(root, param=None): '''Starting point when module is imported by another program.''' global w, w_win, rt rt = root w = Toplevel (root) w.title('Test_Comport1 ') w.geometry('600x450+497+117') w_win = frm_Comport1(w) PM2_support.init(w, w_win, param) print('via: create_Test_Comport1' ) return w_win