Menu item font size

What is the proper way to change the font size of a menu item on windows 10. There does not seem a way to do it. If there is - can someone provide an example.

Johnf

Menus are provided by the system and may or may not support changing visible attributes like the font. If it is supported for the platform then the way it needs to be done is to use the form of the Append method that takes a wx.MenuItem parameter instead of the the Append that is normally used. LIke this:

    item = wx.MenuItem(id=103, text="&Earth", helpString="Select Earth")
    item.SetFont(wx.Font(wx.FontInfo(10).Bold()))
    menu.Append(item)
1 Like