From: Bruce S. <bas...@un...> - 2004-01-17 19:15:47
|
There is a sample program of this kind among the standard VPython demos, Tk-Visual.py. Bruce Sherwood Gary Pajer wrote: > I'm trying to do something similar, with mixed success. > My approach has been to build a Tkinter application that controls a vpython > window. > I'm trying to use the Tkinter gui to read and set values in vpython. For > example, > I'm trying to display a bar representing the value of a variable (energy) by > using a Tkinter.Canvas.Rectangle widget. If it works, the idea is to build > a Tkinter gui that controls and displays lots of different vpython > parameters. > > So far I've had some success setting parameters in the gui and having > vpython respond correctly. > > Less luck having the gui display values from vpython in realtime. > > Question for the experts: does this approach have any prayer or working? > I'm concerned about having dueling Tkinter applications (mine and the > vpython window). I'm wondering with trepidation if I should explore threads > ... > > -gary |