title: Simple wxPython post event from Process
body: <p>I am trying to create a window that receives simple event notifications from a Process. Here is the code that I have so far:</p>
  
  <pre><code>import wx, wx.lib.newevent, time, sys
  from multiprocessing import Process
  
  size_width = 320
  size_height = 240
  background_color = (226,223,206)
  
  SomeNewEvent, EVT_SOME_NEW_EVENT = wx.lib.newevent.NewEvent()
  
  
  class StatusWindow(wx.Frame):
      def __init__(self, parent):
          super(StatusWindow, self).__init__(parent, title='Monitor', size=(size_width, size_height))
  
          self.Bind(EVT_SOME_NEW_EVENT, self.updateStatus)
  
          staticBox = wx.StaticBox(self, label='Monitor Status:', pos=(5, 105), size=(size_width - 28, size_height/3))
          self.statusLabel = wx.StaticText(staticBox, label='None', pos=(10, 35), size=(size_width, 20), style=wx.ALIGN_LEFT)
          self.count = 0
          self.InitUI()
  
          self.monitor = cMonitor()
          self.monitor.start()
  
      def InitUI(self):
          panel = wx.Panel(self)    
          self.SetBackgroundColour(background_color)
          self.Centre()
          self.Show()
  
      def updateStatus(self, evt):
          self.statusLabel.SetLabel(evt.attr1)
  
  class cMonitor(Process):
      def __init__(self):
          super(cMonitor, self).__init__()
  
      def run(self):
          time.sleep(2)
          print 'This is an update'
          #create the event
          evt = SomeNewEvent(attr1="Some event has just occured")
          #post the event
          wx.PostEvent(EVT_SOME_NEW_EVENT, evt)
  
  if __name__ == '__main__':
      app = wx.App()
      window = StatusWindow(None)
      app.MainLoop()
  </code></pre>
  
  <p>The window gets created, but the Process does not appear to be either executing or sending the post event notification correctly. I should note that the print statement in the run method is not showing up either. What is causing the GUI to not be updated?? This was what I used as a reference:</p>
  
  <p><a href="http://wiki.wxpython.org/CustomEventClasses" rel="nofollow">http://wiki.wxpython.org/CustomEventClasses</a></p>