From 6de12a0e96f7ed6c4b596b4333447198e6efffd3 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 2 Nov 2018 00:52:04 +0100 Subject: [PATCH] Added support for date time click --- bumblebee/modules/datetime.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bumblebee/modules/datetime.py b/bumblebee/modules/datetime.py index 14c2d67..9e42f84 100644 --- a/bumblebee/modules/datetime.py +++ b/bumblebee/modules/datetime.py @@ -30,6 +30,9 @@ class Module(bumblebee.engine.Module): def __init__(self, engine, config): super(Module, self).__init__(engine, config, bumblebee.output.Widget(full_text=self.get_time)) + self._app = self.parameter("open", "calendar") + engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, + cmd=self._app) self._fmt = self.parameter("format", default_format(self.name)) l = locale.getdefaultlocale() if not l or l == (None, None):