def main(): """ Runs the MAIN PROGRAM. """ print('----------------------------------------------') print('Integration Testing of the INTEGRATED PROGRAM:') print('----------------------------------------------') dc = DataContainer() dc.root = tkinter.Tk() mainframe = ttk.Frame(dc.root) mainframe.grid() # Add new frame methods into the line below,and the text for its button another line down frames = [[ m1.my_frame, m2.tele_frame, m2.waypoints_frame, m2.rand_notes_frame, m1.play_song, m1.follow_line, m1.move_until, m2.complex_movements_frame, m3.Matts_Frame ], [ 'Connect', 'Remote', 'Waypoints', 'Random Notes', 'Play Song', 'Follow Line', 'Move Until Sensor', 'Complex Movements', "Matt's Frame" ]] buttons = [] for k in range(len(frames[0])): buttons += [ttk.Button(mainframe, text=frames[1][k], width=18)] create_button(buttons, k, frames[0][k], dc.root, dc) m1.my_frame(dc.root, dc) dc.root.mainloop()
def main(): """ Runs the MAIN PROGRAM. """ print('----------------------------------------------') print('Integration Testing of the INTEGRATED PROGRAM:') print('----------------------------------------------') my_dc = DataContainer() root = tkinter.Tk() m1.my_frame(root, my_dc) m2.my_frame(root, my_dc) m3.my_frame(root, my_dc) m4.my_frame(root, my_dc) root.mainloop()
def main(): """ Runs the MAIN PROGRAM. """ print('----------------------------------------------') print('Integration Testing of the INTEGRATED PROGRAM:') print('----------------------------------------------') # Run in simulation mode: rb.SIMULATE = False # The root window and the DataContainer object: root = tkinter.Tk() dc = DataContainer() m1.morse_dictionary(dc) # The frames from each team member: frame1 = m1.my_frame(root, dc) frame2 = m2.my_frame(root, dc) frame3 = m3.my_frame(root, dc) frame4 = m4.my_frame(root, dc) # Grid the frames that exist: frames = [frame1, frame2, frame3, frame4] for k in range(len(frames)): if frames[k] is not None: frames[k].grid(row=1, column=k) # The mainloop: root.mainloop()
def main(): """ Calls the TEST functions in this module. """ data = m0.Robot() root = tkinter.Tk() frame1 = m1.my_frame(root, data) frame1.grid(row=0, column=0) frame4 = my_frame(root, data) frame4.grid(row=0, column=1) root.mainloop()
def main(): """ Tests functions in this module. Intended to be used internally by the primary author of this module. """ print("-------------------------------") print("Testing functions in module m4:") print("-------------------------------") data = m0.DataContainer() root = tkinter.Tk() frame1 = m1.my_frame(root, data) frame1.grid(row=0, column=0) frame4 = my_frame(root, data) frame4.grid(row=0, column=1) root.mainloop()
def main(): """ Tests functions in this module. Intended to be used internally by the primary author of this module. """ print('-------------------------------') print('Testing functions in module m3:') print('-------------------------------') root = tkinter.Tk() frame1 = my_frame(root, m0.DataContainer()) frame1.grid(row=0, column=0) frame2 = m2.my_frame(root, m0.DataContainer()) frame2.grid(row=0, column=1) frame3 = m1.my_frame(root, m0.DataContainer()) frame3.grid(row=0, column=2) root.mainloop()
def main(): """ Runs the MAIN PROGRAM. """ print('----------------------------------------------') print('Integration Testing of the INTEGRATED PROGRAM:') print('----------------------------------------------') root = tkinter.Tk() dc = DataContainer() frame1 = m1.my_frame(root, dc) frame2 = m2.my_frame(root, dc) frame3 = m3.my_frame(root, dc) frame4 = m4.my_frame(root, dc) frames = [frame1, frame2, frame3, frame4] for k in range(len(frames)): if frames[k]: frames[k].grid(row=1, column=k + 1) root.mainloop()