Hello NG,
I would like to “announce” my last child, NotebookCtrl. This is my biggest contribution since FoldPanelBar, and in my opinion is also the nicest one I have made till now.
I would be glad, happy and grateful for every comment/idea you may have. The same also if you only try the demo.
“”"
Description:
NotebookCtrl Mimics The Behavior Of wx.Notebook, And Most Of Its Functionalities
Are Implemented In NotebookCtrl. However, NotebookCtrl Has A Lot Of Options That
wx.Notebook Does Not Have, And It Is Therefore Quite Customizable.
wx.Notebook Styles Not Implemented In NotebookCtrl Are:
- wx.NB_LEFT
- wx.NB_RIGHT
- wx.NB_MULTILINE (But NotebookCtrl Has A SpinButton To Navigate Through Tabs).
Supported Customizations For NotebookCtrl Include:
- Setting Individual Tab Font And Text Colour;
- Images On Tabs (Line wx.Notebook);
- Setting Individual Tab Colours;
- Disabling/Enabling Individual Tabs (Also Visually Effective);
- Drawing Of A Small Closing “X” At The Right Of Every Tab, This Enables The User
To Close A Tab With A Mouse Click (Like eMule Tab Style); - Enabling Highlighted Tabs On Selection;
- Drawing Focus Indicator In Each Tab (Like wx.Notebook);
- Ctrl-Tab Keyboard Navigation Between Pages (Like wx.Notebook);
- Tab With Animated Icons (Animation On Tabs);
- Drag And Drop Tabs In NotebookCtrl;
- ToolTips On Individual Tabs, With Customizable ToolTip Time Popup And ToolTip
Window Size For Individual Tabs.
“”"
I have uploaded the source code and a nice (for me) demo in the usual place:
http://xoomer.virgilio.it/infinity77/eng/freeware.html#notebookctrl
Or, if you prefer in italian :
http://xoomer.virgilio.it/infinity77/ita/freeware.html#notebookctrl
I also attach the class and the demo to this mail, noting that someone has reported that my web page is somewhat “unreachable” from certain server. In order to build the demo and to make it look like the wxPython notebook demo, I have modified the source of some scripts that wxPython demo uses to build wx.Notebook pages. I also attach these script.
I really welcome any comments, suggestions and ideas you may have, also reporting other platforms behavior (I’m on Windows 2000/XP, Python 2.4.1 and wxPython 2.6.1.1 prerelease).
Thanks for every comments, and sorry for the long post and for the attachment.
Andrea.
“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.virgilio.it/infinity77