(self, parent, title="Processing")
| 91 | class WaitDialog(wx.Dialog): |
| 92 | |
| 93 | def __init__(self, parent, title="Processing"): |
| 94 | super().__init__(parent, id=wx.ID_ANY, title=title, size=(300, 30), style=wx.NO_BORDER) |
| 95 | mainSizer = wx.BoxSizer(wx.HORIZONTAL) |
| 96 | |
| 97 | self.progress = LoadAnimation(self, label=title, size=(300, 30)) |
| 98 | mainSizer.Add(self.progress, 1, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 0) |
| 99 | self.SetSizer(mainSizer) |
| 100 | self.Layout() |
| 101 | self.CenterOnParent() |