Hi allis there an easy way of determining where the focus is currently in Leo (body, tree, log...)?
Check out QApplication.focusWidget(). That could be a starting point. I doubt that Leo itself knows in most cases.
Thanks Edward, that sounds very helpful.
AttributeError: 'LeoQtBody' object has no attribute 'objectName'
c.get_focus()
and
g.app.gui.get_focus()
actually return different things...
Heh...AttributeError: 'LeoQtBody' object has no attribute 'objectName'
AttributeError: 'LeoQTreeWidget' object has no attribute 'widget'
Sure - I was just pointing out that the calls seem to return different things for different 'focus parts' of the system.