AuiDefaultTabArt gradient

29 views
Skip to first unread message

Neil Thornock

unread,
May 30, 2016, 11:48:08 AM5/30/16
to wxPython-users
I finally figured out how to control the color of AuiDefaultTabArt with SetDefaultColours.

Is there a way to disable the gradient on both the tab and the background surrounding the tabs?

Neil Thornock

unread,
May 30, 2016, 12:42:58 PM5/30/16
to wxPython-users
OK, I found the source for AuiDefaultTabArt and found that I can control the colors by calling _background_top_colour and _background_bottom_colour.

Is this safe? I didn't see these methods defined in the documentation so not sure if I should be calling them directly in my code.

Metallicow

unread,
Jul 18, 2016, 3:54:46 PM7/18/16
to wxPython-users

I do it in my app, but a bit differently. I don't change them directly.
The AuiDefaultTabAr class lacks some customization methods, but IIRC it doesn't hurt/break anything.
You could subclass AuiDefaultTabArt and add those methods yourself or submit a pull request on github as they ?maybe? should probably be added to the default class in my opinion.
Reply all
Reply to author
Forward
0 new messages