469,616 Members | 1,699 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,616 developers. It's quick & easy.

how to call a method of GtkWidget by using object of GtkWindow in python

varuns
39
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
Expand|Select|Wrap|Line Numbers
  1. GtkWindow *window=gtk_window_new();
  2. ....
  3. ....
  4. 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 in python.
Aug 20 '07 #1
0 798

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.