aboutsummaryrefslogtreecommitdiff
path: root/test/fill-vs-expand.py
blob: 679321410d4b58612f12c4c3f0ef71d216c7513e (plain)
1
2
3
4
5
6
7
8
9
10
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()