예제 #1
0
 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())
예제 #2
0
 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()