Comments (5)
Thanks for the proposition. I'm always happy to accept qualitative PRs :-)
In this case I had already started working on it, so I finished it.
Here is some more information if you want to contribute in a later: This kind of work requires to run the generator. There is some doc about it here: https://pthom.github.io/imgui_bundle/devel_docs/bindings.html, and here: https://pthom.github.io/litgen/litgen_book/00_00_intro.html
-
First I had to add some manual new methods in the node editor fork: pthom/imgui-node-editor@daccee1...cefbd3e#diff-805621e5151ef6f5b47901439963a38fa5a9f2bfb7dee7cb6a9f18116bb2fc9f (They are protected by this specific define: IMGUI_BUNDLE_PYTHON_API)
-
Then I had to add this specific define in the generator options, then rerun the generator: 7b61b6c
from imgui_bundle.
There is no way to access them as an array, but there is a way to set them:
ed.push_style_color(ed.StyleColor.node_bg, ImVec4(0.2, 0.2, 0.2, 1.0))
from imgui_bundle.
But I see imgui
style color is done correctly at:
imgui_bundle/bindings/imgui_bundle/imgui/__init__.pyi
Lines 7804 to 7811 in f9d61bf
Why not apply the same wrapper?
from imgui_bundle.
Or maybe, is the same way imgui
does also applies to imgui_node_editor
? If so, I could create a PR if you don't have capacity for this.
from imgui_bundle.
Cool, @pthom , thanks very much for the fast patch.
from imgui_bundle.
Related Issues (20)
- hello_imgui ability to modify individual window style HOT 4
- imgui-bundle with python 3.9 ? HOT 1
- glBindSampler(0, 0) is needed for OpenGL backend HOT 1
- Missing fields `ImFontConfig.GlyphRanges` in python binding HOT 1
- dock_builder API should be public HOT 2
- Required initialization for imgui_node_editor? HOT 2
- Try to build using Nuitka HOT 2
- Simulate key presses with the test engine HOT 4
- plotting python numpy data that is noncontiguous and using implot stride option don't seem to work HOT 5
- Expose some additional `implot` internal functions to allow custom plots HOT 2
- [imgui_node_editor] Can't set value for StyleVar.node_padding HOT 4
- Glfw Error 65542: WGL: The driver does not appear to support OpenGL HOT 25
- wrapping of implot BeginSubplots appears to have wrong argument type for `row_ratios` and `col_ratios` HOT 4
- test engine logging and headless HOT 4
- ImSpinner Version Bump - Resolves Multiple Def Compilation Errors HOT 2
- imgui_tex_inspect displays incorrect color value of texture in windows HOT 5
- missing draw-list concave fill HOT 3
- new release HOT 18
- imgui_bundle._imgui_bundle.imgui.ImFontAtlas' object has no attribute 'delta_time'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui_bundle.