]> granicus.if.org Git - python/commitdiff
Fixed progressbar cleanup
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 4 Oct 1996 15:21:00 +0000 (15:21 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 4 Oct 1996 15:21:00 +0000 (15:21 +0000)
Mac/Lib/EasyDialogs.py

index 1854b69d8ebc6e2e89d8c9e51da677ae31eeffcb..9834ae18e3bfe58a5ba6bc179e79d77ab7cb33de 100644 (file)
@@ -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?")