def OnSetFilters(self, event):
        # get the root context (used for the possible filtering options)
        data = self._dag_tree.GetPyData(self._dag_tree.GetRootItem())
        if not data:
            wx.MessageBox("No data loaded")
            return
        root_ctx, root_node = data

        toolbar = event.EventObject
        tool_id = event.GetId()
        toolbar.ToggleTool(tool_id, not toolbar.GetToolToggled(tool_id))

        # show the filters dialog
        dlg = FiltersDialog(self, root_ctx, self._ctx_filter, self._cat_filter)
        dlg.CenterOnScreen()
        if wx.ID_OK != dlg.ShowModal():
            # update the active filter
            self._ctx_filter = None
            if dlg.IsCtxFiltered():
                self._ctx_filter = dlg.GetCtxFilter()

            self._cat_filter = None
            if dlg.IsCategoryFiltered():
                self._cat_filter = dlg.GetCategoryFilter()

            toolbar.ToggleTool(tool_id, dlg.IsCtxFiltered() or dlg.IsCategoryFiltered())

            self._dag_tree.Collapse(self._dag_tree.GetRootItem())
            self._dag_tree.Expand(self._dag_tree.GetRootItem())

        toolbar.Refresh()
        self.RefreshAll()
dataset/ETHPy150Open manahl/mdf/mdf/viewer/frame.py/MDFViewerFrame.OnSetFilters/operator `==` -> `!=`