Skip to content

Commit

Permalink
动图实现
Browse files Browse the repository at this point in the history
  • Loading branch information
lixing9363 committed Dec 12, 2019
1 parent 5c0f7ed commit d57ea8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions view_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from PIL import Image
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import QSize, QTimer
from PyQt5.QtCore import QSize, QTimer, pyqtSignal, Qt
from PyQt5.QtGui import QMovie
from PyQt5.QtWidgets import *

Expand Down Expand Up @@ -117,10 +117,12 @@ def setupUi(self):
self.pushButton_7.setText("")
self.pushButton_7.setObjectName("pushButton_7")
self.pushButton_7.clicked.connect(self.show_history)
self.textEdit = QtWidgets.QTextEdit(self.frame_3)
self.textEdit =QTextEdit(self.frame_3)
self.textEdit.setGeometry(QtCore.QRect(5, 42, 700, 105))
self.textEdit.setStyleSheet("border:none;background-color: rgb(255, 255, 255);")
self.textEdit.setObjectName("textEdit")


self.pushButton_8 = QtWidgets.QPushButton(self.frame_3)
self.pushButton_8.setGeometry(QtCore.QRect(705, 42, 95, 105))
self.pushButton_8.setStyleSheet("border:none;font: 57 italic 11pt \"Ubuntu\";font: 20pt \"Ubuntu\";background-color: rgb(242, 243, 243);")
Expand All @@ -130,6 +132,7 @@ def setupUi(self):
QtCore.QMetaObject.connectSlotsByName(self)
self.flush_message_list()


def singla_flush_chat(self, msg):
if msg == "FLUSH_CHAT":
self.flush_message_list()
Expand Down Expand Up @@ -319,6 +322,8 @@ def keyPressEvent(self, event):
if event.key() == 16777220 or event.key() == 16777221:
self.send_chat()




if __name__ == '__main__':
app = QApplication(sys.argv)
Expand Down

0 comments on commit d57ea8f

Please sign in to comment.