Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app-pyaudioplayer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
santiago duque
app-pyaudioplayer
Commits
8c45815e
Commit
8c45815e
authored
Jan 13, 2025
by
santiago duque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now working with pygame keyboard
parent
0e4dba85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
main.py
main.py
+3
-4
No files found.
main.py
View file @
8c45815e
...
@@ -8,9 +8,7 @@ import pygame
...
@@ -8,9 +8,7 @@ import pygame
# import signal
# import signal
# import keyboard
# import keyboard
pygame
.
init
()
# window = pygame.display.set_mode((300,300))
clock
=
pygame
.
time
.
Clock
()
dir_path
=
os
.
getcwd
()
dir_path
=
os
.
getcwd
()
sound_dir
=
os
.
getcwd
()
+
"/sounds"
sound_dir
=
os
.
getcwd
()
+
"/sounds"
...
@@ -64,7 +62,8 @@ def play_sound(index):
...
@@ -64,7 +62,8 @@ def play_sound(index):
"""
"""
pygame
.
init
()
clock
=
pygame
.
time
.
Clock
()
setup_sounds
()
setup_sounds
()
run
=
True
run
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment