tcl/tk. Alternative file selection dialog for Linux and Android platforms


tcl/tk. Alternative file selection dialog for Linux and Android platforms

Today, the Tcl/Tk scripting language is used not only on computers, but also with success. ported to the Android platform. But it was on this platform that all the shortcomings of the tcl / tk file selection dialog (tk_getSaveFile, tk_getOpenFile or tk_chooseDirectory) became especially visible.

What is wrong with this dialogue? The lack of elementary operations with folders / files in it: create, destroy, rename. No, do not think, in tcl itself, all these mechanisms are, of course, implemented, they simply are not in the dialog GUI. In Linux, this is not so noticeable, but on the Android platform, this dialog causes a lot of inconvenience.

As a result, a balalaika was created (this is how packages / packages for tcl are also called) tkfe (tk file explorer).

When developing the tkfe package, not only the need for at least elementary operations with files / directories was taken into account, but also the desire to have an explorer both in a separate window and in a separate frame, which the user can place as he pleases in his GUI.

The project has a comprehensive example of how to use the package. Naturally, this dialog can also be used on other platforms. It is also easy to port it to Python/TkInter.

Source: linux.org.ru

Add a comment