append to the correct list (and now, I sleep)

This commit is contained in:
Jon Dowland 2008-01-29 23:47:56 +00:00
parent 554baa539c
commit fb4ea24dc9

View file

@ -44,12 +44,12 @@ class HellowWorldGTK:
def rhs_callback(self, rhs): def rhs_callback(self, rhs):
offs,col = rhs.get_cursor() offs,col = rhs.get_cursor()
model = rhs.get_model() rhs_model = rhs.get_model()
row = model[offs[0]][0] row = rhs_model[offs[0]][0]
selected_patches = self.wTree.get_widget("selected_patches") selected_patches = self.wTree.get_widget("selected_patches")
model.append(None, [ row ]) selected_patches_model = selected_patches.get_model()
print row selected_patches_model.append(None, [ row ])
print type(model)
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;