Open In App

wxPython | GetClassDefaultAttributes() function in python

Last Updated : 03 Mar, 2023
Comments
Improve
Suggest changes
Like Article
Like
Report

In this article we are going to learn about GetClassDefaultAttributes() of class wx.ToolBar of wxPython. GetClassDefaultAttributes() is used to return visual attributes of toolbar like background color, foreground color, the font used for control label/text inside it. Parameters :

ParameterInput TypeDescription
variantwindowVariantVariant style of window

Syntax :

wx.ToolBar.GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)

Return Type:

wx.VisualAttributes

Code Example: 

Output:

(240, 240, 240, 255)
(0, 0, 0, 255)
<wx._core.Font object at 0x00000080FC7B5280>

Next Article
Article Tags :
Practice Tags :

Similar Reads