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

Method update_position

editor/editor.py:143–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 self.update_position()
142
143 def update_position(self):
144 if self.refWidget:
145 self.set_position(float(self.refWidget.attributes[self.name_coord_x])-self.w/2, float(
146 self.refWidget.attributes[self.name_coord_y])-self.h/2)
147
148
149class SvgDraggableRectangleResizePoint(gui.SvgRectangle, DraggableItem):

Callers 1

on_dragMethod · 0.95

Calls 1

set_positionMethod · 0.45

Tested by

no test coverage detected