def wx_find_event_by_number(evt_num):

    import wx
    possible = [attr for attr in dir(wx)
                if attr.startswith('wxEVT') and getattr(wx, attr) == evt_num]

    return possible
Find all wx event names that correspond to a certain event number.
dataset/ETHPy150Open enthought/traitsui/traitsui/tests/_tools.py/wx_find_event_by_number