import tkinter as tk from tkinter import ttk # Create the main window root = tk.Tk() root.title("Opentrons Protocol Generator") # Create a notebook for different sections notebook = ttk.Notebook(root) notebook.pack(pady=10, expand=True) # Create the "General" tab general_frame = ttk.Frame(notebook) notebook.add(general_frame, text="General") # Add widgets to the "General" tab num_samples_label = ttk.Label(general_frame, text="Number of Samples:") num_samples_label.grid(row=0, column=0, padx=5, pady=5, sticky="w") num_samples_entry = ttk.Entry(general_frame) num_samples_entry.grid(row=0, column=1, padx=5, pady=5) # Create the "Reagents" tab reagents_frame = ttk.Frame(notebook) notebook.add(reagents_frame, text="Reagents") # Add widgets to the "Reagents" tab reagent_label = ttk.Label(reagents_frame, text="Reagents:") reagent_label.grid(row=0, column=0, padx=5, pady=5, sticky="w") reagents_listbox = tk.Listbox(reagents_frame, height=5) reagents_listbox.grid(row=1, column=0, padx=5, pady=5, sticky="ew") add_reagent_button = ttk.Button(reagents_frame, text="Add Reagent") add_reagent_button.grid(row=2, column=0, padx=5, pady=5, sticky="w") # Create the "Operations" tab operations_frame = ttk.Frame(notebook) notebook.add(operations_frame, text="Operations") # Add widgets to the "Operations" tab operation_label = ttk.Label(operations_frame, text="Operations:") operation_label.grid(row=0, column=0, padx=5, pady=5, sticky="w") operations_listbox = tk.Listbox(operations_frame, height=5) operations_listbox.grid(row=1, column=0, padx=5, pady=5, sticky="ew") add_operation_button = ttk.Button(operations_frame, text="Add Operation") add_operation_button.grid(row=2, column=0, padx=5, pady=5, sticky="w") # Start the main event loop root.mainloop()