Sets the current mode that this calendar will be displayed in.
        
        :param      mode | <XCalendarWidget.Mode>

def setCurrentMode( self, mode ):
        """
        Sets the current mode that this calendar will be displayed in.
        
        :param      mode | <XCalendarWidget.Mode>
        """
        self.scene().setCurrentMode(mode)
        self.scene().setSceneRect(0, 0, self.width() - 5, self.height() - 5)
        if ( not self.signalsBlocked() ):
            self.currentModeChanged.emit(mode)