0
from tkinter import *
class Teste(object):
def __init__(self):
mestre = Tk()
mestre.title("Aplicação de teste")
mestre.geometry("400x400")
mestre.resizable(False, False)
#Frames
self.frame1 = Frame(mestre, bg = "red")
self.frame1.pack()
self.frame2 = Frame(mestre, bg = "blue")
self.frame2.pack()
mestre.mainloop()
Teste()
Why, even defining the arguments "red" and "blue" respectively to the background parameter of self.frame1 and self.frame2, does the execution of the program return me a screen with the gray background color? There wasn’t supposed to be a screen split in half, each half with a color?
Thank you.
Dear, thank you very much for the answer! Worst of all is that I studied a lot using this same site that you indicated and still had not connected me in this standard of width and height.
– alter4do