Re: [Tkinter-discuss] Text folding of text

2015-01-22 Thread Bryan Oakley
Yes, it is possible, though you have to do a lot of the work yourself. You can actually intercept the low level text insertions and deletions that happen as a result of the built-in bindings, and allow or reject the insertions based on whatever criteria you want. You can, for example, check the ta

[Tkinter-discuss] Text folding of text

2015-01-22 Thread Vasilis Vlachoudis
Dear all, I want to create a text box with folding capabilities. To show/hide lines of text (probably using the elide function) but when I hide the text I want it to be replaced by one line + 10 lines folded that extends to the full width of the text widget and the editing is disabled on