Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1579

Python • Python query

$
0
0
Hi

I am trying for the first time to reorganise my files in my project into multiple py files and am running into a problem

I have a class defined in file A. I create an instance of this class in main.py. I have a fbutton callback function defined
in a class B which needs to update the class instanciated in main.py. No matter what I try I am unable to access main.py instanciated class
outside of main.py

Any pointers on hoe to acheive what I am trying to do would be appreciated. Also happy to take good references where I can read up on this topic

Statistics: Posted by SwissSteve2 — Tue Dec 09, 2025 10:09 pm



Viewing all articles
Browse latest Browse all 1579

Trending Articles