def _get_controls(self): _, _, width, height = self.region if width < 20 or height < 20: return [(self, self.x - 8, self.x + self.width + 8, self.y + self.height + 8, self.y - 8)] else: return Control._get_controls(self)
def _get_controls(self): if self.width < 20 or self.height < 20: return [(self, self.x, self.x + self.width + 8, self.y + self.height, self.y - 8)] else: return Control._get_controls(self)