Re: wx MenuItem - icon is missing

2011-07-07 Thread Laszlo Nagy
I can understand why it's frustrating but a menu items with icons on them aren't exactly common, so you're wandering into territory that's probably not so throughly explored (nor standard across platforms). Now that I think about it, I don't know that I've ever seen one under OSX, and I don't

Re: wx MenuItem - icon is missing

2011-07-06 Thread Gregory Ewing
Philip Semanchuk wrote: I can understand why it's frustrating but a menu items with icons on them aren't exactly common... Now that I think about it, I don't know that I've ever seen one under OSX, and I don't even know if it's supported at all. It's supported -- I've got FruitMenu running at

Re: wx MenuItem - icon is missing

2011-07-06 Thread Philip Semanchuk
On Jul 6, 2011, at 2:25 AM, Laszlo Nagy wrote: > >>> Under windows, this displays the icon for the popup menu item. Under GTK it >>> doesn't and there is no error message, no exception. >> >> I get different results than you. >> >> Under Ubuntu 9.04 w with wx 2.8.9.1, when I right click I see

Re: wx MenuItem - icon is missing

2011-07-06 Thread Laszlo Nagy
Under windows, this displays the icon for the popup menu item. Under GTK it doesn't and there is no error message, no exception. I get different results than you. Under Ubuntu 9.04 w with wx 2.8.9.1, when I right click I see a menu item called test with little icon of a calculator or someth

Re: wx MenuItem - icon is missing

2011-07-05 Thread Philip Semanchuk
On Jul 5, 2011, at 3:32 PM, Laszlo Nagy wrote: > >> 1. Post a complete example that demonstrates the problem so that we don't >> have to dummy up a wx app ourselves to try your code. > [code sample snipped] > > Under windows, this displays the icon for the popup menu item. Under GTK it > d

Re: wx MenuItem - icon is missing

2011-07-05 Thread Laszlo Nagy
1. Post a complete example that demonstrates the problem so that we don't have to dummy up a wx app ourselves to try your code. import sys import wx from wx.lib.embeddedimage import PyEmbeddedImage img = PyEmbeddedImage( "iVBORw0KGgoNSUhEUgAAABAQCAYf8/9hBmJLR0QAAAD5Q

Re: wx MenuItem - icon is missing

2011-07-05 Thread Philip Semanchuk
On Jul 5, 2011, at 4:02 AM, Laszlo Nagy wrote: >def onPopupMenu(self,evt): >menu = wx.Menu() >for title,bitmap in self.getPopupMenuItems(): >item = wx.MenuItem(None,-1,title) >if bitmap: >item.SetBitmap(bitmap) >menu.AppendIt

wx MenuItem - icon is missing

2011-07-05 Thread Laszlo Nagy
def onPopupMenu(self,evt): menu = wx.Menu() for title,bitmap in self.getPopupMenuItems(): item = wx.MenuItem(None,-1,title) if bitmap: item.SetBitmap(bitmap) menu.AppendItem(item) menu.Bind(wx.EVT_MENU,self.onPopup