def __iadd__(self, data):
        """
        This overrides the += assignment operator to make it possible to append
        new text to a pane either by assuming the 0th element in self.content
        or by using a tuple and specifying the index as the first element.
        """
        if isinstance(data, (unicode, str)):
            if len(self.content):
                self.content[0][0] += data
            else:
                self.change_content(0, data, align=ALIGN_LEFT, attrs=1)
        elif isinstance(data, (tuple, list)):
            if len(data) < 2:
                return self
            if not isinstance(data[0], int):
                return self
            if len(self.content) < data[0]+1:
                self.change_content(data[0], data[1], align=ALIGN_LEFT, attrs=1)
                return self
            self.content[data[0]][0] += data[1] 
        return self
def __iadd__ ( self , data ) : if isinstance ( data , ( unicode , str ) ) : if len ( self . content ) : self . content [ 0 ] [ 0 ] += data else : self . change_content ( 0 , data , align = ALIGN_LEFT , attrs = 1 ) elif isinstance ( data , ( tuple , list ) ) : if len ( data ) < 2 : return self if not isinstance ( data [ 0 ] , int ) : return self if len ( self . content ) < data [ 0 ] + 1 : self . change_content ( data [ 0 ] , data [ 1 ] , align = ALIGN_LEFT , attrs = 1 ) return self self . content [ data [ 0 ] ] [ 0 ] += data [ 1 ] return self
This overrides the += assignment operator to make it possible to append
        new text to a pane either by assuming the 0th element in self.content
        or by using a tuple and specifying the index as the first element.