Tkinter: spinbox command and percent substitutions
Jeff Epler
jepler at unpythonic.net
Sun Nov 9 09:25:09 EST 2003
You'll have to arrange for the Tk -command to contain %x and %y
substitutions, and similarly for the -validatecommand.
The sequence would look something like this:
tkcmd = self.register(self.sbcmd)
self.sb = Tkinter.Spinbox(self, command=(tkcmd, "%x", "%y"))
...
def sbcmd(self, x, y):
print x, y
I don't have 8.4, so I can't test this out exactly.
Jeff
More information about the Python-list
mailing list