diff --git a/src/controller/mainController.py b/src/controller/mainController.py index fa7f7fb..9c0a6be 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -67,6 +67,7 @@ class Controller(object): widgetUtils.connect_event(self.window, widgetUtils.CLOSE_EVENT, self.exit) widgetUtils.connect_event(self.window, widgetUtils.MENU, self.update_buffer, menuitem=self.window.update_buffer) widgetUtils.connect_event(self.window, widgetUtils.MENU, self.check_for_updates, menuitem=self.window.check_for_updates) + widgetUtils.connect_event(self.window, widgetUtils.MENU, self.window.about_dialog, menuitem=self.window.about) def disconnect_events(self): pub.unsubscribe(self.in_post, "posted") diff --git a/src/wxUI/mainWindow.py b/src/wxUI/mainWindow.py index af7f56a..bcf6364 100644 --- a/src/wxUI/mainWindow.py +++ b/src/wxUI/mainWindow.py @@ -12,7 +12,6 @@ class mainWindow(wx.Frame): mb.Append(buffer, _(u"Buffer")) help_ = wx.Menu() self.about = help_.Append(wx.NewId(), _(u"About {0}").format(application.name,)) - self.about.Enable(False) self.check_for_updates = help_.Append(wx.NewId(), _(u"Check for updates")) mb.Append(help_, _(u"Help")) @@ -80,4 +79,15 @@ class mainWindow(wx.Frame): # info.SetTranslators(application.translators) # info.SetLicence(application.licence) info.AddDeveloper(application.author) - wx.AboutBox(info) \ No newline at end of file + wx.AboutBox(info) + + def about_dialog(self, *args, **kwargs): + info = wx.AboutDialogInfo() + info.SetName(application.name) + info.SetVersion(application.version) + info.SetDescription(application.description) + info.SetCopyright(application.copyright) +# info.SetTranslators(application.translators) +# info.SetLicence(application.licence) + info.AddDeveloper(application.author) + wx.AboutBox(info)