How change default column width for Person?

Hi guys, gould you help me set another default width of Date column for Person card? I must resize it manually every time. Which file is it? Ubuntu 20.
Thanks a lot!
Screenshot from 2024-02-03 12-33-18

Changing column sizes is a part of 5.2. I am assuming you are using 5.1 so this requires a hack.

In your program files find gui\editors\displaytabs\eventembedlist.py

Starting at line 74 (5.1.6)

_column_names = [
    (_('Description'), EventRefModel.COL_DESCR[0], 240, TEXT_COL,
                        EventRefModel.COL_FONTWEIGHT[0], None),
    (_('Type'), EventRefModel.COL_TYPE[0], 120, TEXT_COL,
                        EventRefModel.COL_FONTWEIGHT[0], None),
    (_('ID'), EventRefModel.COL_GID[0], 60, TEXT_COL, -1, None),
    (_('Date'), EventRefModel.COL_SORTDATE[0], 150, MARKUP_COL, -1, None),
    (_('Place'), EventRefModel.COL_PLACE[0], 240, 0, -1, None),
    (_('Role'), EventRefModel.COL_ROLE[0], 80, TEXT_COL, -1, None),
    (_('Main Participants'), EventRefModel.COL_PARTIC[0], 240, TEXT_COL,
                        -1, None),
    None,
    None,
    None,
    (_('Age'), EventRefModel.COL_SORTAGE[0], 60, TEXT_COL, -1, None),
    None,
    (_('Private'), EventRefModel.COL_PRIVATE[0], 30, ICON_COL, -1, 'gramps-lock')
    ]

Increase the size of the Date column currently set at 150.

1 Like

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