Creating a Toolbar in GTK Python(PyGTK)

Creating a toolbar using GTK Python. There is an old method – but this example shows a better method of creating a toolbar using pygtk.

toolbar = gtk.Toolbar()

toolbar_item = gtk.ToolButton("Quit")
toolbar_item.connect("clicked", exit)
toolbar.insert(toolbar_item, -1)
Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

Leave a Reply

Your email address will not be published. Required fields are marked *