1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
/* ###################################################
## This file generated by quotefile.pl from
## inkscape_py.py on Thu Dec 16 15:35:46 2004
## DO NOT EDIT
################################################### */
static char *inkscape_module_script =
"# This file was created automatically by SWIG.\n"
"# Don't modify this file, modify the SWIG interface instead.\n"
"# This file is compatible with both classic and new-style classes.\n"
"\n"
"import _inkscape_py\n"
"\n"
"def _swig_setattr_nondynamic(self,class_type,name,value,static=1):\n"
" if (name == \"this\"):\n"
" if isinstance(value, class_type):\n"
" self.__dict__[name] = value.this\n"
" if hasattr(value,\"thisown\"): self.__dict__[\"thisown\"] = value.thisown\n"
" del value.thisown\n"
" return\n"
" method = class_type.__swig_setmethods__.get(name,None)\n"
" if method: return method(self,value)\n"
" if (not static) or hasattr(self,name) or (name == \"thisown\"):\n"
" self.__dict__[name] = value\n"
" else:\n"
" raise AttributeError(\"You cannot add attributes to %s\" % self)\n"
"\n"
"def _swig_setattr(self,class_type,name,value):\n"
" return _swig_setattr_nondynamic(self,class_type,name,value,0)\n"
"\n"
"def _swig_getattr(self,class_type,name):\n"
" method = class_type.__swig_getmethods__.get(name,None)\n"
" if method: return method(self)\n"
" raise AttributeError,name\n"
"\n"
"import types\n"
"try:\n"
" _object = types.ObjectType\n"
" _newclass = 1\n"
"except AttributeError:\n"
" class _object : pass\n"
" _newclass = 0\n"
"del types\n"
"\n"
"\n"
"\n"
"getInkscape = _inkscape_py.getInkscape\n"
"class Inkscape(_object):\n"
" __swig_setmethods__ = {}\n"
" __setattr__ = lambda self, name, value: _swig_setattr(self, Inkscape, name, value)\n"
" __swig_getmethods__ = {}\n"
" __getattr__ = lambda self, name: _swig_getattr(self, Inkscape, name)\n"
" def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
" def __repr__(self):\n"
" return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::Inkscape instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
" def __del__(self, destroy=_inkscape_py.delete_Inkscape):\n"
" try:\n"
" if self.thisown: destroy(self)\n"
" except: pass\n"
"\n"
" def getDesktop(*args): return _inkscape_py.Inkscape_getDesktop(*args)\n"
" def getDialogManager(*args): return _inkscape_py.Inkscape_getDialogManager(*args)\n"
"\n"
"class InkscapePtr(Inkscape):\n"
" def __init__(self, this):\n"
" _swig_setattr(self, Inkscape, 'this', this)\n"
" if not hasattr(self,\"thisown\"): _swig_setattr(self, Inkscape, 'thisown', 0)\n"
" _swig_setattr(self, Inkscape,self.__class__,Inkscape)\n"
"_inkscape_py.Inkscape_swigregister(InkscapePtr)\n"
"\n"
"class DialogManager(_object):\n"
" __swig_setmethods__ = {}\n"
" __setattr__ = lambda self, name, value: _swig_setattr(self, DialogManager, name, value)\n"
" __swig_getmethods__ = {}\n"
" __getattr__ = lambda self, name: _swig_getattr(self, DialogManager, name)\n"
" def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
" def __repr__(self):\n"
" return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::DialogManager instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
" def __del__(self, destroy=_inkscape_py.delete_DialogManager):\n"
" try:\n"
" if self.thisown: destroy(self)\n"
" except: pass\n"
"\n"
" def showAbout(*args): return _inkscape_py.DialogManager_showAbout(*args)\n"
"\n"
"class DialogManagerPtr(DialogManager):\n"
" def __init__(self, this):\n"
" _swig_setattr(self, DialogManager, 'this', this)\n"
" if not hasattr(self,\"thisown\"): _swig_setattr(self, DialogManager, 'thisown', 0)\n"
" _swig_setattr(self, DialogManager,self.__class__,DialogManager)\n"
"_inkscape_py.DialogManager_swigregister(DialogManagerPtr)\n"
"\n"
"class Desktop(_object):\n"
" __swig_setmethods__ = {}\n"
" __setattr__ = lambda self, name, value: _swig_setattr(self, Desktop, name, value)\n"
" __swig_getmethods__ = {}\n"
" __getattr__ = lambda self, name: _swig_getattr(self, Desktop, name)\n"
" def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
" def __repr__(self):\n"
" return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::Desktop instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
" def __del__(self, destroy=_inkscape_py.delete_Desktop):\n"
" try:\n"
" if self.thisown: destroy(self)\n"
" except: pass\n"
"\n"
" def getDocument(*args): return _inkscape_py.Desktop_getDocument(*args)\n"
"\n"
"class DesktopPtr(Desktop):\n"
" def __init__(self, this):\n"
" _swig_setattr(self, Desktop, 'this', this)\n"
" if not hasattr(self,\"thisown\"): _swig_setattr(self, Desktop, 'thisown', 0)\n"
" _swig_setattr(self, Desktop,self.__class__,Desktop)\n"
"_inkscape_py.Desktop_swigregister(DesktopPtr)\n"
"\n"
"class Document(_object):\n"
" __swig_setmethods__ = {}\n"
" __setattr__ = lambda self, name, value: _swig_setattr(self, Document, name, value)\n"
" __swig_getmethods__ = {}\n"
" __getattr__ = lambda self, name: _swig_getattr(self, Document, name)\n"
" def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
" def __repr__(self):\n"
" return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::Document instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
" def __del__(self, destroy=_inkscape_py.delete_Document):\n"
" try:\n"
" if self.thisown: destroy(self)\n"
" except: pass\n"
"\n"
" def hello(*args): return _inkscape_py.Document_hello(*args)\n"
"\n"
"class DocumentPtr(Document):\n"
" def __init__(self, this):\n"
" _swig_setattr(self, Document, 'this', this)\n"
" if not hasattr(self,\"thisown\"): _swig_setattr(self, Document, 'thisown', 0)\n"
" _swig_setattr(self, Document,self.__class__,Document)\n"
"_inkscape_py.Document_swigregister(DocumentPtr)\n"
"\n"
"\n"
"";
|