PathView.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:ui2 作者: controversial 项目源码 文件源码
def draw(self):
        # Set drawing attributes
        ui.set_color(self._color)
        ui.set_shadow(*self._shadow)
        # Calculations
        scale_x = self.width / self._pathsize[0]
        scale_y = self.height / self._pathsize[0]
        # Scale the path
        new_path = ui2.path_helpers.scale_path(self._path, (scale_x, scale_y))
        new_path.fill()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号