摘要: qt4guiClient.py:# -*- coding: utf-8 -*-import os,sysfrom PyQt4 import QtCore, QtGuireload(sys)sys.setdefaultencoding('utf-8') from qt4guiPTalk import ... 阅读全文
posted @ 2014-11-02 10:40 WeiJY 阅读(447) 评论(0) 推荐(0) 编辑
摘要: qt4guiServer.py:# -*- coding: utf-8 -*-import sysfrom PyQt4 import QtCore, QtGuiclass ServerGui(QtGui.QDialog): def __init__(self, parent = None): ... 阅读全文
posted @ 2014-11-02 10:34 WeiJY 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 公共模块qt4reactor.py:# -*- coding: utf-8 -*-# Copyright (c) 2001-2008 Twisted Matrix Laboratories.# See LICENSE for details.# Comes from http://sourcecod... 阅读全文
posted @ 2014-11-02 10:27 WeiJY 阅读(788) 评论(0) 推荐(0) 编辑
摘要: 最近学习Python,尝试实现一个简单的局域网聊天室,支持P2P聊天,使用PyQt4编写界面,网络采用twisted,主要仿照swan-talk:(http://code.google.com/p/swan-talk)编写。Msg消息格式如下:+ 收取信息MsgRcv,发送信息MsgSnd。 -... 阅读全文
posted @ 2014-11-02 10:25 WeiJY 阅读(1128) 评论(0) 推荐(0) 编辑