Merge Quartz import statements

This commit is contained in:
Isaiah Odhner 2023-07-20 16:41:48 -04:00
parent 6864790efb
commit 86c99b9186

View File

@ -3666,8 +3666,7 @@ Columns: {len(palette) // 2}
# size = screen.frame().size.width, screen.frame().size.height # size = screen.frame().size.width, screen.frame().size.height
# return size # return size
from Quartz import CGDisplayBounds from Quartz import CGDisplayBounds, CGMainDisplayID
from Quartz import CGMainDisplayID
main_monitor = CGDisplayBounds(CGMainDisplayID()) main_monitor = CGDisplayBounds(CGMainDisplayID())
return (int(main_monitor.size.width), int(main_monitor.size.height)) return (int(main_monitor.size.width), int(main_monitor.size.height))