GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — add colorbar to hlut tool, add `pause_events()` context manager by kushalkolar · Pull Request #550 · fastplotlib/fastplotlib Conversation
|
|
I realized there's a better way to manage temporary event blocking, added a context manager that takes @clewis7 you will like this :D , simple example: a = np.random.rand(10, 10) ig = fpl.ImageGraphic(a) with fpl.pause_events(ig): print("enter context manager") print(ig.block_events) print("doing some stuff that can cause infinite recursion") print(ig.block_events) print("done doing stuff") print(ig.block_events) results in: enter context manager True doing some stuff that can cause infinite recursion True done doing stuff False |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
pause_events() context manager
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from maybe adding some code comments
I think the pause_events() will be super useful for pynaviz stuff
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
closing because I merged this into axes #551 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.