Mercurial > code > home > repos > light9
changeset 59:001646cd5349
all mousewheel events everywhere will now pass up the tree to be caught by
all mousewheel events everywhere will now pass up the tree to be caught by
higher widgets. if things get slow, this might be the problem
author | drewp |
---|---|
date | Tue, 09 Jul 2002 07:36:29 +0000 |
parents | a4d000f759b4 |
children | f177a2ff34f5 |
files | light8/rsn.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light8/rsn.py Tue Jul 09 07:35:57 2002 +0000 +++ b/light8/rsn.py Tue Jul 09 07:36:29 2002 +0000 @@ -27,8 +27,12 @@ mr_lightboard = Lightboard(root,parportdmx,DUMMY) signal(SIGINT, mr_lightboard.quit) + + bindkeys(root,'<Escape>', mr_lightboard.quit) +root.bind_class("all","<ButtonPress-4>",lambda ev: eventtoparent(ev,"<ButtonPress-4>")) +root.bind_class("all","<ButtonPress-5>",lambda ev: eventtoparent(ev,"<ButtonPress-5>")) root.mainloop() # Receiver switches main