1

I've been using ZeroBrane & its included Turtle library to teach (very) basic programming skills to young kids. This week is the 2nd time a kid has come with a Mac, and both times the char() function didn't work in their code. I tracked it back as far as I am capable, and the key variable (which is used in the char function) is never set in this line of code:

frame:Connect(wx.wxEVT_KEY_DOWN, function (event) key = event:GetKeyCode() end)

The current student is running Yosemite (I don't know if the previous student was using the same version or a different OS X version).

Any suggestions on where to look to resolve?

Ma Arme
  • 11
  • 2
  • what version of the library is used? – Igor Jan 11 '17 at 19:18
  • The version of the Turtle library? I don't see a version number listed. It was downloaded from the ZeroBrane site and installed last week and I don't see any updates since then, so I believe it's the most current version. – Ma Arme Jan 11 '17 at 22:21
  • no I'm asking about wx version. Because it is possible that wx was compiled for the older version of OSX... – Igor Jan 11 '17 at 23:33
  • @Igor, it's compiled using the wxwidgets master branch as of commit `7d9d5934`. I did confirm that the `EVT_KEY_DOWN` event doesn't fire when connected to wxFrame, but put a partial workaround in place for now. – Paul Kulchenko Jan 19 '17 at 20:27

0 Answers0