From 784c61105343c2d4180128c382b65f48028dd8a3 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 9 Feb 2001 15:57:01 +0000 Subject: [PATCH] Dialogs and there windows were still confused in some spots. Fixed. --- Mac/Lib/EasyDialogs.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py index cfd55a16cb..3f88fb549b 100644 --- a/Mac/Lib/EasyDialogs.py +++ b/Mac/Lib/EasyDialogs.py @@ -220,27 +220,28 @@ class ProgressBar: self.maxval = maxval self.curval = -1 self.d = GetNewDialog(id, -1) + self.w = self.d.GetDialogWindow() self.label(label) self._update(0) self.d.AutoSizeDialog() self.title(title) - self.d.GetDialogWindow().ShowWindow() + self.w.ShowWindow() self.d.DrawDialog() def __del__( self ): - self.d.BringToFront() - self.d.HideWindow() + self.w.BringToFront() + self.w.HideWindow() + del self.w del self.d def title(self, newstr=""): """title(text) - Set title of progress window""" - w = self.d.GetDialogWindow() - w.BringToFront() - w.SetWTitle(newstr) + self.w.BringToFront() + self.w.SetWTitle(newstr) def label( self, *newstr ): """label(text) - Set text in progress box""" - self.d.GetDialogWindow().BringToFront() + self.w.BringToFront() if newstr: self._label = lf2cr(newstr[0]) text_h = self.d.GetDialogItemAsControl(2) -- 2.50.1