MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / __init__

Method __init__

PySimpleGUI/PySimpleGUI.py:9196–9355  ·  view source on GitHub ↗

:param data: The data represented using a PySimpleGUI provided TreeData class :type data: (TreeData) :param headings: List of individual headings for each column :type headings: List[str] :

(self, data=None, headings=None, visible_column_map=None, col_widths=None, col0_width=10, col0_heading='',
                 def_col_width=10, auto_size_columns=True, max_col_width=20, select_mode=None, show_expanded=False,
                 change_submits=False, enable_events=False, click_toggles_select=None, font=None, justification='right', text_color=None, border_width=None,
                 background_color=None, selected_row_colors=(None, None), header_text_color=None, header_background_color=None, header_font=None, header_border_width=None,
                 header_relief=None, num_rows=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,
                 row_height=None, vertical_scroll_only=True, hide_vertical_scroll=False, pad=None, p=None, key=None, k=None, tooltip=None,
                 right_click_menu=None, expand_x=False, expand_y=False, visible=True, metadata=None)

Source from the content-addressed store, hash-verified

9194 """
9195
9196 def __init__(self, data=None, headings=None, visible_column_map=None, col_widths=None, col0_width=10, col0_heading='',
9197 def_col_width=10, auto_size_columns=True, max_col_width=20, select_mode=None, show_expanded=False,
9198 change_submits=False, enable_events=False, click_toggles_select=None, font=None, justification='right', text_color=None, border_width=None,
9199 background_color=None, selected_row_colors=(None, None), header_text_color=None, header_background_color=None, header_font=None, header_border_width=None,
9200 header_relief=None, num_rows=None,
9201 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,
9202 row_height=None, vertical_scroll_only=True, hide_vertical_scroll=False, pad=None, p=None, key=None, k=None, tooltip=None,
9203 right_click_menu=None, expand_x=False, expand_y=False, visible=True, metadata=None):
9204 """
9205 :param data: The data represented using a PySimpleGUI provided TreeData class
9206 :type data: (TreeData)
9207 :param headings: List of individual headings for each column
9208 :type headings: List[str]
9209 :param visible_column_map: Determines if a column should be visible. If left empty, all columns will be shown
9210 :type visible_column_map: List[bool]
9211 :param col_widths: List of column widths so that individual column widths can be controlled
9212 :type col_widths: List[int]
9213 :param col0_width: Size of Column 0 which is where the row numbers will be optionally shown
9214 :type col0_width: (int)
9215 :param col0_heading: Text to be shown in the header for the left-most column
9216 :type col0_heading: (str)
9217 :param def_col_width: default column width
9218 :type def_col_width: (int)
9219 :param auto_size_columns: if True, the size of a column is determined using the contents of the column
9220 :type auto_size_columns: (bool)
9221 :param max_col_width: the maximum size a column can be
9222 :type max_col_width: (int)
9223 :param select_mode: Use same values as found on Table Element. Valid values include: TABLE_SELECT_MODE_NONE TABLE_SELECT_MODE_BROWSE TABLE_SELECT_MODE_EXTENDED
9224 :type select_mode: (str)
9225 :param show_expanded: if True then the tree will be initially shown with all nodes completely expanded
9226 :type show_expanded: (bool)
9227 :param change_submits: DO NOT USE. Only listed for backwards compat - Use enable_events instead
9228 :type change_submits: (bool)
9229 :param enable_events: Turns on the element specific events. Tree events happen when row is clicked
9230 :type enable_events: (bool)
9231 :param click_toggles_select: If True then clicking a row will cause the selection for that row to toggle between selected and deselected
9232 :type click_toggles_select: (bool)
9233 :param font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
9234 :type font: (str or (str, int[, str]) or None)
9235 :param justification: 'left', 'right', 'center' are valid choices
9236 :type justification: (str)
9237 :param text_color: color of the text
9238 :type text_color: (str)
9239 :param border_width: Border width/depth in pixels
9240 :type border_width: (int)
9241 :param background_color: color of background
9242 :type background_color: (str)
9243 :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
9244 :type selected_row_colors: str or (str, str)
9245 :param header_text_color: sets the text color for the header
9246 :type header_text_color: (str)
9247 :param header_background_color: sets the background color for the header
9248 :type header_background_color: (str)
9249 :param header_font: specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike
9250 :type header_font: (str or (str, int[, str]) or None)
9251 :param header_border_width: Border width for the header portion
9252 :type header_border_width: (int | None)
9253 :param header_relief: Relief style for the header. Values are same as other elements that use relief. RELIEF_RAISED RELIEF_SUNKEN RELIEF_FLAT RELIEF_RIDGE RELIEF_GROOVE RELIEF_SOLID

Callers

nothing calls this directly

Calls 2

theme_button_colorFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected