Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. prod.py:
  2. robo = None
  3. class Prod():
  4.     def run()
  5.         while True:
  6.             self.action1()
  7.             self.action2()
  8.     def action1(self):
  9.         robo.thing1()
  10.     def action2(self):
  11.         robo.thing2()
  12.  
  13. main.py:
  14. import robot
  15. import prod
  16.  
  17. robo = robot.Robot()
  18. production = prod.Prod()
  19. production.run()
  20. IPYthon.embed()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement