Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23305

Python Tkinter Canvas root not recognized [duplicate]

$
0
0

I was trying to code a rectangle in Python Tkinter with the Canvas module, and root is not recognized in the line of code below:

rect = tkinter.Canvas(root, width=550, height=820)

I was reading off another Stack Overflow question linked here, but the code shown there doesn't seem to be working.

Tkinter Canvas creating rectangle


Viewing all articles
Browse latest Browse all 23305

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>