Script demo_multiClick_py
|
|
1 from joy import *
2
22
24 progress( "MultiClick: [%s]" % (", ".join(evts.keys())) )
25
26 if __name__=="__main__":
27 print """
28 Demonstration of the MultiClick plan
29 ------------------------------------
30
31 Shows the default behavior of the MultiClick plan, which can
32 be used to collect <something>UP and <something>DOWN events
33 and synthesize them into Click events -- a single, short click
34 and MultiClick events -- multiple buttons down at once.
35
36 The demonstration runs with allowEmpty=True, which also creates
37 MultiClick events when the clicked keys change to an empty set
38 """
39 app = MultiClickApp()
40 app.run()
41