mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Add a few more BringToFont calls
This commit is contained in:
parent
79b5bb488e
commit
48c5527c78
1 changed files with 3 additions and 0 deletions
|
@ -131,16 +131,19 @@ class ProgressBar:
|
|||
self._update(0)
|
||||
|
||||
def __del__( self ):
|
||||
self.d.BringToFront()
|
||||
self.d.HideWindow()
|
||||
del self.d
|
||||
|
||||
def title(self, newstr=""):
|
||||
"""title(text) - Set title of progress window"""
|
||||
self.d.BringToFront()
|
||||
w = self.d.GetDialogWindow()
|
||||
w.SetWTitle(newstr)
|
||||
|
||||
def label( self, *newstr ):
|
||||
"""label(text) - Set text in progress box"""
|
||||
self.d.BringToFront()
|
||||
if newstr:
|
||||
self._label = newstr[0]
|
||||
tp, text_h, rect = self.d.GetDialogItem(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue