[Tkinter-discuss] Pack labels

Alejandro Autalan alejandroautalan at gmail.com
Mon Jan 16 12:10:06 EST 2023

El lun, 16 ene 2023 a las 12:37, AI 7 (<asadimran220 at gmail.com>) escribió:

> Hi, I am creating a booking system where one of the functions is to
> retrieve bookings from a text file and display to the user. The text file
> stores  each booking on a new line with all its fields. A loop is made
> through the array when the text file is read and each line (each index of
> the array) creates a label with the text being the line and packs this
> label. When there are many records stored in the text file, as many labels
> are created which then go below the screen and are unreadable. There is no
> scroll bar to view the labels below the screen or the ability to zoom out.
> Can anyone guide me on how to fix this?
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> https://mail.python.org/mailman/listinfo/tkinter-discuss

Hello.  You need a ScrolledFrame. One alternative is
Or if you just want to display the lines, use a treeview with connected

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/tkinter-discuss/attachments/20230116/62865400/attachment.html>

More information about the Tkinter-discuss mailing list