Pmw.Counter and Pmw.ScrolledCanvas questions

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Thu Jul 11 06:29:24 EDT 2002


On Thursday 11 Jul 2002 9:21 am, Martin Franklin wrote:
> On Thursday 11 Jul 2002 5:41 am, John McMonagle wrote:
> > My first question is to do with Pmw.Counter.  I am creating a
> > Pmw.Counter like so (see below code sample):
> >
> >
> > Because the label spans two text lines, the entryfield is also
> > expanded to this height.
> >
> > Is it possible to set the height of the entry field so as to only
> > appear as a single line ?  Another way to say it is can the frame
> > component height and position be changed within the hull component ?
> >

I just had some more thoughts on the Counter problem.  Pmw uses the grid 
geometry manager and presumably for the Counter has a sticky='news' option
which would account for what you are seeing, It should be possible to change 
this.

Ok from the source:-

self._counterEntry.grid(column = 1, row = 0, sticky = 'news')

This depends which orientation you are asking for but it's that sticky='news'
that is causing your problem, what to do???  I would start by changing it to 
just sticky='ew' and see what happens.


Martin.








More information about the Python-list mailing list