Button sizes for my calculator Python Tkinter
python, tkinter
Solution
F3AR3DLEGEND is incorrect, you can get the desired effect using `grid`. You would need to use the `columnspan` keyword to make a widget span multiple columns, e.g.
bttn_0.grid(row = 5, column = 0, pady = 5, columnspan = 2)
For examples, see here.
Problem
I'm new to python and tkinter. I've been watching and studying a few tutorials over the past couple of days and my first project was a calculator. Got a little confused somewhere down the line. If someone could please tell me how I can make the "0" button fill in the gap between the "." button. Also would like the "+/-" to fit evenly with the rest of the column. I saw in another question similar to this a guy gave an answer as ``` button1.config( height = WHATEVER, width = WHATEVER2 ) ``` Since I have my buttons placed in a grid, can I implement this and how? ``` bttn_0 = Button(calc, text = "0") bttn_0["command"] = lambda: sum1.num_press(0) bttn_0.grid(row = 5, column = 0, pady = 5) ```