Beispiel #1
0
 def copy(self):
     new = self.__class__(self._bot, self.text)
     _copy_attrs(
         self, new,
         ('x', 'y', 'width', 'height', '_transform', '_transformmode',
          '_fillcolor', '_fontfile', '_fontsize', '_align', '_lineheight'))
     return new
Beispiel #2
0
 def copy(self):
     copied_instance = self.__class__(self._bot, self.text)
     _copy_attrs(
         self,
         copied_instance,
         (
             "x",
             "y",
             "width",
             "height",
             "style",
             "weight",
             "_fillcolor",
             "fontfile",
             "fontsize",
             "align",
             "lineheight",
             "_transform",
             "_transformmode",
         ),
     )
     return copied_instance
Beispiel #3
0
 def copy(self):
     p = self.__class__(self._bot, self.path, self.x, self.y, self.width, self.height)
     _copy_attrs(self._bot, p, self.stateAttributes)
     return p
Beispiel #4
0
 def copy(self):
     new = self.__class__(self._bot, self.text)
     _copy_attrs(self, new,
         ('x', 'y', 'width', 'height', '_transform', '_transformmode',
         '_fillcolor', '_fontfile', '_fontsize', '_align', '_lineheight'))
     return new
Beispiel #5
0
 def copy(self):
     p = self.__class__(self._bot, self.path, self.x, self.y, self.width,
                        self.height)
     _copy_attrs(self._bot, p, self.state_attributes)
     return p