From 0f035c276ccd92aeba91d41de0a6b5c7be6f52ef Mon Sep 17 00:00:00 2001 From: setconst Date: Sat, 6 Jun 2026 09:21:24 -0700 Subject: [PATCH] Add basic GUI for text editor using Tkinter --- class2/day1/GUI.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 class2/day1/GUI.py diff --git a/class2/day1/GUI.py b/class2/day1/GUI.py new file mode 100644 index 0000000..379e5cd --- /dev/null +++ b/class2/day1/GUI.py @@ -0,0 +1,13 @@ +# Importing the GUI +import tkinter as tk + +# Create the main application window +root = tk.Tk() +root.title("setconst's text editor") + +# Create a text editor within the window +editor = tk.Text(root, width=80, height=20) +editor.pack() + +# Keep the window open +root.mainloop()