By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,330 Members | 1,135 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,330 IT Pros & Developers. It's quick & easy.

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

varuns
P: 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
Share this question for a faster answer!
Share on Google+

Post your reply

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