I am trying to prompt the user to enter a string of text. Is there available with python tkinter a Javascript like prompt?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
try this:
You can ask a yes/no question with
Yes, use tkSimpleDialog.askstring. Unfortunately this isn't in the main Python docs, so it's a bit hard to find.
I think this is what you might want
for python 2.7:
for python 3:
One of those situations where I find it after the question has been posted and since I had trouble finding the answer I will keep the question up.
You can use a tkSimpleDialog.