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

Method update_position

editor/editor.py:182–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

180 self.update_position()
181
182 def update_position(self):
183 if self.refWidget:
184 self.set_position(float(self.refWidget.attributes['x'])+float(self.refWidget.attributes['width'])-self.w/2, float(
185 self.refWidget.attributes['y'])+float(self.refWidget.attributes['height'])-self.h/2)
186
187
188class SvgDraggableCircleResizeRadius(gui.SvgRectangle, DraggableItem):

Callers 1

on_dragMethod · 0.95

Calls 1

set_positionMethod · 0.45

Tested by

no test coverage detected