Skip to content

7GUIs

7GUIs is a benchmark for GUI toolkits: seven tasks, from a counter to a spreadsheet, each chosen for something toolkits tend to find hard, such as constraints between fields, timers, undo, or a grid of cells that depend on each other. These are yugui's solutions.

Cells

7GUIs task 7. A spreadsheet of columns A–Z and rows 0–99. Double-click a cell to edit it, Enter to commit. A cell holds a number, text, or a formula starting with =.

Source: examples/7guis/cells.py

Circle Drawer

7GUIs task 6. Click on empty space to add a circle. The circle under the pointer (the nearest one, if they overlap) is filled grey. Right-click it for a menu with "Adjust diameter…", which opens a window whose slider resizes it live; closing that window records the new diameter. Creating a circle and each completed resize can be undone and redone.

Source: examples/7guis/circle_drawer.py

Counter

7GUIs task 1, and the canonical iced and Plushie example.

Source: examples/7guis/counter.py

Counter

CRUD

7GUIs task 5. A list of people filtered by surname prefix, name and surname fields, and Create / Update / Delete. Selecting an entry fills the fields; Update and Delete need a selection.

Source: examples/7guis/crud.py

CRUD

Flight Booker

7GUIs task 3. A one-way or return flight, a departure date and a return date (DD.MM.YYYY). The return date is only editable for return flights; a field that doesn't hold a valid date turns red; Book is disabled while a field is invalid or the return comes before the departure. Booking shows a message box.

Source: examples/7guis/flight_booker.py

Flight Booker

Temperature converter

7GUIs task 2. Two fields, Celsius and Fahrenheit, kept in sync both ways. Typing something that is not a number leaves the other field alone.

Source: examples/7guis/temperature.py

Timer

7GUIs task 4. A gauge fills as time passes, until it reaches the duration set with the slider. Raising the duration resumes it; Reset starts over.

Source: examples/7guis/timer.py

Timer