Hi,
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
Regards

Never mind. Just sort it out :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.