schrodinger.infra.fix_sip6_enum_access module

Modify enums in SIP 6 to behave like SIP 4 (e.g. allow QComboBox.InsertAlphabetically in addition to QComboBox.InsertPolicy.InsertAlphabetically). Note that the functions in this module are no-ops under Qt 5.

The typical use for this module would be to compile a SIP module to schrodinger.whatever._my_sip_module and then create a my_sip_module.py that contains:

from ._my_sip_module import * # noqa F403 from schrodinger.infra import fix_sip6_enum_access fix_sip6_enum_access.modify_enum_access(globals(), __name__) del fix_sip6_enum_access

schrodinger.infra.fix_sip6_enum_access.modify_enum_access(*args, **kwargs)[source]