Files
Artemis/filters.py
2018-10-13 19:17:59 +02:00

14 lines
330 B
Python

from collections import namedtuple
class Filters(object):
def __init__(self, *all_filters):
self.filter_widgets = all_filters
def activate(self):
for f in self.filter_widgets:
f.setEnabled(True)
def deactivate(self):
for f in self.filter_widgets:
f.setEnabled(False)