+ def OnDoPopup(self, evt):
+ menu = wxMenu()
+ # Make this first item bold
+ item = wxMenuItem(menu, wxNewId(), "If supported, this is &bold")
+ df = wxSystemSettings_GetSystemFont(wxSYS_DEFAULT_GUI_FONT)
+ nf = wxFont(df.GetPointSize(), df.GetFamily(), df.GetStyle(), wxBOLD,
+ false, df.GetFaceName())
+ item.SetFont(nf)
+ menu.AppendItem(item)
+
+ menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &1"))
+ menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &2"))
+ menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &3"))
+ menu.AppendItem(wxMenuItem(menu, wxNewId(), "Normal Item &4"))
+
+ self.PopupMenu(menu, evt.GetPosition())
+ menu.Destroy()
+ evt.Skip()