This test app is so simple you can’t really demonstrate the problem, or the solution .
But if you keep “tb” around as a member of some persistent object ( the main frame, the app, ???) you should be able to call .Play() multiple times.
Chris
···
On Dec 12, 2012, at 1:34 PM, “Мартин Кирилов” marti.kkirilov@gmail.com wrote:
. The problem is that I can’t find a way to use it multiple times. I am up to here now, see my code:
**import wx
from wx.lib.agw import toasterbox as TB
app = wx.PySimpleApp()
panel = wx.Panel(wx.Frame(None, wx.ID_ANY, “gei seks”, size=(100, 100)))
tb = TB.ToasterBox(panel, tbstyle = TB.TB_SIMPLE)
tb.SetPopupSize((300, 100))
tb.SetPopupPositionByInt(3)
tb.SetPopupText(“Shti schupa zubite!”)
tb.SetPopupPauseTime(2000)
tb.SetPopupScrollSpeed(8)
tb.Play()print(“test1”)
app.MainLoop()
print(“test2”)**