From: Werner F. B. <wer...@fr...> - 2005-06-08 16:04:04
|
Hi John, John Hunter wrote: >>>>>>"andrea" == andrea gavana <and...@ti...> writes: > > > andrea> Hello John & NG, I have just downloaded matplotlib 0.81, > andrea> and I am having some problems with the ToolBar. The "Back" > andrea> and "Forward" icons in the ToolBar2 are not shown. The > andrea> buttons are completely grey and they seem inactive. Is > andrea> this the expected behavior? I think it is not. However, > andrea> my configuration is: > > andrea> - Windows XP - wxPython 2.6.1.0 - MatPlotLib 0.81 - WXAgg > andrea> backend - ToolBar2 > > This is a feature and a bug. The feature part is that Werner Bruhin > added a patch to "gray out" the forward and back buttons when clicking > them produces no effect. Eg, if there is no back (your first view of > the figure) the button should be grayed out. If you navigate > somewhere, the button will be enabled. Just did a little test with the back.png file - see attached it shows in black and white if it is NOT enabled. However here stops the good news, I can't figure out what needs to be changed in matplotlib to get the same result. Hacked "_load_bitmap2" which used the "png" file but then I get the normal image instead of the black and white one. I'll keep looking, but if anyone has an idea it will be very welcome. See you Werner > > The bug is that on win32 with wxpython 2.6.1 instead of presenting a > grayed out version of the button the button is a solid gray rectangle, > and it is visually very disturbing to see it toggle between an arrow > and a gray rectangle. On linux with wx 2.5.3, the arrow button still > looks like an arrow, but is gray to indicate "not enabled" > > Does this feature work properly for anyone on windows? Other > WX/Windows users, please send me your wxpython version numbers and let > me know if this is working for you so we can file a bug report to the > wx list. You can get your wxpython version by running your script > with > > > python myscript.py -dWXAgg --verbose-helpful > > Thanks! > JDH > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 |