Python Tkinter throwing Tcl error

前端 未结 8 1657
孤城傲影
孤城傲影 2021-02-20 13:23

I am learning basic GUI in Python, and I came across a sample example to read file name from file explorer on Stack Overflow.

from Tkinter import Tk
from tkFileD         


        
8条回答
  •  北荒
    北荒 (楼主)
    2021-02-20 14:05

    Go to directory in which all of your python dependencies are stored

    Example:

    Python37 
      -DLLs
      -Doc
      -etc
      -include
      -Lib
      -libs
      -Scripts
      -tcl
      -python.exe
    

    Go to tcl folder, copy the tcl8.5 and tk8.5 folder Paste these folders in the Lib folder

    This solution works for Windows 10 users

提交回复
热议问题