Add optional 'force' argument (default 0) to load_dict().

If set, redo the display even if it's the same dict.
This commit is contained in:
Guido van Rossum 1998-10-19 02:19:30 +00:00
parent 0e5088fcc4
commit 105b9c7de4
1 changed files with 2 additions and 2 deletions

View File

@ -220,8 +220,8 @@ def __init__(self, master, title, dict=None):
dict = -1
def load_dict(self, dict):
if dict is self.dict:
def load_dict(self, dict, force=0):
if dict is self.dict and not force:
return
subframe = self.subframe
frame = self.frame