From fb4ea24dc920148cd51cc20555960761f5eaded4 Mon Sep 17 00:00:00 2001 From: Jon Dowland Date: Tue, 29 Jan 2008 23:47:56 +0000 Subject: [PATCH] append to the correct list (and now, I sleep) --- tools/cleanroom/tmp_cleanui.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/cleanroom/tmp_cleanui.py b/tools/cleanroom/tmp_cleanui.py index 47e2574e..30340c75 100644 --- a/tools/cleanroom/tmp_cleanui.py +++ b/tools/cleanroom/tmp_cleanui.py @@ -44,12 +44,12 @@ class HellowWorldGTK: def rhs_callback(self, rhs): offs,col = rhs.get_cursor() - model = rhs.get_model() - row = model[offs[0]][0] + rhs_model = rhs.get_model() + row = rhs_model[offs[0]][0] + selected_patches = self.wTree.get_widget("selected_patches") - model.append(None, [ row ]) - print row - print type(model) + selected_patches_model = selected_patches.get_model() + selected_patches_model.append(None, [ row ]) def set_texture(self, name): # parse the example texture, fetch the width,height;