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

Method add_pane

examples/resizable_panes.py:186–192  ·  view source on GitHub ↗
(self, pane, x, y)

Source from the content-addressed store, hash-verified

184 self.append(self.dragHelper)
185
186 def add_pane(self, pane, x, y):
187 pane.style['left'] = gui.to_pix(x)
188 pane.style['top'] = gui.to_pix(y)
189 pane.onclick.do(self.on_pane_selection)
190 pane.style['position'] = 'absolute'
191 self.append(pane)
192 self.on_pane_selection(pane)
193
194 def on_pane_selection(self, emitter):
195 print('on pane selection')

Callers 1

mainMethod · 0.80

Calls 3

on_pane_selectionMethod · 0.95
doMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected