widget confusion

DR ypoi at spray.se
Sun Aug 4 20:35:56 EDT 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