[pygtk] how to call a method of GtkWidget by using object of GtkWindow

varun_shrivastava shrivastavavarun at yahoo.co.in
Mon Aug 20 19:05:54 WST 2007


hi
as we know that in gtk programming i can call API of a GtkWidget using 
an object of GtkWindow by use of type casting MACROS
ie
i can do as

GtkWindow *window=gtk_window_new();
....
....
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.

Is there any solution to this so that i can call gtk_widget_show by using 
GtkWindow object.
-- 
View this message in context: http://www.nabble.com/how-to-call-a-method-of-GtkWidget-by-using-object-of-GtkWindow-tf4298164.html#a12233919
Sent from the Gtk+ - Python mailing list archive at Nabble.com.



More information about the pygtk mailing list