Table of Contents

Class: PmwReDemo PmwContribD-r2_0_1/SampleApps/redemo2.py

Extension of Guido's regular expression demonstration utility.

This sample application illustrates how to use the GuiAppD class to construct a basic GUI application.

This app is based on the Demos/tkinger/guido/redemo.py module provided as part of the Python 1.5.2 source distribution.

Base Classes   
GuiAppD
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.


Table of Contents

This document was automatically generated on Mon Sep 17 17:47:46 2001 by HappyDoc version r2_0