PLplot
5.15.0
Loading...
Searching...
No Matches
Pltk_init.py
Go to the documentation of this file.
1
# This file was automatically generated by SWIG (https://www.swig.org).
2
# Version 4.2.1
3
#
4
# Do not make changes to this file unless you know what you are doing - modify
5
# the SWIG interface file instead.
6
7
from
sys
import
version_info
as
_swig_python_version_info
8
# Import the low-level C/C++ module
9
if
__package__
or
"."
in
__name__:
10
from
.
import
_Pltk_init
11
else
:
12
import
_Pltk_init
13
14
try
:
15
import
builtins
as
__builtin__
16
except
ImportError:
17
import
__builtin__
18
19
def
_swig_repr
(self):
20
try
:
21
strthis =
"proxy of "
+ self.this.__repr__()
22
except
__builtin__.Exception:
23
strthis =
""
24
return
"<%s.%s; %s >"
% (self.__class__.__module__, self.__class__.__name__, strthis,)
25
26
27
def
_swig_setattr_nondynamic_instance_variable
(set):
28
def
set_instance_attr(self, name, value):
29
if
name ==
"this"
:
30
set(self, name, value)
31
elif
name ==
"thisown"
:
32
self.this.own(value)
33
elif
hasattr(self, name)
and
isinstance(getattr(type(self), name), property):
34
set(self, name, value)
35
else
:
36
raise
AttributeError(
"You cannot add instance attributes to %s"
% self)
37
return
set_instance_attr
38
39
40
def
_swig_setattr_nondynamic_class_variable
(set):
41
def
set_class_attr(cls, name, value):
42
if
hasattr(cls, name)
and
not
isinstance(getattr(cls, name), property):
43
set(cls, name, value)
44
else
:
45
raise
AttributeError(
"You cannot add class attributes to %s"
% cls)
46
return
set_class_attr
47
48
49
def
_swig_add_metaclass
(metaclass):
50
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
51
def
wrapper(cls):
52
return
metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
53
return
wrapper
54
55
56
class
_SwigNonDynamicMeta
(type):
57
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
58
__setattr__ =
_swig_setattr_nondynamic_class_variable
(type.__setattr__)
59
60
61
62
def
Pltk_init
(x):
63
return
_Pltk_init.Pltk_init(x)
64
Pltk_init._SwigNonDynamicMeta
Definition
Pltk_init.py:56
Pltk_init
Definition
Pltk_init.py:1
Pltk_init._swig_setattr_nondynamic_class_variable
_swig_setattr_nondynamic_class_variable(set)
Definition
Pltk_init.py:40
Pltk_init._swig_repr
_swig_repr(self)
Definition
Pltk_init.py:19
Pltk_init._swig_setattr_nondynamic_instance_variable
_swig_setattr_nondynamic_instance_variable(set)
Definition
Pltk_init.py:27
Pltk_init._swig_add_metaclass
_swig_add_metaclass(metaclass)
Definition
Pltk_init.py:49
bindings
python
Pltk_init.py
Generated on Wed May 29 2024 00:00:00 for PLplot by
1.11.0