From d39e8b00ba917bd2ffac08ef5168ee7b637c937d Mon Sep 17 00:00:00 2001 From: Jon Dowland Date: Tue, 29 Jan 2008 23:34:28 +0000 Subject: [PATCH] rhs callback --- tools/cleanroom/tmp_cleanui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/cleanroom/tmp_cleanui.py b/tools/cleanroom/tmp_cleanui.py index 95de1ccc..88ae3c3f 100644 --- a/tools/cleanroom/tmp_cleanui.py +++ b/tools/cleanroom/tmp_cleanui.py @@ -42,6 +42,11 @@ class HellowWorldGTK: row = treeview.get_model()[offs[0]][0] self.set_texture(row) + def rhs_callback(self, rhs): + offs,col = rhs.get_cursor() + row = rhs.get_model()[offs[0]][0] + print row + def set_texture(self, name): # parse the example texture, fetch the width,height; # create Patch objects and stuff them into a list @@ -119,6 +124,7 @@ class HellowWorldGTK: cell = gtk.CellRendererText() column.pack_start(cell, False) column.add_attribute(cell, "text", 0) + rhs.connect("cursor-changed", self.rhs_callback) # set the progress bar up # by default we've "done" all the 1-patch textures