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

limodou limodou at gmail.com
Mon Oct 9 18:13:41 PDT 2006


On 10/10/06, Andrea Gavana <andrea.gavana at gmail.com> wrote:
> Hello NG,
>
>     a new version of FlatNotebook is available in the usual places:
>
> http://xoomer.alice.it/infinity77/eng/freeware.html#flatnotebook
>
> Or:
>
> http://xoomer.alice.it/infinity77/ita/freeware.html#flatnotebook
>
> News in FlatNotebook 2.0:
>
> - Code refactoring:
> + remove StyledNotebook class, the same functionalities now exist
> under FlatNotebook
> + All drawing moved to renderers (FlatNotebook Class is now cleaned
> from drawing)
>
> - Added smart tabbing style with new and easy way to select tabs
> Once this style is enabled, pressing Ctrl+[Shift]+T will popup a
> dialog with all the open tabs, another Ctrl+[Shift]+T will run throw
> the dialog list, until the Ctrl key is released.
>
> - Added new styles:
> FNB_SMART_TABS - which enables the above feature
> FNB_DROPDOWN_TABS_LIST - which replaces the '<>' (left, right arrows
> buttons) with a drop down list (popup menu) with all the open tabs.
> This feature is similar to VS8 tabs styles.
>
> - Fixed a bug in SetSelection - in case that the navigation buttons
> were hidden, and the selection was not visible, it did not ensure that
> it will be visible
>
> Sorry If I broke anyone's code (due to the removal of the
> StyledNotebook class), but it was necessary for the code refactoring.
>
> The two major changes (besides the code refactoring) are:
> - Added smart tabbing, this will increase the user friendly of the control
> - Drop down arrow for tab selection - as seen in some of MS products
>
>
> *NOTE*: at the moment, FNB_SMART_TABS is behaving in strange way, both
> with wxPython 2.6 and 2.7. The selection dialog appears, the user can
> interact with it but it seems to me that calling ShowModal/EndModal to
> the selection dialog messes up everything in FlatNotebook. It doesn't
> crash, but the drawings are somewhat corrupted and mouse interaction
> stopped, as if the selection dialog is stealing user input (no matter
> if I call Destroy() on that dialog). It might be a bug in
> FlatNotebook, or it might be a bug in wxPython. The class that handles
> this dialog is *very* simple, so I don't really know what is going on.
> If anyone finds a solution, please let me know.
>
> Happy wxPythoning!
>
> Andrea.
>
I found if I comment :

        self._panel.Bind(wx.EVT_PAINT, self.OnPanelPaint)

although the dialog title is ugly, but smart tabs style will work
correctly. But I'm not familiar with DC, so I don't know where the
problem is.

And the new version looks very good!

-- 
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou




More information about the wxpython-users mailing list