Ali Afshar  committed 9ea0237

Added an item activated to the list example

  • Participants
  • Parent commits d0976f5
  • Branches default

Comments (0)

Files changed (1)

File examples/

 listing = ObjectList([
-    Column('name', str, editable=True),
+    Column('name', str, editable=False),
     Column('age', int, editable=True),
     Column('sex', str, choices=[
         ('m', 'Male'),
 def _on_double_clicked(ol, item, event):
     print 'Double clicked', item
+def _on_item_activated(ol, item):
+    print 'Item activated', item
 listing.connect('item-left-clicked', _on_left_clicked)
 listing.connect('item-right-clicked', _on_right_clicked)
 listing.connect('item-middle-clicked', _on_middle_clicked)
 listing.connect('item-double-clicked', _on_double_clicked)
+listing.connect('item-activated', _on_item_activated)
     User("test", 12, 'm')