I have a menu defined using XRC like this:
<object class="wxMenuItem" name="MenuItem_ShowTooltips">
<label>Show tooltips</label>
<checkable>1</checkable>
</object>
which I initialize in my app from it's parent frame like this
self.frame = self.res.LoadFrame(None, 'MainFrame')
When my app starts I check a user preferences file to get initial values (a boolean in this case) and want to check or uncheck the MenuItem based on that parameter. With a normal wx control I could use something like
self.MenuItem_ShowTooltips.Check(self.UserPreferences['ShowTooltips'])
How can I get a handle on the XRC created MenuItem_ShowTooltips control?