You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
381 B
15 lines
381 B
from browser import window
|
|
# interface to screenful
|
|
|
|
class ScreenfulEmptyShell:
|
|
def __init__(self):
|
|
func = lambda: console.log("Screenful data change!")
|
|
self.Editor = {"changed": func}
|
|
|
|
def screenful():
|
|
return window.Screenful if window.Screenful else ScreenfulEmptyShell()
|
|
|
|
|
|
def changed():
|
|
screenful().Editor.changed();
|