BruceSherwood / vpython-wx

VPython based on wxPython
Other
70 stars 38 forks source link

scene.cursor.visible does nothing #38

Closed BruceSherwood closed 10 years ago

BruceSherwood commented 11 years ago

scene.cursor.visible does nothing. Here is a routine that shows what code needs to be added to visual. "Phoenix" is the new version of wxPython and is not yet fully released.

from visual import * import wx sphere()

on = True

def flip(): global on if on: if 'phoenix' in wx.PlatformInfo: scene.win.SetCursor(wx.Cursor(wx.CURSOR_BLANK)) # Phoenix else: scene.win.SetCursor(wx.StockCursor(wx.CURSOR_BLANK)) # Classic else: if 'phoenix' in wx.PlatformInfo: scene.win.SetCursor(wx.Cursor(wx.CURSOR_ARROW)) # Phoenix else: scene.win.SetCursor(wx.StockCursor(wx.CURSOR_ARROW)) # Classic on = not on

scene.bind('mousedown', flip)

BruceSherwood commented 10 years ago

Implemented 2014/04/26; tested on Windows