summaryrefslogtreecommitdiffstats
path: root/Demo/stdwin/lpwin.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/stdwin/lpwin.py')
-rwxr-xr-xDemo/stdwin/lpwin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/stdwin/lpwin.py b/Demo/stdwin/lpwin.py
index 0a1346f..eaf98be 100755
--- a/Demo/stdwin/lpwin.py
+++ b/Demo/stdwin/lpwin.py
@@ -86,7 +86,8 @@ def main():
mainloop.register(win)
mainloop.mainloop()
-def lpdispatch(type, win, detail):
+def lpdispatch(event):
+ type, win, detail = event
if type == WE_CLOSE or type == WE_CHAR and detail in ('q', 'Q'):
mainloop.unregister(win)
elif type == WE_DRAW: