Skip to content

Commit

Permalink
Merge pull request psychopy#6846 from TEParsons/dev-bf-screenbuffer-win
Browse files Browse the repository at this point in the history
BF: Handle when the Photodiode Emulator can't find a Window
  • Loading branch information
TEParsons authored Sep 13, 2024
2 parents 8a806a8 + 6f37a74 commit ad1a0ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psychopy/hardware/photodiode.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,9 @@ def dispatchMessages(self):
"""
Check the screen for changes and dispatch events as appropriate
"""
from psychopy.visual import Window
# if there's no window, skip
if self.win is None:
if not isinstance(self.win, Window):
return
# get rect
left, bottom = self._pos.pix + self.win.size / 2
Expand Down

0 comments on commit ad1a0ea

Please sign in to comment.