In this article we are going to learn that how can we change the font of the label text present on the button present in the frame. We need to follow some steps as follows:
Step 1: Create a wx.Font object.
Step 2: Add different attributes of font in parameters like: family, dtyle etc.
Step 3: Set font by using SetFont() function.
Syntax: wx.Button.SetFont(self, font)
Parameter Input Type Description font wx.Font Font for the button label.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course