How to call a function with in function

Asked by Muzammil Basha

I have created and defined a class along with few functions with in the class. And now i want to call a different function from the present function in the same class.. i.e
class example()
    def A():
          ....
          ....
    def B()
          .....
          .....
          #Now i want to call previously defined A(), here.. so hw can i do that..

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
sriganesh
Solved:
Last query:
Last reply:
Revision history for this message
Best sriganesh (sriganesh16) said :
#1

Hi, you can call the function A() in function B() like the below example

class example()
def A():
      ________
      ________
      ________

#Another function
def B():
      ________
      ________
      A()

Revision history for this message
Muzammil Basha (ksmuzzu) said :
#2

thanks Sriganesh.. i shal check it will let u know abt it..

Revision history for this message
Muzammil Basha (ksmuzzu) said :
#3

Thank you very much, Sriganesh.. its working.. :)

Revision history for this message
Muzammil Basha (ksmuzzu) said :
#4

Thanks sriganesh, that solved my question.