lexonomy_custom_editor/src/browser/internal.py

16 lines
203 B
Python
Raw Normal View History

2019-11-05 21:18:20 +00:00
# type: ignore
class Document:
def __getattr__(self, attr):
return lambda x: document[attr](x)
class Window:
def __getattr__(self, attr):
return lambda x: window[attr](x)