Low Orbit Flux Logo 2 F

Python GUI with guizero - Hello World

Install GUI Zero and tkinter:



pip3 install guizero
pip3 install python3-tk

Here is the basic hello world example:

hello_world_gui.py
from guizero import App, Text app = App(title="Hello World") message = Text(app, text="hello World message!") app.display()

Run the script to launch the GUI:



python3 hello_world_gui.py

Video Instructions

Each Line

Here is what each line does:

Import from guizero:



from guizero import App, Text

Create an app and assign to a variable:



app = App(title="Hello World")

Create a text widget and save inside a variable:



message = Text(app, text="hello World message!")

Tell the app to display:



app.display()