diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-10-04 15:21:00 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-10-04 15:21:00 (GMT) |
commit | 30fe363fd8957d833aa913a2af375d275c581c15 (patch) | |
tree | 733a04b2a4ae9bd59feca66df0919be5b70e021c /Mac | |
parent | a0ca4c402d1e19cbc9b317632deab0d7c2492987 (diff) | |
download | cpython-30fe363fd8957d833aa913a2af375d275c581c15.zip cpython-30fe363fd8957d833aa913a2af375d275c581c15.tar.gz cpython-30fe363fd8957d833aa913a2af375d275c581c15.tar.bz2 |
Fixed progressbar cleanup
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Lib/EasyDialogs.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py index 1854b69..9834ae1 100644 --- a/Mac/Lib/EasyDialogs.py +++ b/Mac/Lib/EasyDialogs.py @@ -144,19 +144,17 @@ class ProgressBar: Qd.BackColor(QuickDraw.whiteColor) # Test for cancel button - if ModalDialog(self._filterfunc) == 1: + if ModalDialog(_ProgressBar_filterfunc) == 1: raise KeyboardInterrupt - def _filterfunc(self, d, e, *more): - return 2 # XXXX For now, this disables the cancel button - def set(self, value): if value < 0: value = 0 if value > self.maxval: value = self.maxval self._update(value) - - +def _ProgressBar_filterfunc(*args): + return 2 # Disabled, for now. + def test(): Message("Testing EasyDialogs.") ok = AskYesNoCancel("Do you want to proceed?") |