(self, app_instance, compatibility_iterable, **kwargs)
| 148 | |
| 149 | class SvgDraggableRectangleResizePoint(gui.SvgRectangle, DraggableItem): |
| 150 | def __init__(self, app_instance, compatibility_iterable, **kwargs): |
| 151 | self.w = 15 |
| 152 | self.h = 15 |
| 153 | super(SvgDraggableRectangleResizePoint, self).__init__( |
| 154 | 0, 0, self.w, self.h, **kwargs) |
| 155 | DraggableItem.__init__(self, app_instance, **kwargs) |
| 156 | self.attributes['stroke-dasharray'] = "2,2" |
| 157 | self.set_stroke(1, 'black') |
| 158 | self.set_fill('#ffcc00') |
| 159 | self.compatibility_iterable = compatibility_iterable |
| 160 | self.onmousedown.do(self.start_drag) |
| 161 | |
| 162 | def setup(self, refWidget, newParent): |
| 163 | if type(refWidget) in self.compatibility_iterable or refWidget == None: |
nothing calls this directly
no test coverage detected