Left mouse click on datetime module opens gsimplecal
This commit is contained in:
parent
5239e3ecf7
commit
e7c639d18e
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ class Module(bumblebee.engine.Module):
|
||||||
lcl = self.parameter("locale", ".".join(l))
|
lcl = self.parameter("locale", ".".join(l))
|
||||||
locale.setlocale(locale.LC_TIME, lcl.split("."))
|
locale.setlocale(locale.LC_TIME, lcl.split("."))
|
||||||
|
|
||||||
|
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd="gsimplecal")
|
||||||
|
|
||||||
def get_time(self, widget):
|
def get_time(self, widget):
|
||||||
enc = locale.getpreferredencoding()
|
enc = locale.getpreferredencoding()
|
||||||
retval = datetime.datetime.now().strftime(self._fmt)
|
retval = datetime.datetime.now().strftime(self._fmt)
|
||||||
|
|
Loading…
Reference in a new issue