[Tutor] cannot subclass imported type

spir denis.spir at free.fr
Wed May 13 17:57:57 CEST 2009


Le Wed, 13 May 2009 08:40:25 -0700,
Emile van Sebille <emile at fenx.com> s'exprima ainsi:

> On 5/13/2009 8:32 AM spir said...
> > Hello,
> > 
> > I wanted to subclass the type Window of pyGTK for main app windows (for
> > the obvious reason that they always contain the same init and end code)
> > and run into an unexpected problem: ============================= import
> > pygtk pygtk.require('2.0')
> > import gtk
> > # debug output
> > print gtk
> --------GTK
> 
> > print gtk.Window
> > 
> > # app window
> > class WApp(gkt.Window):
> -------------GKT?

Woops! thanks, Emile!

Denis
------
la vita e estrany


More information about the Tutor mailing list