Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python access to vraiable in another classe

class CLASS1:
    def testingFunc():
        CLASS1.testingFunc.thisValue = 123

class CLASS2:
    def createValue():
        CLASS1.testingFunc()
        print(CLASS1.testingFunc.thisValue)

CLASS2.createValue()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #access #vraiable #classe
ADD COMMENT
Topic
Name
3+8 =