src/eric7/Snapshot/SnapshotDefaultGrabber.py

branch
eric7
changeset 10692
9becf9ca115c
parent 10683
779cda568acb
child 11090
f5f5f5803935
equal deleted inserted replaced
10691:d1a603a70f83 10692:9becf9ca115c
56 SnapshotModes.RECTANGLE, 56 SnapshotModes.RECTANGLE,
57 SnapshotModes.FREEHAND, 57 SnapshotModes.FREEHAND,
58 SnapshotModes.ELLIPSE, 58 SnapshotModes.ELLIPSE,
59 ) 59 )
60 60
61 def grab( 61 def grab(self, mode, delay, _captureCursor, _captureDecorations):
62 self, mode, delay=0, captureCursor=False, captureDecorations=False # noqa: U100
63 ):
64 """ 62 """
65 Public method to perform a grab operation potentially after a delay. 63 Public method to perform a grab operation potentially after a delay.
66 64
67 @param mode screenshot mode 65 @param mode screenshot mode
68 @type ScreenshotModes 66 @type ScreenshotModes
69 @param delay delay in seconds 67 @param delay delay in seconds
70 @type int 68 @type int
71 @param captureCursor flag indicating to include the mouse cursor (unused) 69 @param _captureCursor flag indicating to include the mouse cursor (unused)
72 @type bool 70 @type bool
73 @param captureDecorations flag indicating to include the window 71 @param _captureDecorations flag indicating to include the window
74 decorations (unused) 72 decorations (unused)
75 @type bool 73 @type bool
76 """ 74 """
77 self.__mode = mode 75 self.__mode = mode
78 if delay: 76 if delay:

eric ide

mercurial