mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-23 06:41:32 +03:00
Merge Quartz import statements
This commit is contained in:
parent
6864790efb
commit
86c99b9186
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user