Back to index

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

Classes

class  UndoDelegator
class  Command
class  InsertCommand
class  DeleteCommand
class  CommandSequence

Functions

def main

Function Documentation

Definition at line 339 of file UndoDelegator.py.

00339 
00340 def main():
00341     from idlelib.Percolator import Percolator
00342     root = Tk()
00343     root.wm_protocol("WM_DELETE_WINDOW", root.quit)
00344     text = Text()
00345     text.pack()
00346     text.focus_set()
00347     p = Percolator(text)
00348     d = UndoDelegator()
00349     p.insertfilter(d)
00350     root.mainloop()