wxPython – SetFieldsCount() function in wx.StatusBar
In this article we are going to learn about SetFieldsCount() function associated with wx.StatusBar class of wxPython. SetFieldsCount() function is simply used to set the number of fields, and optionally the field widths.
It takes two parameters number of Field to be set and list of widths forthe corresponding fields.
Syntax: wx.StatusBar.SetFieldsCount(self, number=1, widths=None)
Parameter Input Type Description number int The number of fields. If this is greater than the previous number, then new fields with empty strings will be added to the status bar. widths list of ints An array of n integers interpreted in the same way as in SetStatusWidths.
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