def OnFilter(self, evt): cat_list=self.__oc.get_category_list() with guihelper.WXDialogWrapper(common_calendar.FilterDialog(self, -1, 'Filtering Parameters', cat_list), True) as (dlg, retcode): if retcode==wx.ID_OK: self.__oc.set_filter(dlg.get()) self.populate(self.__oc.get_display_data())
def _OnFilter(self, _): cat_list = self._type.get_category_list() with guihelper.WXDialogWrapper( common_calendar.FilterDialog(self, -1, 'Filtering Parameters', cat_list), True) as (dlg, retcode): if retcode == wx.ID_OK: self._type.set_filter(dlg.get()) self._populate_lb()