mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
display the selected patch in the new image area
This commit is contained in:
parent
593faeaf6b
commit
b1fc4512e4
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue