summaryrefslogtreecommitdiff
path: root/app/learn/pack.py
diff options
context:
space:
mode:
authorchzhang <zch921005@126.com>2022-11-19 19:22:57 +0800
committerchzhang <zch921005@126.com>2022-11-19 19:22:57 +0800
commit1dc741344c41d99be494a2a2f842baf7f0a45702 (patch)
treee45aaa315c43c5361d7caac5f1607028b411f2e6 /app/learn/pack.py
parent8871692049e6139a50b3ac03b9b8555d27d5b022 (diff)
图像九宫格
Diffstat (limited to 'app/learn/pack.py')
-rw-r--r--app/learn/pack.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/learn/pack.py b/app/learn/pack.py
new file mode 100644
index 0000000..9dbd547
--- /dev/null
+++ b/app/learn/pack.py
@@ -0,0 +1,12 @@
+import tkinter as tk
+
+root = tk.Tk()
+
+test = tk.Label(root, text="Red", bg="red", fg="white")
+test.pack(side=tk.BOTTOM)
+test = tk.Label(root, text="Green", bg="green", fg="white")
+test.pack(side=tk.BOTTOM)
+test = tk.Label(root, text="Purple", bg="purple", fg="white")
+test.pack(side=tk.BOTTOM)
+
+tk.mainloop() \ No newline at end of file