[Tutor] Tkinter

The Dildoge Gamer thedildogegamer at gmail.com
Mon Aug 24 22:31:22 CEST 2015


First off, i dunno if im doing this right. Anyway, in tkinter, im making a
program to store statistics, attributes, ect, and whenever you press a
button labled "Add Attribute" it created a new text box, you have an
unlimited number of text boxes to use. The problem is; they all have the
same name, so the text you type in one of them is copied to all of the
others. My question: How do i make a value go up by one when a button is
clicked, and how do i treat somethings name(The something being the new
attribute you add) as a property, so that when a new one is made, its name
is "Att" and then whatever the value equals. Kinda like if you say -

HiDerr = "Hai"

Hue = "Hue"

print(HiDerr + Hue)

But with tkinter and GUI parts, or whatever you'd like to call it. Thanks.


More information about the Tutor mailing list