(self, app_instance, **kwargs)
| 48 | |
| 49 | class DraggableItem(gui.EventSource): |
| 50 | def __init__(self, app_instance, **kwargs): |
| 51 | gui.EventSource.__init__(self) |
| 52 | self.app_instance = app_instance |
| 53 | self.refWidget = None |
| 54 | self.parent = None |
| 55 | self.active = False |
| 56 | self.origin_x = -1 |
| 57 | self.origin_y = -1 |
| 58 | self.snap_grid_size = 15 |
| 59 | |
| 60 | def setup(self, refWidget, newParent): |
| 61 | # refWidget is the target widget that will be resized |