Skip to content

Commit 8dd5a32

Browse files
davidplowmanchrisruk
authored andcommitted
Add set_overlay to NullPreview
It does nothing, of course, we just want it to have the same interface as all the other preview implementations. Signed-off-by: David Plowman <[email protected]>
1 parent 7b0a3e0 commit 8dd5a32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

picamera2/previews/null_preview.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ def start(self, picam2):
3232
self.thread.start()
3333
self.event.wait()
3434

35+
def set_overlay(self, overlay):
36+
# This only exists so as to have the same interface as other preview windows.
37+
pass
38+
3539
def handle_request(self, picam2):
3640
completed_request = picam2.process_requests()
3741
if completed_request:

0 commit comments

Comments
 (0)