mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
groundwork for editing cell properties in patch list
This commit is contained in:
parent
9dcc234ab1
commit
34fc63316d
1 changed files with 6 additions and 0 deletions
|
@ -173,6 +173,10 @@ class HellowWorldGTK:
|
|||
gtk.gdk.INTERP_NEAREST
|
||||
))
|
||||
|
||||
def cell_callback(self, cellrenderertext, path, new_text):
|
||||
"""cell edited in patch list"""
|
||||
print "LOLLERSKATES"
|
||||
|
||||
def __init__(self):
|
||||
self.gladefile = "cleanroom.glade"
|
||||
self.wTree = gtk.glade.XML(self.gladefile,"window1")
|
||||
|
@ -207,6 +211,8 @@ class HellowWorldGTK:
|
|||
patch_list.set_model(treestore)
|
||||
patch_list.append_column(column)
|
||||
cell = gtk.CellRendererText()
|
||||
cell.set_property("editable", True)
|
||||
cell.connect("edited", self.cell_callback)
|
||||
column.pack_start(cell, False)
|
||||
column.add_attribute(cell, "text", 0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue