Giter VIP home page Giter VIP logo

Comments (5)

kmatch98 avatar kmatch98 commented on September 22, 2024 1

@kevinjwalters thanks for the heads-up on this issue with the text setter.

I uncovered that the anchor_point is being set to (0,0) as a default value. So, when you update the text, it checks the anchor_point and anchored_position as if they are valid data.

The code should be updated such that anchor_point = None when the anchor_point isn't defined.

There will need to be associated changes with the anything that uses the anchor_point or get/sets the anchored_position to respond properly when anchor_point = None. It'll take me a day or two to sort through this and test it out a bit.

from adafruit_circuitpython_display_text.

kmatch98 avatar kmatch98 commented on September 22, 2024

Put this in my queue. I think it’s probably different than the case you mention. My first thought is that the bounding_box has something wrong with it but I’ll have to dig in. Glad you found a workaround in the meantime.

from adafruit_circuitpython_display_text.

kevinjwalters avatar kevinjwalters commented on September 22, 2024

I re-ordered my code as I can easily set the text to its (final) value when the Label is constructed.

from adafruit_circuitpython_display_text.

kmatch98 avatar kmatch98 commented on September 22, 2024

This was resolved by the merge PR #81

from adafruit_circuitpython_display_text.

FoamyGuy avatar FoamyGuy commented on September 22, 2024

Closed by #81 thanks @kmatch98

from adafruit_circuitpython_display_text.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.