(self, imagePath, callback, title)
| 103 | self.style['background-color'] = 'white' |
| 104 | |
| 105 | def add_command(self, imagePath, callback, title): |
| 106 | icon = gui.Image(imagePath, height='90%', margin='0px 1px') |
| 107 | icon.style['outline'] = '1px solid lightgray' |
| 108 | icon.onclick.do(callback) |
| 109 | icon.attributes['title'] = title |
| 110 | self.append(icon) |
| 111 | |
| 112 | |
| 113 | class ClassEventConnectorEditor(gui.ClassEventConnector): |