widget confusion

DR ypoi at spray.se
Mon Aug 5 02:35:56 CEST 2002


Here's a problem I can't figure out:

    self.b1=Button(text="Create new entry", command=self.newEntry
    self.b1.grid()
def newEntry(self)
    self.entryX=Entry()
    self.entryX.grid()

Now every time i press the "Create new entry" button a new entry will
be created in the frame. But when i perform an action on entryX (for
example the .get() method) i only access the most recently created
entry. How can i take control of the other ones?



More information about the Python-list mailing list