Back to index

python3.2  3.2.2
Classes | Functions
idlelib.GrepDialog Namespace Reference

Classes

class  GrepDialog

Functions

def grep

Function Documentation

def idlelib.GrepDialog.grep (   text,
  io = None,
  flist = None 
)

Definition at line 8 of file GrepDialog.py.

00008 
00009 def grep(text, io=None, flist=None):
00010     root = text._root()
00011     engine = SearchEngine.get(root)
00012     if not hasattr(engine, "_grepdialog"):
00013         engine._grepdialog = GrepDialog(root, engine, flist)
00014     dialog = engine._grepdialog
00015     searchphrase = text.get("sel.first", "sel.last")
00016     dialog.open(text, searchphrase, io)