I am trying to create buttons in tkinter within a for loop. And with each loop pass the i count value out as an argument in the command value. So when the function is called
This is how closures work in python. I ran into this problem myself once. You could use functools.partial for this.
for i in range(3): self.button.append(Button(self, text='Game '+str(i+1), command=partial(self.open_this, i)))