MCPcopy Index your code
hub / github.com/rawpython/remi / new_from_list

Method new_from_list

remi/gui.py:2933–2943  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 6

mainMethod · 0.45
menu_dialog_clickedMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
_voices_callbackMethod · 0.45
mainMethod · 0.45

Calls 1

append_from_listMethod · 0.80

Tested by

no test coverage detected