I’m creating a menu for an app that I am making. Currently I have one checkbutton and one regular button in it. The issue is, if I do not physically click on the checkbutton then I get this error: Traceback (most recent call last):
File “C:\Panda3D-1.8.1\direct\showbase\EventManager.py”, line 61, in eventLoopTask
self.doEvents()
File “C:\Panda3D-1.8.1\direct\showbase\EventManager.py”, line 55, in doEvents
processFunc(self.eventQueue.dequeueEvent())
File “C:\Panda3D-1.8.1\direct\showbase\EventManager.py”, line 122, in processEvent
messenger.send(eventName, paramList)
File “C:\Panda3D-1.8.1\direct\showbase\Messenger.py”, line 397, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File “C:\Panda3D-1.8.1\direct\showbase\Messenger.py”, line 482, in __dispatch
method ((extraArgs + sentArgs))
File “C:\Panda3D-1.8.1\direct\gui\DirectButton.py”, line 103, in commandFunc
apply(self[‘command’], self[‘extraArgs’])
File “SeC1.py”, line 47, in killMenu
if self.loadWOFscreen == True:
AttributeError: myapp instance has no attribute ‘loadWOFscreen’
:task(error): Exception occurred in PythonTask eventManager
Traceback (most recent call last):
File “SeC1.py”, line 72, in
app.run()
File “C:\Panda3D-1.8.1\direct\showbase\ShowBase.py”, line 2921, in run
self.taskMgr.run()
File “C:\Panda3D-1.8.1\direct\task\Task.py”, line 502, in run
self.step()
File “C:\Panda3D-1.8.1\direct\task\Task.py”, line 460, in step
self.mgr.poll()
File “C:\Panda3D-1.8.1\direct\showbase\EventManager.py”, line 61, in eventLoopTask
self.doEvents()
File “C:\Panda3D-1.8.1\direct\showbase\EventManager.py”, line 55, in doEvents
processFunc(self.eventQueue.dequeueEvent())
File “C:\Panda3D-1.8.1\direct\showbase\EventManager.py”, line 122, in processEvent
messenger.send(eventName, paramList)
File “C:\Panda3D-1.8.1\direct\showbase\Messenger.py”, line 397, in send
self.__dispatch(acceptorDict, event, sentArgs, foundWatch)
File “C:\Panda3D-1.8.1\direct\showbase\Messenger.py”, line 482, in __dispatch
method ((extraArgs + sentArgs))
File “C:\Panda3D-1.8.1\direct\gui\DirectButton.py”, line 103, in commandFunc
apply(self[‘command’], self[‘extraArgs’])
File “SeC1.py”, line 47, in killMenu
if self.loadWOFscreen == True:
AttributeError: myapp instance has no attribute ‘loadWOFscreen’
Exit code: 1
If I do click on it, everything works like I think it should. I have even tried enabling an indicatorValue for it, thinking that would give the checkbutton focus, but it didn’t. I’ll put my code in the next post.