Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48c5527

Browse files
committed
Add a few more BringToFont calls
1 parent 79b5bb4 commit 48c5527

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Mac/Lib/EasyDialogs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,19 @@ def __init__(self, title="Working...", maxval=100, label=""):
131131
self._update(0)
132132

133133
def __del__( self ):
134+
self.d.BringToFront()
134135
self.d.HideWindow()
135136
del self.d
136137

137138
def title(self, newstr=""):
138139
"""title(text) - Set title of progress window"""
140+
self.d.BringToFront()
139141
w = self.d.GetDialogWindow()
140142
w.SetWTitle(newstr)
141143

142144
def label( self, *newstr ):
143145
"""label(text) - Set text in progress box"""
146+
self.d.BringToFront()
144147
if newstr:
145148
self._label = newstr[0]
146149
tp, text_h, rect = self.d.GetDialogItem(2)

0 commit comments

Comments
 (0)