From e7c639d18ea066b39bfabeb17158dde53d080384 Mon Sep 17 00:00:00 2001 From: david-perez Date: Thu, 16 Aug 2018 11:51:12 +0200 Subject: [PATCH] Left mouse click on datetime module opens gsimplecal --- bumblebee/modules/datetime.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bumblebee/modules/datetime.py b/bumblebee/modules/datetime.py index ffd0b0d..e4569e1 100644 --- a/bumblebee/modules/datetime.py +++ b/bumblebee/modules/datetime.py @@ -37,6 +37,8 @@ class Module(bumblebee.engine.Module): lcl = self.parameter("locale", ".".join(l)) locale.setlocale(locale.LC_TIME, lcl.split(".")) + engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd="gsimplecal") + def get_time(self, widget): enc = locale.getpreferredencoding() retval = datetime.datetime.now().strftime(self._fmt)