This is my code:
def list(self):
tree = self.principal.get_widget(list)
self.list = gtk.ListStore(bool,str)
self.options = [1,programa1]
renderer1 = gtk.CellRendererToggle()
renderer1.set_property('activatable',
Finally solved this stuff, the problem wasnt with glade, the problem
was that i was using the destroy event in glade, i just changed the
destroy to delete-event and it worked like a charm.
thanx :)
--
http://mail.python.org/mailman/listinfo/python-list
Hi all, i m trying to make an editable list with a toggle button, it
shows up and i can edit the list.. but its editing the wrong cell!
If i click on the toggle button on the first cell it sets FALSE on the
last cell of that row, if i change the text of the last cell if changes
another cell
Hi all, i ve started learning pygtk with glade, i m just making some
test stuff. but i got some problems with simple things.
I designed 2 windows on glade, then exported it and loaded in the
python script, the second window is hidden by default, then i wrote a
function to show it up, ok it shows,
Anyway, now i tried in my glade app and i m getting this error when i
try to show the window:
GtkWarning: gtk_paint_flat_box: assertion `style-depth ==
gdk_drawable_get_depth (window)' failed
here is the code:
class main:
def __init__(self):
self.principal = gtk.glade.XML(scc.glade)