Right now I have this. And I could not understand how to sort it out:
def onView(self): img = wx.EmptyImage(240,240) filepath = self.filedlg.GetPath() img = wx.Image(filepath, wx.BITMAP_TYPE_ANY) img = img.Scale(240,240) picture = ogl.BitmapShape() picture.SetBitmap(wx.BitmapFromImage(img)) self.canvas.AddShape(picture)
I want to load an image with fileDialog into a wx ogl canvas.
Thanks in advance