Ref the key. This actually is necessary.
[python-gnt.git] / example / xmms / treerow.py
blobc78ef8309c131fa4ded34fd2d81cffab8e5d26fe
1 import gobject
2 import gnt
4 class Row(gobject.GObject):
5 def __init__(self):
6 self.__gobject_init__()
7 self.tagged = False
9 def __del__(self):
10 pass
12 def toggle_tag(self):
13 self.tagged = not self.tagged
15 def get_row_flag(self):
16 if self.tagged:
17 return gnt.TEXT_FLAG_BOLD
18 return gnt.TEXT_FLAG_NORMAL
20 gobject.type_register(Row)