[wxpython-users] Problem with GetTopLevelParent() (not working
always)
Andrea Gavana
andrea.gavana at gmail.com
Tue Apr 1 08:03:16 PDT 2008
HI Raffaello,
On Tue, Apr 1, 2008 at 3:34 PM, Raffaello Barella wrote:
> Sorry, I do not understand. My problem is that sometimes -not always- the
> message «The object has no attribute 'GetTopLevelParent'» comes from a
> derived control (a wx.grid) that, as such, cannot exist without a parent
> frame.
>
> 2008/4/1, Bob Klahn <bobstones at comcast.net>:
> > At 02:56 AM 4/1/2008, Raffaello Barella wrote:
> > >Working on Windows XP, it happens sometimes that
> > >I get an AttributeError with GetTopLevelParent()
> > >(the message is «The object has no attribute 'GetTopLevelParent'»).
> > >Any idea?
> >
> >
> > You'll get that for any object that doesn't inherit from wx._core.Window.
> >
> > Bob
I'd say we should see a small sample app that reproduces the problem
to be able to drill down to the problem... as far as I know, all
wx.Window derived classes have a GetTopLevelParent method, so I can't
see why a wx.grid.Grid shouldn't have it. BTW, which is your exact
traceback?
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
More information about the wxpython-users
mailing list