Add Enabled property for wx.MenuItem

This commit is contained in:
Robin Dunn
2018-11-01 17:06:21 -07:00
parent 05f871e9f7
commit af7f52b640
2 changed files with 3 additions and 0 deletions

View File

@@ -140,6 +140,8 @@ def run():
#endif
""")
c.addAutoProperties()
c.addItem(etgtools.PropertyDef('Enabled', 'IsEnabled', 'Enable'))
c.find('GetAccel').factory = True
c.find('GetAccelFromString').ignore() # Not implemented anywere?

View File

@@ -32,6 +32,7 @@ class menuitem_Tests(wtc.WidgetTestCase):
m.SubMenu
m.Text
m.TextColour
m.Enabled
def test_menuitemKinds(self):