Exit on window close
This commit is contained in:
@@ -59,8 +59,7 @@ if __name__ == '__main__':
|
||||
|
||||
display.setPose(x, y, theta)
|
||||
|
||||
# Exit on ESCape
|
||||
key = display.refresh()
|
||||
if key != None and (key&0x1A):
|
||||
# Exit on window close
|
||||
if not display.refresh():
|
||||
exit(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user