Пример #1
0
 def bg_class(self, _):
     raise ReadOnlyAttributeError("Cannot set a new background class. "
                                  "Initialize a new ImagePair object.")
Пример #2
0
 def image(self, _):
     raise ReadOnlyAttributeError("Manually setting the image attribute "
                                  "is not allowed. Initialize a new "
                                  "ImagePair object.")
Пример #3
0
 def labels(self, _):
     raise ReadOnlyAttributeError("Manually setting the labels "
                                  "attribute is not allowed. "
                                  "Initialize a new ImagePair object.")
Пример #4
0
 def header(self, header):
     raise ReadOnlyAttributeError("Manually setting the header attribute "
                                  "is not allowed. Initialize a new "
                                  "ImagePair object.")