在我的人脸识别考勤系统中退出按钮无法工作


PS C:UsersARISEDocumentsPython_Test_Projects> cd "c:UsersARISEDocumentsPython_Test_Projects"
PS C:UsersARISEDocumentsPython_Test_Projects> python -u "c:UsersARISEDocumentsPython_Test_Projectslogin.py"
c:UsersARISEDocumentsPython_Test_Projectslogin.py:37: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
img1=img1.resize((100,100),Image.ANTIALIAS)
c:UsersARISEDocumentsPython_Test_Projectslogin.py:207: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
img=img.resize((1366,130),Image.ANTIALIAS)
c:UsersARISEDocumentsPython_Test_Projectslogin.py:216: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
bg1=bg1.resize((1366,768),Image.ANTIALIAS)
c:UsersARISEDocumentsPython_Test_Projectslogin.py:232: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
std_img_btn=std_img_btn.resize((180,180),Image.ANTIALIAS)
c:UsersARISEDocumentsPython_Test_Projectslogin.py:243: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
det_img_btn=det_img_btn.resize((180,180),Image.ANTIALIAS)
c:UsersARISEDocumentsPython_Test_Projectslogin.py:254: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
att_img_btn=att_img_btn.resize((180,180),Image.ANTIALIAS)
c:UsersARISEDocumentsPython_Test_Projectslogin.py:265: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
hlp_img_btn=hlp_img_btn.resize((180,180),Image.ANTIALIAS)
c:UsersARISEDocumentsPython_Test_Projectslogin.py:279: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
c:UsersARISEDocumentsPython_Test_Projectslogin.py:312: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.  exi_img_btn=exi_img_btn.resize((180,180),Image.ANTIALIAS)

上面提到的错误是在我的vs code终端

在这里输入图像描述在上面附加的图像中,我向您展示了我所面临的问题类型。我在上面标记的十字按钮不工作。

不再使用Image.ANTIALIAS,您必须在以后的版本中使用Image.Resampling.LANCZOS。https://pillow.readthedocs.io/en/stable/deprecations.html

关闭按钮的工作,可以使用Image.close()

最新更新