comparison light8/rsn.py @ 90:d34a4956417a

rsn has a separate thread that receives rlslider connections from a potserver.py process, rsn has a separate thread that receives rlslider connections from a potserver.py process, and they work
author drewp
date Sat, 13 Jul 2002 02:57:27 +0000
parents 70bd142d72c2
children a995fd1a8f03
comparison
equal deleted inserted replaced
89:0459cecf8145 90:d34a4956417a
31 mr_lightboard = Lightboard(root,parportdmx,DUMMY) 31 mr_lightboard = Lightboard(root,parportdmx,DUMMY)
32 root.tk_setPalette('gray40') 32 root.tk_setPalette('gray40')
33 33
34 signal(SIGINT, mr_lightboard.quit) 34 signal(SIGINT, mr_lightboard.quit)
35 35
36 #
37 # start net slider server in separate thread
38 #
39 import ExternalInput, thread
40 thread.start_new_thread(ExternalInput.start_server,())
41
36 bindkeys(root,'<Escape>', mr_lightboard.quit) 42 bindkeys(root,'<Escape>', mr_lightboard.quit)
37 43
38 root.bind_class("all","<ButtonPress-4>",lambda ev: eventtoparent(ev,"<ButtonPress-4>")) 44 root.bind_class("all","<ButtonPress-4>",lambda ev: eventtoparent(ev,"<ButtonPress-4>"))
39 root.bind_class("all","<ButtonPress-5>",lambda ev: eventtoparent(ev,"<ButtonPress-5>")) 45 root.bind_class("all","<ButtonPress-5>",lambda ev: eventtoparent(ev,"<ButtonPress-5>"))
40 46