ThePiHut / rgbxmastree

Code examples for the RGB Xmas Tree
90 stars 38 forks source link

'Color' is not defined #1

Closed mfraser closed 4 years ago

mfraser commented 4 years ago

Trying the examples huecycle.py, rgb.py and onebyone.py, I get the error NameError: name 'Color' is not defined

maurycyg commented 4 years ago

you need to import it: from colorzero import Color

ajgbarnes commented 4 years ago

I created a pull request to fix this and also it should be setting the tree.color attribute not the tree variable itself.

maurycyg commented 4 years ago

I'll add on top of that tomorrow with a graceful exit on keyboard interruption

On Thu, 12 Dec 2019, 21:47 ajgbarnes, notifications@github.com wrote:

I created a pull request to fix this and also it should be setting the tree.color attribute not the tree variable itself.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ThePiHut/rgbxmastree/issues/1?email_source=notifications&email_token=AAFLGDLDTZOF4N547MFVYOLQYKWQ5A5CNFSM4JZNOHDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGYEYOA#issuecomment-565201976, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFLGDOGUFCEFTDJUWGCCODQYKWQ5ANCNFSM4JZNOHDA .

bennuttall commented 4 years ago

Sorry, fixed the examples now.