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

Method _update_first_row

remi/gui.py:3035–3047  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 3

set_use_titleMethod · 0.95
set_row_countMethod · 0.95
set_column_countMethod · 0.95

Calls 3

connectMethod · 0.80
get_textMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected