Compare commits
1 commit
render_his
...
main
Author | SHA1 | Date | |
---|---|---|---|
|
3d8cb7ef70 |
1 changed files with 4 additions and 2 deletions
|
@ -462,11 +462,13 @@ class Renderer:
|
||||||
self.drawn_tracks[track_id].set_track(track, self.prediction_frame.H)
|
self.drawn_tracks[track_id].set_track(track, self.prediction_frame.H)
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
for track in self.drawn_tracks.values():
|
for track_id in list(self.drawn_tracks.keys()):
|
||||||
if track.update_at < time.time() - 5:
|
# TODO make delay configurable
|
||||||
|
if self.drawn_tracks[track_id].update_at < time.time() - 5:
|
||||||
# TODO fade out
|
# TODO fade out
|
||||||
del self.drawn_tracks[track_id]
|
del self.drawn_tracks[track_id]
|
||||||
|
|
||||||
|
|
||||||
def on_key_press(self, symbol, modifiers):
|
def on_key_press(self, symbol, modifiers):
|
||||||
print('A key was pressed, use f to hide')
|
print('A key was pressed, use f to hide')
|
||||||
if symbol == ord('f'):
|
if symbol == ord('f'):
|
||||||
|
|
Loading…
Reference in a new issue