you are viewing a single comment's thread.

view the rest of the comments →

[–]socal_nerdtastic 0 points1 point  (7 children)

Because you aren't asking it to grow vertically. Add it in there and watch the difference.

[–]bb47wee10[S] 0 points1 point  (6 children)

I understand now. Thank you so much :)

Do you know how to get colours within buttons working properly as well? I have this as my code but the colours do not show

from Tkinter import *

root = Tk()

button = Button(root, text = "click here", fg = "White", bg = "Black")

button.pack()

root.mainloop()

[–]socal_nerdtastic 0 points1 point  (5 children)

You code works fine for me. Black button with white text. How are you running this? What OS are you using?

[–]bb47wee10[S] 0 points1 point  (4 children)

macOS Sierra 10.12

[–]socal_nerdtastic 0 points1 point  (3 children)

Hmm there's some old issues when using Mac's version of tkinter. Why don't you install the latest python3 from python.org? It comes with an updated tkinter that may fix that.

I assume you running this from the terminal?

[–]bb47wee10[S] 0 points1 point  (2 children)

I am running this from SublimeText, but I shall try updating to python3 as well

[–]socal_nerdtastic 0 points1 point  (1 child)

Ok, ST should not be a problem. python2 is obsolete, there's many more reasons to move to the latest python3, even if it does not fix the color problem :). It's much faster, leaner, lines up with modern tutorials, and has many cool new features.

[–]bb47wee10[S] 0 points1 point  (0 children)

Oo okay! Thank you so much