not responding in tkinter when click button completely

not responding in tkinter when click button completely

Jul 18 ’21
Comments: 1
Answers: 0
0

Client Code:

import tkinter as tk
from tkinter.filedialog import asksaveasfilename
import tkinter.messagebox
from PIL import Image
import socket
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
def ConnectToServer():
    HOST=entry.get()
    PORT=65432
    test=True
    try:
        s.connect((HOST,PORT))
    except Exception as e:
        tkinter.messagebox.showerror(title="Error",message="Error")
        test=False
    if test:
        tkinter.messagebox.showinfo(title="Noti",message="Connect Successfully")
def takeScreen():
    msg="TAKEPIC"
    s.sendall(bytes(msg,"utf8"))
    file = open('server_image.jpg', "wb")
    image_chunk = s.recv(2048)
    while image_chunk:
        if


Open Full Question

Help me,please.
I’m beginner in python laguage

原文链接:not responding in tkinter when click button completely

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容