Skip to content

Instantly share code, notes, and snippets.

/a.py

Created January 15, 2016 17:04
Show Gist options
  • Save anonymous/4baa67aafd04555eb4e6 to your computer and use it in GitHub Desktop.
Save anonymous/4baa67aafd04555eb4e6 to your computer and use it in GitHub Desktop.
import wx
import wx.lib.agw.toasterbox as TB
from time import sleep
app = wx.App()
panel=wx.Panel(parent=wx.Frame(None))
toaster = TB.ToasterBox(parent=wx.Frame(None), tbstyle=TB.TB_COMPLEX, closingstyle=TB.TB_ONTIME)
toaster.SetPopupPauseTime(3000)
toaster.SetPopupPosition(wx.Point(1050,0))
toaster.SetPopupSize(wx.Size(320, 100))
toaster.SetPopupText("Hello!!\nI am shdasdsadasfasfiva")
wx.CallLater(300, toaster.Play)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment