this is really a very annoying issue but there is a solution to it.
import os module and then you have to enter two path variable as follows: Note: please look for the tcl and tk libraries in your python313 folder. and copy the relevant path. for me it can be the fllowing:
import os
os.environ['TCL_LIBRARY'] = r'C:\Users\User1\AppData\Local\Programs\Python\Python313\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Users\User1\AppData\Local\Programs\Python\Python313\tcl\tk8.6'
do it inside the program/script you are writing.
it will defeinitly solve the issue..
get back to me if it doesn't