Pmw.Counter and Pmw.ScrolledCanvas questions

John McMonagle johnmc at velseis.com.au
Thu Jul 11 19:39:47 EDT 2002


> On Thursday 11 Jul 2002 9:21 am, Martin Franklin wrote:

> 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.

Martin, thanks for the tip.  Indeed I did change the PmwCounter.py
code to what you suggested and it worked a treat.

Thanks



More information about the Python-list mailing list