Changeset 3814
- Timestamp:
- 12/18/07 07:54:14 (1 year ago)
- Files:
-
- trunk/dabo/ui/uiwx/dPemMixin.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/ui/uiwx/dPemMixin.py
r3782 r3814 1244 1244 def getCaptureBitmap(self): 1245 1245 """Returns a bitmap snapshot of self, as it appears in the 1246 UI at this moment. 1246 UI at this moment. NOTE: recent changes in wxPython may cause 1247 the bitmap to be returned as monochrome under OS X. 1247 1248 """ 1248 1249 obj = self.Parent … … 1261 1262 else: 1262 1263 dc = wx.ClientDC(obj) 1264 # Make sure that the elements are all current 1265 obj.iterateCall("_redraw", dc) 1266 #obj._redraw(dc) 1267 1268 # Suggested as an alternative for OS X 1269 if wx.Platform == "__WXMAC__": 1270 return dc.GetAsBitmap() 1263 1271 rect = self.GetRect() 1264 1272 bmp = wx.EmptyBitmap(rect.width, rect.height, -1) # - htReduction) … … 1268 1276 memdc.Blit(0, 0, self.Width, self.Height, dc, 0, offset) 1269 1277 memdc.SelectObject(wx.NullBitmap) 1278 memdc.Destroy() 1270 1279 return bmp 1271 1280
