mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-18 14:14:54 -05:00
exit on key
This commit is contained in:
@@ -114,6 +114,8 @@ def animation():
|
||||
def main(): # pragma: no cover
|
||||
fig = plt.figure()
|
||||
fig.canvas.mpl_connect("button_press_event", click)
|
||||
fig.canvas.mpl_connect('key_release_event',
|
||||
lambda event: [exit(0) if event.key == 'escape' else None])
|
||||
two_joint_arm()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user