FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

TypeError: 'Dimension' object cannot be interpreted as an integer · Issue #67 · plotdevice/plotdevice · GitHub

Repository navigation

TypeError: 'Dimension' object cannot be interpreted as an integer #67

Open

Description

for a in range (0, WIDTH):
    print(a)

works if I use int(WIDTH)

Activity

  1. samizdatco commented on May 23, 2025

    Member

    Depending on the units you used when setting the size() it's quite possible that WIDTH and HEIGHT will be floating point values, so you'll always need to wrap them in int() in contexts where an integer is required (such as your range() use case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL