I am having a problem running my code. When I execute the login from the first window and switch to the second one to start the camera, the application closes and shows the following error:
<code>UserWarning: CTkLabel Warning: Given image is not CTkImage but <class 'PIL.ImageTk.PhotoImage'>. Image can not be scaled on HighDPI displays, use CTkImage instead.
warnings.warn(f"{type(self).__name__} Warning: Given image is not CTkImage but {type(image)}. Image can not be scaled on HighDPI displays, use CTkImage instead.n")
2024-07-17 17:00:21.894 Python[5364:186849] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
invalid command name "4393516992update"
while executing
"4393516992update"
("after" script)
invalid command name "4367499648check_dpi_scaling"
while executing
"4367499648check_dpi_scaling"
("after" script)
invalid command name "4394878592_click_animation"
while executing
"4394878592_click_animation"
("after" script)
</code>
<code>UserWarning: CTkLabel Warning: Given image is not CTkImage but <class 'PIL.ImageTk.PhotoImage'>. Image can not be scaled on HighDPI displays, use CTkImage instead.
warnings.warn(f"{type(self).__name__} Warning: Given image is not CTkImage but {type(image)}. Image can not be scaled on HighDPI displays, use CTkImage instead.n")
2024-07-17 17:00:21.894 Python[5364:186849] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
invalid command name "4393516992update"
while executing
"4393516992update"
("after" script)
invalid command name "4367499648check_dpi_scaling"
while executing
"4367499648check_dpi_scaling"
("after" script)
invalid command name "4394878592_click_animation"
while executing
"4394878592_click_animation"
("after" script)
</code>
UserWarning: CTkLabel Warning: Given image is not CTkImage but <class 'PIL.ImageTk.PhotoImage'>. Image can not be scaled on HighDPI displays, use CTkImage instead.
warnings.warn(f"{type(self).__name__} Warning: Given image is not CTkImage but {type(image)}. Image can not be scaled on HighDPI displays, use CTkImage instead.n")
2024-07-17 17:00:21.894 Python[5364:186849] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
invalid command name "4393516992update"
while executing
"4393516992update"
("after" script)
invalid command name "4367499648check_dpi_scaling"
while executing
"4367499648check_dpi_scaling"
("after" script)
invalid command name "4394878592_click_animation"
while executing
"4394878592_click_animation"
("after" script)
New contributor
Daniel Augusto is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2