예제 #1
0
 def __init__(self, s, parent=None):
     self.s = s
     print("欢迎来到群组聊天室")
     self.s.send(b'OK all')
     super(MyMainWindow, self).__init__(parent)
     self.setupUi(self)
     self.th = myThread(self.s)
     self.th.pressed.connect(self.display)
     self.th.start()
     self.pushButton.clicked.connect(self.chat)
     self.pushButton_4.clicked.connect(self.close_window)
예제 #2
0
 def __init__(self, s, obj, parent=None):
     self.s = s
     self.obj = obj
     print("欢迎来到与", obj, "的聊天室")
     #self.setWindowTitle("与%s聊天中"%obj)
     self.s.send(b'OK all')
     super(MyChatWindow, self).__init__(parent)
     self.setupUi(self)
     self.th = myThread(self.s)
     self.th.pressed.connect(self.display)
     self.th.start()
     self.pushButton.clicked.connect(self.chat)
     self.pushButton_4.clicked.connect(self.close_window)
예제 #3
0
 def __init__(self, s, obj, parent=None):
     self.s = s
     self.obj = obj
     print("欢迎来到与", obj, "的聊天室")
     # self.s.send(b'OK all')
     super().__init__()
     self.setupUi(self)
     self.th = myThread(self.s)
     self.th.pressed.connect(self.display)
     self.th.start()
     self.sendBtn.clicked.connect(self.chat)
     self.sendBtn.setEnabled(False)
     self.quitBtn.clicked.connect(self.close_window)
     self.setWindowTitle("和%s聊天中..." % self.obj)
     self.textEdit.textChanged.connect(self.check_button)
예제 #4
0
 def __init__(self, s, ADDR3):
     self.s = s
     self.ADDR3 = ADDR3
     print("欢迎来到群组聊天室")
     self.s.send(b'OK all')
     super(MyMainWindow, self).__init__()
     self.setupUi(self)
     self.num_L = []
     self.n_L = []
     self.msg = ''
     self.th = myThread(self.s)
     self.th.pressed.connect(self.display)
     self.th.answer.connect(self.message_box)
     self.th.jilu.connect(self.show_jilu)
     self.th.start()
     self.sendBtn.clicked.connect(self.chat)
     self.quitBtn.clicked.connect(self.close_window)
     self.tonghuaBtn.clicked.connect(self.yuyintonghua)
     self.on_lineBtn.clicked.connect(self.show_friend)
     self.tableWidget.itemDoubleClicked.connect(self.send_img_textbrowser)
     self.jiluBtn.clicked.connect(self.xiaoxi_jilu)