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

Method __init__

editor/editor.py:110–121  ·  view source on GitHub ↗
(self, app_instance, name_coord_x, name_coord_y, compatibility_iterable, **kwargs)

Source from the content-addressed store, hash-verified

108
109class SvgDraggablePoint(gui.SvgRectangle, DraggableItem):
110 def __init__(self, app_instance, name_coord_x, name_coord_y, compatibility_iterable, **kwargs):
111 self.w = 15
112 self.h = 15
113 super(SvgDraggablePoint, self).__init__(0, 0, self.w, self.h, **kwargs)
114 DraggableItem.__init__(self, app_instance, **kwargs)
115 self.attributes['stroke-dasharray'] = "2,2"
116 self.name_coord_x = name_coord_x
117 self.name_coord_y = name_coord_y
118 self.set_stroke(1, 'black')
119 self.set_fill('#ffcc00')
120 self.compatibility_iterable = compatibility_iterable
121 self.onmousedown.do(self.start_drag)
122
123 def setup(self, refWidget, newParent):
124 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