[modules/datetime] Use hardcoded application for left-click

Open app "calendar" by default when left-clicking the datetime widget.
This commit is contained in:
Tobias Witek 2018-11-03 18:23:00 +01:00
parent 453f7f2b54
commit eddc563052

View file

@ -31,7 +31,7 @@ class Module(bumblebee.engine.Module):
super(Module, self).__init__(engine, config, super(Module, self).__init__(engine, config,
bumblebee.output.Widget(full_text=self.get_time)) bumblebee.output.Widget(full_text=self.get_time))
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE,
cmd=self._app) cmd="calendar")
self._fmt = self.parameter("format", default_format(self.name)) self._fmt = self.parameter("format", default_format(self.name))
l = locale.getdefaultlocale() l = locale.getdefaultlocale()
if not l or l == (None, None): if not l or l == (None, None):