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', T
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 text..
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
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
Man, you saved my day.
I spent all day writing and rewriting stuff, i asked several times on
the #python channel on irc.freenode.org, asked in the ubuntuforums,
asked all people i know that uses python.. and nobody solved it.
And it was a very simple and stupid thing!
thanx a lot it worked perfe
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,