Ejemplo n.º 1
0
 def get_init_menu(self):
     try:
         self.widget = form_to_widget(idaapi.get_current_tform())
         if self.widget is None:
             raise Exception()
     except:
         self.widget = form_to_widget(idaapi.find_tform('Output window'))
     self.window = self.widget.window()
     self.menu = self.window.findChild(QtWidgets.QMenuBar)
Ejemplo n.º 2
0
Archivo: qt.py Proyecto: 453483289/Sark
def get_widget(title):
    """Get the Qt widget of the IDA window with the given title."""
    tform = idaapi.find_tform(title)
    if not tform:
        raise exceptions.FormNotFound("No form titled {!r} found.".format(title))

    return form_to_widget(tform)
Ejemplo n.º 3
0
def get_widget(title):
    """Get the Qt widget of the IDA window with the given title."""
    tform = idaapi.find_tform(title)
    if not tform:
        raise exceptions.FormNotFound(
            "No form titled {!r} found.".format(title))

    return form_to_widget(tform)
Ejemplo n.º 4
0
def get_window():
    """Get IDA's top level window."""
    tform = idaapi.get_current_tform()

    # Required sometimes when closing IDBs and not IDA.
    if not tform:
        tform = idaapi.find_tform("Output window")

    widget = form_to_widget(tform)
    window = widget.window()
    return window
Ejemplo n.º 5
0
Archivo: qt.py Proyecto: 453483289/Sark
def get_window():
    """Get IDA's top level window."""
    tform = idaapi.get_current_tform()

    # Required sometimes when closing IDBs and not IDA.
    if not tform:
        tform = idaapi.find_tform("Output window")

    widget = form_to_widget(tform)
    window = widget.window()
    return window