Provide GUI with main menubar for displaying and controlling
algorithms and the algorithm text widget
Methods
|
|
|
|
AboutAlgorithm
|
AboutAlgorithm ( self )
|
|
AboutBox
|
AboutBox ( self )
|
|
AboutGraph
|
AboutGraph ( self )
|
|
BindKeys
|
BindKeys ( self, widget )
|
|
ClickHandler
|
ClickHandler (
self,
type,
t,
)
Internal Callback for GraphDisplay
|
|
CmdContinue
|
CmdContinue ( self )
Command linked to toolbar Continue
|
|
CmdStart
|
CmdStart ( self )
Command linked to toolbar Start
Tool bar Commands
The tool bar commands are passed as call back parameters to
the tool bar buttons.
|
|
CmdStep
|
CmdStep ( self )
Command linked to toolbar Step
|
|
CmdStop
|
CmdStop ( self )
Command linked to toolbar Stop
|
|
CmdTrace
|
CmdTrace ( self )
Command linked to toolbar Trace
|
|
CommitStop
|
CommitStop ( self )
Commit a stop for the GUI
|
|
ExportEPSF
|
ExportEPSF ( self )
GUI to control export of EPSF file
|
|
HandleFileIOError
|
HandleFileIOError (
self,
fileDescription,
fileName,
)
|
|
HelpBox
|
HelpBox ( self )
|
|
HideBreakpoint
|
HideBreakpoint ( self, lineNo )
Show lineNo w/o breakpoint
|
|
KeyBreak
|
KeyBreak ( self, event )
Command for toggling breakpoints
|
|
KeyContinue
|
KeyContinue ( self, event )
Command linked to toolbar Continue
|
|
KeyStart
|
KeyStart ( self, event )
Command linked to toolbar Start
|
|
KeyStep
|
KeyStep ( self, event )
Command linked to toolbar Step
|
|
KeyStop
|
KeyStop ( self, event )
|
|
KeyTrace
|
KeyTrace ( self, event )
Command linked to toolbar Trace
|
|
OneGraphWindow
|
OneGraphWindow ( self )
Align windows nicely for one graph window
|
|
OpenAlgorithm
|
OpenAlgorithm ( self, file="" )
GUI to allow selection of algorithm to open
file parameter for testing purposes Menu Commands
The menu commands are passed as call back parameters to
the menu items.
|
|
OpenGraph
|
OpenGraph ( self, file="" )
GUI to allow selection of graph to open
file parameter for testing purposes
|
|
OpenSecondaryGraphDisplay
|
OpenSecondaryGraphDisplay ( self )
Pops up a second graph window
|
|
PickInteractive
|
PickInteractive (
self,
type,
filterChoice=None,
)
Pick a vertex or an edge (specified by type ) interactively
GUI blocks until
- a fitting object is clicked
- the algorithm is stopped
- Step is clicked which will randomly select a vertex or an
edge
filterChoice is an optional method (only argument: the vertex or edge).
It returns true if the choice is acceptable
NOTE: To avoid fatal blocks randomly selected objects are not
subjected to filterChoice
|
|
Preferences
|
Preferences ( self )
Handle editing preferences
|
|
Quit
|
Quit ( self )
|
|
ReloadAlgorithmGraph
|
ReloadAlgorithmGraph ( self )
|
|
SetAlgorithmFont
|
SetAlgorithmFont (
self,
font,
size,
)
|
|
SetFromConfig
|
SetFromConfig ( self )
|
|
ShowActive
|
ShowActive ( self, lineNo )
Show lineNo as active line
Public methods (for callbacks from algorithm)
|
|
ShowBreakpoint
|
ShowBreakpoint ( self, lineNo )
Show lineNo as breakpoint
|
|
TwoGraphWindow
|
TwoGraphWindow ( self )
Align windows nicely for two graph windows
|
|
WaitNextEvent
|
WaitNextEvent ( self )
Stop Execution until user does something. This avoids
busy idling. See touchLock()
|
|
WaitTime
|
WaitTime ( self, delay )
Stop Execution until delay is passed. This avoids
busy idling. See touchLock()
|
|
WithdrawSecondaryGraphDisplay
|
WithdrawSecondaryGraphDisplay ( self )
Hide window containing second graph
|
|
__init__
|
__init__ ( self, parent=None )
|
|
activateMenu
|
activateMenu ( self )
Make the menu active (i.e., after stopping an algo)
|
|
deactivateMenu
|
deactivateMenu ( self )
Make the menu inactive (i.e., before running an algo)
|
|
handleMouse
|
handleMouse ( self, event )
Callback for canvas to allow toggeling of breakpoints
handleMouse
|
|
makeAlgoTextWidget
|
makeAlgoTextWidget ( self )
Internal Here we also define appearance of
- interactive lines
- breakpoints
- the active line
|
|
makeMenuBar
|
makeMenuBar ( self )
Internal Now using Tk 8.0 style menues
Create GUI
|
|
makeToolBar
|
makeToolBar ( self )
Internal Creates Start/Stop/COntinue ... toolbar
|
|
tagLine
|
tagLine (
self,
lineNo,
tag,
)
Add tag tag to line lineNo
|
|
tagLines
|
tagLines (
self,
lines,
tag,
)
Tag every line in list lines with specified tag
|
|
tokenEater
|
tokenEater (
self,
type,
token,
(,
(,
line,
)
print "%d,%d-%d,%d:\t%s\t%s" % \
(srow, scol, erow, ecol, type, repr(token))
|
|
touchLock
|
touchLock ( self )
Internal The lock (self.goOn) is a variable which
is used to control the flow of the programm and to
allow GUI interactions without busy idling. The following methods wait for the lock to be touched:
The following methods touch it:
Lock
|
|
unTagLine
|
unTagLine (
self,
lineNo,
tag,
)
Remove tag tag from line lineNo
|