diff --git a/send.py b/send.py index ad545d1..f2d671d 100644 --- a/send.py +++ b/send.py @@ -27,8 +27,8 @@ class SendApp: self.recv_frame = tk.Frame(window) self.recv_frame.pack(padx=10, pady=10) - self.recv_text = tk.Text(self.recv_frame, height=15, width=50) - self.recv_text.pack() + self.recv_text = tk.Text(self.recv_frame, height=40, width=50) + self.recv_text.pack(expand=True, fill="both") #创建udp对象 self.sk = socket.socket(type=socket.SOCK_DGRAM) self.sk.bind(("127.0.0.1", 5010))