wxPython wx.StatusBar中的GetFieldsCount()函数
在这篇文章中,我们将学习与wxPython的wx.StatusBar类有关的GetFieldsCount()函数。GetFieldCount()函数只是用来返回状态栏中的字段数。它以int格式返回字段总数。
在GetFieldsCount()函数中不需要任何参数。
语法:wx.StatusBar.GetFieldsCount(self)
参数。在GetFieldsCount()函数中不需要参数。
返回类型:int
代码示例。
控制台输出。
输出窗口: