(self, widget)
| 248 | self.lbl.set_text('CheckBox changed, new value: ' + str(newValue)) |
| 249 | |
| 250 | def open_input_dialog(self, widget): |
| 251 | self.inputDialog = gui.InputDialog('Input Dialog', 'Your name?', |
| 252 | initial_value='type here', |
| 253 | width=500) |
| 254 | self.inputDialog.confirm_value.do( |
| 255 | self.on_input_dialog_confirm) |
| 256 | |
| 257 | # here is returned the Input Dialog widget, and it will be shown |
| 258 | self.inputDialog.show(self) |
| 259 | |
| 260 | def on_input_dialog_confirm(self, widget, value): |
| 261 | self.lbl.set_text('Hello ' + value) |