Pull to refresh
8K+

Vector graphics *

SVG and so on

11,07
Rating
Show first
Rating limit
Level of difficulty

Tcl/Tk: SVG‑widgets. In memory of Mats Bengtsson

Level of difficultyMedium
Reading time18 min
Reach and readers3.6K

Few people do not recognize the convenience of tcl/tk in gui development. Moreover, it is tk called Tkinter, and not something else, that is directly integrated into Python, and into many other languages. But as soon as you show an application in which the gui is developed in tk, you can immediately hear - again, this poor, primitive, at best outdated interface. And here I agree with these critics. There have been many attempts to improve the presentability of tk widgets (in addition to ttk widgets), some of which can be viewed here. But even they look a little pale against the background of the user interface on mobile phones, qt or gtk.

My expectations related to the release of tcl/tk-9.0 were also not fulfilled in terms of the appearance of the widgets.

And since I'm a tcl/tk fan, I really want to fix this situation. It is clear that this problem can be solved by using SVG-graphics. Support for SVG-graphics in tcl/tk is implemented through the tkpath package, authored by Mats Bengtsson:

Read more