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
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
Oops- I didn't read your question carefully enough. That's probably
not the problem.
Greg
--
http://mail.python.org/mailman/listinfo/python-list
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 event.
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)