(self, app_instance, name_coord_x, name_coord_y, compatibility_iterable, **kwargs)
| 108 | |
| 109 | class SvgDraggablePoint(gui.SvgRectangle, DraggableItem): |
| 110 | def __init__(self, app_instance, name_coord_x, name_coord_y, compatibility_iterable, **kwargs): |
| 111 | self.w = 15 |
| 112 | self.h = 15 |
| 113 | super(SvgDraggablePoint, self).__init__(0, 0, self.w, self.h, **kwargs) |
| 114 | DraggableItem.__init__(self, app_instance, **kwargs) |
| 115 | self.attributes['stroke-dasharray'] = "2,2" |
| 116 | self.name_coord_x = name_coord_x |
| 117 | self.name_coord_y = name_coord_y |
| 118 | self.set_stroke(1, 'black') |
| 119 | self.set_fill('#ffcc00') |
| 120 | self.compatibility_iterable = compatibility_iterable |
| 121 | self.onmousedown.do(self.start_drag) |
| 122 | |
| 123 | def setup(self, refWidget, newParent): |
| 124 | if type(refWidget) in self.compatibility_iterable or refWidget == None: |
nothing calls this directly
no test coverage detected