diff --git a/pgfw/Audio.py b/pgfw/Audio.py index 2054e80..592735a 100644 --- a/pgfw/Audio.py +++ b/pgfw/Audio.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -import os, re, shutil, pygame, sys +import os, re, shutil, pygame, sys, collections from .GameChild import * from .Sprite import * @@ -869,7 +869,7 @@ class AudioPanelButton(Sprite): pos.move(-container.location.left, -container.location.top) if self.collide(pos): if self.pass_mods: - kwargs = dict(**self.callback_kwargs, **{"mods": pygame.key.get_mods()}) + kwargs = collections.ChainMap(self.callback_kwargs, {"mods": pygame.key.get_mods()}) else: kwargs = self.callback_kwargs self.callback(**kwargs)