Add a module global variable ADDTOVIEW to conform to dynamic viewer
lookup protocol.
This commit is contained in:
parent
2095b2fe14
commit
f3ebf90d2c
|
@ -59,6 +59,8 @@ WRAP = 'Wrap Around'
|
||||||
RATIO = 'Preserve Distance'
|
RATIO = 'Preserve Distance'
|
||||||
GRAV = 'Squash'
|
GRAV = 'Squash'
|
||||||
|
|
||||||
|
ADDTOVIEW = 'Details Window...'
|
||||||
|
|
||||||
|
|
||||||
class DetailsViewer:
|
class DetailsViewer:
|
||||||
def __init__(self, switchboard, master=None):
|
def __init__(self, switchboard, master=None):
|
||||||
|
|
|
@ -18,6 +18,8 @@ given name, without selecting the color.
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
import ColorDB
|
import ColorDB
|
||||||
|
|
||||||
|
ADDTOVIEW = 'Color %List Window...'
|
||||||
|
|
||||||
class ListViewer:
|
class ListViewer:
|
||||||
def __init__(self, switchboard, master=None):
|
def __init__(self, switchboard, master=None):
|
||||||
self.__sb = switchboard
|
self.__sb = switchboard
|
||||||
|
@ -169,6 +171,6 @@ class ListViewer:
|
||||||
def save_options(self, optiondb):
|
def save_options(self, optiondb):
|
||||||
optiondb['UPONCLICK'] = self.__uoc.get()
|
optiondb['UPONCLICK'] = self.__uoc.get()
|
||||||
|
|
||||||
def flush(self):
|
def colordb_changed(self, colordb):
|
||||||
self.__canvas.delete('all')
|
self.__canvas.delete('all')
|
||||||
self.__populate()
|
self.__populate()
|
||||||
|
|
|
@ -18,6 +18,8 @@ in the text window (which only has a background).
|
||||||
from Tkinter import *
|
from Tkinter import *
|
||||||
import ColorDB
|
import ColorDB
|
||||||
|
|
||||||
|
ADDTOVIEW = 'Text Window...'
|
||||||
|
|
||||||
class TextViewer:
|
class TextViewer:
|
||||||
def __init__(self, switchboard, master=None):
|
def __init__(self, switchboard, master=None):
|
||||||
self.__sb = switchboard
|
self.__sb = switchboard
|
||||||
|
|
Loading…
Reference in New Issue