Default width for table columns

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Default width for table columns

Gerhard Killesreiter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

I would like to change the default width for some of the table
elements in gramps.

Specifically, I would like the width of the "page" column wider that
you can see when you click on the "source / citation" tab of an event.
This needs to be just a bit wider for me since I not only put a page
but also the volume in there.

Can somebody kindly point out where to change it? I am not afraid to
make code changes.

Cheers,
Gerhard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlOwdwMACgkQfg6TFvELooRYEgCgxHgDjoeYXnqkhoD4oKhTjctE
vzMAnivkY7ezbABTq2G5y6UT6gaZHvp/
=PdBr
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: Default width for table columns

Nick Hall
On 29/06/14 21:28, Gerhard Killesreiter wrote:

> I would like to change the default width for some of the table
> elements in gramps.
>
> Specifically, I would like the width of the "page" column wider that
> you can see when you click on the "source / citation" tab of an event.
> This needs to be just a bit wider for me since I not only put a page
> but also the volume in there.
>
> Can somebody kindly point out where to change it? I am not afraid to
> make code changes.

You need to edit gramps/gui/editors/displaytabs/citationembedlist.py

The widths are specified in pixels in the _column_names list.

Nick.


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: Default width for table columns

Gerhard Killesreiter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/30/14 17:30, Nick Hall wrote:

> On 29/06/14 21:28, Gerhard Killesreiter wrote:
>> I would like to change the default width for some of the table
>> elements in gramps.
>>
>> Specifically, I would like the width of the "page" column wider
>> that you can see when you click on the "source / citation" tab of
>> an event. This needs to be just a bit wider for me since I not
>> only put a page but also the volume in there.
>>
>> Can somebody kindly point out where to change it? I am not afraid
>> to make code changes.
>
> You need to edit
> gramps/gui/editors/displaytabs/citationembedlist.py
>
> The widths are specified in pixels in the _column_names list.

Thank you, works like a charm.

Cheers,
Gerhard


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlOxheIACgkQfg6TFvELooTaSwCeJ9+qzbd1jVxLhpxr81NZ98PY
itEAn0l73tYwEIjgApu2UK8qVOIpqD0j
=OmuP
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users