Why are all tk examples in the Python distribution written in TCL?

Now don't get me wrong, I'm not quite a Python fan, but when you see the Tk directory inside the python directory, you expect ... Well, Python. And yes, I get that Tk came from TCL, but if I had to write TCL to use Tk, I would forget that TK exists and uses a completely different toolbox. (The popularity of this combination completely eludes me.)

Expecting to see a relatively readable language like Python and find TCL is like walking on your nude grandmother. It just visually hurts.

I did not drink cool help when it came to Python, but I use for a simple task that I do not want to worry about C or C ++, and possibly if I want for quick and dirty text processing. It just seems like a cruel joke puts TCL examples in a Python distribution.

Is there an equivalent package that includes examples written in Python?

Edit: I think this also begs the question, is Tk the best option for a dev GUI in Python?

+3
source share
3 answers

There are no Tcl examples in the official Python distribution; any distribution you use should have linked them of your own free will.

IMHO, Tk - , Python. , "Python ", , - " ". - , (, , , ), .

PyQt ( GPL ) wxPython - IMHO - ( , py2exe PyInstaller, ) , , - (, pyui - UI - , PyGame PyOpenGL).

+3

, Python Tkinter wiki .

Tcl? Tcl, Python, ?

+2

TCL/TK - , , .

TCL/TK starkits freewrap , , , , .

TCL/TK 3 , .

, python Tkinter, QT Wxwidgets, .

Tkinter, , TCL TK GUI, tkinter.

, tkinter , - python.

tkinter 2 , wxwidget 80 , , , , .

In addition, today Tkinter applications run faster and better on small devices with limited hardware, ARM or raspberry o smartphones, but wxwidgets is getting slow.

If your application is basic and small, and your platform is not reliable, Tkinter chooses, but if it is large and heavy, and wxwidget o QT chooses from a very large number of resources.

0
source

Source: https://habr.com/ru/post/1714927/


All Articles