开发者

Turn a pyqt application into a client-server application

I am developping an application using PyQt. I didn't plan in from the start but I would need to turn this application into a client-server application : centralize the code and have potentially many clients connected to it.

The thing is, I'm very bad in network programming. Do you know what would be the steps 开发者_Python百科to follow to achieve that ? Or do you know any tutorial that could help ?

I don't know if it is of any importance for that matter but my program accesses a mysql database.

Any help would be greatly appreciated !


I would suggest using Twisted. It can easily be integrated into PyQt4 and it's a comprehensive network programming library.

Twisted documentation: http://twistedmatrix.com/trac/wiki/Documentation

Reactor that can integrate with PyQt4's event loop: http://twistedmatrix.com/trac/attachment/ticket/1770/qt4reactor.2.py

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜