5 from Vispa.Gui.ZoomableWidget
import ZoomableWidget
6 from Vispa.Gui.ZoomableScrollArea
import ZoomableScrollArea
7 from Vispa.Gui.ConnectableWidgetOwner
import ConnectableWidgetOwner
10 """ Area for drawing connectable widgets.
13 logging.debug(__name__ +
": __init__")
14 ZoomableWidget.__init__(self, parent)
15 ConnectableWidgetOwner.__init__(self)
20 ZoomableWidget.setZoom(self, zoom)
23 self.updateConnections()
26 """ If this window is widget of a ZoomableScrollArea tell scroll area to autosize.
28 if self.parent()
and isinstance(self.parent().
parent(), ZoomableScrollArea):
32 self.parent().
parent().autosizeScrollWidget()
35 """ Calls autosizeScrollArea().
37 ConnectableWidgetOwner.widgetDragged(self, widget)