Python Forum
[Tkinter] Lock Text Widget height
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Lock Text Widget height
#4
Quote:Do you know any way to prevent the user to write more than 23 lines instead of just warning him that there are too many lines ?

Quote: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
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] The Text in the Label widget Tkinter cuts off the Long text in the view malmustafa 4 4,672 Jun-26-2022, 06:26 PM
Last Post: menator01
  Tkinter reduce OptionMenu height euras 2 4,569 May-25-2021, 09:14 PM
Last Post: euras
  [Tkinter] Text widget inert mode on and off rfresh737 5 3,785 Apr-19-2021, 02:18 PM
Last Post: joe_momma
  Line numbers in Text widget rfresh737 3 5,317 Apr-15-2021, 12:30 PM
Last Post: rfresh737
  tkinter text widget word wrap position chrisdb 6 7,461 Mar-18-2021, 03:55 PM
Last Post: chrisdb
  Check for Caps Lock ebolisa 1 2,214 Dec-29-2020, 10:41 PM
Last Post: Larz60+
  [Tkinter] Get the last entry in my text widget Pedroski55 3 6,295 Jul-13-2020, 10:34 PM
Last Post: Pedroski55
  How to place global tk text widget in class or on canvas puje 1 2,283 Jul-04-2020, 09:25 AM
Last Post: deanhystad
  Treeview - How to lock columns taratata2020 0 3,291 Mar-29-2020, 03:30 PM
Last Post: taratata2020
  Tkinter - Need Help setting Height of a TextInputBox itslewis 1 1,522 Mar-22-2020, 02:37 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020