Release 3.12.0 & 1.12.0

This commit is contained in:
MikeTheWatchGuy 2018-10-28 20:01:03 -04:00
parent 42c5499687
commit f60137c4b2
83 changed files with 2030 additions and 1118 deletions

View file

@ -133,7 +133,7 @@ class pongbat2():
def pong():
# ------------- Define GUI layout -------------
layout = [[sg.Canvas(size=(700, 400), background_color='black', key='canvas')],
[sg.T(''), sg.ReadButton('Quit')]]
[sg.T(''), sg.Button('Quit')]]
# ------------- Create window -------------
window = sg.Window('The Classic Game of Pong', return_keyboard_events=True).Layout(layout).Finalize()
# window.Finalize() # TODO Replace with call to window.Finalize once code released
@ -155,9 +155,9 @@ def pong():
bat2.draw()
# ------------- Read the form, get keypresses -------------
event, values = window.ReadNonBlocking()
event, values = window.Read(timeout=0)
# ------------- If quit -------------
if event is None and values is None or event == 'Quit':
if event is None or event == 'Quit':
exit(69)
# ------------- Keypresses -------------
if event is not None: