How to draw a NodeBox OpenGL with PyQt4?

Michael's Avatar

Michael

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!

Michael

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

    Best,

    F

  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.

    Best,
    Tom

  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

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

Recent Discussions

22 Feb, 2020 11:34 AM
22 Feb, 2020 05:15 AM
17 Feb, 2020 03:30 PM
06 Feb, 2020 12:30 AM
03 Feb, 2020 01:01 AM

 

03 Feb, 2020 12:16 AM
31 Jan, 2020 08:25 PM
31 Jan, 2020 08:21 PM
27 Jan, 2020 06:44 AM
26 Jan, 2020 10:13 AM
31 Dec, 2019 12:25 AM