'how can I display the text without going down I am using .pack() in python

displaying in new line

labl2 = Label(text=score, font=30).pack()



Solution 1:[1]

you are calling pack() every time you run the function.

try:

score = 1

labl2 = Label(text=score, font=30)
labl2.pack()

score = 2

labl2["text"] = score

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Theolin Nadasen