screeninfo optional on macos
This commit is contained in:
1 parent
844eab754f
commit
49a6aa5818
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -19,8 +19,8 @@ try:
|
||||
scale = min(scale, (m.height-100) / WINDOW_Y, (m.width-100) / WINDOW_X)
|
||||
WINDOW_SCALE_FAC = max(0.4,scale)
|
||||
except Exception as e:
|
||||
print("Exception while getting screen resolution", e)
|
||||
WINDOW_SCALE_FAC = 1
|
||||
print(f"Exception {e} while getting screen resolution (if on MacOS, 'pip3 install screeninfo' manually or ignore this)")
|
||||
WINDOW_SCALE_FAC = 0.85
|
||||
|
||||
Config.set("graphics", "width", int(WINDOW_SCALE_FAC*WINDOW_X))
|
||||
Config.set("graphics", "height", int(WINDOW_SCALE_FAC*WINDOW_Y))
|
||||
|
||||
@@ -48,7 +48,7 @@ setup(
|
||||
"kivy_deps.gstreamer;platform_system=='Windows'",
|
||||
"kivy>=2.0.0rc2",
|
||||
"kivymd>=0.104.1",
|
||||
"screeninfo", # for screen resolution
|
||||
"screeninfo;platform_system!='Darwin'", # for screen resolution, has problems on macos
|
||||
],
|
||||
python_requires=">=3.6, <4",
|
||||
entry_points={"console_scripts": ["katrain=katrain.__main__:run_app"]},
|
||||
|
||||
Reference in new issue
Block a user