Web Analytics Made Easy - Statcounter
Skip to content


TabGroup Element groups together your tabs into the group of tabs you see displayed in your window

    tab_location = None,
    title_color = None,
    selected_title_color = None,
    background_color = None,
    font = None,
    change_submits = False,
    pad = None,
    border_width = None,
    theme = None,
    key = None,
    tooltip = None

Parameter Descriptions

Name Type Default Description
background_color str None color of background area that tabs are located on. Can be in #RRGGBB format or a color name "black"
border_width int None width of border around element in pixels
change_submits bool False * DEPRICATED DO NOT USE. Use enable_events instead
font (str or (str, int[, str]) or None) None specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
key str or int or tuple or object None Value that uniquely identifies this element from all other elements. Used when Finding an element or in return values. Must be unique to the window
layout List[List[Tab]] Layout of Tabs. Different than normal layouts. ALL Tabs should be on first row
pad (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int None Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int)
selected_title_color str None color of tab text when it is selected. Can be in #RRGGBB format or a color name "black"
tab_location str None location that tabs will be displayed. Choices are left, right, top, bottom, lefttop, leftbottom, righttop, rightbottom, bottomleft, bottomright, topleft, topright
theme enum None DEPRICATED - You can only specify themes using set options or when window is created. It's not possible to do it on an element basis
title_color str None color of text on tabs. Can be in #RRGGBB format or a color name "black"
tooltip str None text, that will appear when mouse hovers over the element

Class Properties

This class has no public properties

Class Methods

 def find_key_from_tab_name
 def update


Searches through the layout to find the key that matches the text on the tab. Implies names should be unique


Parameter Descriptions

Name Type Default Description
tab_name str name of a tab
RETURN key or None Returns the key or None if no key found


Updates the element

    background_color = None,
    text_color = None,
    font = None,
    visible = None,
    disabled = None,
    tooltip = None

Parameter Descriptions

Name Type Default Description
background_color None Widget background color
disabled bool None Is the element disabled
font None Text font
text_color None Text color
tooltip None Tooltip to be shown
visible bool None Is the element visible
widget The widget to be updated