Left mouse click on datetime module opens gsimplecal

This commit is contained in:
david-perez 2018-08-16 11:51:12 +02:00
parent 5239e3ecf7
commit e7c639d18e

View file

@ -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)