J.Clarke
J.Clarke

Reputation: 370

Why does Tkinter label crash the window python

Python Tkinter label cause window to say not responding when i use it more than once in 5 seconds or so.

Here is my code i am calling it with the variable data which is just a basic string

def print_data(data):
    L1 = Tkinter.Label(app, text="You: " + data)
    L1.pack()

Upvotes: 0

Views: 137

Answers (1)

J.Clarke
J.Clarke

Reputation: 370

I solved the issue i was running the script externally to my main script. I was calling the print data script without calling mainloop(). Thanks everyone :)

Upvotes: 2

Related Questions