Add Enabled property for wx.MenuItem

(cherry picked from commit af7f52b640)
This commit is contained in:
Robin Dunn
2018-11-01 17:06:21 -07:00
parent d8ca61588d
commit 586f9ccd22
2 changed files with 3 additions and 0 deletions

View File

@@ -148,6 +148,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

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