I wanted to do my first tkinter code with python3, but when I used the code below a window opens up without any text. If somebody nows how to fix this please let me now. I already have the latest version of tkinter and I am using the mac terminal
P.S. When I try to open the window with tkinter, this error message always pops up:
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
This is my code.
from tkinter import *
root = Tk()
myLabel1 = Label (root, text="Hello World!")
myLabel2 = Label (root, text="My name is Bugs Bunny.")
myLabel1.grid(row=0, column=0)
myLabel2.grid(row=1,column=0)
root.mainloop()