diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-03-17 18:19:13 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-03-17 18:19:13 (GMT) |
commit | 8ec03e0528d93c6b7cc9cf07d2f24e541661ba70 (patch) | |
tree | 0a35cc3a6464e7d4c5b03e260978a1e107ac7449 /Demo/tix/tixwidgets.py | |
parent | 42ab61eeabe45359f46a8378e572e5c73a8adb36 (diff) | |
download | cpython-8ec03e0528d93c6b7cc9cf07d2f24e541661ba70.zip cpython-8ec03e0528d93c6b7cc9cf07d2f24e541661ba70.tar.gz cpython-8ec03e0528d93c6b7cc9cf07d2f24e541661ba70.tar.bz2 |
Patch #485959: Various changes to Tix demos.
Diffstat (limited to 'Demo/tix/tixwidgets.py')
-rw-r--r-- | Demo/tix/tixwidgets.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Demo/tix/tixwidgets.py b/Demo/tix/tixwidgets.py index 6e570d7..f0cf4d9 100644 --- a/Demo/tix/tixwidgets.py +++ b/Demo/tix/tixwidgets.py @@ -154,7 +154,8 @@ class Demo: text += line + '\n' try: tkMessageBox.showerror ('Error', text) except: pass - tkinspect_quit (1) + self.exit = 1 + raise SystemExit, 1 def destroy (self): self.root.destroy() @@ -420,9 +421,13 @@ def MkFileEnt(w): ent.pack(side=Tix.TOP, fill=Tix.X, padx=3, pady=3) def MkFileBox(w): + """The FileSelectBox is a Motif-style box with various enhancements. + For example, you can adjust the size of the two listboxes + and your past selections are recorded. + """ msg = Tix.Message(w, relief=Tix.FLAT, width=240, anchor=Tix.N, - text='The TixFileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.') + text='The Tix FileSelectBox is a Motif-style box with various enhancements. For example, you can adjust the size of the two listboxes and your past selections are recorded.') box = Tix.FileSelectBox(w) msg.pack(side=Tix.TOP, expand=1, fill=Tix.BOTH, padx=3, pady=3) box.pack(side=Tix.TOP, fill=Tix.X, padx=3, pady=3) |