(self, refWidget, newParent)
| 58 | self.snap_grid_size = 15 |
| 59 | |
| 60 | def setup(self, refWidget, newParent): |
| 61 | # refWidget is the target widget that will be resized |
| 62 | # newParent is the container |
| 63 | if self.parent: |
| 64 | try: |
| 65 | self.parent.remove_child(self) |
| 66 | except Exception: |
| 67 | pass |
| 68 | if newParent == None: |
| 69 | return |
| 70 | self.parent = newParent |
| 71 | self.refWidget = refWidget |
| 72 | |
| 73 | try: |
| 74 | self.parent.append(self) |
| 75 | except Exception: |
| 76 | pass |
| 77 | self.update_position() |
| 78 | |
| 79 | def start_drag(self, emitter, x, y): |
| 80 | self.active = True |
nothing calls this directly
no test coverage detected