J
James Hu
Hi,
There are 2 wxPython application, A and B and need to exchange msg.
Sending WM_CLOSE, wxEVT_MOUSEWHEEL to B is OK, and sending user message
like 1225 from A to B is also OK.
But B didn't catch this message, note, B is running before A sends msg
and can receive "WM_CLOSE".
Do I have to make my own msg loop by using win32api, win32gui? I used
win32gui to post Message to other windows.
Using wx.Frame:
wx.EVT_START_MSG= 1225
EVT_START_MSG_EVENT= wx.PyEventBinder(wx.EVT_START_MSG, 0)
EVT_START_MSG_EVENT(self, self.OnStart)
Or
Self.Bind(EVT_START_MSG_EVENT,self.OnStart)
def OnStart(self, event):
print 'got start message'
Thanks a lot in advance!
James
There are 2 wxPython application, A and B and need to exchange msg.
Sending WM_CLOSE, wxEVT_MOUSEWHEEL to B is OK, and sending user message
like 1225 from A to B is also OK.
But B didn't catch this message, note, B is running before A sends msg
and can receive "WM_CLOSE".
Do I have to make my own msg loop by using win32api, win32gui? I used
win32gui to post Message to other windows.
Using wx.Frame:
wx.EVT_START_MSG= 1225
EVT_START_MSG_EVENT= wx.PyEventBinder(wx.EVT_START_MSG, 0)
EVT_START_MSG_EVENT(self, self.OnStart)
Or
Self.Bind(EVT_START_MSG_EVENT,self.OnStart)
def OnStart(self, event):
print 'got start message'
Thanks a lot in advance!
James