Try to flicker less when redrawing lists

This commit is contained in:
DarkPhoenix
2019-08-12 15:13:51 +03:00
parent bcdefdc4ac
commit cc8def1cf5
3 changed files with 15 additions and 10 deletions

View File

@@ -48,6 +48,7 @@ class ErrorHandler:
app = wx.App(False)
cls.__frame = ErrorFrame(None)
cls.__frame.addException("".join(t))
cls.__frame.Show()
app.MainLoop()
sys.exit()
else:
@@ -121,7 +122,5 @@ class ErrorFrame(AuxiliaryFrame):
self.Centre(wx.BOTH)
self.Show()
def addException(self, text):
self.errorTextCtrl.AppendText("\n{}\n\n{}".format("#" * 20, text))