DictionaryGrid should fire an edited event
Bug #536678 reported by
Rick Spencer
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly Widgets |
Fix Released
|
High
|
Rick Spencer |
Bug Description
Currently to detect when a field in a dictionary_grid has been edited, the programmer has to do this (in this case in a sub class, but self could be an instance as well:
for c in self.get_columns():
if type(c) == CheckColumn:
else:
And then they need to create a self._edited_
Dictionary grid should fire an edited event which delivers the necessary information to handle this in a single event and without connecting to the renderes.
Changed in quidgets: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Added a cell-edited signal that provides the cell renderer, the key for the column, and the new value
#Use the cell-edited signal to track changes "cell-edited" , __handle_ edited_ cells) edited_ cells(widget, cell, row, key, new_value, data=None):
dg.connect(
def __handle_
print new_value