ui.py: quit if the "X"(exit) button is clicked (#31949)

old-commit-hash: 028f6938b2
pull/32199/head
Dean Lee 1 year ago committed by GitHub
parent c401892058
commit 46384f94d3
  1. 7
      tools/replay/ui.py

@ -101,8 +101,11 @@ def ui_thread(addr):
draw_plots = init_plots(plot_arr, name_to_arr_idx, plot_xlims, plot_ylims, plot_names, plot_colors, plot_styles)
vipc_client = VisionIpcClient("camerad", VisionStreamType.VISION_STREAM_ROAD, True)
while 1:
list(pygame.event.get())
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
screen.fill((64, 64, 64))
lid_overlay = lid_overlay_blank.copy()

Loading…
Cancel
Save