Skip to content

Commit ff14387

Browse files
committed
fix selections and cell change event sync
Signed-off-by: Itay Dafna <[email protected]>
1 parent d2522bf commit ff14387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ipydatagrid/datagrid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def all(self):
7070
represented as a dictionary
7171
with keys 'r': row and 'c': column
7272
"""
73-
return list(self)
73+
return [cell for cell in self]
7474

7575
def all_values(self):
7676
"""
@@ -279,7 +279,7 @@ def __init__(self, dataframe, **kwargs):
279279
self._cell_change_handlers = CallbackDispatcher()
280280
self.on_msg(self.__handle_custom_msg)
281281

282-
def __handle_custom_msg(self, _, content): # noqa: U101,U100
282+
def __handle_custom_msg(self, _, content, buffers): # noqa: U101,U100
283283
if content["event_type"] == "cell-changed":
284284
row = content["row"]
285285
column = self._column_index_to_name(content["column_index"])

0 commit comments

Comments
 (0)