Thanks Keith, (As I mentioned in IRC) this bug is from 2005. Apparently Overlay.get_cursor_coords has *never* worked, so you must be the first person to put an Overlay inside another container...
I've added a test and fix on master and the stable-1.1 branch. Thank you! On Fri, Nov 2, 2012 at 5:55 PM, Keith Dart <[email protected]> wrote: > Hello urwid developers, > > I've recently started using urwid for a project. Overall I think it is > really nice, and gets some nice results in a terminal app. I don't see > where to file bugs, however. So I think I'll have to use this list. > > I'm currently getting this error: > > <type 'exceptions.AttributeError'> : 'Overlay' object has no attribute > 'body' /usr/lib64/python2.7/site-packages/urwid/container.py(684) in > get_cursor_coords() > > So I look in the source and see: > > def get_cursor_coords(self, size): > """Return cursor coords from top_w, if any.""" > if not hasattr(self.body, 'get_cursor_coords'): > return None > > > And as far as I can see the Overlay class never does set the "body" > attribute. So I think this is a bug. I'm using urwid 1.1. > > > > Keith Dart > > > > -- > > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Keith Dart <[email protected]> > public key: ID: 19017044 > <http://www.dartworks.biz/> > ===================================================================== > > _______________________________________________ > Urwid mailing list > [email protected] > http://lists.excess.org/mailman/listinfo/urwid _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
