inheritance tree
Tk.frame
|
`-+
|
ControlFrame
class definition
Gives a frame as well as an object. See the functor description above.
class ControlFrame (Inheritance-free)
feat clock logbutton messagelog nodelink nodesbutton playstopbutton simulator speedscale stepbutton
attr logshowing nodesshowing playing timeBetweenTicks
- HideLog()
- HideNodes()
- PlayLoop()
- ShowLog()
- ShowNodes()
- hideLog()
Hides the MessageLogToplevel if visible.
- hideNodes()
Hides the NodeLinkToplevel if visible.
- init(GraphicalSimulationEngine Toplevel NodeLinkToplevel MessageLogToplevel play:Play showMessageLog:InitShowLog showNodeLink:InitShowNodes speed:Speed ...)
Input arguments are the GraphicalSimulationEngine itself, a toplevel
for this frame, the two toplevels described above and some optional
selfdescribing init values.
- play()
Starts the simulation clock and makes steps happen automatically.
- setSpeed(Speed)
Sets the time to be waited between every discrete time event.
- showLog()
Displays the MessageLogToplevel if not allready visible.
- showNodes()
Displays the NodeLinkToplevel if not allready visible.
- step()
Do one step.
Should not be called when playing.
- stop()
Stops the simulation clock and automatic steps.
- tkClose()
Makes sure the playthread stops and then closes the two toplevels.
Will not work if a step has suspended.
end