mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-31 16:10:07 +01:00
11 lines
386 B
Python
11 lines
386 B
Python
|
|
def FunctionInAWorkerThread(strs):
|
|
|
|
evt = wx.ThreadEvent()
|
|
evt.SetString(strs)
|
|
|
|
# wx.ThreadEvent.Clone() makes sure that the internal wx.String
|
|
# member is not shared by other string instances:
|
|
wx.TheApp.QueueEvent(evt.Clone())
|
|
|