Answers for "tkinter get text from text widget"

1

print textbox value in tkinter

import tkinter as tk
root = tk.Tk()
root.geometry("400x240")

def getTextInput():
    result=textExample.get("1.0","end")
    print(result)

textExample=tk.Text(root, height=10)
textExample.pack()
btnRead=tk.Button(root, height=1, width=10, text="Read", 
                    command=getTextInput)

btnRead.pack()

root.mainloop()
Posted by: Guest on October-30-2020
3

text widget get tkinter

contents = text.get(1.0, END)
Posted by: Guest on May-29-2020
-3

entered_text_1 = textbox_1.get(1.0, tk.END+"-1c")

def retrieve_input():
    input = self.myText_Box.get("1.0",'end-1c')
Posted by: Guest on July-23-2020

Code answers related to "tkinter get text from text widget"

Python Answers by Framework

Browse Popular Code Answers by Language