I am trying to follow this tutorial: https://www.youtube.com/watch?v=OqbGRZx4xUc, to code up a game. I'm using macOS, and python on VScode. This is what I have coded so far:
from tkinter import *
root = Tk()
root.configure(bg="black")
root.geometry('1440x720')
root.title("Minesweeper game")
root.resizable(False, False)
top_frame = Frame(root, bg='red', width=180, height=100)
top_frame.place(x=0, y=0, relwidth=1.0)
root.mainloop()
this is all I have coded so far, however, my background colour doesn't change and even the frame doesn't show up. any clue why this may happen? I literally copied the code from the tutorial
from tkinter import ttkinstead offrom tkinter import *?top_frame.place(x=0, y=0, relwidth=1.0, relheight=1.0)