The statement “evtloop = wx.GUIEventLoop()” works on 64-bit Python 2.7 on a Mac and on 32-bit Python 2.7 on Windows, but on 64-bit Python 2.7 for Windows I get the error message
AttributeError: ‘module’ object has no attribute ‘GUIEventLoop’
Should I be using some other function?
The next statement is “wx.EventLoop.SetActive(_evtloop)”, but I don’t get that far.
For completeness, there’s no problem on 32-bit Mac Python 2.7.
Among Windows and Mac, 32-bit and 64-bit, it’s only Windows 64-bit where “evtloop = wx.GUIEventLoop()” gives an attribute error.
Ah. I was using the 2.8 development wxPython. Upgrading to 2.9 solved my problem. So now I have almost all aspects of VPython working on a base of wxPython, in a 64-bit environment.
Bruce, the name of your variable is evtloop but then as a function argument you wrote it as _evtloop – with an underscore. Maybe that’s the culprit?
Oh, sorry. Just a typo in my posting. In my actual program I have initial underscores to prevent my variables from being imported by user programs, and I intended to remove them when I posted to the forum, but I missed one.
As I posted later, the problem went away when I installed wxPython 2.9.