5476

textinput() equivalent in python 2.x

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 ?

Answer1:

This is what textinput actually does:

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

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

Recommend

  • combine 2 associative arrays where values match
  • With haskell's turtle library, how to extract filename as String from FilePath?
  • netlogo comparing turtle variables
  • Moving turtle according to the arrow keys
  • Binding a custom handler twice in knockoutjs
  • Alert prompt to function not working in react native
  • Textfield Mandatory On basis of radio button selection- Yii2
  • Kivy, TypeError: 'NoneType' object has no attribute '__getitem__'
  • Retaining data after updating application
  • Changing Jupyter Notebook start up folder by modifying “start in” not working any more
  • New Firebase failed: First argument must be a valid firebase URL and the path can't contain “.”
  • JSON encode and decode on PHP
  • Building Qt project for C++11 standard
  • Using Generics on right hand side in Java 6?
  • import scipy.sparse failed
  • How to use function wrapper in mustache.php?
  • Yii2: Finding file and getting path in a directory tree
  • How to handle elastic beanstalk deployment so it uploads only changed files
  • Clear activity stack before launching another activity
  • Filter strings with regex before casting to numeric
  • During installation of Django, why do I keep getting ImportError: No module named django?
  • where do I find the xml.dom python package for the python-2.6.0-8.9.28 and I have a suse/x86_64 vers
  • Python pickle not one-to-one: different pickles give same object
  • Angular2 Response for preflight is invalid (redirect) from some GET requests
  • How do I configure context broker accept post requests from my remote sensor?
  • MySQL Order by column = x, column asc?
  • How to define custom class, title, and target in Link Browser for content elements and the new rte_c
  • How to rebase a series of branches?
  • How to recover from a Spring Social ExpiredAuthorizationException
  • ILMerge & Keep Assembly Name
  • Large data - storage and query
  • WOWZA + RTMP + HTML5 Playback?
  • Turn off referential integrity in Derby? is it possible?
  • Authorize attributes not working in MVC 4
  • Busy indicator not showing up in wpf window [duplicate]
  • Binding checkboxes to object values in AngularJs
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize
  • How to load view controller without button in storyboard?