a minor note:
it appears to me that both CURSOR_PAINT_BRUSH and CURSOR_SPRAYCAN in fact appear as a paintbrush. i noticed this in the demo and i replicated it in my own lil' program.
win2000
ActiveState python 2.3.2
wxPython 2.5.1.5
···
----------------------------------------------
import wx
class CFrame(wx.Frame):
''' play with custom cursors '''
def __init__ (self, parent, id, title):
wx.Frame.__init__(self, parent, id, title)
cbuttons = ['Normal','Spray Can', 'Paint Brush', 'Magnifier']
# RadioBox(parent, id, title, pos, size, choices
# , majordimension=0, style)
rb = wx.RadioBox(self, -1, 'Cursors'
, wx.DefaultPosition, wx.DefaultSize, cbuttons
, 4, wx.RA_SPECIFY_ROWS)
self.Bind(wx.EVT_RADIOBOX, self.OnRadio, rb)
def OnRadio(self, event):
rb = event.GetEventObject()
bx = rb.GetSelection()
button = rb.GetItemLabel(bx)
if button == 'Normal':
cursor = wx.StockCursor(wx.CURSOR_DEFAULT)
elif button == 'Spray Can':
cursor = wx.StockCursor(wx.CURSOR_SPRAYCAN)
elif button == 'Paint Brush':
cursor = wx.StockCursor(wx.CURSOR_PAINT_BRUSH)
else:
cursor = wx.StockCursor(wx.CURSOR_MAGNIFIER)
self.SetCursor(cursor)
app = wx.PySimpleApp()
frame = CFrame(None, -1, 'Fun with Cursors')
frame.Show()
app.MainLoop()