1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 The `XmlResource` class allows program resources defining menus, layout of
6 controls on a panel, etc. to be loaded from an XML file.
11 new_instancemethod
= new
.instancemethod
12 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
13 if (name
== "thisown"): return self
.this
.own(value
)
15 if type(value
).__name
__ == 'PySwigObject':
16 self
.__dict
__[name
] = value
18 method
= class_type
.__swig
_setmethods
__.get(name
,None)
19 if method
: return method(self
,value
)
20 if (not static
) or hasattr(self
,name
):
21 self
.__dict
__[name
] = value
23 raise AttributeError("You cannot add attributes to %s" % self
)
25 def _swig_setattr(self
,class_type
,name
,value
):
26 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
28 def _swig_getattr(self
,class_type
,name
):
29 if (name
== "thisown"): return self
.this
.own()
30 method
= class_type
.__swig
_getmethods
__.get(name
,None)
31 if method
: return method(self
)
32 raise AttributeError,name
35 try: strthis
= "proxy of " + self
.this
.__repr
__()
37 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
41 _object
= types
.ObjectType
43 except AttributeError:
49 def _swig_setattr_nondynamic_method(set):
50 def set_attr(self
,name
,value
):
51 if (name
== "thisown"): return self
.this
.own(value
)
52 if hasattr(self
,name
) or (name
== "this"):
55 raise AttributeError("You cannot add attributes to %s" % self
)
61 __docfilter__
= wx
.__DocFilter
(globals())
62 #---------------------------------------------------------------------------
64 WX_XMLRES_CURRENT_VERSION_MAJOR
= _xrc
.WX_XMLRES_CURRENT_VERSION_MAJOR
65 WX_XMLRES_CURRENT_VERSION_MINOR
= _xrc
.WX_XMLRES_CURRENT_VERSION_MINOR
66 WX_XMLRES_CURRENT_VERSION_RELEASE
= _xrc
.WX_XMLRES_CURRENT_VERSION_RELEASE
67 WX_XMLRES_CURRENT_VERSION_REVISION
= _xrc
.WX_XMLRES_CURRENT_VERSION_REVISION
68 XRC_USE_LOCALE
= _xrc
.XRC_USE_LOCALE
69 XRC_NO_SUBCLASSING
= _xrc
.XRC_NO_SUBCLASSING
70 XRC_NO_RELOADING
= _xrc
.XRC_NO_RELOADING
71 class XmlResource(_core
.Object
):
72 """Proxy of C++ XmlResource class"""
73 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
75 def __init__(self
, *args
, **kwargs
):
76 """__init__(self, String filemask, int flags=XRC_USE_LOCALE, String domain=wxEmptyString) -> XmlResource"""
77 _xrc
.XmlResource_swiginit(self
,_xrc
.new_XmlResource(*args
, **kwargs
))
78 self
.InitAllHandlers()
80 __swig_destroy__
= _xrc
.delete_XmlResource
81 __del__
= lambda self
: None;
82 def Load(*args
, **kwargs
):
83 """Load(self, String filemask) -> bool"""
84 return _xrc
.XmlResource_Load(*args
, **kwargs
)
86 def LoadFromString(*args
, **kwargs
):
87 """LoadFromString(self, String data) -> bool"""
88 return _xrc
.XmlResource_LoadFromString(*args
, **kwargs
)
90 def Unload(*args
, **kwargs
):
91 """Unload(self, String filename) -> bool"""
92 return _xrc
.XmlResource_Unload(*args
, **kwargs
)
94 def InitAllHandlers(*args
, **kwargs
):
95 """InitAllHandlers(self)"""
96 return _xrc
.XmlResource_InitAllHandlers(*args
, **kwargs
)
98 def AddHandler(*args
, **kwargs
):
99 """AddHandler(self, XmlResourceHandler handler)"""
100 return _xrc
.XmlResource_AddHandler(*args
, **kwargs
)
102 def InsertHandler(*args
, **kwargs
):
103 """InsertHandler(self, XmlResourceHandler handler)"""
104 return _xrc
.XmlResource_InsertHandler(*args
, **kwargs
)
106 def ClearHandlers(*args
, **kwargs
):
107 """ClearHandlers(self)"""
108 return _xrc
.XmlResource_ClearHandlers(*args
, **kwargs
)
110 def AddSubclassFactory(*args
, **kwargs
):
111 """AddSubclassFactory(XmlSubclassFactory factory)"""
112 return _xrc
.XmlResource_AddSubclassFactory(*args
, **kwargs
)
114 AddSubclassFactory
= staticmethod(AddSubclassFactory
)
115 def LoadMenu(*args
, **kwargs
):
116 """LoadMenu(self, String name) -> Menu"""
117 return _xrc
.XmlResource_LoadMenu(*args
, **kwargs
)
119 def LoadMenuBar(*args
, **kwargs
):
120 """LoadMenuBar(self, String name) -> MenuBar"""
121 return _xrc
.XmlResource_LoadMenuBar(*args
, **kwargs
)
123 def LoadMenuBarOnFrame(*args
, **kwargs
):
124 """LoadMenuBarOnFrame(self, Window parent, String name) -> MenuBar"""
125 return _xrc
.XmlResource_LoadMenuBarOnFrame(*args
, **kwargs
)
127 def LoadToolBar(*args
, **kwargs
):
128 """LoadToolBar(self, Window parent, String name) -> wxToolBar"""
129 return _xrc
.XmlResource_LoadToolBar(*args
, **kwargs
)
131 def LoadDialog(*args
, **kwargs
):
132 """LoadDialog(self, Window parent, String name) -> wxDialog"""
133 return _xrc
.XmlResource_LoadDialog(*args
, **kwargs
)
135 def LoadOnDialog(*args
, **kwargs
):
136 """LoadOnDialog(self, wxDialog dlg, Window parent, String name) -> bool"""
137 return _xrc
.XmlResource_LoadOnDialog(*args
, **kwargs
)
139 def LoadPanel(*args
, **kwargs
):
140 """LoadPanel(self, Window parent, String name) -> wxPanel"""
141 return _xrc
.XmlResource_LoadPanel(*args
, **kwargs
)
143 def LoadOnPanel(*args
, **kwargs
):
144 """LoadOnPanel(self, wxPanel panel, Window parent, String name) -> bool"""
145 return _xrc
.XmlResource_LoadOnPanel(*args
, **kwargs
)
147 def LoadFrame(*args
, **kwargs
):
148 """LoadFrame(self, Window parent, String name) -> wxFrame"""
149 return _xrc
.XmlResource_LoadFrame(*args
, **kwargs
)
151 def LoadOnFrame(*args
, **kwargs
):
152 """LoadOnFrame(self, wxFrame frame, Window parent, String name) -> bool"""
153 return _xrc
.XmlResource_LoadOnFrame(*args
, **kwargs
)
155 def LoadObject(*args
, **kwargs
):
156 """LoadObject(self, Window parent, String name, String classname) -> Object"""
157 return _xrc
.XmlResource_LoadObject(*args
, **kwargs
)
159 def LoadOnObject(*args
, **kwargs
):
160 """LoadOnObject(self, Object instance, Window parent, String name, String classname) -> bool"""
161 return _xrc
.XmlResource_LoadOnObject(*args
, **kwargs
)
163 def LoadBitmap(*args
, **kwargs
):
164 """LoadBitmap(self, String name) -> Bitmap"""
165 return _xrc
.XmlResource_LoadBitmap(*args
, **kwargs
)
167 def LoadIcon(*args
, **kwargs
):
168 """LoadIcon(self, String name) -> Icon"""
169 return _xrc
.XmlResource_LoadIcon(*args
, **kwargs
)
171 def AttachUnknownControl(*args
, **kwargs
):
172 """AttachUnknownControl(self, String name, Window control, Window parent=None) -> bool"""
173 return _xrc
.XmlResource_AttachUnknownControl(*args
, **kwargs
)
175 def GetXRCID(*args
, **kwargs
):
176 """GetXRCID(String str_id, int value_if_not_found=ID_NONE) -> int"""
177 return _xrc
.XmlResource_GetXRCID(*args
, **kwargs
)
179 GetXRCID
= staticmethod(GetXRCID
)
180 def GetVersion(*args
, **kwargs
):
181 """GetVersion(self) -> long"""
182 return _xrc
.XmlResource_GetVersion(*args
, **kwargs
)
184 def CompareVersion(*args
, **kwargs
):
185 """CompareVersion(self, int major, int minor, int release, int revision) -> int"""
186 return _xrc
.XmlResource_CompareVersion(*args
, **kwargs
)
188 def Get(*args
, **kwargs
):
189 """Get() -> XmlResource"""
190 return _xrc
.XmlResource_Get(*args
, **kwargs
)
192 Get
= staticmethod(Get
)
193 def Set(*args
, **kwargs
):
194 """Set(XmlResource res) -> XmlResource"""
195 return _xrc
.XmlResource_Set(*args
, **kwargs
)
197 Set
= staticmethod(Set
)
198 def GetFlags(*args
, **kwargs
):
199 """GetFlags(self) -> int"""
200 return _xrc
.XmlResource_GetFlags(*args
, **kwargs
)
202 def SetFlags(*args
, **kwargs
):
203 """SetFlags(self, int flags)"""
204 return _xrc
.XmlResource_SetFlags(*args
, **kwargs
)
206 def GetDomain(*args
, **kwargs
):
207 """GetDomain(self) -> String"""
208 return _xrc
.XmlResource_GetDomain(*args
, **kwargs
)
210 def SetDomain(*args
, **kwargs
):
211 """SetDomain(self, String domain)"""
212 return _xrc
.XmlResource_SetDomain(*args
, **kwargs
)
214 _xrc
.XmlResource_swigregister(XmlResource
)
216 UTF8String
= cvar
.UTF8String
217 StyleString
= cvar
.StyleString
218 SizeString
= cvar
.SizeString
219 PosString
= cvar
.PosString
220 BitmapString
= cvar
.BitmapString
221 IconString
= cvar
.IconString
222 FontString
= cvar
.FontString
224 def EmptyXmlResource(*args
, **kwargs
):
225 """EmptyXmlResource(int flags=XRC_USE_LOCALE, String domain=wxEmptyString) -> XmlResource"""
226 val
= _xrc
.new_EmptyXmlResource(*args
, **kwargs
)
227 val
.InitAllHandlers()
230 def XmlResource_AddSubclassFactory(*args
, **kwargs
):
231 """XmlResource_AddSubclassFactory(XmlSubclassFactory factory)"""
232 return _xrc
.XmlResource_AddSubclassFactory(*args
, **kwargs
)
234 def XmlResource_GetXRCID(*args
, **kwargs
):
235 """XmlResource_GetXRCID(String str_id, int value_if_not_found=ID_NONE) -> int"""
236 return _xrc
.XmlResource_GetXRCID(*args
, **kwargs
)
238 def XmlResource_Get(*args
):
239 """XmlResource_Get() -> XmlResource"""
240 return _xrc
.XmlResource_Get(*args
)
242 def XmlResource_Set(*args
, **kwargs
):
243 """XmlResource_Set(XmlResource res) -> XmlResource"""
244 return _xrc
.XmlResource_Set(*args
, **kwargs
)
246 def XRCID(str_id
, value_if_not_found
= wx
.ID_NONE
):
247 return XmlResource_GetXRCID(str_id
, value_if_not_found
)
249 def XRCCTRL(window
, str_id
, *ignoreargs
):
250 return window
.FindWindowById(XRCID(str_id
))
252 #---------------------------------------------------------------------------
254 class XmlSubclassFactory(object):
255 """Proxy of C++ XmlSubclassFactory class"""
256 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
257 __repr__
= _swig_repr
258 def __init__(self
, *args
, **kwargs
):
259 """__init__(self) -> XmlSubclassFactory"""
260 _xrc
.XmlSubclassFactory_swiginit(self
,_xrc
.new_XmlSubclassFactory(*args
, **kwargs
))
261 self
._setCallbackInfo
(self
, XmlSubclassFactory
)
263 def _setCallbackInfo(*args
, **kwargs
):
264 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
265 return _xrc
.XmlSubclassFactory__setCallbackInfo(*args
, **kwargs
)
267 _xrc
.XmlSubclassFactory_swigregister(XmlSubclassFactory
)
269 #---------------------------------------------------------------------------
271 XML_ELEMENT_NODE
= _xrc
.XML_ELEMENT_NODE
272 XML_ATTRIBUTE_NODE
= _xrc
.XML_ATTRIBUTE_NODE
273 XML_TEXT_NODE
= _xrc
.XML_TEXT_NODE
274 XML_CDATA_SECTION_NODE
= _xrc
.XML_CDATA_SECTION_NODE
275 XML_ENTITY_REF_NODE
= _xrc
.XML_ENTITY_REF_NODE
276 XML_ENTITY_NODE
= _xrc
.XML_ENTITY_NODE
277 XML_PI_NODE
= _xrc
.XML_PI_NODE
278 XML_COMMENT_NODE
= _xrc
.XML_COMMENT_NODE
279 XML_DOCUMENT_NODE
= _xrc
.XML_DOCUMENT_NODE
280 XML_DOCUMENT_TYPE_NODE
= _xrc
.XML_DOCUMENT_TYPE_NODE
281 XML_DOCUMENT_FRAG_NODE
= _xrc
.XML_DOCUMENT_FRAG_NODE
282 XML_NOTATION_NODE
= _xrc
.XML_NOTATION_NODE
283 XML_HTML_DOCUMENT_NODE
= _xrc
.XML_HTML_DOCUMENT_NODE
284 class XmlProperty(object):
285 """Proxy of C++ XmlProperty class"""
286 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
287 __repr__
= _swig_repr
288 def __init__(self
, *args
, **kwargs
):
290 __init__(self, String name=EmptyString, String value=EmptyString,
291 XmlProperty next=None) -> XmlProperty
293 _xrc
.XmlProperty_swiginit(self
,_xrc
.new_XmlProperty(*args
, **kwargs
))
294 def GetName(*args
, **kwargs
):
295 """GetName(self) -> String"""
296 return _xrc
.XmlProperty_GetName(*args
, **kwargs
)
298 def GetValue(*args
, **kwargs
):
299 """GetValue(self) -> String"""
300 return _xrc
.XmlProperty_GetValue(*args
, **kwargs
)
302 def GetNext(*args
, **kwargs
):
303 """GetNext(self) -> XmlProperty"""
304 return _xrc
.XmlProperty_GetNext(*args
, **kwargs
)
306 def SetName(*args
, **kwargs
):
307 """SetName(self, String name)"""
308 return _xrc
.XmlProperty_SetName(*args
, **kwargs
)
310 def SetValue(*args
, **kwargs
):
311 """SetValue(self, String value)"""
312 return _xrc
.XmlProperty_SetValue(*args
, **kwargs
)
314 def SetNext(*args
, **kwargs
):
315 """SetNext(self, XmlProperty next)"""
316 return _xrc
.XmlProperty_SetNext(*args
, **kwargs
)
318 _xrc
.XmlProperty_swigregister(XmlProperty
)
320 class XmlNode(object):
321 """Proxy of C++ XmlNode class"""
322 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
323 __repr__
= _swig_repr
324 def __init__(self
, *args
, **kwargs
):
326 __init__(self, XmlNode parent=None, int type=0, String name=EmptyString,
327 String content=EmptyString, XmlProperty props=None,
328 XmlNode next=None) -> XmlNode
330 _xrc
.XmlNode_swiginit(self
,_xrc
.new_XmlNode(*args
, **kwargs
))
331 __swig_destroy__
= _xrc
.delete_XmlNode
332 __del__
= lambda self
: None;
333 def AddChild(*args
, **kwargs
):
334 """AddChild(self, XmlNode child)"""
335 return _xrc
.XmlNode_AddChild(*args
, **kwargs
)
337 def InsertChild(*args
, **kwargs
):
338 """InsertChild(self, XmlNode child, XmlNode before_node)"""
339 return _xrc
.XmlNode_InsertChild(*args
, **kwargs
)
341 def RemoveChild(*args
, **kwargs
):
342 """RemoveChild(self, XmlNode child) -> bool"""
343 return _xrc
.XmlNode_RemoveChild(*args
, **kwargs
)
345 def AddProperty(*args
, **kwargs
):
346 """AddProperty(self, XmlProperty prop)"""
347 return _xrc
.XmlNode_AddProperty(*args
, **kwargs
)
349 def AddPropertyName(*args
, **kwargs
):
350 """AddPropertyName(self, String name, String value)"""
351 return _xrc
.XmlNode_AddPropertyName(*args
, **kwargs
)
353 def DeleteProperty(*args
, **kwargs
):
354 """DeleteProperty(self, String name) -> bool"""
355 return _xrc
.XmlNode_DeleteProperty(*args
, **kwargs
)
357 def GetType(*args
, **kwargs
):
358 """GetType(self) -> int"""
359 return _xrc
.XmlNode_GetType(*args
, **kwargs
)
361 def GetName(*args
, **kwargs
):
362 """GetName(self) -> String"""
363 return _xrc
.XmlNode_GetName(*args
, **kwargs
)
365 def GetContent(*args
, **kwargs
):
366 """GetContent(self) -> String"""
367 return _xrc
.XmlNode_GetContent(*args
, **kwargs
)
369 def GetParent(*args
, **kwargs
):
370 """GetParent(self) -> XmlNode"""
371 return _xrc
.XmlNode_GetParent(*args
, **kwargs
)
373 def GetNext(*args
, **kwargs
):
374 """GetNext(self) -> XmlNode"""
375 return _xrc
.XmlNode_GetNext(*args
, **kwargs
)
377 def GetChildren(*args
, **kwargs
):
378 """GetChildren(self) -> XmlNode"""
379 return _xrc
.XmlNode_GetChildren(*args
, **kwargs
)
381 def GetProperties(*args
, **kwargs
):
382 """GetProperties(self) -> XmlProperty"""
383 return _xrc
.XmlNode_GetProperties(*args
, **kwargs
)
385 def GetPropVal(*args
, **kwargs
):
386 """GetPropVal(self, String propName, String defaultVal) -> String"""
387 return _xrc
.XmlNode_GetPropVal(*args
, **kwargs
)
389 def HasProp(*args
, **kwargs
):
390 """HasProp(self, String propName) -> bool"""
391 return _xrc
.XmlNode_HasProp(*args
, **kwargs
)
393 def SetType(*args
, **kwargs
):
394 """SetType(self, int type)"""
395 return _xrc
.XmlNode_SetType(*args
, **kwargs
)
397 def SetName(*args
, **kwargs
):
398 """SetName(self, String name)"""
399 return _xrc
.XmlNode_SetName(*args
, **kwargs
)
401 def SetContent(*args
, **kwargs
):
402 """SetContent(self, String con)"""
403 return _xrc
.XmlNode_SetContent(*args
, **kwargs
)
405 def SetParent(*args
, **kwargs
):
406 """SetParent(self, XmlNode parent)"""
407 return _xrc
.XmlNode_SetParent(*args
, **kwargs
)
409 def SetNext(*args
, **kwargs
):
410 """SetNext(self, XmlNode next)"""
411 return _xrc
.XmlNode_SetNext(*args
, **kwargs
)
413 def SetChildren(*args
, **kwargs
):
414 """SetChildren(self, XmlNode child)"""
415 return _xrc
.XmlNode_SetChildren(*args
, **kwargs
)
417 def SetProperties(*args
, **kwargs
):
418 """SetProperties(self, XmlProperty prop)"""
419 return _xrc
.XmlNode_SetProperties(*args
, **kwargs
)
421 _xrc
.XmlNode_swigregister(XmlNode
)
423 def XmlNodeEasy(*args
, **kwargs
):
424 """XmlNodeEasy(int type, String name, String content=EmptyString) -> XmlNode"""
425 val
= _xrc
.new_XmlNodeEasy(*args
, **kwargs
)
428 class XmlDocument(_core
.Object
):
429 """Proxy of C++ XmlDocument class"""
430 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
431 __repr__
= _swig_repr
432 def __init__(self
, *args
, **kwargs
):
433 """__init__(self, String filename, String encoding=UTF8String) -> XmlDocument"""
434 _xrc
.XmlDocument_swiginit(self
,_xrc
.new_XmlDocument(*args
, **kwargs
))
435 __swig_destroy__
= _xrc
.delete_XmlDocument
436 __del__
= lambda self
: None;
437 def Load(*args
, **kwargs
):
438 """Load(self, String filename, String encoding=UTF8String) -> bool"""
439 return _xrc
.XmlDocument_Load(*args
, **kwargs
)
441 def LoadFromStream(*args
, **kwargs
):
442 """LoadFromStream(self, InputStream stream, String encoding=UTF8String) -> bool"""
443 return _xrc
.XmlDocument_LoadFromStream(*args
, **kwargs
)
445 def Save(*args
, **kwargs
):
446 """Save(self, String filename) -> bool"""
447 return _xrc
.XmlDocument_Save(*args
, **kwargs
)
449 def SaveToStream(*args
, **kwargs
):
450 """SaveToStream(self, OutputStream stream) -> bool"""
451 return _xrc
.XmlDocument_SaveToStream(*args
, **kwargs
)
453 def IsOk(*args
, **kwargs
):
454 """IsOk(self) -> bool"""
455 return _xrc
.XmlDocument_IsOk(*args
, **kwargs
)
457 def GetRoot(*args
, **kwargs
):
458 """GetRoot(self) -> XmlNode"""
459 return _xrc
.XmlDocument_GetRoot(*args
, **kwargs
)
461 def GetVersion(*args
, **kwargs
):
462 """GetVersion(self) -> String"""
463 return _xrc
.XmlDocument_GetVersion(*args
, **kwargs
)
465 def GetFileEncoding(*args
, **kwargs
):
466 """GetFileEncoding(self) -> String"""
467 return _xrc
.XmlDocument_GetFileEncoding(*args
, **kwargs
)
469 def SetRoot(*args
, **kwargs
):
470 """SetRoot(self, XmlNode node)"""
471 return _xrc
.XmlDocument_SetRoot(*args
, **kwargs
)
473 def SetVersion(*args
, **kwargs
):
474 """SetVersion(self, String version)"""
475 return _xrc
.XmlDocument_SetVersion(*args
, **kwargs
)
477 def SetFileEncoding(*args
, **kwargs
):
478 """SetFileEncoding(self, String encoding)"""
479 return _xrc
.XmlDocument_SetFileEncoding(*args
, **kwargs
)
481 _xrc
.XmlDocument_swigregister(XmlDocument
)
483 def XmlDocumentFromStream(*args
, **kwargs
):
484 """XmlDocumentFromStream(InputStream stream, String encoding=UTF8String) -> XmlDocument"""
485 val
= _xrc
.new_XmlDocumentFromStream(*args
, **kwargs
)
488 def EmptyXmlDocument(*args
, **kwargs
):
489 """EmptyXmlDocument() -> XmlDocument"""
490 val
= _xrc
.new_EmptyXmlDocument(*args
, **kwargs
)
493 #---------------------------------------------------------------------------
495 class XmlResourceHandler(_core
.Object
):
496 """Proxy of C++ XmlResourceHandler class"""
497 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
498 __repr__
= _swig_repr
499 def __init__(self
, *args
, **kwargs
):
500 """__init__(self) -> XmlResourceHandler"""
501 _xrc
.XmlResourceHandler_swiginit(self
,_xrc
.new_XmlResourceHandler(*args
, **kwargs
))
502 self
._setCallbackInfo
(self
, XmlResourceHandler
)
504 def _setCallbackInfo(*args
, **kwargs
):
505 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
506 return _xrc
.XmlResourceHandler__setCallbackInfo(*args
, **kwargs
)
508 def CreateResource(*args
, **kwargs
):
509 """CreateResource(self, XmlNode node, Object parent, Object instance) -> Object"""
510 return _xrc
.XmlResourceHandler_CreateResource(*args
, **kwargs
)
512 def SetParentResource(*args
, **kwargs
):
513 """SetParentResource(self, XmlResource res)"""
514 return _xrc
.XmlResourceHandler_SetParentResource(*args
, **kwargs
)
516 def GetResource(*args
, **kwargs
):
517 """GetResource(self) -> XmlResource"""
518 return _xrc
.XmlResourceHandler_GetResource(*args
, **kwargs
)
520 def GetNode(*args
, **kwargs
):
521 """GetNode(self) -> XmlNode"""
522 return _xrc
.XmlResourceHandler_GetNode(*args
, **kwargs
)
524 def GetClass(*args
, **kwargs
):
525 """GetClass(self) -> String"""
526 return _xrc
.XmlResourceHandler_GetClass(*args
, **kwargs
)
528 def GetParent(*args
, **kwargs
):
529 """GetParent(self) -> Object"""
530 return _xrc
.XmlResourceHandler_GetParent(*args
, **kwargs
)
532 def GetInstance(*args
, **kwargs
):
533 """GetInstance(self) -> Object"""
534 return _xrc
.XmlResourceHandler_GetInstance(*args
, **kwargs
)
536 def GetParentAsWindow(*args
, **kwargs
):
537 """GetParentAsWindow(self) -> Window"""
538 return _xrc
.XmlResourceHandler_GetParentAsWindow(*args
, **kwargs
)
540 def IsOfClass(*args
, **kwargs
):
541 """IsOfClass(self, XmlNode node, String classname) -> bool"""
542 return _xrc
.XmlResourceHandler_IsOfClass(*args
, **kwargs
)
544 def GetNodeContent(*args
, **kwargs
):
545 """GetNodeContent(self, XmlNode node) -> String"""
546 return _xrc
.XmlResourceHandler_GetNodeContent(*args
, **kwargs
)
548 def HasParam(*args
, **kwargs
):
549 """HasParam(self, String param) -> bool"""
550 return _xrc
.XmlResourceHandler_HasParam(*args
, **kwargs
)
552 def GetParamNode(*args
, **kwargs
):
553 """GetParamNode(self, String param) -> XmlNode"""
554 return _xrc
.XmlResourceHandler_GetParamNode(*args
, **kwargs
)
556 def GetParamValue(*args
, **kwargs
):
557 """GetParamValue(self, String param) -> String"""
558 return _xrc
.XmlResourceHandler_GetParamValue(*args
, **kwargs
)
560 def AddStyle(*args
, **kwargs
):
561 """AddStyle(self, String name, int value)"""
562 return _xrc
.XmlResourceHandler_AddStyle(*args
, **kwargs
)
564 def AddWindowStyles(*args
, **kwargs
):
565 """AddWindowStyles(self)"""
566 return _xrc
.XmlResourceHandler_AddWindowStyles(*args
, **kwargs
)
568 def GetStyle(*args
, **kwargs
):
569 """GetStyle(self, String param=StyleString, int defaults=0) -> int"""
570 return _xrc
.XmlResourceHandler_GetStyle(*args
, **kwargs
)
572 def GetText(*args
, **kwargs
):
573 """GetText(self, String param, bool translate=True) -> String"""
574 return _xrc
.XmlResourceHandler_GetText(*args
, **kwargs
)
576 def GetID(*args
, **kwargs
):
577 """GetID(self) -> int"""
578 return _xrc
.XmlResourceHandler_GetID(*args
, **kwargs
)
580 def GetName(*args
, **kwargs
):
581 """GetName(self) -> String"""
582 return _xrc
.XmlResourceHandler_GetName(*args
, **kwargs
)
584 def GetBool(*args
, **kwargs
):
585 """GetBool(self, String param, bool defaultv=False) -> bool"""
586 return _xrc
.XmlResourceHandler_GetBool(*args
, **kwargs
)
588 def GetLong(*args
, **kwargs
):
589 """GetLong(self, String param, long defaultv=0) -> long"""
590 return _xrc
.XmlResourceHandler_GetLong(*args
, **kwargs
)
592 def GetColour(*args
, **kwargs
):
593 """GetColour(self, String param) -> Colour"""
594 return _xrc
.XmlResourceHandler_GetColour(*args
, **kwargs
)
596 def GetSize(*args
, **kwargs
):
597 """GetSize(self, String param=SizeString) -> Size"""
598 return _xrc
.XmlResourceHandler_GetSize(*args
, **kwargs
)
600 def GetPosition(*args
, **kwargs
):
601 """GetPosition(self, String param=PosString) -> Point"""
602 return _xrc
.XmlResourceHandler_GetPosition(*args
, **kwargs
)
604 def GetDimension(*args
, **kwargs
):
605 """GetDimension(self, String param, int defaultv=0) -> int"""
606 return _xrc
.XmlResourceHandler_GetDimension(*args
, **kwargs
)
608 def GetBitmap(*args
, **kwargs
):
610 GetBitmap(self, String param=BitmapString, wxArtClient defaultArtClient=wxART_OTHER,
611 Size size=DefaultSize) -> Bitmap
613 return _xrc
.XmlResourceHandler_GetBitmap(*args
, **kwargs
)
615 def GetIcon(*args
, **kwargs
):
617 GetIcon(self, String param=IconString, wxArtClient defaultArtClient=wxART_OTHER,
618 Size size=DefaultSize) -> Icon
620 return _xrc
.XmlResourceHandler_GetIcon(*args
, **kwargs
)
622 def GetFont(*args
, **kwargs
):
623 """GetFont(self, String param=FontString) -> Font"""
624 return _xrc
.XmlResourceHandler_GetFont(*args
, **kwargs
)
626 def SetupWindow(*args
, **kwargs
):
627 """SetupWindow(self, Window wnd)"""
628 return _xrc
.XmlResourceHandler_SetupWindow(*args
, **kwargs
)
630 def CreateChildren(*args
, **kwargs
):
631 """CreateChildren(self, Object parent, bool this_hnd_only=False)"""
632 return _xrc
.XmlResourceHandler_CreateChildren(*args
, **kwargs
)
634 def CreateChildrenPrivately(*args
, **kwargs
):
635 """CreateChildrenPrivately(self, Object parent, XmlNode rootnode=None)"""
636 return _xrc
.XmlResourceHandler_CreateChildrenPrivately(*args
, **kwargs
)
638 def CreateResFromNode(*args
, **kwargs
):
639 """CreateResFromNode(self, XmlNode node, Object parent, Object instance=None) -> Object"""
640 return _xrc
.XmlResourceHandler_CreateResFromNode(*args
, **kwargs
)
642 def GetCurFileSystem(*args
, **kwargs
):
643 """GetCurFileSystem(self) -> FileSystem"""
644 return _xrc
.XmlResourceHandler_GetCurFileSystem(*args
, **kwargs
)
646 _xrc
.XmlResourceHandler_swigregister(XmlResourceHandler
)
648 #----------------------------------------------------------------------------
649 # The global was removed in favor of static accessor functions. This is for
650 # backwards compatibility:
652 TheXmlResource
= XmlResource_Get()
655 #----------------------------------------------------------------------------
656 # Create a factory for handling the subclass property of the object tag.
659 def _my_import(name
):
660 mod
= __import__(name
)
661 components
= name
.split('.')
662 for comp
in components
[1:]:
663 mod
= getattr(mod
, comp
)
667 class XmlSubclassFactory_Python(XmlSubclassFactory
):
669 XmlSubclassFactory
.__init
__(self
)
671 def Create(self
, className
):
672 assert className
.find('.') != -1, "Module name must be specified!"
673 mname
= className
[:className
.rfind('.')]
674 cname
= className
[className
.rfind('.')+1:]
675 module
= _my_import(mname
)
676 klass
= getattr(module
, cname
)
681 XmlResource_AddSubclassFactory(XmlSubclassFactory_Python())
683 #----------------------------------------------------------------------------