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)
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)
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)
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