Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

call a function from another class python

class A:
    def method1(arg1, arg2):
        # do code here

class B:
    A.method1(1,2)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #function #class #python
ADD COMMENT
Topic
Name
4+2 =