Skip to content

Commit 5ae61b8

Browse files
committed
Make global variable private
1 parent d81abbe commit 5ae61b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/arcade_screensaver_framework/screensaver_framework.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pathlib import Path
44
import pyglet
55

6-
all_windows = []
6+
_all_windows = []
77

88

99
# Event handlers that can be applied to instances of Arcade.Window and Pyglet.window.Window
@@ -30,7 +30,7 @@ def _on_close(self):
3030

3131

3232
def _close_all_windows():
33-
for win in all_windows:
33+
for win in _all_windows:
3434
win.close()
3535

3636

@@ -69,7 +69,7 @@ def _make_windows(screensaver_window_class, is_fullscreen, win_kwargs):
6969
win = pyglet.window.Window(fullscreen=is_fullscreen, screen=screen)
7070
win.set_mouse_visible(False)
7171
win.first_mouse_motion_event = True
72-
all_windows.append(win)
72+
_all_windows.append(win)
7373
return main_win
7474

7575

0 commit comments

Comments
 (0)