Mercurial > cpython-lru_cache-weakref
diff Lib/lib-tk/tkSimpleDialog.py @ 16517:eee67a84e5fa legacy-trunk
String method conversion.
| author | Eric S. Raymond <esr@thyrsus.com> |
|---|---|
| date | Fri, 09 Feb 2001 11:51:27 +0000 |
| parents | 847ae40074d4 |
| children | 102d18ea02cf |
line wrap: on
line diff
--- a/Lib/lib-tk/tkSimpleDialog.py Fri Feb 09 11:46:37 2001 +0000 +++ b/Lib/lib-tk/tkSimpleDialog.py Fri Feb 09 11:51:27 2001 +0000 @@ -157,8 +157,6 @@ # -------------------------------------------------------------------- # convenience dialogues -import string - class _QueryDialog(Dialog): def __init__(self, title, prompt, @@ -236,7 +234,7 @@ class _QueryInteger(_QueryDialog): errormessage = "Not an integer." def getresult(self): - return string.atoi(self.entry.get()) + return int(self.entry.get()) def askinteger(title, prompt, **kw): '''get an integer from the user @@ -255,7 +253,7 @@ class _QueryFloat(_QueryDialog): errormessage = "Not a floating point value." def getresult(self): - return string.atof(self.entry.get()) + return float(self.entry.get()) def askfloat(title, prompt, **kw): '''get a float from the user
