# Why can't I access the thing in library in my class

**URL:** <https://discourse.processing.org/t/why-cant-i-access-the-thing-in-library-in-my-class/39554>\
**Category:** Processing.py\
**Created:** [November 2, 2022, 4:17pm UTC](https://discourse.processing.org/t/why-cant-i-access-the-thing-in-library-in-my-class/39554 "2022-11-02T16:17:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![huxx](https://avatars.discourse-cdn.com/v4/letter/h/edb3f5/32.png) [@huxx](https://discourse.processing.org/u/huxx)\
**Post date:** [November 2, 2022, 4:17pm UTC](https://discourse.processing.org/t/why-cant-i-access-the-thing-in-library-in-my-class/39554/1 "2022-11-02T16:17:52Z")

</div>

🥲

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/4/6/4698a7d3631644ec6e62c33dab05324c64b2291d.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/3/c/3c7e6238bbefd09a353ed6dac33e09d3d67ea637.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/4/649fd1c4b26f7c161d76e84c4db26c1f494009b1.png)

If I write all things in the Main, it can work

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/2/f/2f7b7f77743cfecc6f2ab6f2c311a6e2c032bb1a.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/0/0/00b822bd1556ee86db948ae5c4ff99eb4b96b763.png)

How can I treat this things, I don’t want to write all this kind objects in Main and deliver it to the class  
How can I directly use the library in class .

---

<div class="post-metadata">

**Author:** ![debxyz](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@debxyz](https://discourse.processing.org/u/debxyz)\
**Post date:** [November 2, 2022, 4:52pm UTC](https://discourse.processing.org/t/why-cant-i-access-the-thing-in-library-in-my-class/39554/2 "2022-11-02T16:52:33Z")

</div>

Hello @huxx

Please, copy, paste and format your code.  
Screen shots are difficult to read and people cannot run your code to test how it is working.  
Help us help you!! 🙂

Also, please clarify “thing”…

🤓

---

<div class="post-metadata">

**Author:** ![huxx](https://avatars.discourse-cdn.com/v4/letter/h/edb3f5/32.png) [@huxx](https://discourse.processing.org/u/huxx)\
**Post date:** [November 3, 2022, 3:11am UTC](https://discourse.processing.org/t/why-cant-i-access-the-thing-in-library-in-my-class/39554/4 "2022-11-03T03:11:01Z")

</div>

I’m sorry for my informal format, and this is the new link: [How to directly use the class from library in my class - Processing.py - Processing Foundation](https://discourse.processing.org/t/how-to-directly-use-the-class-from-library-in-my-class/39564)
