Message from Python discussions
November 2018
— Help me!!!
Def chat_Client():
while True:
try:
msg = sock.recv(1024).decode('utf8')
msg_list.insert(tk.END, msg)
print(msg)
except OSError:
break
def chatForm():
app.withdraw()
app2 = tk.Tk()
app2.title('naDus')
ventana = tk.Frame(app2, width=750, height=500)
ventana.grid()
my_msg = tk.StringVar()
my_msg.set("")
msg_list = tk.Listbox(app2, background="#FFF", bd=0)
msg_list.place(width=750, height=470, x=0, y=0)
sendMessage = tk.Entry(app2, textvariable=my_msg, bd=0)
sendMessage.bind("<Return>",)
sendMessage.place(width=750, height=30, x=0, y=470)
receive_thread = Thread(target = chat_Client)
receive_thread.start()
— NameError: name 'msg_list' is not defined
— We can just convince microsoft and apple to have python preinstalled on their systems by default
— This is not the appropriate way to ask for help
— I’ll make sure to call billy 2morrow first thing in the morning
— Please ? my english is very bad
— Also, post your code in a paste, so it's easier for us to analyze
— Read the rules
— This is telling you everything
— Define msg_list
— Check your code again, there's no definition of msg_list in your code