miasm
Reverse engineering framework
menu.Handler Class Reference
Inheritance diagram for menu.Handler:
Collaboration diagram for menu.Handler:

Public Member Functions

def __init__ (self, callback)
 
def activate (self, ctx)
 
def update (self, ctx)
 
def register (self, name, label, shortcut=None, tooltip=None, icon=-1)
 
def attach_to_menu (self, menu)
 

Public Attributes

 callback
 
 name
 

Constructor & Destructor Documentation

◆ __init__()

def menu.Handler.__init__ (   self,
  callback 
)
Create a Handler calling @callback when activated

Member Function Documentation

◆ activate()

def menu.Handler.activate (   self,
  ctx 
)

◆ attach_to_menu()

def menu.Handler.attach_to_menu (   self,
  menu 
)

◆ register()

def menu.Handler.register (   self,
  name,
  label,
  shortcut = None,
  tooltip = None,
  icon = -1 
)

◆ update()

def menu.Handler.update (   self,
  ctx 
)

Member Data Documentation

◆ callback

menu.Handler.callback

◆ name

menu.Handler.name

The documentation for this class was generated from the following file: