示例#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)
示例#2
0
文件: qt.py 项目: 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)
示例#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)
示例#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
示例#5
0
文件: qt.py 项目: 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