summaryrefslogtreecommitdiffstats
path: root/Tools/pynche
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
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')
-rw-r--r--Tools/pynche/DetailsViewer.py2
-rw-r--r--Tools/pynche/ListViewer.py4
-rw-r--r--Tools/pynche/TextViewer.py2
3 files changed, 7 insertions, 1 deletions
diff --git a/Tools/pynche/DetailsViewer.py b/Tools/pynche/DetailsViewer.py
index 6996423..3fb8a7d 100644
--- a/Tools/pynche/DetailsViewer.py
+++ b/Tools/pynche/DetailsViewer.py
@@ -59,6 +59,8 @@ WRAP = 'Wrap Around'
RATIO = 'Preserve Distance'
GRAV = 'Squash'
+ADDTOVIEW = 'Details Window...'
+
class DetailsViewer:
def __init__(self, switchboard, master=None):
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()
diff --git a/Tools/pynche/TextViewer.py b/Tools/pynche/TextViewer.py
index e0b7ab1..d971eca 100644
--- a/Tools/pynche/TextViewer.py
+++ b/Tools/pynche/TextViewer.py
@@ -18,6 +18,8 @@ in the text window (which only has a background).
from Tkinter import *
import ColorDB
+ADDTOVIEW = 'Text Window...'
+
class TextViewer:
def __init__(self, switchboard, master=None):
self.__sb = switchboard