| 8694 | # Table # |
| 8695 | # ---------------------------------------------------------------------- # |
| 8696 | class Table(Element): |
| 8697 | |
| 8698 | def __init__(self, values, headings=None, visible_column_map=None, col_widths=None, cols_justification=None, def_col_width=10, |
| 8699 | auto_size_columns=True, max_col_width=20, select_mode=None, display_row_numbers=False, starting_row_number=0, num_rows=None, |
| 8700 | row_height=None, font=None, justification='right', text_color=None, background_color=None, |
| 8701 | alternating_row_color=None, selected_row_colors=(None, None), header_text_color=None, header_background_color=None, header_font=None, header_border_width=None, |
| 8702 | header_relief=None, enable_cell_editing=False, cell_edit_colors=(None, None), cell_edit_select_colors=(None, None), |
| 8703 | row_colors=None, vertical_scroll_only=True, hide_vertical_scroll=False, border_width=None, |
| 8704 | 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, |
| 8705 | size=(None, None), s=(None, None), change_submits=False, enable_events=False, enable_click_events=False, right_click_selects=False, bind_return_key=False, |
| 8706 | pad=None, p=None, |
| 8707 | key=None, k=None, tooltip=None, right_click_menu=None, expand_x=False, expand_y=False, visible=True, metadata=None): |
| 8708 | """ |
| 8709 | :param values: Your table data represented as a 2-dimensions table... a list of rows, with each row representing a row in your table. |
| 8710 | :type values: List[List[str | int | float]] |
| 8711 | :param headings: The headings to show on the top line |
| 8712 | :type headings: List[str] |
| 8713 | :param visible_column_map: One entry for each column. False indicates the column is not shown |
| 8714 | :type visible_column_map: List[bool] |
| 8715 | :param col_widths: Number of characters that each column will occupy |
| 8716 | :type col_widths: List[int] |
| 8717 | :param cols_justification: Justification for EACH column. Is a list of strings with the value 'l', 'r', 'c' that indicates how the column will be justified. Either no columns should be set, or have to have one for every colun |
| 8718 | :type cols_justification: List[str] or Tuple[str] or None |
| 8719 | :param def_col_width: Default column width in characters |
| 8720 | :type def_col_width: (int) |
| 8721 | :param auto_size_columns: if True columns will be sized automatically |
| 8722 | :type auto_size_columns: (bool) |
| 8723 | :param max_col_width: Maximum width for all columns in characters |
| 8724 | :type max_col_width: (int) |
| 8725 | :param select_mode: Select Mode. Valid values start with "TABLE_SELECT_MODE_". Valid values are: TABLE_SELECT_MODE_NONE TABLE_SELECT_MODE_BROWSE TABLE_SELECT_MODE_EXTENDED |
| 8726 | :type select_mode: (str) |
| 8727 | :param display_row_numbers: if True, the first column of the table will be the row # |
| 8728 | :type display_row_numbers: (bool) |
| 8729 | :param starting_row_number: The row number to use for the first row. All following rows will be based on this starting value. Default is 0. |
| 8730 | :type starting_row_number: (int) |
| 8731 | :param num_rows: The number of rows of the table to display at a time |
| 8732 | :type num_rows: (int) |
| 8733 | :param row_height: height of a single row in pixels |
| 8734 | :type row_height: (int) |
| 8735 | :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| 8736 | :type font: (str or (str, int[, str]) or None) |
| 8737 | :param justification: 'left', 'right', 'center' are valid choices |
| 8738 | :type justification: (str) |
| 8739 | :param text_color: color of the text |
| 8740 | :type text_color: (str) |
| 8741 | :param background_color: color of background |
| 8742 | :type background_color: (str) |
| 8743 | :param alternating_row_color: if set then every other row will have this color in the background. |
| 8744 | :type alternating_row_color: (str) |
| 8745 | :param selected_row_colors: Sets the text color and background color for a selected row. Same format as button colors - tuple ('red', 'yellow') or string 'red on yellow'. Defaults to theme's button color |
| 8746 | :type selected_row_colors: str or (str, str) |
| 8747 | :param header_text_color: sets the text color for the header |
| 8748 | :type header_text_color: (str) |
| 8749 | :param header_background_color: sets the background color for the header |
| 8750 | :type header_background_color: (str) |
| 8751 | :param header_font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| 8752 | :type header_font: (str or (str, int[, str]) or None) |
| 8753 | :param header_border_width: Border width for the header portion |
no outgoing calls
no test coverage detected