Hi, I’m trying to get an argument from a submenu of a menu.
This is the JSON
{
"caption":"myPlugin"
"mnemonic":"D",
"id":"my_plugin"
"children":
{
"caption":"Fist menu",
"id":"firs_menu",
"children":
{
"caption":"Sub menu",
"children":
{
"caption":"Sub menu two",
"command":"select_sub_menu",
"id":"sub_menu_two",
"checkbox":true,
"arg":{
"menu_id":"somedata"
}
}
]
}
]
}
]
}
]
this is the py code
class SelectSubMenuCommand(sublime_plugin.WindowCommand):
def run(self,menu_id):
print(menu_id)
When I select the menu I receive the error
What I’m doing wrong?
I haven’t found enything about in the documentation or here in the forum.
Someone knows?