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

preview_player
Показать описание
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
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Kivy Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

Thanks Gee. You saved from more than a week of searching on ho to apply this markup in my kv file. I'm.super happy to finally find the solution here

RevitGord
Автор

This one answered so many questions I couldn't seem to find with just searches or in documentation.. like how to change the font!!!

duncanwallace
Автор

Amazingly good as always!! Thanks a lot

guillermoguevara
Автор

You really make things look interesting. Thank you for the content!

tahaonec
Автор

3:19 Could we use Strong instead of b ?

prerit
Автор

Hi John. Thanks for this Kivy tutorial. Can't wait for another videos :)

thenaturat
Автор

hey i did not disliked these videos but i already liked this videos. 😇😇😇😇😇

elitecoder
Автор

How to align the label to right or left

rannvijaysingh
Автор

hey while using markup is quite good is there a more quick way to apply a certain font to all my labels and buttons?

omkarrajmane
Автор

What about about sql database with the use of kivy :), btw I learn so much in your kivy playlist, good start for my school project

glendydesabille
Автор

Please can you start doing courses on android studio

adityachoudhary
Автор

Is it possible to make video on url request on kivy?

dhrubrawat
Автор

In my case, in Ubuntu 20.04, kivy 2.0, I get this error: AttributeError: 'MarkupLabel' object has no attribute 'get_descent' when using [sup]Text[/sup]. What should be the way out?

Step-a-Sight
Автор

Plz 🙏 how to stopped sound with kivy ❤

someone-odqi
Автор

>Hi! John, i Need some example with emoji, Please !!

dbueltan
Автор

Thank you [size=20]very[/size] much for
i want to try in here :) mabye *markup* is _False_ :)

m.nikolatesla