diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index e69b2a92..a5e61da5 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -978,6 +978,13 @@ class FilterOptionsDialog(QDialog): def getFilterOptions(self): return self.filterOptions + @staticmethod + def getFilterObject(): + dlg = FilterOptionsDialog() + if dlg.exec_(): + return dlg.getFilterOptions() + return None + def accept(self): self.updateUi() QDialog.accept(self)