1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 WX_XMLRES_CURRENT_VERSION_MAJOR
= _xrc
.WX_XMLRES_CURRENT_VERSION_MAJOR
11 WX_XMLRES_CURRENT_VERSION_MINOR
= _xrc
.WX_XMLRES_CURRENT_VERSION_MINOR
12 WX_XMLRES_CURRENT_VERSION_RELEASE
= _xrc
.WX_XMLRES_CURRENT_VERSION_RELEASE
13 WX_XMLRES_CURRENT_VERSION_REVISION
= _xrc
.WX_XMLRES_CURRENT_VERSION_REVISION
14 XRC_USE_LOCALE
= _xrc
.XRC_USE_LOCALE
15 XRC_NO_SUBCLASSING
= _xrc
.XRC_NO_SUBCLASSING
16 class XmlResource(core
.Object
):
18 return "<%s.%s; proxy of C++ wxXmlResource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
19 def __init__(self
, *args
, **kwargs
):
20 """__init__(wxString filemask, int flags=XRC_USE_LOCALE) -> XmlResource"""
21 newobj
= _xrc
.new_XmlResource(*args
, **kwargs
)
22 self
.this
= newobj
.this
25 self
.InitAllHandlers()
27 def __del__(self
, destroy
=_xrc
.delete_XmlResource
):
30 if self
.thisown
: destroy(self
)
33 def Load(*args
, **kwargs
):
34 """Load(wxString filemask) -> bool"""
35 return _xrc
.XmlResource_Load(*args
, **kwargs
)
37 def LoadFromString(*args
, **kwargs
):
38 """LoadFromString(wxString data) -> bool"""
39 return _xrc
.XmlResource_LoadFromString(*args
, **kwargs
)
41 def InitAllHandlers(*args
, **kwargs
):
42 """InitAllHandlers()"""
43 return _xrc
.XmlResource_InitAllHandlers(*args
, **kwargs
)
45 def AddHandler(*args
, **kwargs
):
46 """AddHandler(XmlResourceHandler handler)"""
47 return _xrc
.XmlResource_AddHandler(*args
, **kwargs
)
49 def InsertHandler(*args
, **kwargs
):
50 """InsertHandler(XmlResourceHandler handler)"""
51 return _xrc
.XmlResource_InsertHandler(*args
, **kwargs
)
53 def ClearHandlers(*args
, **kwargs
):
55 return _xrc
.XmlResource_ClearHandlers(*args
, **kwargs
)
57 def AddSubclassFactory(*args
, **kwargs
):
58 """XmlResource.AddSubclassFactory(XmlSubclassFactory factory)"""
59 return _xrc
.XmlResource_AddSubclassFactory(*args
, **kwargs
)
61 AddSubclassFactory
= staticmethod(AddSubclassFactory
)
62 def LoadMenu(*args
, **kwargs
):
63 """LoadMenu(wxString name) -> Menu"""
64 return _xrc
.XmlResource_LoadMenu(*args
, **kwargs
)
66 def LoadMenuBar(*args
, **kwargs
):
67 """LoadMenuBar(wxString name) -> MenuBar"""
68 return _xrc
.XmlResource_LoadMenuBar(*args
, **kwargs
)
70 def LoadMenuBarOnFrame(*args
, **kwargs
):
71 """LoadMenuBarOnFrame(Window parent, wxString name) -> MenuBar"""
72 return _xrc
.XmlResource_LoadMenuBarOnFrame(*args
, **kwargs
)
74 def LoadToolBar(*args
, **kwargs
):
75 """LoadToolBar(Window parent, wxString name) -> wxToolBar"""
76 return _xrc
.XmlResource_LoadToolBar(*args
, **kwargs
)
78 def LoadDialog(*args
, **kwargs
):
79 """LoadDialog(Window parent, wxString name) -> wxDialog"""
80 return _xrc
.XmlResource_LoadDialog(*args
, **kwargs
)
82 def LoadOnDialog(*args
, **kwargs
):
83 """LoadOnDialog(wxDialog dlg, Window parent, wxString name) -> bool"""
84 return _xrc
.XmlResource_LoadOnDialog(*args
, **kwargs
)
86 def LoadPanel(*args
, **kwargs
):
87 """LoadPanel(Window parent, wxString name) -> wxPanel"""
88 return _xrc
.XmlResource_LoadPanel(*args
, **kwargs
)
90 def LoadOnPanel(*args
, **kwargs
):
91 """LoadOnPanel(wxPanel panel, Window parent, wxString name) -> bool"""
92 return _xrc
.XmlResource_LoadOnPanel(*args
, **kwargs
)
94 def LoadFrame(*args
, **kwargs
):
95 """LoadFrame(Window parent, wxString name) -> wxFrame"""
96 return _xrc
.XmlResource_LoadFrame(*args
, **kwargs
)
98 def LoadOnFrame(*args
, **kwargs
):
99 """LoadOnFrame(wxFrame frame, Window parent, wxString name) -> bool"""
100 return _xrc
.XmlResource_LoadOnFrame(*args
, **kwargs
)
102 def LoadObject(*args
, **kwargs
):
103 """LoadObject(Window parent, wxString name, wxString classname) -> Object"""
104 return _xrc
.XmlResource_LoadObject(*args
, **kwargs
)
106 def LoadOnObject(*args
, **kwargs
):
107 """LoadOnObject(Object instance, Window parent, wxString name, wxString classname) -> bool"""
108 return _xrc
.XmlResource_LoadOnObject(*args
, **kwargs
)
110 def LoadBitmap(*args
, **kwargs
):
111 """LoadBitmap(wxString name) -> wxBitmap"""
112 return _xrc
.XmlResource_LoadBitmap(*args
, **kwargs
)
114 def LoadIcon(*args
, **kwargs
):
115 """LoadIcon(wxString name) -> wxIcon"""
116 return _xrc
.XmlResource_LoadIcon(*args
, **kwargs
)
118 def AttachUnknownControl(*args
, **kwargs
):
119 """AttachUnknownControl(wxString name, Window control, Window parent=None) -> bool"""
120 return _xrc
.XmlResource_AttachUnknownControl(*args
, **kwargs
)
122 def GetXRCID(*args
, **kwargs
):
123 """XmlResource.GetXRCID(wxString str_id) -> int"""
124 return _xrc
.XmlResource_GetXRCID(*args
, **kwargs
)
126 GetXRCID
= staticmethod(GetXRCID
)
127 def GetVersion(*args
, **kwargs
):
128 """GetVersion() -> long"""
129 return _xrc
.XmlResource_GetVersion(*args
, **kwargs
)
131 def CompareVersion(*args
, **kwargs
):
132 """CompareVersion(int major, int minor, int release, int revision) -> int"""
133 return _xrc
.XmlResource_CompareVersion(*args
, **kwargs
)
135 def Get(*args
, **kwargs
):
136 """XmlResource.Get() -> XmlResource"""
137 return _xrc
.XmlResource_Get(*args
, **kwargs
)
139 Get
= staticmethod(Get
)
140 def Set(*args
, **kwargs
):
141 """XmlResource.Set(XmlResource res) -> XmlResource"""
142 return _xrc
.XmlResource_Set(*args
, **kwargs
)
144 Set
= staticmethod(Set
)
145 def GetFlags(*args
, **kwargs
):
146 """GetFlags() -> int"""
147 return _xrc
.XmlResource_GetFlags(*args
, **kwargs
)
149 def SetFlags(*args
, **kwargs
):
150 """SetFlags(int flags)"""
151 return _xrc
.XmlResource_SetFlags(*args
, **kwargs
)
154 class XmlResourcePtr(XmlResource
):
155 def __init__(self
, this
):
157 if not hasattr(self
,"thisown"): self
.thisown
= 0
158 self
.__class
__ = XmlResource
159 _xrc
.XmlResource_swigregister(XmlResourcePtr
)
161 def EmptyXmlResource(*args
, **kwargs
):
162 """EmptyXmlResource(int flags=XRC_USE_LOCALE) -> XmlResource"""
163 val
= _xrc
.new_EmptyXmlResource(*args
, **kwargs
)
165 val
.InitAllHandlers()
168 def XmlResource_AddSubclassFactory(*args
, **kwargs
):
169 """XmlResource_AddSubclassFactory(XmlSubclassFactory factory)"""
170 return _xrc
.XmlResource_AddSubclassFactory(*args
, **kwargs
)
172 def XmlResource_GetXRCID(*args
, **kwargs
):
173 """XmlResource_GetXRCID(wxString str_id) -> int"""
174 return _xrc
.XmlResource_GetXRCID(*args
, **kwargs
)
176 def XmlResource_Get(*args
, **kwargs
):
177 """XmlResource_Get() -> XmlResource"""
178 return _xrc
.XmlResource_Get(*args
, **kwargs
)
180 def XmlResource_Set(*args
, **kwargs
):
181 """XmlResource_Set(XmlResource res) -> XmlResource"""
182 return _xrc
.XmlResource_Set(*args
, **kwargs
)
185 return XmlResource_GetXRCID(str_id
)
187 def XRCCTRL(window
, str_id
, *ignoreargs
):
188 return window
.FindWindowById(XRCID(str_id
))
190 #---------------------------------------------------------------------------
192 class XmlSubclassFactory(object):
194 return "<%s.%s; proxy of C++ wxPyXmlSubclassFactory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
195 def __init__(self
, *args
, **kwargs
):
196 """__init__() -> XmlSubclassFactory"""
197 newobj
= _xrc
.new_XmlSubclassFactory(*args
, **kwargs
)
198 self
.this
= newobj
.this
201 self
._setCallbackInfo
(self
, XmlSubclassFactory
)
203 def _setCallbackInfo(*args
, **kwargs
):
204 """_setCallbackInfo(PyObject self, PyObject _class)"""
205 return _xrc
.XmlSubclassFactory__setCallbackInfo(*args
, **kwargs
)
208 class XmlSubclassFactoryPtr(XmlSubclassFactory
):
209 def __init__(self
, this
):
211 if not hasattr(self
,"thisown"): self
.thisown
= 0
212 self
.__class
__ = XmlSubclassFactory
213 _xrc
.XmlSubclassFactory_swigregister(XmlSubclassFactoryPtr
)
215 #---------------------------------------------------------------------------
217 XML_ELEMENT_NODE
= _xrc
.XML_ELEMENT_NODE
218 XML_ATTRIBUTE_NODE
= _xrc
.XML_ATTRIBUTE_NODE
219 XML_TEXT_NODE
= _xrc
.XML_TEXT_NODE
220 XML_CDATA_SECTION_NODE
= _xrc
.XML_CDATA_SECTION_NODE
221 XML_ENTITY_REF_NODE
= _xrc
.XML_ENTITY_REF_NODE
222 XML_ENTITY_NODE
= _xrc
.XML_ENTITY_NODE
223 XML_PI_NODE
= _xrc
.XML_PI_NODE
224 XML_COMMENT_NODE
= _xrc
.XML_COMMENT_NODE
225 XML_DOCUMENT_NODE
= _xrc
.XML_DOCUMENT_NODE
226 XML_DOCUMENT_TYPE_NODE
= _xrc
.XML_DOCUMENT_TYPE_NODE
227 XML_DOCUMENT_FRAG_NODE
= _xrc
.XML_DOCUMENT_FRAG_NODE
228 XML_NOTATION_NODE
= _xrc
.XML_NOTATION_NODE
229 XML_HTML_DOCUMENT_NODE
= _xrc
.XML_HTML_DOCUMENT_NODE
230 class XmlProperty(object):
232 return "<%s.%s; proxy of C++ wxXmlProperty instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
233 def __init__(self
, *args
, **kwargs
):
235 __init__(wxString name=wxPyEmptyString, wxString value=wxPyEmptyString,
236 XmlProperty next=None) -> XmlProperty
238 newobj
= _xrc
.new_XmlProperty(*args
, **kwargs
)
239 self
.this
= newobj
.this
242 def GetName(*args
, **kwargs
):
243 """GetName() -> wxString"""
244 return _xrc
.XmlProperty_GetName(*args
, **kwargs
)
246 def GetValue(*args
, **kwargs
):
247 """GetValue() -> wxString"""
248 return _xrc
.XmlProperty_GetValue(*args
, **kwargs
)
250 def GetNext(*args
, **kwargs
):
251 """GetNext() -> XmlProperty"""
252 return _xrc
.XmlProperty_GetNext(*args
, **kwargs
)
254 def SetName(*args
, **kwargs
):
255 """SetName(wxString name)"""
256 return _xrc
.XmlProperty_SetName(*args
, **kwargs
)
258 def SetValue(*args
, **kwargs
):
259 """SetValue(wxString value)"""
260 return _xrc
.XmlProperty_SetValue(*args
, **kwargs
)
262 def SetNext(*args
, **kwargs
):
263 """SetNext(XmlProperty next)"""
264 return _xrc
.XmlProperty_SetNext(*args
, **kwargs
)
267 class XmlPropertyPtr(XmlProperty
):
268 def __init__(self
, this
):
270 if not hasattr(self
,"thisown"): self
.thisown
= 0
271 self
.__class
__ = XmlProperty
272 _xrc
.XmlProperty_swigregister(XmlPropertyPtr
)
274 class XmlNode(object):
276 return "<%s.%s; proxy of C++ wxXmlNode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
277 def __init__(self
, *args
, **kwargs
):
279 __init__(XmlNode parent=None, wxXmlNodeType type=0, wxString name=wxPyEmptyString,
280 wxString content=wxPyEmptyString,
281 XmlProperty props=None, XmlNode next=None) -> XmlNode
283 newobj
= _xrc
.new_XmlNode(*args
, **kwargs
)
284 self
.this
= newobj
.this
287 def __del__(self
, destroy
=_xrc
.delete_XmlNode
):
290 if self
.thisown
: destroy(self
)
293 def AddChild(*args
, **kwargs
):
294 """AddChild(XmlNode child)"""
295 return _xrc
.XmlNode_AddChild(*args
, **kwargs
)
297 def InsertChild(*args
, **kwargs
):
298 """InsertChild(XmlNode child, XmlNode before_node)"""
299 return _xrc
.XmlNode_InsertChild(*args
, **kwargs
)
301 def RemoveChild(*args
, **kwargs
):
302 """RemoveChild(XmlNode child) -> bool"""
303 return _xrc
.XmlNode_RemoveChild(*args
, **kwargs
)
305 def AddProperty(*args
, **kwargs
):
306 """AddProperty(XmlProperty prop)"""
307 return _xrc
.XmlNode_AddProperty(*args
, **kwargs
)
309 def AddPropertyName(*args
, **kwargs
):
310 """AddPropertyName(wxString name, wxString value)"""
311 return _xrc
.XmlNode_AddPropertyName(*args
, **kwargs
)
313 def DeleteProperty(*args
, **kwargs
):
314 """DeleteProperty(wxString name) -> bool"""
315 return _xrc
.XmlNode_DeleteProperty(*args
, **kwargs
)
317 def GetType(*args
, **kwargs
):
318 """GetType() -> wxXmlNodeType"""
319 return _xrc
.XmlNode_GetType(*args
, **kwargs
)
321 def GetName(*args
, **kwargs
):
322 """GetName() -> wxString"""
323 return _xrc
.XmlNode_GetName(*args
, **kwargs
)
325 def GetContent(*args
, **kwargs
):
326 """GetContent() -> wxString"""
327 return _xrc
.XmlNode_GetContent(*args
, **kwargs
)
329 def GetParent(*args
, **kwargs
):
330 """GetParent() -> XmlNode"""
331 return _xrc
.XmlNode_GetParent(*args
, **kwargs
)
333 def GetNext(*args
, **kwargs
):
334 """GetNext() -> XmlNode"""
335 return _xrc
.XmlNode_GetNext(*args
, **kwargs
)
337 def GetChildren(*args
, **kwargs
):
338 """GetChildren() -> XmlNode"""
339 return _xrc
.XmlNode_GetChildren(*args
, **kwargs
)
341 def GetProperties(*args
, **kwargs
):
342 """GetProperties() -> XmlProperty"""
343 return _xrc
.XmlNode_GetProperties(*args
, **kwargs
)
345 def GetPropVal(*args
, **kwargs
):
346 """GetPropVal(wxString propName, wxString defaultVal) -> wxString"""
347 return _xrc
.XmlNode_GetPropVal(*args
, **kwargs
)
349 def HasProp(*args
, **kwargs
):
350 """HasProp(wxString propName) -> bool"""
351 return _xrc
.XmlNode_HasProp(*args
, **kwargs
)
353 def SetType(*args
, **kwargs
):
354 """SetType(wxXmlNodeType type)"""
355 return _xrc
.XmlNode_SetType(*args
, **kwargs
)
357 def SetName(*args
, **kwargs
):
358 """SetName(wxString name)"""
359 return _xrc
.XmlNode_SetName(*args
, **kwargs
)
361 def SetContent(*args
, **kwargs
):
362 """SetContent(wxString con)"""
363 return _xrc
.XmlNode_SetContent(*args
, **kwargs
)
365 def SetParent(*args
, **kwargs
):
366 """SetParent(XmlNode parent)"""
367 return _xrc
.XmlNode_SetParent(*args
, **kwargs
)
369 def SetNext(*args
, **kwargs
):
370 """SetNext(XmlNode next)"""
371 return _xrc
.XmlNode_SetNext(*args
, **kwargs
)
373 def SetChildren(*args
, **kwargs
):
374 """SetChildren(XmlNode child)"""
375 return _xrc
.XmlNode_SetChildren(*args
, **kwargs
)
377 def SetProperties(*args
, **kwargs
):
378 """SetProperties(XmlProperty prop)"""
379 return _xrc
.XmlNode_SetProperties(*args
, **kwargs
)
382 class XmlNodePtr(XmlNode
):
383 def __init__(self
, this
):
385 if not hasattr(self
,"thisown"): self
.thisown
= 0
386 self
.__class
__ = XmlNode
387 _xrc
.XmlNode_swigregister(XmlNodePtr
)
389 def XmlNodeEasy(*args
, **kwargs
):
390 """XmlNodeEasy(wxXmlNodeType type, wxString name, wxString content=wxPyEmptyString) -> XmlNode"""
391 val
= _xrc
.new_XmlNodeEasy(*args
, **kwargs
)
395 class XmlDocument(core
.Object
):
397 return "<%s.%s; proxy of C++ wxXmlDocument instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
398 def __init__(self
, *args
, **kwargs
):
399 """__init__(wxString filename, wxString encoding=wxPyUTF8String) -> XmlDocument"""
400 newobj
= _xrc
.new_XmlDocument(*args
, **kwargs
)
401 self
.this
= newobj
.this
404 def __del__(self
, destroy
=_xrc
.delete_XmlDocument
):
407 if self
.thisown
: destroy(self
)
410 def Load(*args
, **kwargs
):
411 """Load(wxString filename, wxString encoding=wxPyUTF8String) -> bool"""
412 return _xrc
.XmlDocument_Load(*args
, **kwargs
)
414 def LoadFromStream(*args
, **kwargs
):
415 """LoadFromStream(wxInputStream stream, wxString encoding=wxPyUTF8String) -> bool"""
416 return _xrc
.XmlDocument_LoadFromStream(*args
, **kwargs
)
418 def Save(*args
, **kwargs
):
419 """Save(wxString filename) -> bool"""
420 return _xrc
.XmlDocument_Save(*args
, **kwargs
)
422 def SaveToStream(*args
, **kwargs
):
423 """SaveToStream(OutputStream stream) -> bool"""
424 return _xrc
.XmlDocument_SaveToStream(*args
, **kwargs
)
426 def IsOk(*args
, **kwargs
):
428 return _xrc
.XmlDocument_IsOk(*args
, **kwargs
)
430 def GetRoot(*args
, **kwargs
):
431 """GetRoot() -> XmlNode"""
432 return _xrc
.XmlDocument_GetRoot(*args
, **kwargs
)
434 def GetVersion(*args
, **kwargs
):
435 """GetVersion() -> wxString"""
436 return _xrc
.XmlDocument_GetVersion(*args
, **kwargs
)
438 def GetFileEncoding(*args
, **kwargs
):
439 """GetFileEncoding() -> wxString"""
440 return _xrc
.XmlDocument_GetFileEncoding(*args
, **kwargs
)
442 def SetRoot(*args
, **kwargs
):
443 """SetRoot(XmlNode node)"""
444 return _xrc
.XmlDocument_SetRoot(*args
, **kwargs
)
446 def SetVersion(*args
, **kwargs
):
447 """SetVersion(wxString version)"""
448 return _xrc
.XmlDocument_SetVersion(*args
, **kwargs
)
450 def SetFileEncoding(*args
, **kwargs
):
451 """SetFileEncoding(wxString encoding)"""
452 return _xrc
.XmlDocument_SetFileEncoding(*args
, **kwargs
)
455 class XmlDocumentPtr(XmlDocument
):
456 def __init__(self
, this
):
458 if not hasattr(self
,"thisown"): self
.thisown
= 0
459 self
.__class
__ = XmlDocument
460 _xrc
.XmlDocument_swigregister(XmlDocumentPtr
)
462 def XmlDocumentFromStream(*args
, **kwargs
):
463 """XmlDocumentFromStream(wxInputStream stream, wxString encoding=wxPyUTF8String) -> XmlDocument"""
464 val
= _xrc
.new_XmlDocumentFromStream(*args
, **kwargs
)
468 def EmptyXmlDocument(*args
, **kwargs
):
469 """EmptyXmlDocument() -> XmlDocument"""
470 val
= _xrc
.new_EmptyXmlDocument(*args
, **kwargs
)
474 #---------------------------------------------------------------------------
476 class XmlResourceHandler(core
.Object
):
478 return "<%s.%s; proxy of C++ wxPyXmlResourceHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
479 def __init__(self
, *args
, **kwargs
):
480 """__init__() -> XmlResourceHandler"""
481 newobj
= _xrc
.new_XmlResourceHandler(*args
, **kwargs
)
482 self
.this
= newobj
.this
485 self
._setCallbackInfo
(self
, XmlResourceHandler
)
487 def _setCallbackInfo(*args
, **kwargs
):
488 """_setCallbackInfo(PyObject self, PyObject _class)"""
489 return _xrc
.XmlResourceHandler__setCallbackInfo(*args
, **kwargs
)
491 def CreateResource(*args
, **kwargs
):
492 """CreateResource(XmlNode node, Object parent, Object instance) -> Object"""
493 return _xrc
.XmlResourceHandler_CreateResource(*args
, **kwargs
)
495 def SetParentResource(*args
, **kwargs
):
496 """SetParentResource(XmlResource res)"""
497 return _xrc
.XmlResourceHandler_SetParentResource(*args
, **kwargs
)
499 def GetResource(*args
, **kwargs
):
500 """GetResource() -> XmlResource"""
501 return _xrc
.XmlResourceHandler_GetResource(*args
, **kwargs
)
503 def GetNode(*args
, **kwargs
):
504 """GetNode() -> XmlNode"""
505 return _xrc
.XmlResourceHandler_GetNode(*args
, **kwargs
)
507 def GetClass(*args
, **kwargs
):
508 """GetClass() -> wxString"""
509 return _xrc
.XmlResourceHandler_GetClass(*args
, **kwargs
)
511 def GetParent(*args
, **kwargs
):
512 """GetParent() -> Object"""
513 return _xrc
.XmlResourceHandler_GetParent(*args
, **kwargs
)
515 def GetInstance(*args
, **kwargs
):
516 """GetInstance() -> Object"""
517 return _xrc
.XmlResourceHandler_GetInstance(*args
, **kwargs
)
519 def GetParentAsWindow(*args
, **kwargs
):
520 """GetParentAsWindow() -> Window"""
521 return _xrc
.XmlResourceHandler_GetParentAsWindow(*args
, **kwargs
)
523 def GetInstanceAsWindow(*args
, **kwargs
):
524 """GetInstanceAsWindow() -> Window"""
525 return _xrc
.XmlResourceHandler_GetInstanceAsWindow(*args
, **kwargs
)
527 def IsOfClass(*args
, **kwargs
):
528 """IsOfClass(XmlNode node, wxString classname) -> bool"""
529 return _xrc
.XmlResourceHandler_IsOfClass(*args
, **kwargs
)
531 def GetNodeContent(*args
, **kwargs
):
532 """GetNodeContent(XmlNode node) -> wxString"""
533 return _xrc
.XmlResourceHandler_GetNodeContent(*args
, **kwargs
)
535 def HasParam(*args
, **kwargs
):
536 """HasParam(wxString param) -> bool"""
537 return _xrc
.XmlResourceHandler_HasParam(*args
, **kwargs
)
539 def GetParamNode(*args
, **kwargs
):
540 """GetParamNode(wxString param) -> XmlNode"""
541 return _xrc
.XmlResourceHandler_GetParamNode(*args
, **kwargs
)
543 def GetParamValue(*args
, **kwargs
):
544 """GetParamValue(wxString param) -> wxString"""
545 return _xrc
.XmlResourceHandler_GetParamValue(*args
, **kwargs
)
547 def AddStyle(*args
, **kwargs
):
548 """AddStyle(wxString name, int value)"""
549 return _xrc
.XmlResourceHandler_AddStyle(*args
, **kwargs
)
551 def AddWindowStyles(*args
, **kwargs
):
552 """AddWindowStyles()"""
553 return _xrc
.XmlResourceHandler_AddWindowStyles(*args
, **kwargs
)
555 def GetStyle(*args
, **kwargs
):
556 """GetStyle(wxString param=wxPyStyleString, int defaults=0) -> int"""
557 return _xrc
.XmlResourceHandler_GetStyle(*args
, **kwargs
)
559 def GetText(*args
, **kwargs
):
560 """GetText(wxString param, bool translate=True) -> wxString"""
561 return _xrc
.XmlResourceHandler_GetText(*args
, **kwargs
)
563 def GetID(*args
, **kwargs
):
565 return _xrc
.XmlResourceHandler_GetID(*args
, **kwargs
)
567 def GetName(*args
, **kwargs
):
568 """GetName() -> wxString"""
569 return _xrc
.XmlResourceHandler_GetName(*args
, **kwargs
)
571 def GetBool(*args
, **kwargs
):
572 """GetBool(wxString param, bool defaultv=False) -> bool"""
573 return _xrc
.XmlResourceHandler_GetBool(*args
, **kwargs
)
575 def GetLong(*args
, **kwargs
):
576 """GetLong(wxString param, long defaultv=0) -> long"""
577 return _xrc
.XmlResourceHandler_GetLong(*args
, **kwargs
)
579 def GetColour(*args
, **kwargs
):
580 """GetColour(wxString param) -> wxColour"""
581 return _xrc
.XmlResourceHandler_GetColour(*args
, **kwargs
)
583 def GetSize(*args
, **kwargs
):
584 """GetSize(wxString param=wxPySizeString) -> Size"""
585 return _xrc
.XmlResourceHandler_GetSize(*args
, **kwargs
)
587 def GetPosition(*args
, **kwargs
):
588 """GetPosition(wxString param=wxPyPosString) -> Point"""
589 return _xrc
.XmlResourceHandler_GetPosition(*args
, **kwargs
)
591 def GetDimension(*args
, **kwargs
):
592 """GetDimension(wxString param, int defaultv=0) -> int"""
593 return _xrc
.XmlResourceHandler_GetDimension(*args
, **kwargs
)
595 def GetBitmap(*args
, **kwargs
):
597 GetBitmap(wxString param=wxPyBitmapString, wxArtClient defaultArtClient=wxART_OTHER,
598 Size size=DefaultSize) -> wxBitmap
600 return _xrc
.XmlResourceHandler_GetBitmap(*args
, **kwargs
)
602 def GetIcon(*args
, **kwargs
):
604 GetIcon(wxString param=wxPyIconString, wxArtClient defaultArtClient=wxART_OTHER,
605 Size size=DefaultSize) -> wxIcon
607 return _xrc
.XmlResourceHandler_GetIcon(*args
, **kwargs
)
609 def GetFont(*args
, **kwargs
):
610 """GetFont(wxString param=wxPyFontString) -> wxFont"""
611 return _xrc
.XmlResourceHandler_GetFont(*args
, **kwargs
)
613 def SetupWindow(*args
, **kwargs
):
614 """SetupWindow(Window wnd)"""
615 return _xrc
.XmlResourceHandler_SetupWindow(*args
, **kwargs
)
617 def CreateChildren(*args
, **kwargs
):
618 """CreateChildren(Object parent, bool this_hnd_only=False)"""
619 return _xrc
.XmlResourceHandler_CreateChildren(*args
, **kwargs
)
621 def CreateChildrenPrivately(*args
, **kwargs
):
622 """CreateChildrenPrivately(Object parent, XmlNode rootnode=None)"""
623 return _xrc
.XmlResourceHandler_CreateChildrenPrivately(*args
, **kwargs
)
625 def CreateResFromNode(*args
, **kwargs
):
626 """CreateResFromNode(XmlNode node, Object parent, Object instance=None) -> Object"""
627 return _xrc
.XmlResourceHandler_CreateResFromNode(*args
, **kwargs
)
629 def GetCurFileSystem(*args
, **kwargs
):
630 """GetCurFileSystem() -> FileSystem"""
631 return _xrc
.XmlResourceHandler_GetCurFileSystem(*args
, **kwargs
)
634 class XmlResourceHandlerPtr(XmlResourceHandler
):
635 def __init__(self
, this
):
637 if not hasattr(self
,"thisown"): self
.thisown
= 0
638 self
.__class
__ = XmlResourceHandler
639 _xrc
.XmlResourceHandler_swigregister(XmlResourceHandlerPtr
)
641 #----------------------------------------------------------------------------
642 # The global was removed in favor of static accessor functions. This is for
643 # backwards compatibility:
645 TheXmlResource
= XmlResource_Get()
648 #----------------------------------------------------------------------------
649 # Create a factory for handling the subclass property of the object tag.
652 def _my_import(name
):
653 mod
= __import__(name
)
654 components
= name
.split('.')
655 for comp
in components
[1:]:
656 mod
= getattr(mod
, comp
)
660 class XmlSubclassFactory_Python(XmlSubclassFactory
):
662 XmlSubclassFactory
.__init
__(self
)
664 def Create(self
, className
):
665 assert className
.find('.') != -1, "Module name must be specified!"
666 mname
= className
[:className
.rfind('.')]
667 cname
= className
[className
.rfind('.')+1:]
668 module
= _my_import(mname
)
669 klass
= getattr(module
, cname
)
674 XmlResource_AddSubclassFactory(XmlSubclassFactory_Python())
676 #----------------------------------------------------------------------------