DirectOptionMenu padding

Hi all,

when using a DirectOptionMenu, is it possible to put some spacing around the text of each item (some padding option maybe) ?
Thanks in advance


from direct.directbase import DirectStart
from direct.gui.DirectGui import *
from panda3d.core import *

DirectOptionMenu( parent = None,
		scale = 0.1,
		pad = (1.5,1.5),
		popupMarkerBorder = (0.5,1.5),
		items = ["Option 1","Option 2"]

You can control the item properties using item_. In your case, what might help is item_pad=(0.5, 0.5).

Excellent! Thanks