swig/Examples/test-suite/python/director_thread_runme.py
Jon Schlueter b77f3afafb autopep8 cleanup of Examples/test-suite/python
automated cleanup of python pep8 whitespace compliance
2015-05-08 21:35:52 -04:00

20 lines
250 B
Python

from director_thread import Foo
class Derived(Foo):
def __init__(self):
Foo.__init__(self)
def do_foo(self):
self.val = self.val - 1
d = Derived()
d.run()
if d.val >= 0:
print d.val
raise RuntimeError
d.stop()