Re: [Tkinter-discuss] pack(fill=Y) not working as expected

2017-08-07 Thread Beinan Li
I found that the problem applies to Button, but not Label. Using root = tk.Tk() tk.Label(root, text="A", bg='green').pack(side=tk.LEFT, expand=tk.YES, fill=tk.Y) # align to the left-edge, tk.Label(root, text="B", bg='red').pack(side=tk.TOP, expand=tk.YES, fill=tk.BOTH) tk.Label(root, text="C", bg

[Tkinter-discuss] pack(fill=Y) not working as expected

2017-08-07 Thread Beinan Li
Hello Tkinter, I was following a book example code as following: import Tkinter as tk root = tk.Tk() tk.Button(root, text="A").pack(side=tk.LEFT, expand=tk.YES, fill=tk.Y) tk.Button(root, text="B").pack(side=tk.TOP, expand=tk.YES, fill=tk.BOTH) tk.Button(root, text="C").pack(side=tk.RIGHT, expand

Re: [Tkinter-discuss] pack(fill=Y) not working as expected

2017-08-07 Thread Bryan Oakley
On OSX, buttons will not grow vertically. That platform has strict requirements about the look of buttons. On Mon, Aug 7, 2017 at 4:25 AM, Beinan Li wrote: > I found that the problem applies to Button, but not Label. > > Using > > root = tk.Tk() > tk.Label(root, text="A", bg='green').pack(side=t