Group work: Comparing tools for creating GUI for input/output week projects

Me, Mona and Ken worked together to compare five tools.

Our group work is documented at Mona’s site.

Tkinter

Tkinter package (“Tk interface”) is defined as the “standard Python interface to the Tk GUI toolkit”.

First thing to get strated with tkinter is to install Python. Newest version at time of this group work was 3.9.5, which was installed. Tkinter is installed by default in Python installation.

After installation, Tkinter can be tested by running python -m tkinter in command line.

Tkinter test

Clicking button adds [ ] brackets around “Click me!” text. Screenshots after 1 and 3 clicks.

One click Three clicks

Simple GUI with Tkinter

With help of Iván’s Gitlab wiki pages and GitHub repository and John Elder’s Youtube video‘s first 30 minutes, creating basic elements with Tkinter was easy.

Starting with import, Tk() and mainloop() commands, empty Tkinter window can be produced.

Adding labels (text boxes) and button is quite easy, but packing those to window must not be forgotten!

Tkinter code and window it creates:

Tkinter code and window

Tkinter window after 3 clicks:

Tkinter window, 3 click labels