Adding data_change to use to signal to Screenful that save button nedds a litle star

This commit is contained in:
2019-11-20 22:25:31 +01:00
parent 9f16aa999b
commit 1f038e177a
6 changed files with 49 additions and 5 deletions

15
src/lib/screenful.py Normal file
View File

@@ -0,0 +1,15 @@
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():
console.log(Screenful, window.Screenful)
screenful().Editor.changed();