[wxPython-users] ANN: FlatNotebook Control For wxPython ;-)

Kevin Ollivier kevino at tulane.edu
Mon Oct 2 21:29:57 PDT 2006


Hi Andrea,

Cool, I have been looking forward to seeing this control in wxPython!  
However, it has problems on Mac. (No, seriously! ;-) Although, it's  
not with the control itself, it's something to do with the images.

I have to admit I'm baffled by this one - it's the annoying "image  
height doesn't match image width" assert, but in this case, the  
height and width of the PNG files do seem to match. So I wonder if  
for some reason wxMac can't read the PNG files? The assertion I'm  
getting is:

wx._core.PyAssertionError: C++ assertion "(bitmap.GetWidth() ==  
m_width && bitmap.GetHeight() == m_height) || (m_width == 0 &&  
m_height == 0)" failed in /BUILD/wxPython-src-2.6.3.3/src/mac/carbon/ 
imaglist.cpp(88): invalid bitmap size in wxImageList: this might work  
on this platform but definitely won't under Windows.

I've never seen this before on Mac when loading an image whose  
dimensions were equal. Does anyone know what might be causing this?

Thanks,

Kevin

On Oct 2, 2006, at 5:38 PM, Andrea Gavana wrote:

> Hello NG,
>
>    I would like to "announce" my latest control, called FlatNotebook.
>
> "The FlatNotebook is a full implementation of the wx.Notebook, and
> designed to be a drop-in replacement for wx.Notebook. The API
> functions are similar so one can expect the function to behave in the
> same way.
>
> Some features:
> - The buttons are highlighted a la Firefox style
> - The scrolling is done for bulks of tabs (so, the scrolling is faster
> and better)
> - The buttons area is never overdrawn by tabs
> - It is a generic control
> - Currently there are 4 differnt styles - VC8, VC 71, Standard and  
> Fancy.
> - Mouse middle click can be used to close tabs
> - A function to add right click menu for tabs (simple as  
> SetRightClickMenu)
> - All styles has bottom style as well (they can be drawn in the bottom
> of screen)
> - An option to hide 'X' button or navigation buttons (separately)
> - Gradient coloring of the selected tabs and border
> - Support for drag 'n' drop of tabs, both in the same notebook or to
> another notebook
> - Possibility to have closing button on the active tab directly
> - Support for disabled tabs
> - Colours for active/inactive tabs, and captions
> - Background of tab area can be painted in gradient (VC8 style only)
> - Colourful tabs - a random gentle colour is generated for each new
> tab (very cool, VC8 style only)
>
> And much more.
> "
>
> The source code, demo and epydoc-generated documentation are available
> in the usual place:
>
> http://xoomer.alice.it/infinity77/eng/freeware.html#flatnotebook
>
> Or, if you prefer in italian:
>
> http://xoomer.alice.it/infinity77/ita/freeware.html#flatnotebook
>
> The widget has been tested on wxPython 2.6.3.3, with Python 2.4 on  
> Windows XP.
>
> A load of thanks goes to Eran that posted the code on wxWidgets forum.
> Please let me know about bugs and request of improvements.
>
> Happy wxPythoning!
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.virgilio.it/infinity77/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users- 
> help at lists.wxwidgets.org
>





More information about the wxpython-users mailing list