|
import tkinter as tk |
|
from tkinter import ttk |
|
|
|
|
|
root = tk.Tk() |
|
root.title("Opentrons Protocol Generator") |
|
|
|
|
|
notebook = ttk.Notebook(root) |
|
notebook.pack(pady=10, expand=True) |
|
|
|
|
|
general_frame = ttk.Frame(notebook) |
|
notebook.add(general_frame, text="General") |
|
|
|
|
|
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) |
|
|
|
|
|
reagents_frame = ttk.Frame(notebook) |
|
notebook.add(reagents_frame, text="Reagents") |
|
|
|
|
|
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") |
|
|
|
|
|
operations_frame = ttk.Frame(notebook) |
|
notebook.add(operations_frame, text="Operations") |
|
|
|
|
|
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") |
|
|
|
|
|
root.mainloop() |