blob: 78844614deeb0d8f4264fa23fcd8b9e8535e632c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from gi.repository import Gtk
def _destroy_cb(widget, data=None):
Gtk.main_quit()
window = Gtk.Window()
window.connect("destroy", _destroy_cb)
tree = Gtk.TreeView()
cell = Gtk.CellRendererToggle()
tree.insert_column_with_attributes(0, 'Test', cell)
window.show_all()
Gtk.main()
|