electronics = [] active_expt = None # Curently active experiment fd = None # Phoenix hardware handler root = Tk() size = getsize(root) f = Frame(root) # make the widgets f.pack(side=TOP) left = Frame(f, bg = 'white') left.pack(side = LEFT, anchor = NW) right = Frame(f, bg= 'white') right.pack(side = LEFT, fill = X, expand = 1) # Create the plot2d window & message window Objects plot2d = disp.disp(right, size[0], size[1],'ivory') msgwin = textwin.textwin(root, 50, 15) #Create Expt objects. Pass canvas size, plot2d and msgwin objects Primer = primer.explore(left, size, plot2d, msgwin) Primer.label = 'Explore Phoenix' #List of Physics Experiments Cap = capacitor.cap(left, size, plot2d, msgwin) Cap.label = 'Capacitor Charging' Cap.file = 'capacitor.html' physics.append(Cap) Induction = induction.induction(left, size, plot2d, msgwin) Induction.label = 'Electromagnetic Induction' physics.append(Induction) Trans = transformer.tran(left, size, plot2d, msgwin) Trans.label = 'Mutual Induction between coils'
electronics = [] active_expt = None # Curently active experiment fd = None # Phoenix hardware handler root = Tk() size = getsize(root) f = Frame(root) # make the widgets f.pack(side=TOP) left = Frame(f, bg = 'white') left.pack(side = LEFT, anchor = NW) right = Frame(f, bg= 'white') right.pack(side = LEFT, fill = X, expand = 1) # Create the plot2d window & message window Objects plot2d = disp.disp(right, size[0], size[1],'ivory') msgwin = textwin.textwin(root, 50, nrowtext) #Create Expt objects. Pass canvas size, plot2d and msgwin objects Primer = primer.explore(left, size, plot2d, msgwin) Primer.label = 'Explore Phoenix' #List of Physics Experiments Cap = capacitor.cap(left, size, plot2d, msgwin) Cap.label = 'Capacitor Charging' Cap.file = 'capacitor.html' physics.append(Cap) Induction = induction.induction(left, size, plot2d, msgwin) Induction.label = 'Electromagnetic Induction' physics.append(Induction) Trans = transformer.tran(left, size, plot2d, msgwin) Trans.label = 'Mutual Induction between coils'