From: Bruce S. <Bru...@nc...> - 2011-03-08 16:19:57
|
Darn. The statement paintText() should be self.paintText(). Thanks much for catching the error. It will be fixed in the next release. Bruce Sherwood On Tue, Mar 8, 2011 at 2:22 AM, Symion <kn...@ip...> wrote: > > I have found problem in vis.primitives. > > from visual import * > > # works correctly > word = text(text="A\nB\nC\nD", > vertical_spacing=10) > > # Generates the error > word.vertical_spacing=1 > > Traceback (most recent call last): > File "<pyshell#2>", line 1 > word.vertical_spacing=1 > File "C:\Python27\lib\site-packages\vis\primitives.py", line 880, in > set_vertical_spacing > paintText() > NameError: global name 'paintText' is not defined |