From 2feb5bc6ff6c1f22103884b984fab317df203a30 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 12 Dec 2018 08:08:07 -0600 Subject: [PATCH] Reverted experiment. Not working --- src/wxUI/mainWindow.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/wxUI/mainWindow.py b/src/wxUI/mainWindow.py index cae9361..81d87fe 100644 --- a/src/wxUI/mainWindow.py +++ b/src/wxUI/mainWindow.py @@ -126,17 +126,8 @@ class mainWindow(wx.Frame): self.tb.DeletePage(pos) def notify(self, title, text): -# try: -# self.notification = wx.adv.NotificationMessage(title, text, parent=self) -# except AttributeError: -# self.notification = wx.NotificationMessage(title, text) -# self.notification.Show() - tbb= toasterbox.ToasterBox(self, toasterbox.TB_SIMPLE, windowstyle=toasterbox.TB_CAPTION, closingstyle=toasterbox.TB_ONTIME) - tbb.SetPopupSize((200, 100)) - tbb.SetPopupPauseTime(4000) - tbb.SetPopupPositionByInt(3) - tbb.SetPopupText(text) - tbb.SetTitle(title) - tbb.SetUseFocus(True) - print("Notifycation print") - wx.CallAfter(self.Play) \ No newline at end of file + try: + self.notification = wx.adv.NotificationMessage(title, text, parent=self) + except AttributeError: + self.notification = wx.NotificationMessage(title, text) + self.notification.Show() \ No newline at end of file