summaryrefslogtreecommitdiffstats
path: root/Tools/pynche/ListViewer.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1999-04-27 18:54:12 (GMT)
committerBarry Warsaw <barry@python.org>1999-04-27 18:54:12 (GMT)
commitf3ebf90d2cf9c2b789b85730aecc2dca478e71eb (patch)
treeceb896f1a716be449311911e3bf0fc41919b5077 /Tools/pynche/ListViewer.py
parent2095b2fe1498bd78a889b8ed5d84de184eb175df (diff)
downloadcpython-f3ebf90d2cf9c2b789b85730aecc2dca478e71eb.zip
cpython-f3ebf90d2cf9c2b789b85730aecc2dca478e71eb.tar.gz
cpython-f3ebf90d2cf9c2b789b85730aecc2dca478e71eb.tar.bz2
Add a module global variable ADDTOVIEW to conform to dynamic viewer
lookup protocol.
Diffstat (limited to 'Tools/pynche/ListViewer.py')
-rw-r--r--Tools/pynche/ListViewer.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/pynche/ListViewer.py b/Tools/pynche/ListViewer.py
index 424e462..43d9923 100644
--- a/Tools/pynche/ListViewer.py
+++ b/Tools/pynche/ListViewer.py
@@ -18,6 +18,8 @@ given name, without selecting the color.
from Tkinter import *
import ColorDB
+ADDTOVIEW = 'Color %List Window...'
+
class ListViewer:
def __init__(self, switchboard, master=None):
self.__sb = switchboard
@@ -169,6 +171,6 @@ class ListViewer:
def save_options(self, optiondb):
optiondb['UPONCLICK'] = self.__uoc.get()
- def flush(self):
+ def colordb_changed(self, colordb):
self.__canvas.delete('all')
self.__populate()