def _onGuiShowOptions(self, event): """ Show the options dialog, all options saving is done inside the dialog itself so there is no need for catching the modalresult """ dlg = OptionsDlg.OptionsDlg(self) dlg.Center() if dlg.ShowModal() == wx.ID_OK: viewmgr.app_settings_changed() dlg.Destroy()
def _onShowOnlyUnseen(self, event): """ Toggle filter for seen / unseen events. Also save this in the settings. """ show_unseen = self._show_unseen.GetValue() appcfg.options[appcfg.CFG_SHOW_UNSEEN] = show_unseen viewmgr.app_settings_changed()