Re: [matplotlib-devel] mathtext in wx widgets

2007-08-31 Thread Michael Droettboom
It would probably be considerable work to ply mathtext out of matplotlib, particularly if you consider bringing along the Ps/Pdf/Svg/Cairo backends. Just bringing the raster backend (which is really in ft2font.cpp) would be considerably less work. But I was mainly just sharing a "wouldn't it b

Re: [matplotlib-devel] mathtext in wx widgets

2007-08-31 Thread Michael Droettboom
There is now preliminary support for getting a mathtext bitmap to transfer to a GUI widget in SVN, along with a toy wxPython example in examples/mathtext_wx.py. I've only tested this on Linux/wxGTK2/wxPython-2.8. I'd appreciate help with testing (and screenshots) on any other platforms you ma

Re: [matplotlib-devel] mathtext in wx widgets

2007-08-31 Thread Michael Droettboom
I should also mention my mathtext_wx.py example reveals a [possible] bug in wxPython-2.8 and/or the underlying Gtk. When you put a bitmap on a menu item, the *height* of the menu item is determined by the *width* of the bitmap. And placing bitmaps in menu items reportedly doesn't work at all o

Re: [matplotlib-devel] mathtext in wx widgets

2007-08-31 Thread Paul Kienzle
On Fri, Aug 31, 2007 at 03:28:49PM -0400, Michael Droettboom wrote: > There is now preliminary support for getting a mathtext bitmap to > transfer to a GUI widget in SVN, along with a toy wxPython example in > examples/mathtext_wx.py. I've only tested this on > Linux/wxGTK2/wxPython-2.8. I'd a

Re: [matplotlib-devel] mathtext in wx widgets

2007-08-31 Thread Paul Kienzle
On Fri, Aug 31, 2007 at 03:32:09PM -0400, Michael Droettboom wrote: > And placing bitmaps in menu items reportedly doesn't work at all on > wxCocoa. -- so maybe it's best to stay away from that altogether. The wxPython demo.py for menus has a smiley face bit map that displays just fine. Let me k