Populates the Table with a list of tuples of strings. Args: content (list): list of tuples of strings. Each tuple is a row. fill_title (bool): if true, the first tuple in the list will be set as title
(cls, content, fill_title=True, **kwargs)
| 2931 | |
| 2932 | @classmethod |
| 2933 | def new_from_list(cls, content, fill_title=True, **kwargs): |
| 2934 | """Populates the Table with a list of tuples of strings. |
| 2935 | |
| 2936 | Args: |
| 2937 | content (list): list of tuples of strings. Each tuple is a row. |
| 2938 | fill_title (bool): if true, the first tuple in the list will |
| 2939 | be set as title |
| 2940 | """ |
| 2941 | obj = cls(**kwargs) |
| 2942 | obj.append_from_list(content, fill_title) |
| 2943 | return obj |
| 2944 | |
| 2945 | def append_from_list(self, content, fill_title=False): |
| 2946 | """ |
no test coverage detected