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