rudiHammad

Untitled

Jun 4th, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. class CoreTools(object):
  2.  
  3.     @classmethod
  4.     def getDistance(self):
  5.        
  6.         """bla bla bla bla some code """
  7.         distance = 10
  8.         return distance
  9.  
  10.        
  11. class JointTools(CoreTools):
  12.    
  13.     def makeStretchy(self):
  14.        
  15.         myDistance = CoreTools.getDistance()
  16.         """bla bla bla bla more code that will use myDistance"""
  17.        
  18.  
  19. # So then if i want to use makestretchy() I type or link to a button ui the following      
  20. jointTools = JointTools()
  21. jointTools.makeStretchy()
Advertisement
Add Comment
Please, Sign In to add comment