[Tutor] Livewires

Kent Johnson kent37 at tds.net
Wed Apr 26 13:18:51 CEST 2006


ryan luna wrote:
> Hey,
> So i decided to check out this Livewires Modules, but
> while running through the tutorial i run into a
> problem,
> When i was trying to do the graphics stuff,
> when i try and use this code
> 
> circle(300,195, endpoints = ((280,180),(320,180)))
> 
> and i get this error
> 
> Traceback (most recent call last):
>      File "(stdin)", line 1, in ?
>      File
> "D:\programfiles\python\livewires\beginners.py", line
> 527, in circle
>        if r <0: raise ExVadParmaeters('negative
> radius')
> livewires.beginngers.ExBadParameters: negative radius

This looks to me like a bug in LiveWires. It is comparing None to 0 
which has an undefined result. Try changing line 527 in beginners.py to
     if r is not None and r < 0: raise ExBadParameters('negative radius')


> So im pretty new to this Livewires ****, which iv
> said, so any help would be great.

Please take your bad language somewhere else, it's not appropriate on 
this list.

Kent



More information about the Tutor mailing list