summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-24 14:07:15 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-24 14:07:15 (GMT)
commitab48e905b55711fff4f9bd56face4602e6e5f20f (patch)
tree261e944f7db6f424e09d57f570539366c59ecb48
parent4789b3ae05d861376c7f5cb859bee043530a1e2d (diff)
downloadcpython-ab48e905b55711fff4f9bd56face4602e6e5f20f.zip
cpython-ab48e905b55711fff4f9bd56face4602e6e5f20f.tar.gz
cpython-ab48e905b55711fff4f9bd56face4602e6e5f20f.tar.bz2
Don't call BringToFront() on the dialog object, but call GetDialogWindow() to get a window object.
-rw-r--r--Mac/Lib/EasyDialogs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py
index 1327243..87f38a3 100644
--- a/Mac/Lib/EasyDialogs.py
+++ b/Mac/Lib/EasyDialogs.py
@@ -217,10 +217,10 @@ class ProgressBar:
self.maxval = maxval
self.curval = -1
self.d = GetNewDialog(id, -1)
- self.title(title)
self.label(label)
self._update(0)
self.d.AutoSizeDialog()
+ self.title(title)
self.d.ShowWindow()
self.d.DrawDialog()
@@ -231,13 +231,13 @@ class ProgressBar:
def title(self, newstr=""):
"""title(text) - Set title of progress window"""
- self.d.BringToFront()
w = self.d.GetDialogWindow()
+ w.BringToFront()
w.SetWTitle(newstr)
def label( self, *newstr ):
"""label(text) - Set text in progress box"""
- self.d.BringToFront()
+ self.d.GetDialogWindow().BringToFront()
if newstr:
self._label = lf2cr(newstr[0])
text_h = self.d.GetDialogItemAsControl(2)