15 lines
348 B
Python
15 lines
348 B
Python
|
from browser import window
|
||
|
# interface to screenful
|
||
|
|
||
|
class ScreenfulEmptyShell:
|
||
|
def __init__(self):
|
||
|
func = lambda: None
|
||
|
self.Editor = {"changed": func}
|
||
|
|
||
|
def screenful():
|
||
|
return window.Screenful if window.Screenful else ScreenfulEmptyShell()
|
||
|
|
||
|
|
||
|
def changed():
|
||
|
screenful().Editor.changed();
|