beremiz
Clone
Summary
Browse
Changes
Graph
tests: fix load_and_build_tests.pytest
wxPython4
2022-08-12, Edouard Tisserant
5a0f7fcf9a8f
tests: fix load_and_build_tests.pytest
Leftover import from previously commented-out tests. Commented out as well.
// widget_back.ysl2
widget_desc("Back") {
longdesc
||
Back widget brings focus back to previous page in history when clicked.
||
shortdesc > Jump to previous page
}
// TODO: use es6
widget_class("Back")
||
on_click(evt) {
if(jump_history.length > 1){
jump_history.pop();
let [page_name, index] = jump_history.pop();
switch_page(page_name, index);
}
}
init() {
this.element.setAttribute("onclick", "hmi_widgets['"+this.element_id+"'].on_click(evt)");
}
||