mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
*** empty log message ***
This commit is contained in:
parent
9e80d6f125
commit
d55f4d1a76
5 changed files with 12 additions and 13 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue