+ 2

How do this ?

from colored import fg, bg, attr text = fg('white') + bg('red') + 'Hello World' + attr('bold') print(text) But I must install this module for using it. Is there standard libraries to make font style ?

12th Jan 2022, 4:20 PM
Saydimurod Qodirjonov
Saydimurod Qodirjonov - avatar
2 Answers
+ 2
But tkinter isn't standard module
13th Jan 2022, 2:00 AM
Saydimurod Qodirjonov
Saydimurod Qodirjonov - avatar
+ 1
https://docs.python.org/3/library/tkinter.font.html https://www.tutorialspoint.com/python/tk_fonts.htm
12th Jan 2022, 4:40 PM
NEZ
NEZ - avatar