[POS-commit] Kiwi/tests test_CListDelegate.py,1.34,1.35
kiko at async.com.br
kiko at async.com.br
Fri May 2 15:40:04 BRST 2003
Update of /cvs/Kiwi/tests
In directory anthem:/tmp/cvs-serv24191/tests
Modified Files:
test_CListDelegate.py
Log Message:
Implement select_instance for CListDelegate.
Index: test_CListDelegate.py
===================================================================
RCS file: /cvs/Kiwi/tests/test_CListDelegate.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- test_CListDelegate.py 17 Apr 2003 13:03:38 -0000 1.34
+++ test_CListDelegate.py 2 May 2003 18:40:01 -0000 1.35
@@ -18,6 +18,9 @@
def clear_click(*args):
cp.clear_list()
+def find_pedro(*args):
+ cp.select_instance(pl[2])
+
def update_instance_0(*args):
pl[0].name = "WARG KIWI"
pl[0].cool = 3
@@ -163,7 +166,8 @@
cp_fake = CListDelegate2(columns_simple, pl[:-2])
-cp = CListDelegate(columns, handler=select_row, mode=gtk.SELECTION_EXTENDED)
+cp = CListDelegate(columns, handler=select_row,
+mode=gtk.SELECTION_BROWSE)
w = gtk.GtkWindow()
w.connect("delete_event", gtk.mainquit)
@@ -198,6 +202,11 @@
b = gtk.GtkButton("Add instance")
b.show()
b.connect("clicked", add_instance)
+v.add(b)
+v.set_child_packing(b, FALSE, FALSE, FALSE, FALSE)
+b = gtk.GtkButton("Find Pedro")
+b.show()
+b.connect("clicked", find_pedro)
v.add(b)
v.set_child_packing(b, FALSE, FALSE, FALSE, FALSE)
b = gtk.GtkButton("Clear List")
More information about the POS-commit
mailing list