The Open Graphics Library (OGL) is now well integrated with wxPython, but to go from there to something that works like VPython you need lots of work:
import wx.lib.ogl as ogl
wx.Frame.__init__( self, None, wx.ID_ANY,
title="explore wx.lib.ogl", size=(400,300))
canvas = ogl.ShapeCanvas(self)
diagram = ogl.Diagram()
# marry the two ...
# create some standard shapes ...
# (check how creation order affects overlap)
circle = ogl.CircleShape(100.0) # radius
circle.SetX(75.0) # center x
text = ogl.TextShape(250, 30) # (w, h)
text.SetX(180) # center x
text.AddText("you can drag the circle or the text")
# use v box sizer
sizer = wx.BoxSizer(wx.VERTICAL)
# canvas will grow as frame is stretched
sizer.Add(canvas, 1, wx.GROW)
app = wx.App()
hello I am using wxPython and the graphics I use import visual and from visual.graph import*, but I can't see nothing , i don't have error but I don't see nothing either, somebody Know why is that?
because my program is ok without wxPython, but when I put interface with wxPython it doesn't run