Using in wxPython

Post here if you need help with creating a Graphical User Interface in Python.

Using in wxPython

Postby hrs » Sun Apr 21, 2013 8:10 pm


What does draw to? Is it possible to let it draw on a wx.glcanvas? Or how can you integrate it?
What little examples there are ( doesn't work here (maybe because it uses shader and anti aliasing stuffs that arent supported by my driver yet) and it uses instead of

If I wanted to have something like this in a wxPython application, how can I achieve that?

Code: Select all
import math
import pyglet

window = pyglet.window.Window()

N_LINES = 200

def a_drawing():
   lines = []
   for phi in xrange(N_LINES):
   return lines

def on_draw():
    drawing = a_drawing()*N_LINES,, ('v2f', drawing))
Posts: 86
Joined: Thu Feb 07, 2013 9:26 pm

Return to GUI

Who is online

Users browsing this forum: W3C [Linkcheck] and 2 guests