示例#1
0
    def _set_background(self):

        if u'__background__' in self:
            del self['__background__']
        self['__background__'] = Rect(self.left,
                                      self.top,
                                      self.width,
                                      self.height,
                                      color=self.background_color.colorspec,
                                      fill=True)
        Canvas.lower_to_bottom(self, u'__background__')
示例#2
0
    def lower_to_bottom(self, element):

        Canvas.lower_to_bottom(self, element)
        Canvas.lower_to_bottom(self, u'__background__')