def widgetDragged(self, widget): """ Call autosize(). Overwritten function of ConnectableWidgetOwner. """ if self.autosizeEnabled(): self.autosize() # not sure this is still needed (2010-07-06), remove if possible #for connection in [child for child in self.children() if isinstance(child, PortConnection)]: # connection.updateConnection() ConnectableWidgetOwner.widgetDragged(self, widget)
def widgetDragged(self, widget): """ Calls autosizeScrollArea(). """ ConnectableWidgetOwner.widgetDragged(self, widget) self.autosizeScrollArea()
def __init__(self, parent=None): logging.debug(__name__ + ": __init__") ZoomableWidget.__init__(self, parent) ConnectableWidgetOwner.__init__(self)
def mousePressEvent(self, event): """ Makes sure event is forwarded to both base classes. """ ConnectableWidgetOwner.mousePressEvent(self, event) VispaWidget.mousePressEvent(self, event)