def on_change(): templateserver.update_stylesheet(model, css_ed.text())
def on_change(): model['css'] = css_ed.toPlainText() templateserver.update_stylesheet(model, model['css'])