Skip to content

Commit 37c9848

Browse files
ankith26aatle
andauthored
Fix indentation in docs mouse example
Co-authored-by: aatle <[email protected]>
1 parent 68808a8 commit 37c9848

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

buildconfig/stubs/pygame/mouse.pyi

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ scroll, such as ``which`` (it will tell you what exact mouse device trigger the
5050
clock = pygame.time.Clock()
5151
5252
def main():
53-
while True:
54-
for event in pygame.event.get():
53+
while True:
54+
for event in pygame.event.get():
5555
if event.type == QUIT:
56-
pygame.quit()
57-
return
56+
pygame.quit()
57+
return
5858
elif event.type == MOUSEWHEEL:
59-
print(event)
60-
print(event.x, event.y)
61-
print(event.flipped)
62-
print(event.which)
63-
# can access properties with
64-
# proper notation(ex: event.y)
65-
clock.tick(60)
59+
print(event)
60+
print(event.x, event.y)
61+
print(event.flipped)
62+
print(event.which)
63+
# can access properties with
64+
# proper notation(ex: event.y)
65+
clock.tick(60)
6666
6767
# Execute game:
6868
main()

0 commit comments

Comments
 (0)