diff --git a/site/speed/editor.py b/site/speed/editor.py index e7a3d053..9d638923 100644 --- a/site/speed/editor.py +++ b/site/speed/editor.py @@ -30,6 +30,8 @@ def set_value(x):editor.value=x else: storage = False +__BRYTHON__.debug = int(doc['set_debug'].checked) + def reset_src(): if storage and "py_src" in storage: editor.setValue(storage["py_src"]) diff --git a/site/tests/editor.py b/site/tests/editor.py index e7a3d053..c84012b8 100644 --- a/site/tests/editor.py +++ b/site/tests/editor.py @@ -30,6 +30,8 @@ def set_value(x):editor.value=x else: storage = False +__BRYTHON__.debug = int(doc['set_debug'].checked) + def reset_src(): if storage and "py_src" in storage: editor.setValue(storage["py_src"]) @@ -66,13 +68,6 @@ def show_console(ev): doc["console"].value = output doc["console"].cols = 60 -def clear_text(ev): - editor.setValue('') - if sys.has_local_storage: - storage["py_src"]='' - - doc["console"].value='' - def run(*args): global output doc["console"].value='' diff --git a/site/tests/index.html b/site/tests/index.html index 84aee60e..d830111e 100644 --- a/site/tests/index.html +++ b/site/tests/index.html @@ -81,7 +81,6 @@ # next functions are defined in editor.py doc['show_js'].bind('click',show_js) doc['run'].bind('click',run) -doc['clear_text'].bind('click',clear_text) doc['show_console'].bind('click',show_console) doc['files'].bind('change',load) @@ -211,7 +210,6 @@