'@todo: docstring'

def addToLayout(self, startrow, startcol, andThenPostpone=None, endPostpone=None):

    if (endPostpone != None):
        self.postponeLayoutUpdate = (not endPostpone)
    if ((not self.postponeLayoutUpdate) and (self.layout != None) and ((startrow != self.nextrow) or (startcol != self.nextcol))):
        if (self.widgetsInList != []):
            self.layout.addTempBlock((startrow, startcol), (self.nextrow, self.nextcol), self.widgetsInList)
            self.widgetsInList = []
    if (andThenPostpone != None):
        self.postponeLayoutUpdate = andThenPostpone
