projects
/
wxWidgets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
minor tab drawing improvements
[wxWidgets.git]
/
wxPython
/
samples
/
wxPIA_book
/
Chapter-05
/
abstractmodel.py
1
class
AbstractModel
(
object
):
2
3
def
__init__
(
self
):
4
self
.
listeners
= []
5
6
def
addListener
(
self
,
listenerFunc
):
7
self
.
listeners
.
append
(
listenerFunc
)
8
9
def
removeListener
(
self
,
listenerFunc
):
10
self
.
listeners
.
remove
(
listenerFunc
)
11
12
def
update
(
self
):
13
for
eachFunc
in
self
.
listeners
:
14
eachFunc
(
self
)
15