You are (obviously) quite correct. I believe I skipped DrawnShape
because it wasn't used in the demo so I didn't have any test for it.I could give it a shot if want me to, but I'll have to whip up
a demo for it first (using the C version) so I'll know when I get it
right.
That would be excellent. I have an app that needs DrawnShapes and so before
I can switch to the new ogl I have to have them in.
In the meantime, may I suggest you update the migration guide to mention the
fact that DrawnShape is not present in 2.5.2.7. (which also means that
wx.ogl cannot really be considered "deprecated" at the moment).
For what regards a demo, I'm sure you'll find a more meaningful one, but in
case you want a start, here's a routine within one of my DrawnShape-derived
classes:
def drawSelfLine(self):
"The actual routine drawing the self line."
origin = ( 0, 0)
(xs, ys) = ( 7, 10) # start point
(xe, ye) = (-7, 10) # end point
# draw the arc
self.SetDrawnBrush(wx.Brush(self.brush))
self.SetDrawnPen(wx.Pen(self.pen))
self.DrawArc(origin, (xs,ys), (xe,ye))
# a dirty hack to remove the lines to the arc center: draw an
overlapping arc with bkg color.
self.SetDrawnPen(wx.Pen(self.brush))
self.DrawArc(origin, (xe-2,ye), (xs+1,ys))
# draw the arrow
self.SetDrawnPen(wx.Pen(self.pen))
self.SetDrawnBrush(wx.Brush(self.pen))
arrow = [(xe-1,ye), (xe-5,ye), (xe-1,ye-4)]
self.DrawPolygon(arrow)
Thanks,
Davide