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

Method update_position

editor/editor.py:261–268  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 self.update_position()
260
261 def update_position(self):
262 self.style['position'] = 'absolute'
263 if self.refWidget:
264 if 'left' in self.refWidget.style and 'top' in self.refWidget.style:
265 self.style['left'] = gui.to_pix(gui.from_pix(
266 self.refWidget.style['left']) + gui.from_pix(self.refWidget.style['width']))
267 self.style['top'] = gui.to_pix(gui.from_pix(
268 self.refWidget.style['top']) + gui.from_pix(self.refWidget.style['height']))
269
270
271class DragHelper(gui.Widget, DraggableItem):

Callers 1

on_dragMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected