]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/wxPIA_book/Chapter-05/abstractmodel.py
move wxPython to new trunk
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-05 / abstractmodel.py
diff --git a/wxPython/samples/wxPIA_book/Chapter-05/abstractmodel.py b/wxPython/samples/wxPIA_book/Chapter-05/abstractmodel.py
deleted file mode 100644 (file)
index 80c8176..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-class AbstractModel(object):
-
-    def __init__(self):
-        self.listeners = []
-
-    def addListener(self, listenerFunc):
-        self.listeners.append(listenerFunc)
-
-    def removeListener(self, listenerFunc):
-        self.listeners.remove(listenerFunc)
-
-    def update(self):
-        for eachFunc in self.listeners:
-            eachFunc(self)
-