Skip to content

Programmatically build DynamicText sprites within a custom scene #27

@chadjmorgan

Description

@chadjmorgan

I am trying to programmatically create dynamic text sprites within a custom scene. I am building the sprite like this:

text_1 = sprites.DynamicFancyText(width, height, data_source=None)
text_1.x = 30
text_1.y = 9
text_1.apply_config({'data_label': 'text_one'})
self.sprites.append(text_1)

for some reason, the text is not updating via MQTT when the topic is updated. Dynamic text built within the config file updates fine, it's just the dynamic text I programmatically build within the custom scene.

I think maybe it has something to do with no data_source being sent to the sprite?

Any ideas? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions