Panda3D
Public Member Functions | Public Attributes | List of all members
TaskManagerWidget Class Reference
Inheritance diagram for TaskManagerWidget:
DirectObject

Public Member Functions

def __init__ (self, parent, taskMgr)
 
def onDestroy (self)
 
def popupMenu (self, event)
 
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)
 
- Public Member Functions inherited from DirectObject
def __init__ (self)
 
def accept (self, event, method, extraArgs=[])
 
def acceptOnce (self, event, method, extraArgs=[])
 
def addTask (self, *args, **kwargs)
 
def detectLeaks (self)
 
def doMethodLater (self, *args, **kwargs)
 
def getAllAccepting (self)
 
def ignore (self, event)
 
def ignoreAll (self)
 
def isAccepting (self, event)
 
def isIgnoring (self, event)
 
def removeAllTasks (self)
 
def removeTask (self, taskOrName)
 

Public Attributes

 currentTask
 
 dynamicUpdate
 
 parent
 
 removeButton
 
 removeMatchingButton
 
 taskListBox
 
 taskMgr
 
 taskMgrVerbose
 
 update
 

Additional Inherited Members

- Static Public Attributes inherited from DirectObject
def accept_once = acceptOnce
 
def add_task = addTask
 
def detect_leaks = detectLeaks
 
def do_method_later = doMethodLater
 
def get_all_accepting = getAllAccepting
 
def ignore_all = ignoreAll
 
def is_accepting = isAccepting
 
def is_ignoring = isIgnoring
 
def remove_all_tasks = removeAllTasks
 
def remove_task = removeTask
 

Detailed Description

TaskManagerWidget class: this class contains methods for creating
a panel to control taskManager tasks.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  parent,
  taskMgr 
)
TaskManagerWidget class pops up a control panel to view/delete
tasks managed by the taskManager.

Member Function Documentation

◆ onDestroy()

def onDestroy (   self)

◆ popupMenu()

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()

◆ removeCurrentTask()

def removeCurrentTask (   self)

◆ removeMatchingTasks()

def removeMatchingTasks (   self)

◆ removeTaskHook()

def removeTaskHook (   self,
  task 
)

◆ setCurrentTask()

def setCurrentTask (   self,
  event = None 
)

◆ spawnTaskHook()

def spawnTaskHook (   self,
  task 
)

◆ toggleTaskMgrVerbose()

def toggleTaskMgrVerbose (   self)

◆ updateTaskListBox()

def updateTaskListBox (   self)

Member Data Documentation

◆ currentTask

currentTask

◆ dynamicUpdate

dynamicUpdate

◆ parent

parent

◆ removeButton

removeButton

◆ removeMatchingButton

removeMatchingButton

◆ taskListBox

taskListBox

◆ taskMgr

taskMgr

◆ taskMgrVerbose

taskMgrVerbose

◆ update

update