2

I need to accept info from the user in python's turtle. however the turtle.textinput function only works in versions 3.x and upwards is there an alternative I can use in version 2.X ?

0

1 Answer 1

1

This is what textinput actually does:

import tkSimpleDialog
tkSimpleDialog.askstring('title', 'prompt')

It requires you to have a turtle screen open, of course.

Sign up to request clarification or add additional context in comments.

1 Comment

thank you very much this worked perfectly. and after checking python.py I realised that this is the same function it calls (y)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.