(self, title, message)
| 1207 | print("Key pressed: " + str(keycode) + " ctrl: " + str(ctrl) + " shift: " + str(shift)) |
| 1208 | |
| 1209 | def show_error_dialog(self, title, message): |
| 1210 | error_dialog = gui.GenericDialog(title, message) |
| 1211 | error_dialog.children["title"].style['background-color'] = 'red' |
| 1212 | error_dialog.children["message"].style['white-space'] = 'pre' |
| 1213 | error_dialog.cancel.style['display'] = 'none' |
| 1214 | error_dialog.show(self) |
| 1215 | |
| 1216 | def onload(self, emitter): |
| 1217 | if not self.additional_widgets_loaded: |
no test coverage detected