(self)
| 3033 | self._update_first_row() |
| 3034 | |
| 3035 | def _update_first_row(self): |
| 3036 | cl = TableEditableItem if self._editable else TableItem |
| 3037 | if self.__use_title: |
| 3038 | cl = TableTitle |
| 3039 | |
| 3040 | if len(self.children) > 0: |
| 3041 | for c_key in self.children['0'].children.keys(): |
| 3042 | instance = cl(self.children['0'].children[c_key].get_text()) |
| 3043 | self.children['0'].append(instance, c_key) |
| 3044 | # here the cells of the first row are overwritten and aren't appended by the standard Table.append |
| 3045 | # method. We have to restore de standard on_click internal listener in order to make it working |
| 3046 | # the Table.on_table_row_click functionality |
| 3047 | instance.onclick.connect(self.children['0'].on_row_item_click) |
| 3048 | |
| 3049 | def item_at(self, row, column): |
| 3050 | """Returns the TableItem instance at row, column cordinates |
no test coverage detected