This article from our Python in the VE series will discuss using a GUI.
We build a dialog with user entry boxes, a box, buttons, code that creates a room group s chema, code that finds APS files and code that tests for overheating & that exports the results to a spreadsheet. We use an event loop that drives the operation of the dialog.
In this example we use a dialog for data / choice entry for users of a script. We use the Tkinter module to create the dialog and show how the structure of the script is different as have to use an event loop (this waits for the user to do something on the dialog). The example uses a Class structure and is an example of Object Oriented Programming (OOP).
Check out the full guide here
Download sample overheating data here: www.iesve.com/support/faq/zip/using-a-gui.zip
You can view other articles in my VE Python series HERE.