]> granicus.if.org Git - python/commitdiff
Add a module global variable ADDTOVIEW to conform to dynamic viewer
authorBarry Warsaw <barry@python.org>
Tue, 27 Apr 1999 18:54:12 +0000 (18:54 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 27 Apr 1999 18:54:12 +0000 (18:54 +0000)
lookup protocol.

Tools/pynche/DetailsViewer.py
Tools/pynche/ListViewer.py
Tools/pynche/TextViewer.py

index 69964236f9bf915ada8069401a4b5706ea44de7c..3fb8a7da47643a7d305b270fa1095074bf45c7ca 100644 (file)
@@ -59,6 +59,8 @@ WRAP = 'Wrap Around'
 RATIO = 'Preserve Distance'
 GRAV = 'Squash'
 
+ADDTOVIEW = 'Details Window...'
+
 \f
 class DetailsViewer:
     def __init__(self, switchboard, master=None):
index 424e462ce3898e1c71560ecbad8ea8674a30b7d6..43d9923ff40e9a85030adb6fa0e51a879194fcf0 100644 (file)
@@ -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()
index e0b7ab115053502b4530a9f3a940527589a0d81f..d971ecafd62b03d3e95c232cd7a4a6be0905eee2 100644 (file)
@@ -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