Board.music
Contents
Board.music#
`` Board.music`` handles Music in your miniworlder.
You can add a music with:
if board.music.is_playing():
board.music.play(path)
When you call music.play() with the path to a new piece of music, the current music is paused and the new music is started.
- class miniworldmaker.boards.board_manager.board_music_manager.BoardMusicManager(app)[source]#
Public Methods:
__init__
(app)pause
()pauses a music
returns True, if board is playing a music (and music ist not paused")
get_path
()gets path to current music
play
([path])plays a music from path
stop
()stops a music
set_volume
(volume)sets volume of music
gets volume of music