We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61cdb31 commit 10e4a24Copy full SHA for 10e4a24
README.md
@@ -38,17 +38,19 @@ You can pass `oneshot=True` to create one screen shot of all monitors.
38
from platform import system
39
from mss import *
40
41
- this_is = system()
42
- if this_is == 'Linux':
43
- MSS = MSSLinux
44
- elif this_is == 'Windows':
45
- MSS = MSSWindows
46
- else:
47
- err = 'System "{0}" not implemented.'.format(this_is)
+ systems = {
+ 'Linux' : MSSLinux,
+ 'Windows': MSSWindows,
+ 'Darwin' : MSSMac
+ }
+ try:
+ MSS = systems[system()]
48
+ except KeyError:
49
+ err = 'System "{0}" not implemented.'.format(system())
50
raise NotImplementedError(err)
51
52
try:
- mss = MSS()
53
+ mss = MSS(debug=False)
54
55
# One screen shot per monitor
56
for filename in mss.save():
0 commit comments