Tab
Tab Element is another "Container" element that holds a layout and displays a tab with text. Used with TabGroup only Tabs are never placed directly into a layout. They are always "Contained" in a TabGroup layout
Tab(
title,
layout,
title_color = None,
background_color = None,
font = None,
pad = None,
disabled = False,
element_justification = "left",
border_width = None,
key = None,
tooltip = None
)
Parameter Descriptions
Name | Type | Default | Description |
---|---|---|---|
background_color | str | None | color of background of the entire layout |
border_width | int | None | NOT USED in tkinter port |
disabled | bool | False | If True button will be created disabled |
element_justification | str | left | All elements inside the Tab will have this justification 'left', 'right', 'center' are valid values |
font | (str or (str, int[, str]) or None) | None | NOT USED in the tkinter port |
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[Element]] | The element layout that will be shown in the tab | |
pad | (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),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) |
title | str | text to show on the tab | |
title_color | str | None | color of the tab text (note not currently working on tkinter) |
tooltip | str | None | text, that will appear when mouse hovers over the element |
Class Properties
This class has no public properties
Class Methods
def update
update
Updates the element
update(
widget,
background_color = None,
text_color = None,
font = None,
visible = None,
disabled = None,
tooltip = None
)
Parameter Descriptions
Name | Type | Default | Description |
---|---|---|---|
background_color | str | None | color of background. Can be in #RRGGBB format or a color name "black" |
disabled | bool | None | Is the element disabled |
font | (str or (str, int[, str]) or None) | None | specifies the font family, size. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
text_color | None | Text color | |
tooltip | None | Tooltip to be shown | |
visible | bool | None | Is the element visible |
widget | The widget to be updated |