> Bernd Maier wrote:
> 
> > 1) in key.py:
> > - I added a new property:
> > "s.add(setting.Distance('keyGap', '0.2cm', descr = 'Gap between key
> > and keytext', usertext= 'key-text gap', formatting=True))"
> > 
> > - then the total box size changes:
> > "# total size of box
> >  gap = s.get('keyGap').convert(painter) #added this line
> >  symbolwidth = s.get('keyLength').convert(painter)
> >  totalwidth = ( (maxwidth + gap + symbolwidth)*numcols +
> > height*(numcols-1) ) #changed height to gap here"
> > 
> > - writing the key text must be changed as well:
> > "# write key text
> >  if showtext:
> >    painter.setPen(textpen)
> >    utils.Renderer(painter, font,
> >                   xpos + gap + symbolwidth, ypos,
> >                   plotter.getKeyText(num),
> >                  -1, 1).render() # changed height to gap"
> > 

Hello,

I really like Veusz, it has a lot of tune parameters. Unfortunately, the gap 
between key and keytext is hardcoded now, and it is equal to the text height. 
I would be nice if you add the corresponding parameter as an arbitrary length 
(as was proposed in this old thread) or a fraction of the height.

Regards and thanks,
Yaroslav




_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à