diff options
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) |