I am trying to prompt the user to enter a line of text. Is javascript hint accessible via python tkinter?
Yes, use tkSimpleDialog.askstring . Unfortunately, this does not apply to the main Python documents, so they are a little difficult to find.
try the following:
import tkinter x = tkinter.tkSimpleDialog.askstring
, , , , .
tkSimpleDialog.
"/"
from tkinter import * answer = tkinter.messagebox.askquestion
, ,
python 2.7:
from Tkinter import * root = Tk() E = Entry(root) E.pack() root.mainloop()
python 3:
Source: https://habr.com/ru/post/1722071/More articles:RDLC Medium Trust - asp.netHTTP / 1.1 200 OK - apache2designing a backend with mvc framework in php - phpNeed a little help with the Qt drawing classes - c ++Как Windows переключается в режим супервизора во время системного вызова? - x86TortoiseGit connects to remote git repo (not github) - gitMootools delay problem - javascriptphp: how to check if a string contains any of the listed keywords? - phpProblems with indexed properties through the new RTTI [D2010] - rttiHow to find out a device name from its device identifier in OS X? - ioAll Articles