diff options
author | Barry Warsaw <barry@python.org> | 2000-02-25 21:54:19 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-02-25 21:54:19 (GMT) |
commit | 7d3f27c090038d7fba27f5da8e88329ff91b32d9 (patch) | |
tree | b9674a578f73280cdc98955714edbe6b8d59a66b /Modules/mpzmodule.c | |
parent | 02a1c40051e4d4ad081c38a368fd87da89ede5ac (diff) | |
download | cpython-7d3f27c090038d7fba27f5da8e88329ff91b32d9.zip cpython-7d3f27c090038d7fba27f5da8e88329ff91b32d9.tar.gz cpython-7d3f27c090038d7fba27f5da8e88329ff91b32d9.tar.bz2 |
Changes inspired by Randall Hooper to allow callbacks when an
OptionMenu is modified. Somewhat rewritten and elaborated by myself.
class _setit: The constructor now takes an optional argument
`callback' and stashes this in a private variable. If set, the
__call__() method will invoke this callback after the variable's value
has changed. It will pass the callback the value, followed by any
args passed to __call__().
class OptionMenu: The constructor now takes keyword arguments, the
only one that's legally recognized is `command', which can be set to a
callback. This callback is invoked when the OptionMenu value is set.
Any other keyword argument throws a TclError.
Diffstat (limited to 'Modules/mpzmodule.c')
0 files changed, 0 insertions, 0 deletions