Оverview of the standard library for creating a GUI in Python
DOI: 10.31673/2412-9070.2020.062628
DOI:
https://doi.org/10.31673/2412-9070.2020.062628Abstract
This article discusses the standard library for creating graphical user interfaces in Python. The relevance of graphical user interface creation tools, the value of the graphical user interface, the latest research and publications related to the tkinter library, the history of the library, the main widgets and geometry managers were analyzed. All the functions responsible for placing the elements of the graphical interface in the window are considered. There are three functions for placing widgets in the window — pack (), grid () and place (). Conclusions are drawn about the disadvantages and advantages of this library. The standard Python GUI library is closely related to the long-known and widely described Tk library, but the most relevant source of information will always be the library documentation on the Python programming language documentation site. The purpose of this article is to review the standard library for creating graphical interfaces in Python. Tkinter is a multi-platform graphical interface library based on Tk tools (widespread in the world of GNU/Linux and other UNIX-like systems, ported to Microsoft Windows, Apple Mac OS), distributed with open source, written by Wall Lumholt and Guido van Rossum. Included in the standard Python library. Tk has long been an integral part of Python. It provides a robust and platform-independent set of tools for windows that is available to Python programmers. However, in terms of usage, Tkinter is relatively easy compared to other libraries. This is a great choice for creating GUI applications in Python, especially if the modern look is not a priority for the program, and a big role is played by functionality and cross-platform speed.
Keywords: programming; programming language; graphical user interfaces; interface; window; widget; library; geometry manager; class; function; python; tkinter; GUI; Tk.
References
1. Grayson J. Python and Tkinter Programming. 2000. 688 р.
2. Програмування числових методів мовою Python: підруч. / А. В. Анісімов, А. Ю. Дорошенко, С. Д. Погорілий, Я. Ю. Дорогий; за ред. А. В. Анісімова. Київ: Видавничо-поліграфічний центр «Київський університет», 2014. 640 с.
3. tkinter — Python interface to Tcl/Tk [Електронний ресурс] // Python Documentation. 2020. URL: https://docs.python.org/3/library/tkinter.html.
4. Tk [Електронний ресурс] // Wikipedia. 2016. URL: https://uk.wikipedia.org/wiki/Tk.
5. tkinter.ttk — Tk themed widgets [Електронний ресурс] // Python Documentation. 2020. URL: https://docs.python.org/3/library/tkinter.ttk.html#ttk-widgets.