From d07168beb7807244ae73ce5ef4390dc907cf3da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Mand=C3=A1k?= Date: Fri, 25 Sep 2015 13:58:08 +0200 Subject: [PATCH] Module: Allow passing of arguments to callable callbacks. --- i3pystatus/core/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/core/modules.py b/i3pystatus/core/modules.py index 30755cf..0c069c4 100644 --- a/i3pystatus/core/modules.py +++ b/i3pystatus/core/modules.py @@ -102,7 +102,7 @@ class Module(SettingsBase): self.logger.debug("cb=%s args=%s" % (cb, args)) if callable(cb): - cb(self) + cb(self, *args) elif hasattr(self, cb): if cb is not "run": getattr(self, cb)(*args)