We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f79136c commit c2c1871Copy full SHA for c2c1871
1 file changed
test/screenshot.py
@@ -1,23 +1,20 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
-
4
''' A simple screen shot script.
5
Use of python-mss: https://github.com/BoboTiG/python-mss/
6
pip install --upgrade mss
7
'''
8
9
10
from platform import system
11
import mss
12
13
systems = {
14
'Darwin': mss.MSSMac,
15
'Linux': mss.MSSLinux,
16
'Windows': mss.MSSWindows
17
- }
+}
18
mss_class = systems[system()]
19
20
21
if __name__ == '__main__':
22
mss = mss_class()
23
for filename in mss.save(output='monitor-%d.png', screen=1):
0 commit comments