OGL LineShape no arrow displayed

Hi all, I have problem with displaying arrows defined for OGL LineShape object. Code taken from official demo:

        line = ogl.LineShape()
        line.SetCanvas(self)
        line.SetPen(wx.RED_PEN)
        line.SetBrush(wx.BLACK_BRUSH)
        line.AddArrow(ogl.ARROW_ARROW)
        line.MakeLineControlPoints(2)
        fromShape.AddLine(line, toShape)
        self.diagram.AddShape(line)
        line.Show(True)

Unfortunately no arrow is displayed:

Screenshot from 2023-06-03 10-58-51

I tried to use DrawArrow() and DrawArrows() methods but without any success. Please could advise me how to display arrows for LineShape objects using OGL? Thanks a lot in advance! Best regards, Martin Landa

There was an issue raised for this for wxPython 4.2.0 when using python 3.10:

A fix has been recently committed and that issue has now been closed.

Thanks for quick reply! Looking forward for next wxPython release. BTW, when it’s planned?

I haven’t seen any reports about when the next release will happen.

My understanding is that @Robin is the only one who can make releases.

Any day now… :smiley:

5 Likes