KivyMD
KivyMD copied to clipboard
[Bug] datatables' on_check_press Does not return MDI content for use with remove_row or other
https://github.com/kivymd/KivyMD/blob/82cde89a4b055f70b983b791592d8554c404615a/kivymd/uix/datatables/datatables.py#L1492
Description of the Bug
The provided example in the markup contains row_data with values such as ("alert", [255 / 256, 165 / 256, 0, 1], "No Signal") which doesn't return properly from the on_check_press or on_row_press. This results in a scenario where you will never be able to remove the row when you submit to remove_row
def on_check_press(self, instance_table, current_row):
'''Called when the check box in the table row is checked.'''
self.data_tables.remove_row(tuple(current_row))
Versions
- OS: Ubuntu 20.04
- Python: 3.8.10
- Kivy: v2.1.0
- KivyMD: commit @ e0e4870