MCPcopy Index your code
hub / github.com/rawpython/remi / setup

Method setup

editor/editor.py:60–77  ·  view source on GitHub ↗
(self, refWidget, newParent)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

update_positionMethod · 0.95
remove_childMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected