Reverted experiment. Not working

This commit is contained in:
Manuel Cortez 2018-12-12 08:08:07 -06:00
parent 2f175f5529
commit 2feb5bc6ff

View File

@ -126,17 +126,8 @@ class mainWindow(wx.Frame):
self.tb.DeletePage(pos) self.tb.DeletePage(pos)
def notify(self, title, text): def notify(self, title, text):
# try: try:
# self.notification = wx.adv.NotificationMessage(title, text, parent=self) self.notification = wx.adv.NotificationMessage(title, text, parent=self)
# except AttributeError: except AttributeError:
# self.notification = wx.NotificationMessage(title, text) self.notification = wx.NotificationMessage(title, text)
# self.notification.Show() 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)