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