Event

from panda3d.core import Event
class Event

Bases:

Bases: TypedReferenceCount

A named event, possibly with parameters. Anyone in any thread may throw an event at any time; there will be one process responsible for reading and dispacting on the events (but not necessarily immediately).

This function use to inherit from Namable, but that makes it too expensive to get its name the Python code. Now it just copies the Namable interface in.

Inheritance diagram

Inheritance diagram of Event

__init__(copy: Event)
__init__(event_name: str, receiver: EventReceiver)
add_parameter(obj: EventParameter)
assign(copy: Event) Event
clear_name()

Resets the Event’s name to empty.

clear_receiver()
static get_class_type() TypeHandle
get_name() str
get_num_parameters() int
get_parameter(n: int) EventParameter
get_parameters() list
get_receiver() EventReceiver
has_name() bool

Returns true if the Event has a nonempty name set, false if the name is empty.

has_receiver() bool
property name string
output(out: ostream)
property parameters Sequence[EventParameter]
property receiver EventReceiver
set_name(name: str)
set_receiver(receiver: EventReceiver)