mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
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:
@@ -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=[]):
|
||||
|
||||
Reference in New Issue
Block a user