python font 1

python font

helvetica_font = tkFont.Font(family="Helvetica",size=36,weight="bold")

Here is what the above code is Doing:
1. We’re creating a new font object, and we’re calling it helvetica_font.
2. We’re telling tkinter that we want the font to be in the Helvetica family.
3. We’re telling tkinter that we want the font to be size 36.
4. We’re telling tkinter that we want the font to be bold.

Similar Posts