*** empty log message ***
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 @@
 	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: