@@ -132,15 +132,15 @@ def enum_display_monitors(self):
132
132
If the monitor has rotation, you have to deal with inside
133
133
this method.
134
134
135
- Must returns a dict with at minima :
135
+ Must returns a dict with:
136
136
{
137
137
'left': the x-coordinate of the upper-left corner,
138
138
'top': the y-coordinate of the upper-left corner,
139
139
'width': the width,
140
140
'height': the height
141
141
}
142
142
'''
143
- raise NotImplementedError ('Subclasses need to implement this!' )
143
+ raise NotImplementedError ('MSS: subclasses need to implement this!' )
144
144
145
145
def get_pixels (self , monitor_infos ):
146
146
''' Retrieve screen pixels for a given monitor.
@@ -155,7 +155,7 @@ def get_pixels(self, monitor_infos):
155
155
156
156
Returns a dict with pixels.
157
157
'''
158
- raise NotImplementedError ('Subclasses need to implement this!' )
158
+ raise NotImplementedError ('MSS: subclasses need to implement this!' )
159
159
160
160
def save (self ,
161
161
output = 'screenshot-%d.png' ,
@@ -311,7 +311,7 @@ class MSSLinux(MSS):
311
311
'''
312
312
313
313
def __del__ (self ):
314
- ''' Disconnect from X server '''
314
+ ''' Disconnect from X server. '''
315
315
316
316
self .debug ('__del__' )
317
317
@@ -363,7 +363,7 @@ def __init__(self):
363
363
self .debug ('init' , 'root' , self .root )
364
364
365
365
def _set_argtypes (self ):
366
- ''' Functions arguments '''
366
+ ''' Functions arguments. '''
367
367
368
368
self .debug ('_set_argtypes' )
369
369
@@ -391,7 +391,7 @@ def _set_argtypes(self):
391
391
self .xrandr .XRRFreeCrtcInfo .argtypes = [POINTER (XRRCrtcInfo )]
392
392
393
393
def _set_restypes (self ):
394
- ''' Functions return type '''
394
+ ''' Functions return type. '''
395
395
396
396
self .debug ('_set_restypes' )
397
397
@@ -489,15 +489,15 @@ class MSSWindows(MSS):
489
489
''' Mutli-screen shot implementation for Microsoft Windows. '''
490
490
491
491
def __init__ (self ):
492
- ''' Windows initialisations '''
492
+ ''' Windows initialisations. '''
493
493
494
494
self .debug ('__init__' )
495
495
496
496
self ._set_argtypes ()
497
497
self ._set_restypes ()
498
498
499
499
def _set_argtypes (self ):
500
- ''' Functions arguments '''
500
+ ''' Functions arguments. '''
501
501
502
502
self .debug ('_set_argtypes' )
503
503
@@ -518,7 +518,7 @@ def _set_argtypes(self):
518
518
POINTER (BITMAPINFO ), UINT ]
519
519
520
520
def _set_restypes (self ):
521
- ''' Functions return type '''
521
+ ''' Functions return type. '''
522
522
523
523
self .debug ('_set_restypes' )
524
524
0 commit comments