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

Method update_position

editor/editor.py:217–220  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

215 self.update_position()
216
217 def update_position(self):
218 if self.refWidget:
219 self.set_position(float(self.refWidget.attributes['cx'])+float(
220 self.refWidget.attributes['r'])-self.w/2, float(self.refWidget.attributes['cy'])-self.h/2)
221
222
223class ResizeHelper(gui.Widget, DraggableItem):

Callers 1

on_dragMethod · 0.95

Calls 1

set_positionMethod · 0.45

Tested by

no test coverage detected