Skip to content

Instantly share code, notes, and snippets.

View jgreitemann's full-sized avatar

Jonas Greitemann jgreitemann

View GitHub Profile
@andialbrecht
andialbrecht / customtreemodel.py
Created January 5, 2013 19:46
Simple script demonstrating a custom Gtk.TreeModel for Gtk 3 (known as GenericTreeModel in PyGtk 2).
#!/usr/bin/env python3
# This script demonstrates a custom TreeModel (known as
# GenericTreeModel in PyGtk 2).
#
# Note: This script requires python-gi (pygobject) >= 3.4.
from gi.repository import GObject, Gtk