python - Horizontal and vertical scrolling for a Text widget -
i'm looking simple way (possibly through flags) make text widget scroll horizontally, when typed text inside gets out of range. if know way, scrolling vertically to, please let me know.
disable word wrap in text widget. text scroll horizontally type past end of line:
try: tkinter import * # python 2 except importerror: tkinter import * # python 3 root = tk() t = text(root, wrap=none) t.pack() root.mainloop() vertical scrolling comes free.
Comments
Post a Comment