cursors confused

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()

Jim Peterson wrote:

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

Yep. As the demo says not all stock cursors have a meaningful representation on all platforms. However in this case if somebody wants to send me a freely usable .cur file for the spray can then I can add it for wxMSW.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!