00001
00002
00003
00004
00005
00006
00007
00008 from sys import version_info
00009 if version_info >= (2,6,0):
00010 def swig_import_helper():
00011 from os.path import dirname
00012 import imp
00013 fp = None
00014 try:
00015 fp, pathname, description = imp.find_module('_ElModes', [dirname(__file__)])
00016 except ImportError:
00017 import _ElModes
00018 return _ElModes
00019 if fp is not None:
00020 try:
00021 _mod = imp.load_module('_ElModes', fp, pathname, description)
00022 finally:
00023 fp.close()
00024 return _mod
00025 _ElModes = swig_import_helper()
00026 del swig_import_helper
00027 else:
00028 import _ElModes
00029 del version_info
00030 try:
00031 _swig_property = property
00032 except NameError:
00033 pass
00034 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00035 if (name == "thisown"): return self.this.own(value)
00036 if (name == "this"):
00037 if type(value).__name__ == 'SwigPyObject':
00038 self.__dict__[name] = value
00039 return
00040 method = class_type.__swig_setmethods__.get(name,None)
00041 if method: return method(self,value)
00042 if (not static) or hasattr(self,name):
00043 self.__dict__[name] = value
00044 else:
00045 raise AttributeError("You cannot add attributes to %s" % self)
00046
00047 def _swig_setattr(self,class_type,name,value):
00048 return _swig_setattr_nondynamic(self,class_type,name,value,0)
00049
00050 def _swig_getattr(self,class_type,name):
00051 if (name == "thisown"): return self.this.own()
00052 method = class_type.__swig_getmethods__.get(name,None)
00053 if method: return method(self)
00054 raise AttributeError(name)
00055
00056 def _swig_repr(self):
00057 try: strthis = "proxy of " + self.this.__repr__()
00058 except: strthis = ""
00059 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00060
00061 try:
00062 _object = object
00063 _newclass = 1
00064 except AttributeError:
00065 class _object : pass
00066 _newclass = 0
00067
00068
00069
00070 ElModes = _ElModes.ElModes
00071