On 22 Jun 2001 16:50:33 +0100, rob wrote:
> Just a quick question (hopefully)
> How do I subclass GnomeMDIChild properly?
> 
> my code looks like this
> 
> class SingleInvestmentCalculator (GnomeMDIChild) :
>     def __init_ (self):
>         GnomeMDIChild.__init__(self)
>     def add_view (self):
>       ...
> 
> Traceback (innermost last):
>   File "./SingleInvestmentCalculator.py", line 73, in ?
>     sic = SingleInvestmentCalculator()
>   File "/usr/lib/python1.5/site-packages/gnome/ui.py", line 1140, in
> __init__
>     raise RuntimeError, \
> RuntimeError: can only initialise GnomeMDIChild subclasses
> 
> I've tried various incantations but can't seem to make it belive that it is
> infact a subclass
> 
> And is simply redefineing add_view the correct way to overload it?
> 
> thanks 
> 
> rob
> 
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> 

just in case any one else is as big a fool as I am it was a spelling error
__init_ instead of __init__ . 

rob

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to