filmov
tv
How To Use Markup To Change Text Style - Python Kivy GUI Tutorial #38

Показать описание
In this video I'll show you how to easily style your text in Kivy using Markup.
Markup is very similar to HTML. It has opening and closing tags, and allows you to change the style of text in Kivy. Specifically you can change:
- bold
- italics
- underline
- strikethrough
- sup
- sub
- color
- size
- font
- and more
To use markup, just set
markup: True
In the kivy element you want to use markup on. Then use the markup tags that I'll show you in this video!
Timecodes
0:00 - Intro
1:51 - Create a Label With Kivy
2:08 - Create a Button With Kivy
2:45 - Make Text Bold With Markup and Kivy
3:38 - Make Text Italic With Markup and Kivy
4:13 - Change Text Color With Markup and Kivy
5:50 - Change Text Size With Markup and Kivy
6:16 - Make Text Underlined With Markup and Kivy
6:42 - Make Text Strikethrough With Markup and Kivy
7:01 - Change Font Type With Markup and Kivy
7:47 - Push Text Up or Down With Markup and Kivy
8:33 - Conclusion
Markup is very similar to HTML. It has opening and closing tags, and allows you to change the style of text in Kivy. Specifically you can change:
- bold
- italics
- underline
- strikethrough
- sup
- sub
- color
- size
- font
- and more
To use markup, just set
markup: True
In the kivy element you want to use markup on. Then use the markup tags that I'll show you in this video!
Timecodes
0:00 - Intro
1:51 - Create a Label With Kivy
2:08 - Create a Button With Kivy
2:45 - Make Text Bold With Markup and Kivy
3:38 - Make Text Italic With Markup and Kivy
4:13 - Change Text Color With Markup and Kivy
5:50 - Change Text Size With Markup and Kivy
6:16 - Make Text Underlined With Markup and Kivy
6:42 - Make Text Strikethrough With Markup and Kivy
7:01 - Change Font Type With Markup and Kivy
7:47 - Push Text Up or Down With Markup and Kivy
8:33 - Conclusion
Комментарии