Module Import alias Import alias ImportFrom alias alias alias alias alias alias alias Import alias ImportFrom alias Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Str Return Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Num Num NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list decorator_list
N/A N/A os N/A sys cute QtCore QtWidgets QtGui use_qt5 connect disconnect form_to_widget N/A idaapi N/A exceptions N/A connect_method_to_signal connect capture_widget N/A N/A widget path N/A None N/A N/A Grab an image of a Qt widget

    Args:
        widget: The Qt Widget to capture
        path (optional): The path to save to. If not provided - will return image data.

    Returns:
        If a path is provided, the image will be saved to it.
        If not, the PNG buffer will be returned.
     N/A use_qt5 N/A N/A pixmap N/A N/A widget grab N/A N/A pixmap N/A N/A N/A QtGui QPixmap grabWidget widget N/A path N/A N/A N/A N/A pixmap save path N/A N/A image_buffer N/A N/A QtCore QBuffer N/A N/A N/A image_buffer open N/A N/A QtCore QIODevice ReadWrite N/A N/A N/A pixmap save image_buffer PNG N/A N/A N/A N/A N/A image_buffer data data N/A get_widget N/A N/A title N/A N/A N/A Get the Qt widget of the IDA window with the given title. N/A tform N/A N/A idaapi find_tform title N/A N/A tform N/A N/A N/A N/A exceptions FormNotFound N/A N/A No form titled {!r} found. format title N/A N/A form_to_widget tform N/A resize_widget N/A N/A widget width height N/A N/A N/A Resize a Qt widget. N/A N/A N/A widget setGeometry 0 0 width height N/A get_window N/A N/A N/A N/A N/A Get IDA's top level window. N/A tform N/A N/A idaapi get_current_tform N/A N/A tform N/A N/A tform N/A N/A idaapi find_tform Output window N/A widget N/A form_to_widget tform N/A window N/A N/A widget window N/A window N/A MenuManager N/A object N/A N/A IDA Menu Manipulation

    Use this class to add your own top-level menus.
    While this is discouraged by the SDK:

    > You should not change top level menu, or the Edit,Plugins submenus

    (documentation for `attach_action_to_menu`, kernwin.hpp)

    Adding top-level menus is useful sometimes.
    Nonetheless, you should be careful and make sure to remove all your menus
    when you are done. Leaving them handing would force users to restart IDA
    to remove them.

    Usage of this class should be as follows:

    >>> # Use the manager to add top-level menus
    >>> menu_manager = MenuManager()
    >>> menu_manager.add_menu("My Menu")
    >>> # Use the standard API to add menu items
    >>> idaapi.attach_action_to_menu("My Menu/", ":My-Action:", idaapi.SETMENU_APP)
    >>> # When a menu is not needed, remove it
    >>> menu_manager.remove_menu("My Menu")
    >>> # When you are done with the manager (and want to remove all menus you added,)
    >>> # clear it before deleting.
    >>> menu_manager.clear()
     __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super MenuManager self __init__ N/A N/A self _window N/A get_window N/A use_qt5 N/A N/A N/A self _menu N/A N/A N/A self _window findChild N/A QtWidgets QMenuBar N/A N/A N/A self _menu N/A N/A N/A self _window findChild N/A QtGui QMenuBar N/A N/A self _menus N/A N/A add_menu N/A N/A self name N/A N/A N/A Add a top-level menu.

        The menu manager only allows one menu of the same name. However, it does
        not make sure that there are no pre-existing menus of that name.
         N/A N/A name N/A self _menus N/A N/A N/A N/A exceptions MenuAlreadyExists N/A N/A Menu name {!r} already exists. format name N/A menu N/A N/A N/A self _menu addMenu name N/A N/A N/A self _menus N/A name menu N/A remove_menu N/A N/A self name N/A N/A N/A Remove a top-level menu.

        Only removes menus created by the same menu manager.
         N/A N/A name N/A self _menus N/A N/A N/A N/A exceptions MenuNotFound N/A N/A Menu {!r} was not found. It might be deleted, or belong to another menu manager. format name N/A N/A N/A N/A self _menu removeAction N/A N/A N/A N/A self _menus N/A name menuAction N/A N/A N/A self _menus N/A name N/A clear N/A N/A self N/A N/A N/A Clear all menus created by this manager. N/A menu N/A N/A N/A self _menus itervalues N/A N/A N/A N/A N/A self _menu removeAction N/A N/A menu menuAction N/A N/A self _menus N/A N/A N/A