Adding data_change to use to signal to Screenful that save button nedds a litle star
This commit is contained in:
15
src/lib/screenful.py
Normal file
15
src/lib/screenful.py
Normal 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();
|
||||
Reference in New Issue
Block a user