+#----------------------------------------------------------------------
+
+## class LabeledBitmapShape(wxBitmapShape):
+## def __init__(self, bmp, text):
+## wxBitmapShape.__init__(self)
+## self.SetBitmap(bmp)
+## self.region = r = wxShapeRegion()
+## r.SetPosition(0, 0) #bmp.GetHeight())
+## r.SetSize(bmp.GetWidth(), bmp.GetHeight())
+## r.SetText(text)
+## self.AddRegion(r)
+
+## def OnMovePost(self, dc, x, y, old_x, old_y, display):
+## self.region.SetPosition(x, y)
+## self.base_OnMovePost(dc, x, y, old_x, old_y, display)
+
+
+## class LabeledBitmapShape(wxCompositeShape):
+## def __init__(self, canvas, bmp, text):
+## wxCompositeShape.__init__(self)
+## self.bs = wxBitmapShape()
+## self.bs.SetBitmap(bmp)
+## self.ts = wxTextShape()
+## self.ts.AddText(text)
+
+## self.AddChild(self.bs)
+## self.AddChild(self.ts, self.bs)
+
+## self.AddConstrainedShapes(gyCONSTRAINT_CENTRED_VERTICALLY, self, [self.bs, self.ts])
+## self.AddSimpleConstraint(gyCONSTRAINT_BELOW, self.bs, self.ts)
+## self.AddSimpleConstraint(gyCONSTRAINT_ALIGNED_TOP, self, self.bs)
+## self.AddSimpleConstraint(gyCONSTRAINT_ALIGNED_BOTTOM, self, self.ts)
+
+