Beispiel #1
0
 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)
Beispiel #2
0
    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)
Beispiel #3
0
 def widgetDragged(self, widget):
     """ Calls autosizeScrollArea().
     """
     ConnectableWidgetOwner.widgetDragged(self, widget)
     self.autosizeScrollArea()
Beispiel #4
0
 def __init__(self, parent=None):
     logging.debug(__name__ + ": __init__")
     ZoomableWidget.__init__(self, parent)
     ConnectableWidgetOwner.__init__(self)
Beispiel #5
0
 def mousePressEvent(self, event):
     """ Makes sure event is forwarded to both base classes.
     """
     ConnectableWidgetOwner.mousePressEvent(self, event)
     VispaWidget.mousePressEvent(self, event)
 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)
Beispiel #8
0
 def mousePressEvent(self, event):
     """ Makes sure event is forwarded to both base classes.
     """
     ConnectableWidgetOwner.mousePressEvent(self, event)
     VispaWidget.mousePressEvent(self, event)