How to draw a NodeBox OpenGL with PyQt4?
I spent hours of research but couldn't find a solution that I could catch up with :(
So, I want to draw (as a starting point very simple) graph created using NodeBox OpenGL. I can create this graph solely with NodeBox OpenGL, but is it possible to draw this NodeBox graph using PyQt4? I'm not very familiar with Qt but I could manage to create simple interfaces...
Thanks for your help!
Michael
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Frederik De Ble... on 30 May, 2013 08:58 AM
As far as I know, there's no easy way to integrate the two. NodeBox/OpenGL is written on Pyglet, so you might look at integration possibilities there. (For example, here is a QPygletWidget, but it uses PySide, not PyQT).
Best,
F
Frederik De Bleser closed this discussion on 30 May, 2013 08:58 AM.
tomdesmedt re-opened this discussion on 04 Dec, 2013 12:38 AM
Support Staff 2 Posted by tomdesmedt on 04 Dec, 2013 12:38 AM
As far as I know Pyglet will always open its own window, and draw there. This was the situation a year ago, at which time I also spent hours looking to make NOGL more easy to integrate with other projects (e.g., other drawing contexts such as Qt), since this would have been a valuable asset to the project. Things may have changed in the meantime, I will keep it in mind for when I have more time to work on NOGL.
Best,
Tom
3 Posted by Stuart Axon on 25 Nov, 2015 11:29 AM
It's easy to use with PyQt, from the readme:
"If you are using PyQt instead of PySide, the port should be really easy as the only thing
you will probably have to do is to replace **from PySide** by **from PyQt4**"
- I gave this a try and the demo code works, haven't tried with nodebox-gl.