mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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. |
||
|---|---|---|
| .. | ||
| Canvas.py | ||
| Dialog.py | ||
| FileDialog.py | ||
| FixTk.py | ||
| ScrolledText.py | ||
| SimpleDialog.py | ||
| tkColorChooser.py | ||
| tkCommonDialog.py | ||
| Tkconstants.py | ||
| Tkdnd.py | ||
| tkFileDialog.py | ||
| tkFont.py | ||
| Tkinter.py | ||
| tkMessageBox.py | ||
| tkSimpleDialog.py | ||
| turtle.py | ||