diff options
Diffstat (limited to 'Lib/turtle.py')
-rw-r--r-- | Lib/turtle.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/turtle.py b/Lib/turtle.py index 81cfcfe..11429a6 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -826,7 +826,7 @@ class TurtleScreenBase(object): >>> screen.textinput("NIM", "Name of first player:") """ - return simpledialog.askstring(title, prompt) + return simpledialog.askstring(title, prompt, parent=self.cv) def numinput(self, title, prompt, default=None, minval=None, maxval=None): """Pop up a dialog window for input of a number. @@ -847,7 +847,8 @@ class TurtleScreenBase(object): """ return simpledialog.askfloat(title, prompt, initialvalue=default, - minvalue=minval, maxvalue=maxval) + minvalue=minval, maxvalue=maxval, + parent=self.cv) ############################################################################## |