From: Sebastian S. <sch...@go...> - 2013-01-20 21:00:23
|
Hello, I'm new in Vpython. I have designed a 3D modell in vpython to interact with them. The mathematics, displaying the 3D modell - all fine. After this I wanted to make a controls-field with buttons and I always get a segfault. After some hours I have compiled the newest vpython version 5.74 (+modules) and still the same problem. Thank you for your help, Best Regards, Sebastian Schleitzer segfault: Jan 20 21:35:11 seb-t61 kernel: [436645.683645] python[7636]: segfault at 8 ip 00007fd656ef0afa sp 00007fd65d8a2d50 error 4 in libdricore9.0.0.so.1.0.0[7fd656d93000+373000] Ubuntu 12.10 ### Code: from visual import * from visual.text import * from visual.controls import * cmd_feld = controls(title='Controlling the Scene',x=700, y=600, width=400, height=400, range=50) but_net = button( pos=(0,0), width=60, height=60,text='N', action=lambda: pause() ) scene = display(title='Scene Test',x=0, y=0, width=700, height=600,center=(10,0,0)) sphere() color_scene = display(title='Controls',x=700, y=0, width=200, height=600) color_scene.select() box(pos=(-1,-20,0), length=24, height=5, width=5, color=color.white) |