def on_btnAdd_clicked(self, widget):
     win = WinFilterSel()
     if win.window.run() == Gtk.ResponseType.OK:
         self.controler.add_filter(
             filters.create_filter(win.selected_filter))
         self.set_state_modified()
     win.window.destroy()
 def _addFilter(self):
     filter = filters.create_filter(self.ui.filterListWidget.currentItem().text())
     print filter.__class__.__name__
     self.onAddFilter.emit(filter)
 def on_btnAdd_clicked(self, widget):
     win = WinFilterSel()
     if win.window.run() == Gtk.ResponseType.OK:
         self.controler.add_filter(filters.create_filter(win.selected_filter))
         self.set_state_modified()
     win.window.destroy()