TabGroup Element groups together your tabs into the group of tabs you see displayed in your window
| 7500 | # TabGroup # |
| 7501 | # ---------------------------------------------------------------------- # |
| 7502 | class TabGroup(Element): |
| 7503 | """ |
| 7504 | TabGroup Element groups together your tabs into the group of tabs you see displayed in your window |
| 7505 | """ |
| 7506 | |
| 7507 | def __init__(self, layout, tab_location=None, title_color=None, tab_background_color=None, selected_title_color=None, selected_background_color=None, |
| 7508 | background_color=None, focus_color=None, font=None, change_submits=False, enable_events=False, pad=None, p=None, border_width=None, tab_border_width=None, |
| 7509 | theme=None, key=None, k=None, |
| 7510 | size=(None, None), s=(None, None), tooltip=None, right_click_menu=None, expand_x=False, expand_y=False, visible=True, metadata=None): |
| 7511 | """ |
| 7512 | :param layout: Layout of Tabs. Different than normal layouts. ALL Tabs should be on first row |
| 7513 | :type layout: List[List[Tab]] |
| 7514 | :param tab_location: location that tabs will be displayed. Choices are left, right, top, bottom, lefttop, leftbottom, righttop, rightbottom, bottomleft, bottomright, topleft, topright |
| 7515 | :type tab_location: (str) |
| 7516 | :param title_color: color of text on tabs |
| 7517 | :type title_color: (str) |
| 7518 | :param tab_background_color: color of all tabs that are not selected |
| 7519 | :type tab_background_color: (str) |
| 7520 | :param selected_title_color: color of tab text when it is selected |
| 7521 | :type selected_title_color: (str) |
| 7522 | :param selected_background_color: color of tab when it is selected |
| 7523 | :type selected_background_color: (str) |
| 7524 | :param background_color: color of background area that tabs are located on |
| 7525 | :type background_color: (str) |
| 7526 | :param focus_color: color of focus indicator on the tabs |
| 7527 | :type focus_color: (str) |
| 7528 | :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| 7529 | :type font: (str or (str, int[, str]) or None) |
| 7530 | :param change_submits: * DEPRICATED DO NOT USE. Use `enable_events` instead |
| 7531 | :type change_submits: (bool) |
| 7532 | :param enable_events: If True then switching tabs will generate an Event |
| 7533 | :type enable_events: (bool) |
| 7534 | :param pad: 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) |
| 7535 | :type pad: (int, int) or ((int, int),(int,int)) or (int,(int,int)) or ((int, int),int) | int |
| 7536 | :param p: Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used |
| 7537 | :type p: (int, int) or ((int, int),(int,int)) or (int,(int,int)) or ((int, int),int) | int |
| 7538 | :param border_width: width of border around element in pixels |
| 7539 | :type border_width: (int) |
| 7540 | :param tab_border_width: width of border around the tabs |
| 7541 | :type tab_border_width: (int) |
| 7542 | :param theme: 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 |
| 7543 | :type theme: (str) |
| 7544 | :param key: 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 |
| 7545 | :type key: str | int | tuple | object |
| 7546 | :param k: Same as the Key. You can use either k or key. Which ever is set will be used. |
| 7547 | :type k: str | int | tuple | object |
| 7548 | :param size: (width, height) w=pixels-wide, h=pixels-high. Either item in tuple can be None to indicate use the computed value and set only 1 direction |
| 7549 | :type size: (int|None, int|None) |
| 7550 | :param s: Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used |
| 7551 | :type s: (int|None, int|None) |
| 7552 | :param tooltip: text, that will appear when mouse hovers over the element |
| 7553 | :type tooltip: (str) |
| 7554 | :param right_click_menu: A list of lists of Menu items to show when this element is right clicked. See user docs for exact format. |
| 7555 | :type right_click_menu: List[List[ List[str] | str ]] |
| 7556 | :param expand_x: If True the element will automatically expand in the X direction to fill available space |
| 7557 | :type expand_x: (bool) |
| 7558 | :param expand_y: If True the element will automatically expand in the Y direction to fill available space |
| 7559 | :type expand_y: (bool) |
no outgoing calls
no test coverage detected