def PaintCanvas(self,img): bmp = wx.BitmapFromImage( img ) canvas = wx.StaticBitmap( self.viewport, bitmap=bmp, pos=(0,0) )