Thus spoketh Mark Summerfield <l...@qtrac.plus.com> unto us on Thu, 14 Jun 2012 07:54:25 +0100:
> Wow! I hadn't known about the register() method. > AFAIK it isn't in the Tcl/Tk or Tkinter documentation. > (Which makes me wonder what else is missing?) > > Incidentally, in the example above, the '%s' and old value are > redundant. > You're right, I copy'n'pasted that code again, from a more complex example; in the original code I use the "old" value as a kind of "backup" that is used in situations when get() is called while the spinbox is empty, the old value is then used to make sure get() always returns something useful. Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. A father doesn't destroy his children. -- Lt. Carolyn Palamas, "Who Mourns for Adonais?", stardate 3468.1. _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss