mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
self.wip_textures has work-in-progress texture definitions
This commit is contained in:
parent
191412e840
commit
741e627245
1 changed files with 3 additions and 2 deletions
|
@ -23,6 +23,7 @@ class HellowWorldGTK:
|
|||
def parse_texture_file(self,fname):
|
||||
texture1 = file(fname, "r").read()
|
||||
self.textures = {}
|
||||
self.wip_textures = {}
|
||||
textures = self.textures
|
||||
current = None
|
||||
for line in texture1.split("\n"):
|
||||
|
@ -34,6 +35,7 @@ class HellowWorldGTK:
|
|||
else:
|
||||
line = line.split()
|
||||
current = Texture(line[0],line[1],line[2])
|
||||
self.wip_textures[line[0]] = Texture(line[0],line[1],line[2])
|
||||
textures[line[0]] = current
|
||||
|
||||
def lhs_callback(self, treeview):
|
||||
|
@ -45,9 +47,8 @@ class HellowWorldGTK:
|
|||
def rhs_drag_data_get(self,widget,ctx,selection,targettype,eventtime):
|
||||
print "ZOMG"
|
||||
|
||||
# patchselected on rhs
|
||||
# patch selected on rhs
|
||||
def rhs_select_cb(self, rhs, path, view_column):
|
||||
print "ZOMGLOL"
|
||||
model = rhs.get_model()
|
||||
row = model[path[0]][0]
|
||||
selected_patches = self.wTree.get_widget("selected_patches")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue