diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-17 12:39:12 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-09-17 12:39:12 (GMT) |
commit | ef5cd05c3d68137a59a84acd418342532e3940c6 (patch) | |
tree | 544f8c9b00c6eae068d570ccd5f4025b6c242dd9 /Mac/Demo/PICTbrowse | |
parent | 4cb945454a91188823fd289a13e417bdd20050e2 (diff) | |
download | cpython-ef5cd05c3d68137a59a84acd418342532e3940c6.zip cpython-ef5cd05c3d68137a59a84acd418342532e3940c6.tar.gz cpython-ef5cd05c3d68137a59a84acd418342532e3940c6.tar.bz2 |
Calling Application._quit() is now preferred over raising self.
Diffstat (limited to 'Mac/Demo/PICTbrowse')
-rw-r--r-- | Mac/Demo/PICTbrowse/PICTbrowse.py | 2 | ||||
-rw-r--r-- | Mac/Demo/PICTbrowse/PICTbrowse2.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Demo/PICTbrowse/PICTbrowse.py b/Mac/Demo/PICTbrowse/PICTbrowse.py index 4aabf67..412716e 100644 --- a/Mac/Demo/PICTbrowse/PICTbrowse.py +++ b/Mac/Demo/PICTbrowse/PICTbrowse.py @@ -47,7 +47,7 @@ class PICTbrowse(FrameWork.Application): self.quititem = FrameWork.MenuItem(m, "Quit", "Q", self.quit) def quit(self, *args): - raise self + self._quit() def showPICT(self, resid): w = PICTwindow(self) diff --git a/Mac/Demo/PICTbrowse/PICTbrowse2.py b/Mac/Demo/PICTbrowse/PICTbrowse2.py index 588cc0b..c2d9c17 100644 --- a/Mac/Demo/PICTbrowse/PICTbrowse2.py +++ b/Mac/Demo/PICTbrowse/PICTbrowse2.py @@ -51,7 +51,7 @@ class PICTbrowse(FrameWork.Application): self.quititem = FrameWork.MenuItem(m, "Quit", "Q", self.quit) def quit(self, *args): - raise self + self._quit() def showPICT(self, resid): w = PICTwindow(self) |