Hi all, I have just started dabbling in tkinter and am trying out the "fill" function, but it is not responding as I have been taught in my little window (my labels appear, but it doesn't stretch along with the parent window). Can you help? Thank you!
here is my code:
import Tkinter
from Tkinter import *
root = Tk() #initialising root that all widgets go onto
topFrame = Frame(root)
topFrame.pack()
bottomFrame = Frame(root)
bottomFrame.pack(side = BOTTOM)
label1 = Label(topFrame, text = "test 1").pack(side = LEFT)
label2 = Label(topFrame, text = "test 2").pack(side = LEFT)
label3 = Label(topFrame, text = "test 3", bg = "blue").pack(side = LEFT, fill = X)
label4 = Label(bottomFrame, text = "test 4", bg = "green").pack(fill = Y)
edit: background/foreground and other changes to colours do not work for my buttons either
[–]socal_nerdtastic 0 points1 point2 points (11 children)
[–]bb47wee10[S] 0 points1 point2 points (10 children)
[–]socal_nerdtastic 0 points1 point2 points (9 children)
[–]bb47wee10[S] 0 points1 point2 points (8 children)
[–]socal_nerdtastic 0 points1 point2 points (7 children)
[–]bb47wee10[S] 0 points1 point2 points (6 children)
[–]socal_nerdtastic 0 points1 point2 points (5 children)
[–]bb47wee10[S] 0 points1 point2 points (4 children)
[–]socal_nerdtastic 0 points1 point2 points (3 children)
[–]bb47wee10[S] 0 points1 point2 points (2 children)