コード例 #1
0
ファイル: Label.py プロジェクト: MickaelSERENO/PYGUIML
 def _setSize(self, size, resetOrigin=True):
     self._text.scale = sf.Vector2(size.x/self._text.local_bounds.width,\
             size.y/self._text.local_bounds.height)
     Widget._setSize(self, sf.Vector2(self._text.local_bounds.width,\
             self._text.local_bounds.height), resetOrigin)