How do I create text in a rectangle in Tkinter Canvas?
Because, all what I can do is create 2 separate objects.
I have tried doing this:
rect = canvas.create_rectangle(0,0,100,100,fill="orange")text = canvas.create_text(50,50,text="Hello, Python!")But those were just 2 objects, which I couldn't move both of them using 1 line of code.
So, how do i it?