cherrypy和wxpython [英] cherrypy and wxpython

查看:57
本文介绍了cherrypy和wxpython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用wxpython ui创建一个cherrypy应用程序.问题是两个库都使用闭环事件处理程序.有办法吗?如果我有wx ui,请启动cherrypy来锁定ui?

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?

推荐答案

简而言之,CherryPy默认情况下会处理主循环,但绝对不需要.停止使用快速启动,并在不使用engine.block的情况下调用engine.start,CP将在其自己的线程中运行,并将主线程留给您的其他框架控制.

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.

这篇关于cherrypy和wxpython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆