ZeroPhone / ZPUI

Official ZeroPhone UI framework, based on pyLCI
http://zpui.rtfd.org/
Apache License 2.0
79 stars 19 forks source link

Changing UI elements to have a single common class #96

Closed CRImier closed 5 years ago

CRImier commented 6 years ago

Currently, there are a lot of UI elements which could share primitives - keymap handling, for one. It's going to be useful for further splitting UI elements into smaller classes - allowing to share more and more primitives. I'm going to split common functionality into a single base class and then see where it can go.

CRImier commented 6 years ago

UPD - this will not, for now, touch Printer elements - which are functions.

CRImier commented 6 years ago

Changes are now in devel branch. They allow to write UI elements much quicker (using the BaseUIElement class) and assign keymap entries more easily (passing strings as references to in-class methods that don't need the UI element to go into background, and passing functions where the UI element has to go into background).

CRImier commented 5 years ago

I consider this finished - pulling the remaining TODOs out into separate issues.