How save settings of column width of gramplets?

Gramps 5.2.2
Mint LMDE 6
In Relationships View I added Ancestors gramplet in right sidebar, showing 2 columns: Name | Birthdate, as you see in this screenshot.

vorfahren-tabelle

I managed to resize the columns, making the left one bigger and the second smaller. However, after restart Gramps the size is resetted as it was before.
While many names are all incomplete and truncated, there is still plenty of space next to the date of birth. How can I ensure that my individual offsets of the width remain saved?

Column widths currently do not retain a user’s preference. It would take a code hack to set your preference.

gramps/plugins/gramplet/ancestor.py

At lines 67-72 (5.2.2)

        titles = [
            (_("Name"), 0, 230),
            (_("Birth"), 2, 100),
            ("", NOSORT, 1),
            ("", NOSORT, 1),  # tooltip
            ("", NOSORT, 100),
        ]  # handle

Edit the 230 for name or 100 for births.

Remember, this is your hack. If/when you install the next program upgrade, your hack goes away.

Finally I found it. (Just wrote that the path doesn’t exist.)
It works great! I set it to

(_("Name"), 0, 320),
            (_("Birth"), 2, 80),

Now it also fits well into the sidebar of “Personen” (engl: Persons?).

1 Like

I add a private “Gramps” dummy person with Notes about my configuration, links to hacks/patches, SuperTool script Notes, et cetera.

It is so long between installation that this provides a checklist to aid my memory.

Use your Plugin Manager. menu >> Help >> Plugin Manager. Find the Ancestor gramplet. The Info button or section will tell you where the code file can be found.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.