filmov
tv
How To Use The Message Widget For Blocks of Text - Python Tkinter GUI Tutorial #165

Показать описание
In this video I'll show you how to use the Message Widget to format blocks of text with multiple lines for Tkinter and Python.
Usually we use a Label widget for text. But if you have large blocks of text that will span multiple lines, you should consider using the Message Widget.
With the Message Widget, you can have multiple lines of text, choose how you want it justified (Left justify, Right justify, or Center justify), and also change the aspect ration of the the entire block of text.
Timecodes
0:00 - Intro
0:37 - What Is The Message Widget In Tkinter
1:24 - Create a Tkinter LabelFrame
1:55 - Create a Tkinter Label
2:28 - Change the Font Face and Size
3:09 - Add A Linebreak to Label
3:34 - Create A Tkinter Message Widget
4:00 - Change Message Widget Aspect Ratio
5:21 - Change the Text Justification
6:00 - Create Two More Message Widgets
7:23 - Compare Aspect Ratios
8:44 - Using .config on Message Widgets
9:19 - Create change() Function
10:53 - Conclusion
Usually we use a Label widget for text. But if you have large blocks of text that will span multiple lines, you should consider using the Message Widget.
With the Message Widget, you can have multiple lines of text, choose how you want it justified (Left justify, Right justify, or Center justify), and also change the aspect ration of the the entire block of text.
Timecodes
0:00 - Intro
0:37 - What Is The Message Widget In Tkinter
1:24 - Create a Tkinter LabelFrame
1:55 - Create a Tkinter Label
2:28 - Change the Font Face and Size
3:09 - Add A Linebreak to Label
3:34 - Create A Tkinter Message Widget
4:00 - Change Message Widget Aspect Ratio
5:21 - Change the Text Justification
6:00 - Create Two More Message Widgets
7:23 - Compare Aspect Ratios
8:44 - Using .config on Message Widgets
9:19 - Create change() Function
10:53 - Conclusion
Комментарии