We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b17055 commit cddbecbCopy full SHA for cddbecb
python/main.py
@@ -0,0 +1,21 @@
1
+import tkinter as tk
2
+
3
+def main():
4
+ # Create the main window
5
+ root = tk.Tk()
6
+ root.title("Dummy UI Window")
7
+ root.geometry("400x200") # Width x Height
8
9
+ # Add a label
10
+ label = tk.Label(root, text="Hello, this is a dummy UI window!")
11
+ label.pack(pady=20)
12
13
+ # Add a button
14
+ button = tk.Button(root, text="Click Me", command=lambda: label.config(text="Button Clicked!"))
15
+ button.pack()
16
17
+ # Run the Tkinter event loop
18
+ root.mainloop()
19
20
+if __name__ == "__main__":
21
+ main()
0 commit comments