-## 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)
+class DividedShape(wxDividedShape):
+ def __init__(self, width, height, canvas):
+ wxDividedShape.__init__(self, width, height)
+
+ region1 = wxShapeRegion()
+ region1.SetText('wxDividedShape')
+ region1.SetProportions(0.0, 0.2)
+ region1.SetFormatMode(FORMAT_CENTRE_HORIZ)
+ self.AddRegion(region1)
+
+ region2 = wxShapeRegion()
+ region2.SetText('This is Region number two.')
+ region2.SetProportions(0.0, 0.3)
+ region2.SetFormatMode(FORMAT_CENTRE_HORIZ|FORMAT_CENTRE_VERT)
+ self.AddRegion(region2)