1from tkinter import *
2import tkinter.font as font
3
4gui = Tk(className='Python Examples - Button')
5gui.geometry("500x200")
6
7# define font
8myFont = font.Font(family='Helvetica', size=20, weight='bold')
9
10# create button
11button = Button(gui, text='My Button', bg='#0052cc', fg='#ffffff')
12# apply font to the button label
13button['font'] = myFont
14# add button to gui window
15button.pack()
16
17gui.mainloop()