📋 Metadata
- Author: roaoao
- Date: 2020-03-01 18:40:00
- Type:
answer - Reply to: post_03048
💬 Content
Colacuve:
I would like for the pie item to react to hide/show based on the condition…
Hi @Colacuve,
Try this code in Custom tab:
is_show = C.window_manager.measureit_run_opengl; text = "Hide" if is_show else "Show"; icon = 'PAUSE' if is_show else 'PLAY'; L.operator("measureit.runopengl", text=text, icon=icon)
❤️ 3 likes