wxPython wx.MenuBar中的GetMeuCount()函数
GetMenuCount()函数是wxPython的wx.MenuBar类中存在的另一个函数。GetMenuCount()函数返回MenuBar中存在的菜单总数。它不需要任何参数。
语法:wx.MenuBar.GetMenuCount(self)
参数:GetMenuItem()中没有参数。
返回:返回该菜单栏中的菜单数量。
代码。
将静态文本的标签设置为菜单项的总数。
输出 :
GetMenuCount()函数是wxPython的wx.MenuBar类中存在的另一个函数。GetMenuCount()函数返回MenuBar中存在的菜单总数。它不需要任何参数。
语法:wx.MenuBar.GetMenuCount(self)
参数:GetMenuItem()中没有参数。
返回:返回该菜单栏中的菜单数量。
代码。
将静态文本的标签设置为菜单项的总数。
输出 :