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 — `@Figure.add_gui` and `append_gui` decorators by kushalkolar · Pull Request #849 · fastplotlib/fastplotlib Conversation
|
|
I have never seen someone love a decorator more than you lol |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think this is pretty cool One thing, I'm not sure how I feel about the It seems like a lot of scaffolding just to indicate that the user has interacted with the imgui window...unless I am missing something |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
It's useful when you have a lot of UI elements that could have changed and you want to know if any of them have changed. It's cumbersome to write: changed1, val1 = imgui.slider(...) changed2, val2 = imgui.slider(...) ... changed_n, valn = imgui.slider(...) if any([changed1, changed2, ... change_d]): # recompute # could also do if changed1 | changed2 | ... changed_n: # recompute Basically the following is invalid python syntax otherwise I would just use the changed |, val1 = imgui.slider(...) changed |, val2 = imgui.slider(...) ... changed |, val_n = imgui.slider(...) This is valid without tuple unpacking: changed = func() changed |= func2() |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@Figure.add_gui and append_gui decorators
|
Failures are due to an imgui update |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
superseeded by #1066 |
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.
Create imgui edge windows without declaring a class
There was an error while loading. Please reload this page.