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() offs,col = rhs.get_cursor()
rhs_model = rhs.get_model() rhs_model = rhs.get_model()
row = rhs_model[offs[0]][0] row = rhs_model[offs[0]][0]
selected_patches = self.wTree.get_widget("selected_patches") image = self.wTree.get_widget("current_patch")
selected_patches_model = selected_patches.get_model() image.set_from_file("../../patches/" + row.lower() + ".gif")
selected_patches_model.append(None, [ row ])
def set_texture(self, name): def set_texture(self, name):
# parse the example texture, fetch the width,height; # parse the example texture, fetch the width,height;