diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2024-11-21 13:23:10 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2024-11-21 13:23:10 +0530 |
commit | 8f0751170385989677392f806762a211f99412ef (patch) | |
tree | f09ad917798fa313edb77925a1ddbc6de8fb37ce /test/fill-vs-expand.py |
First Commit
Diffstat (limited to 'test/fill-vs-expand.py')
-rw-r--r-- | test/fill-vs-expand.py | 11 |
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() |