tkinter textbox enable only 1 line code example Example: tkinter textbox enable only 1 line self['wrap'] = 'none'