You have not included the two functions from the buttons' command= parameter, retrieve_input() and fin(). I would guess that limiting the lines of text would occur in retrieve_input function. Use a counter to count the number of lines already in the Text, and if it exceeds 25, retrieve_input would show a warning message instead of putting it in the Text. Note that you could also add a Scrollbar, which would allow for more than 25 lines of text, while the size of the Text widget would remain the same.
[Tkinter] Lock Text Widget height
[Tkinter] Lock Text Widget height
|
|
Messages In This Thread |
Lock Text Widget height - by Oxylium - Feb-14-2019, 07:42 PM
RE: Lock Text Widget height - by woooee - Feb-14-2019, 08:00 PM
RE: Lock Text Widget height - by Oxylium - Feb-14-2019, 08:11 PM
RE: Lock Text Widget height - by woooee - Feb-14-2019, 10:13 PM
|
Users browsing this thread: 2 Guest(s)