Module braun

Source Code for Module braun

 1  #!/usr/bin/python 
 2  from braun_.braun_gui import * 
 3   
 4  # import inspect, numpy # For py2app/py2exe 
 5   
 6  # Create a queue. 
 7  queue = Queue.Queue(BUFFERSIZE) 
 8   
 9  # Create an application. 
10  application = wx.App() 
11  frame = BraunMainWindow(queue) 
12   
13  # Start the OSC server in a new thread. 
14  from braun_.mod_braun import osc_server 
15  thread.start_new_thread(osc_server, (queue,)) 
16   
17  # Start the event loop. 
18  application.MainLoop() 
19   
20  # Do this or the application hangs when run from the command line. 
21  import sys 
22  sys.exit(0) 
23