def _create_component(self): box = Box(bounds=[100.0, 100.0], position=[50.0, 50.0]) box.tools.append( ResizeTool(component=box, hotspots=set([ "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right" ]))) container = Container(bounds=[500, 500]) container.add(box) return container
def setUp(self): self.component = Component(position=[50, 50], bounds=[100, 100], padding=10) self.tool = ResizeTool(component=self.component)