On Mon, 2007-08-20 at 04:05 -0700, varun_shrivastava wrote: > gtk_widget_show(GTK_WIDGET(window)); > > but in python i can't do this because GtkWindow has its own method > gtk_window_show(), so whenever i do window.show() > gtk_window_show() will be called instead of gtk_widget_show.
In PyGTK gtk.Window.show is the same as gtk.Widget.show: >>> import gtk >>> gtk.Widget.show <method 'show' of 'gtk.Widget' objects> >>> gtk.Window.show <method 'show' of 'gtk.Widget' objects> >>> gtk.Widget.show is gtk.Window.show True > Is there any solution to this so that i can call gtk_widget_show by using > GtkWindow object. If you want to be sure you're calling gtk.Widget.show and not an overridden method, you can call it explicitly with gtk.Widget.show(window). _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
