From: Antonio Ospite Date: Fri, 3 Oct 2014 09:59:16 +0000 (+0200) Subject: Don't use the deprecated wx.PySimpleApp class X-Git-Url: https://git.ao2.it/PoPiPaint.git/commitdiff_plain/91bd01ad8afc9a8e04e0058fc646172f43f17adc?hp=-c Don't use the deprecated wx.PySimpleApp class Fix this warning: ./PoPiPaint.py:28: wxPyDeprecationWarning: Using deprecated class PySimpleApp. wx.PySimpleApp.__init__(self, *args, **kwargs) --- 91bd01ad8afc9a8e04e0058fc646172f43f17adc diff --git a/PoPiPaint.py b/PoPiPaint.py index 090126f..683f2a1 100755 --- a/PoPiPaint.py +++ b/PoPiPaint.py @@ -22,10 +22,10 @@ import wx import CanvasFrame -class PoPiPaApp(wx.PySimpleApp): +class PoPiPaApp(wx.App): def __init__(self, *args, **kwargs): self.base_image = kwargs.pop('base_image', None) - wx.PySimpleApp.__init__(self, *args, **kwargs) + wx.App.__init__(self, *args, **kwargs) def OnInit(self): # We do not want a resizeable frame!