wxMenuItem + pixmap does nothing

Hello,

I'm trying wxPython-2.4.1.2 now and my app's menu items with pixmaps seems
not to work. I create menu item in this way:

   [...]
   menu = wxMenu()
   item = wxMenuItem(menu, 100, "Title")
   item.SetBitmap(wxBitmap(path), wxBITMAP_TYPE_XPM) # for xpm file
   menu.AppendItem(item)
   [...]
   EVT_MENU(self, 100, self.callback)
   [...]

Everything is ok until I set a bitmap. And when a bitmap is set, callback()
fnuction is not called. What happens?

Martynas Jocius

···

--
The best way of learning is learning by doing
http://mjoc.sig.lt

Martynas Jocius wrote:

Hello,

I'm trying wxPython-2.4.1.2 now and my app's menu items with pixmaps seems
not to work.

Assuming you are on wxGTK I just checked in a fix for this yesterday.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!