Posts about widgets


Printing with Cairo GTK3 and python

Example demonstrating how to draw a graphic and position it on a page for printing complete with preview and printer settings dialog.

GTK-3 custom signals example

Simple example on how to setup, connect to and trigger signals.

GTK-3 Simple opengl app with touch events

Example application mixing gtk, opengl and touch, written as a demo but also as an opengl testing enviroment.

GTK-3 Touchscreen events

Example of catching touch screen events and filtering device type, helpful for making touch friendly gtk apps.

GTK-3 Example downloader using a listbox

Populate a listbox with custom widgets, in this case an example file downloader could be the start of a plugin installer.

GTK-3 OpenGL inside a drawing area

Load a glade file displaying a drawing area widget and setup a context for opengl.

GTK-3 Textview interactions

Load a glade file displaying a textview widget which runs python code on carriage return.

GTK-3 Treeview in treestore mode

Load a glade file displaying a collection of values in a treeview using the treestore hierarchy.

GTK-3 Treeview in liststore mode

Example of using a treeview, the treeview display can be adjusted using different store models in this case we use the liststore model.

GTK-3 Calendars and menus

Load a glade file displaying a menu bar and calendar widget.

App chooer and scale buttons

Load a glade file displaying some scale buttons get value on change, displays some app selector widgets and open the applications.

Displaying dialog boxes

Demonstration of opening various dialog boxes and retrieving the selected values.

Adding progress bars & spinners

Load a progress bar widget and spinner to demonstrate updating and retriving values.

Adding Dropdowns and spin buttons

GTK example of some combo / slecet drop down boxesfor user interaction.

Adding switch and radio widgets

GTK example demonstrating the use of switches and radio buttons.