Search code examples
pythonwxpythoncherrypy

cherrypy and wxpython


I'm trying to make a cherrypy application with a wxpython ui. The problem is both libraries use closed loop event handlers. Is there a way for this to work? If I have the wx ui start cherrypy is that going to lock up the ui?


Solution

  • See my answer at CherryPy interferes with Twisted shutting down on Windows

    In short, CherryPy handles the main loop by default, but it definitely doesn't need to. Stop using quickstart and call engine.start without engine.block, and CP will run in its own threads and leave the main thread for your other framework to control.