Post #2420: ![](https://blenderartists.org/user_avatar/blenderartists.org/anminmakura/48/575

πŸ“‹ Metadata

🏷️ Tags

popup-dialog pie-menu ui-customization intermediate solved

  • Pie Menu Editor
  • Popup Dialog Editor
  • Custom tab scripting
  • Layout scripting (lh.save/restore)
  • draw_menu function

πŸ’¬ Content

anminmakura:

For example, if the size of Rows is normal size, the characters may be missed depending on the size of the characters.

The size of the characters will be the same. So the small buttons won’t help:

button_size

anminmakura:

To be honest, I think it would be best to add more free size so that you can manipulate the size with numbers.

You can use Custom tab for this:

lh.save(); row = lh.row(); row.scale_x = 0.5; row.scale_y = 0.5; draw_menu("My Popup Dialog"); lh.restore()

StroBlend:

Also it would be cool to have a setting to give an offset to the popup when embedded into a pie ?

Try to experiment with dx and dy arguments:

draw_menu("My Popup Dialog", frame=True, dx=0, dy=0)

πŸ”— View on Blender Artists