File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def cells(self):
124
124
Sequence of |_Cell| instances corresponding to cells in this column.
125
125
Supports ``len()``, iteration and indexed access.
126
126
"""
127
- return _ColumnCells (self ._tbl , self ._gridCol )
127
+ return _ColumnCells (self ._tbl , self ._gridCol , self )
128
128
129
129
@property
130
130
def width (self ):
@@ -139,13 +139,13 @@ def width(self, value):
139
139
self ._gridCol .w = value
140
140
141
141
142
- class _ColumnCells (object ):
142
+ class _ColumnCells (Parented ):
143
143
"""
144
144
Sequence of |_Cell| instances corresponding to the cells in a table
145
145
column.
146
146
"""
147
- def __init__ (self , tbl , gridCol ):
148
- super (_ColumnCells , self ).__init__ ()
147
+ def __init__ (self , tbl , gridCol , parent ):
148
+ super (_ColumnCells , self ).__init__ (parent )
149
149
self ._tbl = tbl
150
150
self ._gridCol = gridCol
151
151
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ def cells_fixture(self):
232
232
cell_count = 2
233
233
tbl = _tbl_bldr (rows = cell_count , cols = 1 ).element
234
234
gridCol = tbl .tblGrid .gridCol_lst [0 ]
235
- cells = _ColumnCells (tbl , gridCol )
235
+ cells = _ColumnCells (tbl , gridCol , None )
236
236
return cells , cell_count
237
237
238
238
You can’t perform that action at this time.
0 commit comments