How to draw a NodeBox OpenGL with PyQt4?

Michael's Avatar


25 Mar, 2013 11:02 AM

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!


  1. Support Staff 1 Posted by Frederik De Ble... on 30 May, 2013 08:58 AM

    Frederik De Bleser's Avatar

    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).



  2. Frederik De Bleser closed this discussion on 30 May, 2013 08:58 AM.

  3. tomdesmedt re-opened this discussion on 04 Dec, 2013 12:38 AM

  4. Support Staff 2 Posted by tomdesmedt on 04 Dec, 2013 12:38 AM

    tomdesmedt's Avatar

    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.


  5. 3 Posted by Stuart Axon on 25 Nov, 2015 11:29 AM

    Stuart Axon's Avatar

    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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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

Recent Discussions

23 Feb, 2024 07:39 PM
23 Feb, 2024 10:02 AM
22 Feb, 2024 05:51 AM
21 Feb, 2024 05:27 PM
21 Feb, 2024 04:49 PM


16 Feb, 2024 05:24 PM
06 Feb, 2024 04:45 AM
19 Jan, 2024 09:50 AM
13 Jan, 2024 03:47 AM
05 Jan, 2024 05:10 PM
05 Jan, 2024 04:54 PM