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

Method __init__

editor/editor.py:150–160  ·  view source on GitHub ↗
(self, app_instance, compatibility_iterable, **kwargs)

Source from the content-addressed store, hash-verified

148
149class SvgDraggableRectangleResizePoint(gui.SvgRectangle, DraggableItem):
150 def __init__(self, app_instance, compatibility_iterable, **kwargs):
151 self.w = 15
152 self.h = 15
153 super(SvgDraggableRectangleResizePoint, self).__init__(
154 0, 0, self.w, self.h, **kwargs)
155 DraggableItem.__init__(self, app_instance, **kwargs)
156 self.attributes['stroke-dasharray'] = "2,2"
157 self.set_stroke(1, 'black')
158 self.set_fill('#ffcc00')
159 self.compatibility_iterable = compatibility_iterable
160 self.onmousedown.do(self.start_drag)
161
162 def setup(self, refWidget, newParent):
163 if type(refWidget) in self.compatibility_iterable or refWidget == None:

Callers

nothing calls this directly

Calls 4

__init__Method · 0.45
set_strokeMethod · 0.45
set_fillMethod · 0.45
doMethod · 0.45

Tested by

no test coverage detected