create_action is always called for action_spec, so it allows you to turn off shortcut registry by setting the shortcut to None. If you want to register and still not set a shortcut, use () instead of None.
As for best practice, use whatever feels comfortable for you. create_menu_action is a convenience method to ease the common task of create an action and adding it to a menu.
|