Conversation
|
I have never seen someone love a decorator more than you lol |
|
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 |
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:
# recomputeBasically 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() |
@Figure.add_gui and append_gui decorators
|
Failures are due to an imgui update |
closes #848