:param values: list of values to display. Can be any type including mixed types as long as they have __str__ method :type values: List[Any] or Tuple[Any] :param default_values: which values should be initially selected
(self, values, default_values=None, select_mode=None, change_submits=False, enable_events=False,
bind_return_key=False, size=(None, None), s=(None, None), disabled=False, justification=None, auto_size_text=None, font=None, no_scrollbar=False,
horizontal_scroll=False, setting=None,
background_color=None, text_color=None, highlight_background_color=None, highlight_text_color=None,
sbar_trough_color=None, sbar_background_color=None, sbar_arrow_color=None, sbar_width=None, sbar_arrow_width=None, sbar_frame_color=None, sbar_relief=None,
key=None, k=None, pad=None, p=None, tooltip=None, expand_x=False, expand_y=False, right_click_menu=None, visible=True, metadata=None)
| 2655 | """ |
| 2656 | |
| 2657 | def __init__(self, values, default_values=None, select_mode=None, change_submits=False, enable_events=False, |
| 2658 | bind_return_key=False, size=(None, None), s=(None, None), disabled=False, justification=None, auto_size_text=None, font=None, no_scrollbar=False, |
| 2659 | horizontal_scroll=False, setting=None, |
| 2660 | background_color=None, text_color=None, highlight_background_color=None, highlight_text_color=None, |
| 2661 | sbar_trough_color=None, sbar_background_color=None, sbar_arrow_color=None, sbar_width=None, sbar_arrow_width=None, sbar_frame_color=None, sbar_relief=None, |
| 2662 | key=None, k=None, pad=None, p=None, tooltip=None, expand_x=False, expand_y=False, right_click_menu=None, visible=True, metadata=None): |
| 2663 | """ |
| 2664 | :param values: list of values to display. Can be any type including mixed types as long as they have __str__ method |
| 2665 | :type values: List[Any] or Tuple[Any] |
| 2666 | :param default_values: which values should be initially selected |
| 2667 | :type default_values: List[Any] |
| 2668 | :param select_mode: Select modes are used to determine if only 1 item can be selected or multiple and how they can be selected. Valid choices begin with "LISTBOX_SELECT_MODE_" and include: LISTBOX_SELECT_MODE_SINGLE LISTBOX_SELECT_MODE_MULTIPLE LISTBOX_SELECT_MODE_BROWSE LISTBOX_SELECT_MODE_EXTENDED |
| 2669 | :type select_mode: (str) |
| 2670 | :param change_submits: DO NOT USE. Only listed for backwards compat - Use enable_events instead |
| 2671 | :type change_submits: (bool) |
| 2672 | :param enable_events: Turns on the element specific events. Listbox generates events when an item is clicked |
| 2673 | :type enable_events: (bool) |
| 2674 | :param bind_return_key: If True, then the return key will cause a the Listbox to generate an event when return key is pressed |
| 2675 | :type bind_return_key: (bool) |
| 2676 | :param size: w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 |
| 2677 | :type size: (int, int) | (int, None) | int |
| 2678 | :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 |
| 2679 | :type s: (int, int) | (None, None) | int |
| 2680 | :param disabled: set disable state for element |
| 2681 | :type disabled: (bool) |
| 2682 | :param justification: justification for items in listbox. Valid choices - left, right, center. Default is left. NOTE - on some older versions of tkinter, not available |
| 2683 | :type justification: (str) |
| 2684 | :param auto_size_text: True if element should be the same size as the contents |
| 2685 | :type auto_size_text: (bool) |
| 2686 | :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| 2687 | :type font: (str or (str, int[, str]) or None) |
| 2688 | :param no_scrollbar: Controls if a scrollbar should be shown. If True, no scrollbar will be shown |
| 2689 | :type no_scrollbar: (bool) |
| 2690 | :param horizontal_scroll: Controls if a horizontal scrollbar should be shown. If True a horizontal scrollbar will be shown in addition to vertical |
| 2691 | :type horizontal_scroll: (bool) |
| 2692 | :param setting: If not None, then this element will be saved in a settings file using the key for the element |
| 2693 | :type setting: (Any) |
| 2694 | :param background_color: color of background |
| 2695 | :type background_color: (str) |
| 2696 | :param text_color: color of the text |
| 2697 | :type text_color: (str) |
| 2698 | :param highlight_background_color: color of the background when an item is selected. Defaults to normal text color (a reverse look) |
| 2699 | :type highlight_background_color: (str) |
| 2700 | :param highlight_text_color: color of the text when an item is selected. Defaults to the normal background color (a rerverse look) |
| 2701 | :type highlight_text_color: (str) |
| 2702 | :param sbar_trough_color: Scrollbar color of the trough |
| 2703 | :type sbar_trough_color: (str) |
| 2704 | :param sbar_background_color: Scrollbar color of the background of the arrow buttons at the ends AND the color of the "thumb" (the thing you grab and slide). Switches to arrow color when mouse is over |
| 2705 | :type sbar_background_color: (str) |
| 2706 | :param sbar_arrow_color: Scrollbar color of the arrow at the ends of the scrollbar (it looks like a button). Switches to background color when mouse is over |
| 2707 | :type sbar_arrow_color: (str) |
| 2708 | :param sbar_width: Scrollbar width in pixels |
| 2709 | :type sbar_width: (int) |
| 2710 | :param sbar_arrow_width: Scrollbar width of the arrow on the scrollbar. It will potentially impact the overall width of the scrollbar |
| 2711 | :type sbar_arrow_width: (int) |
| 2712 | :param sbar_frame_color: Scrollbar Color of frame around scrollbar (available only on some ttk themes) |
| 2713 | :type sbar_frame_color: (str) |
| 2714 | :param sbar_relief: Scrollbar relief that will be used for the "thumb" of the scrollbar (the thing you grab that slides). Should be a constant that is defined at starting with "RELIEF_" - RELIEF_RAISED, RELIEF_SUNKEN, RELIEF_FLAT, RELIEF_RIDGE, RELIEF_GROOVE, RELIEF_SOLID |
nothing calls this directly
no test coverage detected