Panda3D
Public Member Functions | List of all members
BrowserObject Class Reference

Public Member Functions

def __init__ (self, runner, objectId)
 
def __del__ (self)
 
def __bool__ (self)
 
def __call__ (self, *args, **kw)
 
def __delattr__ (self, name)
 
def __delitem__ (self, key)
 
def __getattr__ (self, name)
 
def __getitem__ (self, key)
 
def __setattr__ (self, name, value)
 
def __setitem__ (self, key, value)
 
def __str__ (self)
 

Detailed Description

This class provides the Python wrapper around some object that
actually exists in the plugin host's namespace, e.g. a JavaScript
or DOM object. 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  runner,
  objectId 
)

◆ __del__()

def __del__ (   self)

Member Function Documentation

◆ __bool__()

def __bool__ (   self)

◆ __call__()

def __call__ (   self,
args,
**  kw 
)

◆ __delattr__()

def __delattr__ (   self,
  name 
)

◆ __delitem__()

def __delitem__ (   self,
  key 
)

◆ __getattr__()

def __getattr__ (   self,
  name 
)
Remaps attempts to query an attribute, as in obj.attr,
into the appropriate calls to query the actual browser object
under the hood.  

◆ __getitem__()

def __getitem__ (   self,
  key 
)
Remaps attempts to query an attribute, as in obj['attr'],
into the appropriate calls to query the actual browser object
under the hood.  Following the JavaScript convention, we treat
obj['attr'] almost the same as obj.attr. 

◆ __setattr__()

def __setattr__ (   self,
  name,
  value 
)

◆ __setitem__()

def __setitem__ (   self,
  key,
  value 
)

◆ __str__()

def __str__ (   self)