aboutsummaryrefslogtreecommitdiff
path: root/test/fill-vs-expand.py
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:23:10 +0530
committerVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:23:10 +0530
commit8f0751170385989677392f806762a211f99412ef (patch)
treef09ad917798fa313edb77925a1ddbc6de8fb37ce /test/fill-vs-expand.py
First Commit
Diffstat (limited to 'test/fill-vs-expand.py')
-rw-r--r--test/fill-vs-expand.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/fill-vs-expand.py b/test/fill-vs-expand.py
new file mode 100644
index 0000000..6793214
--- /dev/null
+++ b/test/fill-vs-expand.py
@@ -0,0 +1,11 @@
+#!/bin/python2
+
+import tkinter as tk
+
+root = tk.Tk()
+root.geometry('200x200+200+200')
+
+tk.Label(root, text='Label', bg='green').pack(expand=False, fill=tk.Y)
+tk.Label(root, text='Label2', bg='red').pack(expand=True, fill=tk.BOTH)
+
+root.mainloop()