PageRenderTime 62ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/pyjs/tests/test004.py

http://pyjamas.googlecode.com/
Python | 14 lines | 8 code | 6 blank | 0 comment | 0 complexity | 5f7ad8e5d0cb9bf53cb6c2addb8363d3 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. class UIObject:
  2. def setElement(self, element):
  3. self.element = element
  4. class Widget(UIObject):
  5. pass
  6. class FocusWidget(Widget):
  7. def __init__(self, element):
  8. self.setElement(element)