May-24-2023, 01:10 AM
(This post was last modified: May-24-2023, 06:06 AM by Gribouillis.)
I know it sounds confusing so I'll try to illustrate the question
in Main:
in Main:
self.myobj = myclass self.myobj(parameters)the object code
class myobj(object) def __init__(self, ...): def mymethod((self, ...): my2ndobjinfirstobj = my2ndclassForgiving the mile of inaccuracy above, can main use my2ndobjinfirstobj as if it were created in main? or reference it somehow?
Gribouillis write May-24-2023, 06:06 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.