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

Method update_position

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

Source from the content-addressed store, hash-verified

163 return ()
164
165 def update_position(self):
166 self.style['position']='absolute'
167 self.style['left']=gui.to_pix(gui.from_pix(self.refWidget.style['left']) - gui.from_pix(self.style['width'])/2)
168 self.style['top']=gui.to_pix(gui.from_pix(self.refWidget.style['top']) - gui.from_pix(self.style['height'])/2)
169
170
171class FloatingPanesContainer(gui.Container):

Callers 5

setupMethod · 0.95
stop_dragMethod · 0.95
on_dragMethod · 0.95
on_pane_selectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected