isl-org / isl-org/Open3D

The post_redraw function errors

Open
#5,245 3 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### My Question

for i in range(10):
time.sleep(0.2)
self.animate_wave()
if gui.Application.instance.run_one_tick():
self.window.post_redraw()
print("DONE")

As the code above,loops and post_redrwaw function is used to realize animation . If the redraw function is placed in a for loop, after the last loop is executed, python will eixt. If it is placed outside the loop , an error will be reported after the last line is executed.
self.window is gui.Application.instance.create_window("viewer", width, height)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.