def RegisterAction(act_name, act_text, act_handler, shortcut, tooltip, icon):
newAction = action_desc_t(
act_name, # The action name. This acts like an ID and must be unique
act_text, # The action text.
act_handler, # The action handler.
shortcut, # Optional: the action shortcut
tooltip, # Optional: the action tooltip (available in menus/toolbar)
icon) # Optional: the action icon (shows when in menus/toolbars)
register_action(newAction)
评论列表
文章目录