def rebuild( self ):
        """
        Rebuilds the current item in the scene.
        """
        self.markForRebuild(False)
        
        self._textData = []
        
        if ( self.rebuildBlocked() ):
            return
        
        scene = self.scene()
        if ( not scene ):
            return
        
        # rebuild a month look
        if ( scene.currentMode() == scene.Mode.Month ):
            self.rebuildMonth()
        elif ( scene.currentMode() in (scene.Mode.Day, scene.Mode.Week) ):
            self.rebuildDay()
def rebuild ( self ) : self . markForRebuild ( False ) self . _textData = [ ] if ( self . rebuildBlocked ( ) ) : return scene = self . scene ( ) if ( not scene ) : return if ( scene . currentMode ( ) == scene . Mode . Month ) : self . rebuildMonth ( ) elif ( scene . currentMode ( ) in ( scene . Mode . Day , scene . Mode . Week ) ) : self . rebuildDay ( )
Rebuilds the current item in the scene.