File tree Expand file tree Collapse file tree 1 file changed +5
-22
lines changed
Expand file tree Collapse file tree 1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change 1111from .ns import qn
1212from .shared import CT_String
1313from .text import CT_P
14- from .xmlchemy import BaseOxmlElement
14+ from .xmlchemy import BaseOxmlElement , ZeroOrMore
1515
1616
1717class CT_Row (BaseOxmlElement ):
1818 """
1919 ``<w:tr>`` element
2020 """
21- def add_tc (self ):
22- """
23- Return a new <w:tc> element that has been added at the end of any
24- existing tc elements.
25- """
26- tc = CT_Tc .new ()
27- return self ._append_tc (tc )
21+ tc = ZeroOrMore ('w:tc' )
22+
23+ def _new_tc (self ):
24+ return CT_Tc .new ()
2825
2926 @classmethod
3027 def new (cls ):
@@ -33,20 +30,6 @@ def new(cls):
3330 """
3431 return OxmlElement ('w:tr' )
3532
36- @property
37- def tc_lst (self ):
38- """
39- Sequence containing the ``<w:tc>`` child elements in this ``<w:tr>``.
40- """
41- return self .findall (qn ('w:tc' ))
42-
43- def _append_tc (self , tc ):
44- """
45- Return *tc* after appending it to end of tc sequence.
46- """
47- self .append (tc )
48- return tc
49-
5033
5134class CT_Tbl (BaseOxmlElement ):
5235 """
You can’t perform that action at this time.
0 commit comments