txoof / epdlib

Python library for creating and writing modular layouts for e-paper screens
GNU General Public License v3.0
16 stars 8 forks source link

Updating layout dictionary values does not update block objects #43

Closed txoof closed 1 year ago

txoof commented 1 year ago

Only setting the layout property calls the _set_blocks method that updates the blocks.

Add a method to update dict keys and push those changes through to the blocks. This should make it easier to dynamically change text color and image mode.

txoof commented 1 year ago

Consider adding a method to the block super class that updates the format. Each subclass can override this as need

txoof commented 1 year ago

use update_block_props to handle this.

txoof commented 1 year ago

This is only partially fixed. sending a new resolution needs to force recalculation of all the elements Nope. This was a problem in PaperPi.