left mouse click to open todo list
This commit is contained in:
parent
77287408e1
commit
8a604e4f24
1 changed files with 3 additions and 2 deletions
|
@ -21,11 +21,12 @@ class Module(bumblebee.engine.Module):
|
|||
)
|
||||
self._doc = os.path.expanduser(self.parameter("file", "~/Documents/todo.txt"))
|
||||
self._todos = self.count_items()
|
||||
engine.input.register_callback(self, button=bumblebee.input.LEFT_MOUSE, cmd="xdg-open {0}".format(self._doc))
|
||||
|
||||
|
||||
def output(self, widget):
|
||||
self._todos = self.count_items()
|
||||
return str(self._todos)
|
||||
self._todos = self.count_items()
|
||||
return str(self._todos)
|
||||
|
||||
|
||||
def state(self, widgets):
|
||||
|
|
Loading…
Reference in a new issue