IDAPython 8.4
|
Public Member Functions | |
__init__ (self, parent, cmd_id) | |
activate (self, ctx) | |
Activate an action. | |
update (self, ctx) | |
Update an action. | |
![]() |
Public Attributes | |
parent = parent | |
cmd_id = cmd_id | |
__init__ | ( | self, | |
parent, | |||
cmd_id ) |
Reimplemented from action_handler_t.
activate | ( | self, | |
ctx ) |
This function implements the core behavior of an action. It is called when the action is triggered, from a menu, from a popup menu, from the toolbar, or programmatically.
Reimplemented from action_handler_t.
update | ( | self, | |
ctx ) |
This is called when the context of the UI changed, and we need to let the action update some of its properties if needed (label, icon, ...)
In addition, this lets IDA know whether the action is enabled, and when it should be queried for availability again.
Note: This callback is not meant to change anything in the application's state, except by calling one (or many) of the "update_action_*()" functions on this very action.
Reimplemented from action_handler_t.
cmd_id = cmd_id |
parent = parent |