Hello,
I'm new in vpython with wxpython. I tried to make a window with a small visual-window inside and some static_text. But I wanted to let the static_text scrollable. I tried following small example, but the text and the scrollbar won't appear. Can you help me to see what is wrong? Thanks!
from visual import *
import wx
import wx.lib.scrolledpanel as scrolled
f = window(title='test', width=200,height=200)
scene = display(window=f, x=10, y=10, width=100, height=100)
mypanel = f.panel
myscrolled = scrolled.ScrolledPanel(mypanel)
myscrolled.SetupScrolling()
sizer=wx.BoxSizer(wx.VERTICAL)
for i in range(200):
text=wx.StaticText(myscrolled,pos=(120,i*20),label='test')
sizer.Add(text,wx.EXPAND)
myscrolled.SetSizer(sizer)
ball=sphere()