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

Reply via email to