Create a google chrome like flatnoteokk tabs

Hi,

I created a flatnotebook with this style

(fnb.FNB_NO_NAV_BUTTONS | fnb.FNB_NODRAG | fnb.FNB_NO_X_BUTTON |
fnb.FNB_VC8)

Which gives a flatnotebook like this:

<http://wxpython-users.1045709.n5.nabble.com/file/n5720043/flat.jpg>

But I would like to have a google chrome like tab.

Any help please?

Best.

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Create-a-google-chrome-like-flatnoteokk-tabs-tp5720043.html
Sent from the wxPython-users mailing list archive at Nabble.com.

Youppi wrote:

Hi,

I created a flatnotebook with this style

(fnb.FNB_NO_NAV_BUTTONS | fnb.FNB_NODRAG | fnb.FNB_NO_X_BUTTON |
fnb.FNB_VC8)

Which gives a flatnotebook like this:

<http://wxpython-users.1045709.n5.nabble.com/file/n5720043/flat.jpg&gt;

But I would like to have a google chrome like tab.

Any help please?

You will need to implement your own FNBRenderer class that draws the tabs the way you want them.

···

--
Robin Dunn
Software Craftsman

As Robin says… you need to implement your own custom class. Easily copied and modded from library code.
Note: That AUI already has a google chrome tab renderer.

If you want different colors or textures, then implementing a different class in flatnotebook is what you are looking for.
Also Note: The rendering code of AUI background textures(normally a gradient) is rather poor ATM, so if you are only looking for a totally custom look with the notebook tabs, them go with flatnotebook.
…But look into using AUI resources for the flatnotebook render class.

Attached Image. googleChrome-LikeTabMod

chromeLikeTabMod.png

···

On Monday, February 3, 2014 9:37:49 AM UTC-6, Ayoub Massoudi wrote:

Hi,

I created a flatnotebook with this style

(fnb.FNB_NO_NAV_BUTTONS | fnb.FNB_NODRAG | fnb.FNB_NO_X_BUTTON |

fnb.FNB_VC8)

Which gives a flatnotebook like this:

<http://wxpython-users.1045709.n5.nabble.com/file/n5720043/flat.jpg>

But I would like to have a google chrome like tab.

Any help please?