Skip to content

Commit

Permalink
Merge 43cca3a into 922a681
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Aug 17, 2022
2 parents 922a681 + 43cca3a commit 6bfe038
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,15 +676,16 @@ def run(self):
self.threadExc=e
log.debugWarning("task had errors",exc_info=True)


class IndeterminateProgressDialog(wx.ProgressDialog):

def __init__(self, parent, title, message):
super(IndeterminateProgressDialog, self).__init__(title, message, parent=parent)
def __init__(self, parent: wx.Window, title: str, message: str):
super().__init__(title, message, parent=parent)
self._speechCounter = -1
self.timer = wx.PyTimer(self.Pulse)
self.timer.Start(1000)
self.Raise()
self.CentreOnScreen()
self.Raise()

def Pulse(self):
super(IndeterminateProgressDialog, self).Pulse()
Expand Down

0 comments on commit 6bfe038

Please sign in to comment.