Floatcanvas samples updates for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-04-30 05:19:51 +00:00
parent 443c6590d2
commit 7bc7aaf7f8
36 changed files with 111 additions and 116 deletions

View File

@@ -42,9 +42,9 @@ class PixelBitmap:
'cr the center right, etc.
"""
if type(Bitmap) == wx._gdi.Bitmap:
if type(Bitmap) == wx.Bitmap:
self.Bitmap = Bitmap
elif type(Bitmap) == wx._core.Image:
elif type(Bitmap) == wx.Image:
self.Bitmap = wx.BitmapFromImage(Bitmap)
else:
raise FC.FloatCanvasError("PixelBitmap takes only a wx.Bitmap or a wx.Image as input")
@@ -68,7 +68,7 @@ class PixelBitmap:
elif self.Position[1] == 'c':
XY = (XY[0] + (w - self.Width)/2, XY[1])
dc.DrawBitmapPoint(self.Bitmap, XY, True)
dc.DrawBitmap(self.Bitmap, XY, True)
class GridGroup:
def __init__(self, grids=[]):