pfalcon / picotui

Lightweight, pure-Python Text User Interface (TUI) widget toolkit with minimal dependencies. Dedicated to the Pycopy project.
https://github.com/pfalcon/pycopy
MIT License
811 stars 70 forks source link

Use Enums #14

Closed funkybob closed 4 years ago

funkybob commented 7 years ago

Use Enum instead of distinct defines.

This makes it simpler to import all ACTION values at once.

pfalcon commented 7 years ago

Did you read README and references to MicroPython and minimalism?

funkybob commented 7 years ago

You're absolutely right... and I had it wrong anyway. Fixed :)

pfalcon commented 7 years ago

Sorry, I still don't see why this is needed. IMHO, it works pretty well as it is. (Well, maybe they will be moved per https://github.com/pfalcon/picotui/issues/8).