Hướng dẫn python rich table footer - chân trang bảng phong phú python
Xác định một cột trong bảng ~. Thông số
Nhận tất cả các ô trong cột, không bao gồm tiêu đề. Sao chép () [Nguồn] ¶()[source]¶Trả về một bản sao của cột này. Loại trở lạiCột PropertyFlexible: Bool¶flexible: bool¶Kiểm tra nếu cột này linh hoạt. chân trang: renderableType = '' ¶: RenderableType=''¶Có thể hiển thị cho chân trang (thường là một chuỗi) Loại hìnhRenderableType Footer_style: Union [str, style] = '' ¶:Union[str, Style]=''¶Phong cách của chân trang. Loại hìnhRenderableType Footer_style: Union [str, style] = '' ¶:RenderableType=''¶Phong cách của chân trang. Loại hìnhRenderableType Footer_style: Union [str, style] = '' ¶:Union[str, Style]=''¶Phong cách của chân trang. Loại hìnhRenderableType Footer_style: Union [str, style] = '' ¶:JustifyMethod='left'¶Phong cách của chân trang. StyletypeTiêu đề: RenderableType = '' ¶ Có thể hiển thị cho tiêu đề (thường là một chuỗi): Optional[int]= None¶header_style: Union [str, style] = '' ¶ Loại hìnhOptional[int] RenderableType:Optional[int]=None¶Footer_style: Union [str, style] = '' ¶ Loại hìnhOptional[int] RenderableType:bool=False¶Footer_style: Union [str, style] = '' ¶ Loại hìnhRenderableType Footer_style: Union [str, style] = '' ¶:OverflowMethod= 'ellipsis'¶Phong cách của chân trang. Loại hìnhTiêu đề: RenderableType = '' ¶ Có thể hiển thị cho tiêu đề (thường là một chuỗi): Optional[int]= None¶header_style: Union [str, style] = '' ¶ Loại hìnhOptional[int] RenderableType:Union[str, Style]=''¶Footer_style: Union [str, style] = '' ¶ Loại hìnhRenderableType Footer_style: Union [str, style] = '' ¶:VerticalAlignMethod='top'¶Phong cách của chân trang. StyletypeTiêu đề: RenderableType = '' ¶ Có thể hiển thị cho tiêu đề (thường là một chuỗi):Optional[int]=None¶header_style: Union [str, style] = '' ¶ Loại hìnhOptional[int] RenderableTyperich.table.Row(style=None, end_section=False)[source]¶Footer_style: Union [str, style] = '' ¶ Thông số
Chỉ định phần cuối của phần, sẽ buộc một dòng bên dưới hàng. Phong cách: Tùy chọn [Union [str, style]] = không có: Optional[Union[str,Style]]=None¶Phong cách áp dụng cho hàng. classrich.table.table (*tiêu đề, title = none, caption = none, width = none, min_width = none, box = ...) pad_edge = true, expand = false, show_header = true, show_footer = false, show_edge = true, show_lines = false .footer ', Border_Style = none, title_style = nonerich.table.Table(*headers, title=None, caption=None, width=None, min_width=None, box=Box(...), safe_box=None, padding=(0, 1), collapse_padding=False, pad_edge=True, expand=False, show_header=True, show_footer=False, show_edge=True, show_lines=False, leading=0, style='none', row_styles=None, header_style='table.header', footer_style='table.footer', border_style=None, title_style=None, caption_style=None, title_justify='center', caption_justify='center', highlight=False)[source]¶Một giao diện điều khiển có thể vẽ để vẽ một bàn. Thông số
Thêm một cột vào bảng. Thông số
Không có add_row (*kết xuất, style = none, end_section = false) [Nguồn] ¶(*renderables, style=None, end_section=False)[source]¶Thêm một hàng kết xuất. Thông số
Lỗi.NotRenderableerRor - Nếu bạn thêm thứ gì đó có thể được hiển thị. – If you add something that can’t be rendered. Loại trở lạiKhông có add_row (*kết xuất, style = none, end_section = false) [Nguồn] ¶()[source]¶Thêm một hàng kết xuất. Loại trở lạiKhông có add_row (*kết xuất, style = none, end_section = false) [Nguồn] ¶expand:bool¶Thêm một hàng kết xuất. Thông số(console, index)[source]¶*Kết xuất (không có hoặc có thể kết xuất) - Mỗi ô liên tiếp phải là một đối tượng có thể kết xuất (bao gồm STR) hoặc
Không có add_row (*kết xuất, style = none, end_section = false) [Nguồn] ¶ grid(*headers, padding=0, collapse_padding=True, pad_edge=False, expand=False)[source]¶Thêm một hàng kết xuất. Thông số
Thêm một phần mới (vẽ một dòng sau hàng hiện tại). Loại trở lạiKhông có PropertyExpand: Bool¶padding: Tuple[int,int,int,int]¶Đặt một bản thân không phải là bản thân. get_row_style (bảng điều khiển, chỉ mục) [nguồn] ¶row_count:int¶Nhận phong cách hàng hiện tại. |