How can I hide the name of the variable related to a list box
i want the text in the red box not to be seen
import bpy
from bpy.props import *
class MainPanel(bpy.types.Panel):
bl_idname = "armature.retarget"
bl_label = "Armature retarget"
bl_space_type = "VIEW_3D"
bl_region_type = "UI"
bl_category = 'View'
def draw(self, context):
scene = context.scene
layout = self.layout
layout.label(text="Select Armatures")
layout.prop(context.scene, 'src_arm')
layout.prop(context.scene, 'tgt_arm')
def armatures_items(self, context):
obs = []
for ob in context.scene.objects:
if ob.type == 'ARMATURE':
obs.append((ob.name, ob.name, ""))
return obs
def register():
bpy.utils.register_class(MainPanel)
bpy.types.Scene.src_arm = bpy.props.EnumProperty(items=MainPanel.armatures_items)
bpy.types.Scene.tgt_arm = bpy.props.EnumProperty(items=MainPanel.armatures_items)
def unregister():
bpy.utils.unregister_class(MainPanel)
if __name__ == "__main__":
register()
```