This sample application illustrates how to use the GuiAppD class
to construct a basic GUI application.
Methods
|
|
addoptionbuttons
appInit
createInterface
createMenuBar
getflags
importTextSample
recompile
reevaluate
|
|
addoptionbuttons
|
addoptionbuttons ( self )
Create the option buttons for controlling regex match behavior.
This function is the same as the original except for minor
mods to accomodate being part of a Pmw-based app instead of a
straight Tk app.
|
|
appInit
|
appInit ( self )
Initialize the application, before the GUI is built.
|
|
createInterface
|
createInterface ( self )
Create the UI for the application.
The main window is already created, so all widgets are
parented by self.interior() .
|
|
createMenuBar
|
createMenuBar ( self )
Create the menu bar for the application.
In this case, add an Open... button to the file menu.
|
|
getflags
|
getflags ( self )
Returns bit-field with flag settings.
|
|
importTextSample
|
importTextSample ( self, *ignore )
Import a text file as the string to be searched.
|
|
recompile
|
recompile ( self, event=None )
Recompile the regex.
|
|
reevaluate
|
reevaluate ( self, event=None )
Re-evalutate the regex match against the buffer.
|