Try to flicker less when redrawing lists
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user