def __init__(self): UIContextNotification.__init__(self) UIContext.registerNotification(self) self.request_handler = RequestHandler(self) self.client_listener = None self.client = None self.next_tab_lock = threading.Event() self.pgm_mgr = ProgramManager() # binary ninja objects self.widget = None self.view_frame = None self.view = None self.binary_view = None self.frame = None # context self.current_tab = None self.current_pgm = None self.target_tab = None self.base = None self.base_remote = None self.sync_enabled = False self.sync_mode_auto = True self.cb_trace_enabled = False
def __init__(self, widget): UIContextNotification.__init__(self) self.widget = widget # __del__ will not be called because the widget owns a reference to this object. Use # QWidget.destroyed event to know when to stop listening for notifications. self.widget.destroyed.connect(self.destroyed) UIContext.registerNotification(self)