Re: PyGTK + Glade = weird problem

2006-02-25 Thread sapo
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

Re: PyGTK + Glade = weird problem

2006-02-24 Thread sapo
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

Re: PyGTK + Glade = weird problem

2006-02-24 Thread sapo
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

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
Sorry about that. Your problem is that the show_hide_janela method is setup to be called both on a gtk signal ("destroy") and an event("delete_event"). Callback methods for events take a slightly different signature than signals; they take one extra argument, which represents the triggering even

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
Oops- I didn't read your question carefully enough. That's probably not the problem. Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK + Glade = weird problem

2006-02-24 Thread gsteff
We'd need to see your "scc.glade" file to be sure, but basically, calling the "show" method on the "w_cadcli" object only shows it, not the objects it contains. Again, to be clear, showing a container object doesn't automatically show the objects it contains. In glade, use the "common" tab of the

PyGTK + Glade = weird problem

2006-02-24 Thread sapo
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,