actually i have inherited my widgets as shown

GtkVBox --> GtkMyDisplayable ---> GtkMyForm

GtkMyDisplayable has an api gtk_my_displayable_add_command(GtkMyDisplayable
*displayable, gchar *string)
so i do following
>>> form = mygtk.MyForm()
>>>form.displayable_add_command("_____")
it displays following error
"form has no attribute displayable_add_command"

As you said gtk_window_show is used internally than its for sure that typing
window.show() in python will call api of GtkWidget. But in my case its not
happening


varun_shrivastava wrote:
> 
> 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#a12248450
Sent from the Gtk+ - Python mailing list archive at Nabble.com.

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to