Dedication

This document is a collection of Glade3 Python Tutorials. After trying every tutorial I could find on the interweb and most are very dated I finally figured out the basics for getting a Glade3 Python GUI to work and it was so simple I smacked my head on the table for all the problems I had when trying to follow the other tutorials.

This is an almost never seen on the web, tutorials without any ads… I hate tutorials written or stolen solely for profit!

The Tutorials

The following tutorials will progress from the simplest thing I can come up with to more advanced. But if your like me you need to understand the basic foundation first.

These first tutorial will show how to create a super basic GUI that does nothing but exit properly. I hope to progress from there to some kind of working application.

The Scope of Tutorial 1 is:
  • How to add objects to the main window in Glade3.

  • How to create signals in Glade3 for objects.

  • How to link them up in your Python code.

  • How to build your GUI using the GtkBuilder

The Scope of Tutorial 2 is:
  • How to make a Help About dialog box

  • How to show and hide the dialog box

The Scope of Tutorial 3 is:
  • How to push a message to the Status Bar

  • How to pop a message from the Status Bar

  • How to clear all the messages from the Status Bar

  • How to add a new Menu Item

  • How to connect a Menu Item to a Function

Tutorial 3 (updated 11/24/2012)
The Scope of Tutorial 4 is:
  • How to obtain the string from a Text Entry widget

  • How to compute a number when a button is pressed

The Scope of Tutorial 5 is:
  • How to add a Notebook in glade

  • How to append Notebook tabs from python

The Scope of Tutorial 6 is:
  • How to use a ComboBox

  • How to append data into a ComboBox

  • How to return the row selected from a ComboBox

The Scope of Tutorial 7 is:
  • How to pass which button is pressed to your program

Tutorial 7
The Scope of Tutorial 8 is:
  • How add and remove tabs in a Notebook

  • How to move tabs in a Notebook