Skip to content

Commit cddbecb

Browse files
committed
Testing pushing python
1 parent 9b17055 commit cddbecb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

python/main.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)