def __init__(self): if "wxMac" in wx.PlatformInfo: # use 16X16 cursors for wxMac self.HandCursor = wx.CursorFromImage(Resources.getHand16Image()) self.GrabHandCursor = wx.CursorFromImage(Resources.getGrabHand16Image()) self.CrossCursor = wx.CURSOR_CROSS img = Resources.getMagPlus16Image() img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_X, 6) img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_Y, 6) self.MagPlusCursor = wx.CursorFromImage(img) img = Resources.getMagMinus16Image() img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_X, 6) img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_Y, 6) self.MagMinusCursor = wx.CursorFromImage(img) else: # use 24X24 cursors for GTK and Windows self.HandCursor = wx.CursorFromImage(Resources.getHandImage()) self.GrabHandCursor = wx.CursorFromImage(Resources.getGrabHandImage()) self.CrossCursor = wx.CURSOR_CROSS img = Resources.getMagPlusImage() img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_X, 9) img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_Y, 9) self.MagPlusCursor = wx.CursorFromImage(img) img = Resources.getMagMinusImage() img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_X, 9) img.SetOptionInt(wx.IMAGE_OPTION_CUR_HOTSPOT_Y, 9) self.MagMinusCursor = wx.CursorFromImage(img)