The following code worked in Windows but not in Ubuntu:
# hourglass cursor
Use instead:
wx.BeginBusyCursor()
wx.EndBusyCursor()
NB good to use wx.IsBusy() with EndBusyCursor(). On Windows, ending a cursor if one is not running causes an error.
if wx.IsBusy():
wx.EndBusyCursor()