Panda3D
|
Inherits direct::showbase::DirectObject::DirectObject.
Public Member Functions | |
def | __init__ |
def | onDestroy |
def | popupMenu |
def | removeCurrentTask |
def | removeMatchingTasks |
def | removeTaskHook |
def | setCurrentTask |
def | spawnTaskHook |
def | toggleTaskMgrVerbose |
def | updateTaskListBox |
Public Attributes | |
currentTask | |
dynamicUpdate | |
parent | |
removeButton | |
removeMatchingButton | |
taskListBox | |
taskMgr | |
taskMgrVerbose | |
update |
TaskManagerWidget class: this class contains methods for creating a panel to control taskManager tasks.
def __init__ | ( | self, | |
parent, | |||
taskMgr | |||
) |
TaskManagerWidget class pops up a control panel to view/delete tasks managed by the taskManager.
def onDestroy | ( | self | ) |
def popupMenu | ( | self, | |
event | |||
) |
listbox = self.taskListBox.component('listbox') index = listbox.nearest(event.y) listbox.selection_clear(0) listbox.activate(index) self.taskListBox.select_set(index) self.setCurrentTask()
def removeCurrentTask | ( | self | ) |
def removeMatchingTasks | ( | self | ) |
def removeTaskHook | ( | self, | |
task | |||
) |
def setCurrentTask | ( | self, | |
event = None |
|||
) |
def spawnTaskHook | ( | self, | |
task | |||
) |
def toggleTaskMgrVerbose | ( | self | ) |
def updateTaskListBox | ( | self | ) |