Lines Matching refs:_context
719 def __init__(self, _context=None): argument
731 self._context = None
733 if(_context is None):
734 self._context = _new_default()
735 elif type(_context) is str or type(_context) is unicode:
736 self._context = _new_uri(_context.encode('ascii'))
738 self._context = _context
741 for x in range(0, _get_attrs_count(self._context)):
744 _get_attr(self._context, x, _byref(str1), _byref(str2))
749 [ _get_device(self._context, x) for x in range(0, _devices_count(self._context)) ]]
750 self._name = _get_name(self._context).decode('ascii')
751 self._description = _get_description(self._context).decode('ascii')
752 self._xml = _get_xml(self._context).decode('ascii')
757 _get_version(self._context, _byref(major), _byref(minor), buf)
761 if(self._context is not None):
762 _destroy(self._context)
772 _set_timeout(self._context, timeout)
781 return Context(_clone(self._context))