A bunch of little demo tweaks that have accumulated over time...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-15 17:38:10 +00:00
parent 60a9e9925f
commit 1d4d7a48fb
12 changed files with 212 additions and 49 deletions

View File

@@ -107,6 +107,11 @@ class MyEvtHandler(wxShapeEvtHandler):
def OnLeftClick(self, x, y, keys = 0, attachment = 0):
shape = self.GetShape()
print shape.__class__, shape.GetClassName()
regions = shape.GetRegions()
if regions:
#print regions,
print regions[0].GetFormattedText()
canvas = shape.GetCanvas()
dc = wxClientDC(canvas)
canvas.PrepareDC(dc)