From 91bd01ad8afc9a8e04e0058fc646172f43f17adc Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 3 Oct 2014 11:59:16 +0200 Subject: [PATCH] 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) --- PoPiPaint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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! -- 2.1.4