display the selected patch in the new image area

This commit is contained in:
Jon Dowland 2008-01-30 18:40:55 +00:00
parent 593faeaf6b
commit b1fc4512e4

View file

@ -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;