Skip to content

Commit

Permalink
修改打开图片的默认缩放比例
Browse files Browse the repository at this point in the history
  • Loading branch information
cforth committed Oct 29, 2019
1 parent cf4e950 commit 4c1d156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImgLook.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, master=None, **kwargs):
# 设置图片最大的宽度
self.img_max_width = 1960
# 设置默认的图片宽度,并设置图片大小滑动条的位置
self.zoom_width = self.img_max_width * 0.45
self.zoom_width = self.img_max_width * 0.22
# 图片需要逆时针旋转的角度
self.rotate_angle = 0
self.imgSizeScale.set(self.zoom_width * 100 / self.img_max_width)
Expand Down

0 comments on commit 4c1d156

Please sign in to comment.