472,133 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

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 833

Post your reply

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.