#!/usr/bin/env python3 # -*- coding:utf-8 -*- from flexx import flx class JsEmitters(flx.JsComponent): @flx.emitter def contextmenu(self): return {} @flx.emitter def contextmenu_exit(self): return {} @flx.emitter def pinching_placeholder(self): return {} @flx.emitter def pinched_placeholder(self): return {} @flx.emitter def remove_tag_from_selection(self, key, value): return {"key": key, "value": value} @flx.emitter def add_tag_to_selection(self, key, value): return {"key": key, "value": value} @flx.emitter def add_new_tag(self, key, value): return {"key": key, "value": value} @flx.emitter def remove_tag(self, key, value): return {"key": key, "value": value} @flx.emitter def share_one(self, cid, webcid, filename): return {"filename": filename, "cid": cid, "webcid": webcid} @flx.emitter def fullscreen(self): return {} @flx.emitter def delete_one(self, cid): return {"cid": cid} @flx.emitter def move_selection_to_state(self, state): return {"state": state} @flx.emitter def move_selection_to_owner(self, owner): return {"owner": owner} @flx.emitter def share_selection(self): return {} @flx.emitter def share_all(self): return {} @flx.emitter def create_event(self, text, date): return {"text": text, "date": date} @flx.emitter def move_selection_to_date(self, date): return {"date": date} @flx.emitter def move_selection_to_event(self, event_id): return {"event_id": event_id} @flx.emitter def delete_event(self, event_id): return {"event_id": event_id} @flx.emitter def count_tags(self, key, value): return {"key": key, "value": value} class PyEmitters(flx.PyComponent): @flx.emitter def counted_tags(self, key, value, count): return {"key": key, "value": value, "count": count} @flx.emitter def shared_one(self, url, weburl): return {"url": url, "weburl": weburl} @flx.emitter def shared_selection(self, dirhash): return {"url": dirhash} @flx.emitter def ok(self): return {} @flx.emitter def compute(self): return {} class PyEmittersJs(flx.JsComponent): @flx.emitter def shared_one(self, url, weburl): return {"url": url, "weburl": weburl} @flx.emitter def shared_selection(self, dirhash): return {"url": dirhash}