From b1fc4512e4109cab042cdbaa1975824857add6fa Mon Sep 17 00:00:00 2001 From: Jon Dowland Date: Wed, 30 Jan 2008 18:40:55 +0000 Subject: [PATCH] display the selected patch in the new image area --- tools/cleanroom/tmp_cleanui.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/cleanroom/tmp_cleanui.py b/tools/cleanroom/tmp_cleanui.py index 30340c75..99f32901 100644 --- a/tools/cleanroom/tmp_cleanui.py +++ b/tools/cleanroom/tmp_cleanui.py @@ -46,10 +46,9 @@ class HellowWorldGTK: offs,col = rhs.get_cursor() rhs_model = rhs.get_model() row = rhs_model[offs[0]][0] - - selected_patches = self.wTree.get_widget("selected_patches") - selected_patches_model = selected_patches.get_model() - selected_patches_model.append(None, [ row ]) + + image = self.wTree.get_widget("current_patch") + image.set_from_file("../../patches/" + row.lower() + ".gif") def set_texture(self, name): # parse the example texture, fetch the width,height;