My add-on implements a keymap editor. Operator properties are complex, so I want to be able to edit only the members I need.
def draw_keymap_sample( layout ,keyconfing,keymap, idname ) :
for item in keymap.keymap_items :
row = layout.row( align = True )
if item.idname == idname :
row.template_event_from_keymap_item(item)
row.prop(item.properties , "tool_mode" , text = "" )
It seems to work, but if you restart Blender, the settings will be lost.
Is there any good solution?