资源简介

支持发送表情、图片、截图、文件、视频

资源截图

代码片段和文件信息

import socket
import threading
import json  # json.dumps(some)打包   json.loads(some)解包
import tkinter
import tkinter.messagebox
from tkinter.scrolledtext import ScrolledText  # 导入多行文本框用到的包
import time
import requests
from tkinter import filedialog
import vachat
import os
from time import sleep
from PIL import ImageGrab
from netifaces import interfaces ifaddresses AF_INET6

IP = ‘‘
PORT = ‘‘
user = ‘‘
listbox1 = ‘‘  # 用于显示在线用户的列表框
ii = 0  # 用于判断是开还是关闭列表框
users = []  # 在线用户列表
chat = ‘------Group chat-------‘  # 聊天对象 默认为群聊
# 登陆窗口
root1 = tkinter.Tk()
root1.title(‘Log in‘)
root1[‘height‘] = 110
root1[‘width‘] = 270
root1.resizable(0 0)  # 限制窗口大小

IP1 = tkinter.StringVar()
IP1.set(‘127.0.0.1:50007‘)  # 默认显示的ip和端口
User = tkinter.StringVar()
User.set(‘‘)

# 服务器标签
labelIP = tkinter.Label(root1

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-17 18:15  The-chat-room-master\
     目录           0  2020-04-17 18:15  The-chat-room-master\Client_image_cache\
     文件       65536  2020-04-17 18:15  The-chat-room-master\Client_image_cache\snow-mountain-wallpaper-1.jpg
     文件      253952  2020-04-17 18:15  The-chat-room-master\Client_image_cache\snow-mountain-wallpaper-2.jpg
     文件     3194880  2020-04-17 18:15  The-chat-room-master\Client_image_cache\snow-mountain-wallpaper-3.jpg
     文件        1063  2020-04-17 18:15  The-chat-room-master\LICENSE
     文件       87821  2020-04-17 18:15  The-chat-room-master\PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
     文件        1320  2020-04-17 18:15  The-chat-room-master\README.md
     目录           0  2020-04-17 18:15  The-chat-room-master\Server_image_cache\
     文件       65536  2020-04-17 18:15  The-chat-room-master\Server_image_cache\snow-mountain-wallpaper-1.jpg
     文件      253952  2020-04-17 18:15  The-chat-room-master\Server_image_cache\snow-mountain-wallpaper-2.jpg
     文件     3194880  2020-04-17 18:15  The-chat-room-master\Server_image_cache\snow-mountain-wallpaper-3.jpg
     文件       28032  2020-04-17 18:15  The-chat-room-master\client-test.py
     文件       28032  2020-04-17 18:15  The-chat-room-master\client-test2.py
     文件       28032  2020-04-17 18:15  The-chat-room-master\client.py
     目录           0  2020-04-17 18:15  The-chat-room-master\emoji\
     文件        4606  2020-04-17 18:15  The-chat-room-master\emoji\concerned.png
     文件        5481  2020-04-17 18:15  The-chat-room-master\emoji\facepalm.png
     文件        5158  2020-04-17 18:15  The-chat-room-master\emoji\smart.png
     文件        4989  2020-04-17 18:15  The-chat-room-master\emoji\smirk.png
     目录           0  2020-04-17 18:15  The-chat-room-master\images\
     文件       18576  2020-04-17 18:15  The-chat-room-master\images\user1.png
     文件       25306  2020-04-17 18:15  The-chat-room-master\images\user2.png
     文件         148  2020-04-17 18:15  The-chat-room-master\pip-package.txt
     目录           0  2020-04-17 18:15  The-chat-room-master\resources\
     目录           0  2020-04-17 18:15  The-chat-room-master\resources\res2\
     文件       65536  2020-04-17 18:15  The-chat-room-master\resources\res2\snow-mountain-wallpaper-1.jpg
     文件      262006  2020-04-17 18:15  The-chat-room-master\resources\res2\snow-mountain-wallpaper-2.jpg
     文件     3194880  2020-04-17 18:15  The-chat-room-master\resources\res2\snow-mountain-wallpaper-3.jpg
     文件       69381  2020-04-17 18:15  The-chat-room-master\resources\snow-mountain-wallpaper-1.jpg
     文件      262006  2020-04-17 18:15  The-chat-room-master\resources\snow-mountain-wallpaper-2.jpg
............此处省略3个文件信息

评论

共有 条评论