DictionaryGrid should fire an edited event

Bug #536678 reported by Rick Spencer on 2010-03-10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Quickly Widgets
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:
                c.renderer.connect("toggled",self._edited_toggled, c)
                c.renderer.connect("edited",self._edited, c)

And then they need to create a self._edited_toggled and a self._edited handler.

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.

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
dg.connect("cell-edited", __handle_edited_cells)
def __handle_edited_cells(widget, cell, row, key, new_value, data=None):
    print new_value

Changed in quidgets:
status: New → Confirmed
importance: Undecided → High
status: Confirmed → Fix Committed
assignee: nobody → Rick Spencer (rick-rickspencer3)
Changed in quidgets:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers