From 8f0751170385989677392f806762a211f99412ef Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Thu, 21 Nov 2024 13:23:10 +0530 Subject: First Commit --- test/fill-vs-expand.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/fill-vs-expand.py (limited to 'test/fill-vs-expand.py') 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() -- cgit v1.2.3