Here is an example code to create a Tkinter button with Calibri font and size 15:
main.py237 chars14 lines
In this code, we import the tkinter module and create the main window with tk.Tk(). Then, we define the Calibri font with size 15 as CalibriFont. Finally, we create the button with the Calibri font using tk.Button() and pack it into the main window with .pack().
gistlibby LogSnag