gtk treeview cell renderer text -- changed signal -
i using followed renderer text in cells:
renderer = gtk_cell_renderer_text_new(); column = gtk_tree_view_column_new_with_attributes((local = char_to_utf8 ("weight(kg/m)")), renderer, "text", mem_sec_weight_per_meter, null); g_free(local); gtk_tree_view_append_column(treeview, column);
i don't set editable
attribute renderer. value specified cell set other sub-function. how can changed
signal specified cell when value changed? purpose update other widget when text value in cell changed. text cell renderer, has edited
signal not useful case (or maybe misunderstand points).
see here: https://python-gtk-3-tutorial.readthedocs.org/en/latest/cellrenderers.html#cellrenderertext
if cell edited, "edited" signal emited. need connect signal own edit-function, saves edited result liststore/treestore.
Comments
Post a Comment