Importing tkinter duplicates printed output Importing tkinter duplicates printed output tkinter tkinter

Importing tkinter duplicates printed output


You see two prints as your named your script tkinter.py so the print shows when you run it with py -3 tkinter.py and you see another as you import again in the script. You are not importing from the tkinter lib but from your own script whose name shadows the tkinter lib.To fix, rename your script and delete any .pyc files in the directory