Ejemplo n.º 1
0
    def paintContent(self, target):
        """Paints the content of this component.

        @param target:
                   the Paint Event.
        @raise PaintException:
                    if the paint operation failed.
        """
        super(AbstractSplitPanel, self).paintContent(target)

        position = str(self._pos) + self.UNIT_SYMBOLS[self._posUnit]

        target.addAttribute('position', position)

        if self.isLocked():
            target.addAttribute('locked', True)

        target.addAttribute('reversed', self._posReversed)

        if self._firstComponent is not None:
            self._firstComponent.paint(target)
        else:
            temporaryComponent = VerticalLayout()
            temporaryComponent.setParent(self)
            temporaryComponent.paint(target)
        if self._secondComponent is not None:
            self._secondComponent.paint(target)
        else:
            temporaryComponent = VerticalLayout()
            temporaryComponent.setParent(self)
            temporaryComponent.paint(target)
Ejemplo n.º 2
0
    def paintContent(self, target):
        """Paints the content of this component.

        @param target:
                   the Paint Event.
        @raise PaintException:
                    if the paint operation failed.
        """
        super(AbstractSplitPanel, self).paintContent(target)

        position = str(self._pos) + self.UNIT_SYMBOLS[self._posUnit]

        target.addAttribute('position', position)

        if self.isLocked():
            target.addAttribute('locked', True)

        target.addAttribute('reversed', self._posReversed)

        if self._firstComponent is not None:
            self._firstComponent.paint(target)
        else:
            temporaryComponent = VerticalLayout()
            temporaryComponent.setParent(self)
            temporaryComponent.paint(target)
        if self._secondComponent is not None:
            self._secondComponent.paint(target)
        else:
            temporaryComponent = VerticalLayout()
            temporaryComponent.setParent(self)
            temporaryComponent.paint(target)