📋 Metadata
- Author: RaphaelBarros
- Date: 2019-09-09 15:48:22
- Type:
question - Reply to: post_02687
- Replies (1): post_02732
💬 Content
roaoao:
Yes, you can add a new Property. Or use
pme.context.globalsin your code (Customtab):var = pme.context.globals.setdefault(“var”, True); sub = L.row(align=True); sub.enabled = var; operator(sub, “pme.exec”, cmd=“pme.context.globals.update(var=not var); open_menu(‘Macro Operator Name’)”, text=slot, icon=icon, icon_value=icon_value)
Is there any way to do something similar, but by deactivating using a Enum Property? I’m calling this property, and using the “open_menu(‘Property’) isn’t working:

I need to deactivate it after I press another button (not the buttons in the property itself).