from random import randint import serial # used for serial communications. came from <pip3.6 install pyserial> import RR_CommandGenerator # class developed to generate a limited number of TT robot commands import time import pickle root = tk.Tk() root.withdraw() state = RuntimeState.RuntimeState() # Setup main window main_image = Image.open("C:\\Users\\Finlay\\Documents\\Images\\MAIN.jpg") main_image_tk = ImageTk.PhotoImage(main_image) background = tk.Toplevel(root, background='black', width=640, height=480) background.title("PxlRT Studio") background.geometry("640x480") # Create 4 windows that can be displayed in the info panel initialise_panel = Initialise.Initialise(background, state) manual_panel = Manual.Manual(background, state) settings_panel = Settings.Settings(background, state) tileprint_panel = TilePrint.TilePrint(background, state) # Create main controls controls = Controls.Controls(background, initialise_panel, manual_panel, settings_panel, tileprint_panel, state) root.mainloop()
) timeout = [60, 90, 150, 150] opt_dict = { 'CARLA': None, 'HOST': host, 'PORT': port, 'TIMEOUT': timeout, 'OUTPUT_SUMMARY': summary_file, 'RUNNABLE': runnable, 'CAMERAS': cameras, 'WIDTH': width, 'HEIGHT': height, 'WEATHERS': weathers, 'REPETITIONS': repetitions_per_experiment, 'START_GOAL_POSES': start_goal_poses, 'PEDESTRIANS': pedestrians, 'VEHICLES': vehicles, 'EXPERIMENTS_TO_RUN': experiments_to_run } # run experiments run_experiment(opt_dict) if (__name__ == '__main__'): # instance your controller here runnable = Manual() main(runnable)
width=400, height=315, yscrollcommand=vscrollbar.set, scrollregion=(0, 0, 1000, 1000)) c.grid(row=0, column=0, sticky=tk.N + tk.S + tk.E + tk.W) # # # param_pal = tk.Frame(c, bg="grey10") param_pal.place(x=0, y=0) # tk.Label(param_pal, text="oops").pack() for i in range(30): tk.Label(param_pal, text=i, fg="yellow", bg="black").grid(row=i) tk.Entry(param_pal, fg="black").grid(row=i, column=1) id = c.create_window(10, 0, anchor=tk.NW, window=param_pal) vscrollbar.config(command=c.yview) dummyframe.place_forget() iw = Initialise.Initialise(info_initialise) info_initialise.place_forget() mw = Manual.Manual(info_manual) info_manual.place_forget() sw = Settings.Settings(background) root.mainloop()