Beispiel #1
0
 def setDataAccessor(self, accessor):
     """ Sets the DataAccessor from which the boxes are created.
     
     You need to call updateContent() in order to make the changes visible.   
     """
     if not isinstance(accessor, BasicDataAccessor):
         raise TypeError(__name__ + " requires data accessor of type BasicDataAccessor.")
     if not isinstance(accessor, RelativeDataAccessor):
         raise TypeError(__name__ + " requires data accessor of type RelativeDataAccessor.")
     WidgetView.setDataAccessor(self, accessor)
Beispiel #2
0
    def __init__(self, parent=None):
        logging.debug(__name__ + ": __init__")
        WidgetView.__init__(self, parent)

        self._operationId = 0
        self._boxContentScript = ""
        self._sortBeforeArranging = True
        self._arrangeUsingRelationsFlag = True
        self._leftMargin = ConnectableWidget.LEFT_MARGIN
        self._topMargin = ConnectableWidget.TOP_MARGIN
        self._updateCounter = 0

        self.setPalette(QPalette(Qt.black, Qt.white))
Beispiel #3
0
    def __init__(self, parent=None):
        logging.debug(__name__ + ": __init__")
        WidgetView.__init__(self, parent)

        self._operationId = 0
        self._boxContentScript = ""
        self._sortBeforeArranging = True
        self._arrangeUsingRelationsFlag=True
        self._leftMargin = ConnectableWidget.LEFT_MARGIN
        self._topMargin = ConnectableWidget.TOP_MARGIN
        self._updateCounter=0

        self.setPalette(QPalette(Qt.black, Qt.white))
Beispiel #4
0
 def closeEvent(self, event):
     self.clear()
     WidgetView.closeEvent(self, event)
Beispiel #5
0
 def closeEvent(self, event):
     self.clear()
     WidgetView.closeEvent(self, event)