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

Method update_position

examples/resizable_panes.py:90–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

88 return ()
89
90 def update_position(self):
91 self.style['position']='absolute'
92 self.style['left']=gui.to_pix(gui.from_pix(self.refWidget.style['left']) + gui.from_pix(self.refWidget.style['width']) - gui.from_pix(self.style['width'])/2)
93 self.style['top']=gui.to_pix(gui.from_pix(self.refWidget.style['top']) + gui.from_pix(self.refWidget.style['height']) - gui.from_pix(self.style['height'])/2)
94
95
96

Callers 3

setupMethod · 0.95
stop_dragMethod · 0.95
on_dragMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected