I usually use this code to catch if something has focus…
from java.awt import KeyboardFocusManager focusedComponent = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner() if event.propertyName == "selected" and focusedComponent.name == event.source.name: print 'changed'
… this works on textboxes, numeric boxes, dropdowns, etc., but it will not work on a checkbox.
Does anyone have any ideas?
Edit, it doesn’t work on popup calendar either. FocusedComponent.name comes back as None.