- def OnQuit(self, event):
- self.Close(True)
-
- def OnAbout(self, event):
- aboutInfo = wx.adv.AboutDialogInfo()
- aboutInfo.SetName(u'm_Librarian')
- aboutInfo.SetVersion(__version__)
- aboutInfo.SetDescription(
- u'Библиотекарь для библиотек LibRusEc/Flibusta')
- aboutInfo.AddDeveloper(u'Олег Бройтман')
- aboutInfo.SetWebSite(
- u'https://phdru.name/Software/Python/m_librarian/')
- aboutInfo.SetCopyright(u'(C) 2023, 2024 Олег Бройтман')
- aboutInfo.SetLicense(u'GPL')
- wx.adv.AboutBox(aboutInfo)
-
- def OnSize(self, event):
- """Save window size in the session config"""
- size = event.GetSize()
- session_config = get_session_config()
- session_config.set('main_window', 'width', str(size.width))
- session_config.set('main_window', 'height', str(size.height))
- session_config.save()
- event.Skip() # Call other handlers