Skip to content Skip to sidebar Skip to footer

Tkinter Text.get() Raises A Typeerror Exception

from tkinter import * def save_d(): files = open('mp3list.txt','a') files.write('title :\n') files.write('%s' % lists.get()) files.write('appraisal :\n') files

Solution 1:

You need to pass the Text.get() function a start and stop index indicating what part of the text in the Text widget you want.

If you want to get all the text in the Text widget, you can use

appraisal.get('1.0', END)

(Documentation for Text.get)

Post a Comment for "Tkinter Text.get() Raises A Typeerror Exception"