Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

getting input from button python

entry = tk.Entry()
    def get():
        guess = entry.get()
        return guess # Replace this with the actual processing.
    b1 = tk.Button(root, text="Guess", command=get)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #input #button #python
ADD COMMENT
Topic
Name
4+3 =