Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CoreTools(object):
- @classmethod
- def getDistance(self):
- """bla bla bla bla some code """
- distance = 10
- return distance
- class JointTools(CoreTools):
- def makeStretchy(self):
- myDistance = CoreTools.getDistance()
- """bla bla bla bla more code that will use myDistance"""
- # So then if i want to use makestretchy() I type or link to a button ui the following
- jointTools = JointTools()
- jointTools.makeStretchy()
Advertisement
Add Comment
Please, Sign In to add comment