Answer the question
In order to leave comments, you need to log in
What is a tcl file in Python tkinter?
I downloaded the source codes of one program written in Python. I open the source folder, and there is only one main.py file, all other files have the .tcl extension.
In main.py, there is a tkinter import and some kind of cycle. The tk.eval commands are also written there, again, I don’t know what it does. This is the first time I've come across this.
With the help of notepad, I opened one tcl file, the code is written there in a programming language that I do not understand. It doesn't look like Python or C++ at all. The syntax is similar to PHP, but again, it's not PHP. I rummaged a little in the internet, I only realized that these are graphic files. Please tell me how can I convert these tcl files into normal Python files. And what is the name of the code on which these files are written
I have been programming for five years both in pluses and in Python, I use tkinter very often, but this is the first time I come across such code
Answer the question
In order to leave comments, you need to log in
TCL is such a programming language. You don't convert it to Python in any way. You will have to learn tcl for this. Of course, his syntax is so poor that you are unlikely to want to learn it. Also, this language is often used in conjunction with Python.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question