Pack glutCreateWindow() into frame w/buttons etc??

I am stuck. Is it possible to get a 3D glutCreatedWindow() packed into a frame with other buttons, etc… This function does not let me assign a parent.

I am running python2.5 on Linux Ubuntu w glut,glu,tkinter.

Do I need to create a class and…?

I have been looking a bit and I am wondering if I need additional libraries… wxPython, canvas, glinter, etc.

Is there downloadable example on this somewhere?

I added the wxPython extension to my python2.5 and now I am able to add mulitple panels and boxes and 3D graphics etc. into a frame.

Only problem I now have is getting things to place very well. Example below the panel1 gets funny and the buttons etc. I put in panel 1 all pile up. Maybe a problem I have is, having multiple panels. Any good examples out there?

panel1 = wx.Panel(self,-1, style=wx.SUNKEN_BORDER)
panel4 = wx.Panel(self,-1, style=wx.SUNKEN_BORDER)

panel1.SetBackgroundColour(“BLUE”)
panel4.SetBackgroundColour(“BLUE”)

#--------------vbox1
vbox1 = wx.BoxSizer(wx.VERTICAL)
vbox1.Add(panel1, 1, wx.EXPAND)

st1 = wx.StaticText(panel1, -1, ‘USB Write Entry’)
vbox1.Add(st1, 0, wx.LEFT, 8)
tc = wx.TextCtrl(panel1, -1)
vbox1.Add(tc, 1, wx.RIGHT, 8)
btn1 = wx.Button(panel1, -1, ‘OK’, size=(70,30))
vbox1.Add(btn1,0)

#--------------hbox1
hbox1 = wx.BoxSizer(wx.HORIZONTAL)
hbox1.Add(vbox1, 1, wx.EXPAND)
hbox1.Add(myCube(self), 1, wx.EXPAND)

#--------------hbox2
hbox2 = wx.BoxSizer(wx.HORIZONTAL)
hbox2.Add(wx.TextCtrl(self, -1, style = wx.TE_MULTILINE), 1, wx.EXPAND)
hbox2.Add(panel4, 1, wx.EXPAND)

#--------------box
box = wx.BoxSizer(wx.VERTICAL)
box.Add(hbox1, 1, wx.EXPAND)
box.Add(hbox2, 1, wx.EXPAND)

self.SetAutoLayout(True)
self.SetSizer(box)
self.Layout()