mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
calling self.tk.getint() and self.tk.getdouble(), call the globals getint() and getdouble(), which in turn are just names for the Python builtins int() and double(). (Making them globals actually save a dict lookup compared to using the built-in.) The corresponding methods of class Misc have been changed similarly. (Note that getboolean() hasn't been changed because there's no Python equivalent.) The use of int() and float() has another advantage: if/when Tcl calls can actually return Tcl objects with other types than string, use of int() and float() is essential. |
||
|---|---|---|
| .. | ||
| Canvas.py | ||
| Dialog.py | ||
| FileDialog.py | ||
| ScrolledText.py | ||
| SimpleDialog.py | ||
| tkColorChooser.py | ||
| tkCommonDialog.py | ||
| Tkconstants.py | ||
| Tkdnd.py | ||
| tkFileDialog.py | ||
| Tkinter.py | ||
| tkMessageBox.py | ||
| tkSimpleDialog.py | ||