Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Calder
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Calder Ruhl Hansen

    @Calder

    0
    Reputation
    2
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Calder Follow

    Best posts made by Calder

    This user hasn't posted anything yet.

    Latest posts made by Calder

    • RE: Writing code across multiple files

      Thank you, that fixed it!
      It seems like I need to quit and reopen DrawBot for any changes in blob.py to be seen — is there any easier way?

      posted in General Discussion
      Calder
      Calder
    • Writing code across multiple files

      I’m having issues importing code from one file into another. I have a file, blob.py, which contains a class Blob. Blob has a method called draw, which contains the line fill(*self.color).

      In another file, post.py, I want to use Blobs, so I included from blob import Blob. When I run post.py in DrawBot, I get an error when I call Blob.draw, saying that the name fill is not defined. Why is this? How can I get files to know about DrawBot functionality when they are not directly run within DrawBot?

      posted in General Discussion
      Calder
      Calder