コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: resizable.py プロジェクト: Parashurama/Kytten
 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)
コード例 #4
0
ファイル: resizable.py プロジェクト: SwineEngine/felyne
 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)