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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user