Python GUI

This week we created a simple GUI or Graphical User Interface in python using the Tkinter library

We first created our application window

We then setup a label with some text. We customised the size and style of it

We then created a button and set its style and size along with custom text

The last thing we did was to add our label and button to the application window and then run our main loop to display the GUI

I added in some new code to allow the button open google.com in whatever web browser you use. Check the full code below to see how I added it to the button code

Previous
Previous

Brick Breaker

Next
Next

Minecraft Hit Block