mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Add a module global variable ADDTOVIEW to conform to dynamic viewer
lookup protocol.
This commit is contained in:
parent
2095b2fe14
commit
f3ebf90d2c
3 changed files with 7 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue