DictonaryGrid should have it's own "append_column" function

Reported by Rick Spencer on 2010-04-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quickly Widgets
Wishlist
Rick Spencer

Bug Description

It might be nice to be able to more easily add a column to a dictionary grid. Currently the following non-obvious code is required:

    def add_column(self, widget, data=None):
        response, val = prompts.string("New Column","Please select a name for the new column")
        if response == gtk.RESPONSE_OK:
            self.grid.keys.append(val)
            column = conventions.get_column(val,len(self.grid.get_columns()),len(self.grid.keys), True)
            self.grid.append_column(column)
            self.grid._refresh_treeview()

This could easily be append_key(self, key) and then add the column as coded here.

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

Other bug subscribers