1 # This file was created automatically by SWIG.
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.
13 __docfilter__
= wx
.__DocFilter
(globals())
14 #---------------------------------------------------------------------------
16 WX_XMLRES_CURRENT_VERSION_MAJOR
= _xrc
.WX_XMLRES_CURRENT_VERSION_MAJOR
17 WX_XMLRES_CURRENT_VERSION_MINOR
= _xrc
.WX_XMLRES_CURRENT_VERSION_MINOR
18 WX_XMLRES_CURRENT_VERSION_RELEASE
= _xrc
.WX_XMLRES_CURRENT_VERSION_RELEASE
19 WX_XMLRES_CURRENT_VERSION_REVISION
= _xrc
.WX_XMLRES_CURRENT_VERSION_REVISION
20 XRC_USE_LOCALE
= _xrc
.XRC_USE_LOCALE
21 XRC_NO_SUBCLASSING
= _xrc
.XRC_NO_SUBCLASSING
22 XRC_NO_RELOADING
= _xrc
.XRC_NO_RELOADING
23 class XmlResource(_core
.Object
):
25 return "<%s.%s; proxy of C++ wxXmlResource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
26 def __init__(self
, *args
, **kwargs
):
27 """__init__(self, String filemask, int flags=XRC_USE_LOCALE) -> XmlResource"""
28 newobj
= _xrc
.new_XmlResource(*args
, **kwargs
)
29 self
.this
= newobj
.this
32 self
.InitAllHandlers()
34 def __del__(self
, destroy
=_xrc
.delete_XmlResource
):
37 if self
.thisown
: destroy(self
)
40 def Load(*args
, **kwargs
):
41 """Load(self, String filemask) -> bool"""
42 return _xrc
.XmlResource_Load(*args
, **kwargs
)
44 def LoadFromString(*args
, **kwargs
):
45 """LoadFromString(self, String data) -> bool"""
46 return _xrc
.XmlResource_LoadFromString(*args
, **kwargs
)
48 def InitAllHandlers(*args
, **kwargs
):
49 """InitAllHandlers(self)"""
50 return _xrc
.XmlResource_InitAllHandlers(*args
, **kwargs
)
52 def AddHandler(*args
, **kwargs
):
53 """AddHandler(self, XmlResourceHandler handler)"""
54 return _xrc
.XmlResource_AddHandler(*args
, **kwargs
)
56 def InsertHandler(*args
, **kwargs
):
57 """InsertHandler(self, XmlResourceHandler handler)"""
58 return _xrc
.XmlResource_InsertHandler(*args
, **kwargs
)
60 def ClearHandlers(*args
, **kwargs
):
61 """ClearHandlers(self)"""
62 return _xrc
.XmlResource_ClearHandlers(*args
, **kwargs
)
64 def AddSubclassFactory(*args
, **kwargs
):
65 """AddSubclassFactory(XmlSubclassFactory factory)"""
66 return _xrc
.XmlResource_AddSubclassFactory(*args
, **kwargs
)
68 AddSubclassFactory
= staticmethod(AddSubclassFactory
)
69 def LoadMenu(*args
, **kwargs
):
70 """LoadMenu(self, String name) -> Menu"""
71 return _xrc
.XmlResource_LoadMenu(*args
, **kwargs
)
73 def LoadMenuBar(*args
, **kwargs
):
74 """LoadMenuBar(self, String name) -> MenuBar"""
75 return _xrc
.XmlResource_LoadMenuBar(*args
, **kwargs
)
77 def LoadMenuBarOnFrame(*args
, **kwargs
):
78 """LoadMenuBarOnFrame(self, Window parent, String name) -> MenuBar"""
79 return _xrc
.XmlResource_LoadMenuBarOnFrame(*args
, **kwargs
)
81 def LoadToolBar(*args
, **kwargs
):
82 """LoadToolBar(self, Window parent, String name) -> wxToolBar"""
83 return _xrc
.XmlResource_LoadToolBar(*args
, **kwargs
)
85 def LoadDialog(*args
, **kwargs
):
86 """LoadDialog(self, Window parent, String name) -> wxDialog"""
87 return _xrc
.XmlResource_LoadDialog(*args
, **kwargs
)
89 def LoadOnDialog(*args
, **kwargs
):
90 """LoadOnDialog(self, wxDialog dlg, Window parent, String name) -> bool"""
91 return _xrc
.XmlResource_LoadOnDialog(*args
, **kwargs
)
93 def LoadPanel(*args
, **kwargs
):
94 """LoadPanel(self, Window parent, String name) -> wxPanel"""
95 return _xrc
.XmlResource_LoadPanel(*args
, **kwargs
)
97 def LoadOnPanel(*args
, **kwargs
):
98 """LoadOnPanel(self, wxPanel panel, Window parent, String name) -> bool"""
99 return _xrc
.XmlResource_LoadOnPanel(*args
, **kwargs
)
101 def LoadFrame(*args
, **kwargs
):
102 """LoadFrame(self, Window parent, String name) -> wxFrame"""
103 return _xrc
.XmlResource_LoadFrame(*args
, **kwargs
)
105 def LoadOnFrame(*args
, **kwargs
):
106 """LoadOnFrame(self, wxFrame frame, Window parent, String name) -> bool"""
107 return _xrc
.XmlResource_LoadOnFrame(*args
, **kwargs
)
109 def LoadObject(*args
, **kwargs
):
110 """LoadObject(self, Window parent, String name, String classname) -> Object"""
111 return _xrc
.XmlResource_LoadObject(*args
, **kwargs
)
113 def LoadOnObject(*args
, **kwargs
):
114 """LoadOnObject(self, Object instance, Window parent, String name, String classname) -> bool"""
115 return _xrc
.XmlResource_LoadOnObject(*args
, **kwargs
)
117 def LoadBitmap(*args
, **kwargs
):
118 """LoadBitmap(self, String name) -> Bitmap"""
119 return _xrc
.XmlResource_LoadBitmap(*args
, **kwargs
)
121 def LoadIcon(*args
, **kwargs
):
122 """LoadIcon(self, String name) -> Icon"""
123 return _xrc
.XmlResource_LoadIcon(*args
, **kwargs
)
125 def AttachUnknownControl(*args
, **kwargs
):
126 """AttachUnknownControl(self, String name, Window control, Window parent=None) -> bool"""
127 return _xrc
.XmlResource_AttachUnknownControl(*args
, **kwargs
)
129 def GetXRCID(*args
, **kwargs
):
130 """GetXRCID(String str_id) -> int"""
131 return _xrc
.XmlResource_GetXRCID(*args
, **kwargs
)
133 GetXRCID
= staticmethod(GetXRCID
)
134 def GetVersion(*args
, **kwargs
):
135 """GetVersion(self) -> long"""
136 return _xrc
.XmlResource_GetVersion(*args
, **kwargs
)
138 def CompareVersion(*args
, **kwargs
):
139 """CompareVersion(self, int major, int minor, int release, int revision) -> int"""
140 return _xrc
.XmlResource_CompareVersion(*args
, **kwargs
)
142 def Get(*args
, **kwargs
):
143 """Get() -> XmlResource"""
144 return _xrc
.XmlResource_Get(*args
, **kwargs
)
146 Get
= staticmethod(Get
)
147 def Set(*args
, **kwargs
):
148 """Set(XmlResource res) -> XmlResource"""
149 return _xrc
.XmlResource_Set(*args
, **kwargs
)
151 Set
= staticmethod(Set
)
152 def GetFlags(*args
, **kwargs
):
153 """GetFlags(self) -> int"""
154 return _xrc
.XmlResource_GetFlags(*args
, **kwargs
)
156 def SetFlags(*args
, **kwargs
):
157 """SetFlags(self, int flags)"""
158 return _xrc
.XmlResource_SetFlags(*args
, **kwargs
)
161 class XmlResourcePtr(XmlResource
):
162 def __init__(self
, this
):
164 if not hasattr(self
,"thisown"): self
.thisown
= 0
165 self
.__class
__ = XmlResource
166 _xrc
.XmlResource_swigregister(XmlResourcePtr
)
168 UTF8String
= cvar
.UTF8String
169 StyleString
= cvar
.StyleString
170 SizeString
= cvar
.SizeString
171 PosString
= cvar
.PosString
172 BitmapString
= cvar
.BitmapString
173 IconString
= cvar
.IconString
174 FontString
= cvar
.FontString
176 def EmptyXmlResource(*args
, **kwargs
):
177 """EmptyXmlResource(int flags=XRC_USE_LOCALE) -> XmlResource"""
178 val
= _xrc
.new_EmptyXmlResource(*args
, **kwargs
)
180 val
.InitAllHandlers()
183 def XmlResource_AddSubclassFactory(*args
, **kwargs
):
184 """XmlResource_AddSubclassFactory(XmlSubclassFactory factory)"""
185 return _xrc
.XmlResource_AddSubclassFactory(*args
, **kwargs
)
187 def XmlResource_GetXRCID(*args
, **kwargs
):
188 """XmlResource_GetXRCID(String str_id) -> int"""
189 return _xrc
.XmlResource_GetXRCID(*args
, **kwargs
)
191 def XmlResource_Get(*args
, **kwargs
):
192 """XmlResource_Get() -> XmlResource"""
193 return _xrc
.XmlResource_Get(*args
, **kwargs
)
195 def XmlResource_Set(*args
, **kwargs
):
196 """XmlResource_Set(XmlResource res) -> XmlResource"""
197 return _xrc
.XmlResource_Set(*args
, **kwargs
)
200 return XmlResource_GetXRCID(str_id
)
202 def XRCCTRL(window
, str_id
, *ignoreargs
):
203 return window
.FindWindowById(XRCID(str_id
))
205 #---------------------------------------------------------------------------
207 class XmlSubclassFactory(object):
209 return "<%s.%s; proxy of C++ wxPyXmlSubclassFactory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
210 def __init__(self
, *args
, **kwargs
):
211 """__init__(self) -> XmlSubclassFactory"""
212 newobj
= _xrc
.new_XmlSubclassFactory(*args
, **kwargs
)
213 self
.this
= newobj
.this
216 self
._setCallbackInfo
(self
, XmlSubclassFactory
)
218 def _setCallbackInfo(*args
, **kwargs
):
219 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
220 return _xrc
.XmlSubclassFactory__setCallbackInfo(*args
, **kwargs
)
223 class XmlSubclassFactoryPtr(XmlSubclassFactory
):
224 def __init__(self
, this
):
226 if not hasattr(self
,"thisown"): self
.thisown
= 0
227 self
.__class
__ = XmlSubclassFactory
228 _xrc
.XmlSubclassFactory_swigregister(XmlSubclassFactoryPtr
)
230 #---------------------------------------------------------------------------
232 XML_ELEMENT_NODE
= _xrc
.XML_ELEMENT_NODE
233 XML_ATTRIBUTE_NODE
= _xrc
.XML_ATTRIBUTE_NODE
234 XML_TEXT_NODE
= _xrc
.XML_TEXT_NODE
235 XML_CDATA_SECTION_NODE
= _xrc
.XML_CDATA_SECTION_NODE
236 XML_ENTITY_REF_NODE
= _xrc
.XML_ENTITY_REF_NODE
237 XML_ENTITY_NODE
= _xrc
.XML_ENTITY_NODE
238 XML_PI_NODE
= _xrc
.XML_PI_NODE
239 XML_COMMENT_NODE
= _xrc
.XML_COMMENT_NODE
240 XML_DOCUMENT_NODE
= _xrc
.XML_DOCUMENT_NODE
241 XML_DOCUMENT_TYPE_NODE
= _xrc
.XML_DOCUMENT_TYPE_NODE
242 XML_DOCUMENT_FRAG_NODE
= _xrc
.XML_DOCUMENT_FRAG_NODE
243 XML_NOTATION_NODE
= _xrc
.XML_NOTATION_NODE
244 XML_HTML_DOCUMENT_NODE
= _xrc
.XML_HTML_DOCUMENT_NODE
245 class XmlProperty(object):
247 return "<%s.%s; proxy of C++ wxXmlProperty instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
248 def __init__(self
, *args
, **kwargs
):
250 __init__(self, String name=EmptyString, String value=EmptyString,
251 XmlProperty next=None) -> XmlProperty
253 newobj
= _xrc
.new_XmlProperty(*args
, **kwargs
)
254 self
.this
= newobj
.this
257 def GetName(*args
, **kwargs
):
258 """GetName(self) -> String"""
259 return _xrc
.XmlProperty_GetName(*args
, **kwargs
)
261 def GetValue(*args
, **kwargs
):
262 """GetValue(self) -> String"""
263 return _xrc
.XmlProperty_GetValue(*args
, **kwargs
)
265 def GetNext(*args
, **kwargs
):
266 """GetNext(self) -> XmlProperty"""
267 return _xrc
.XmlProperty_GetNext(*args
, **kwargs
)
269 def SetName(*args
, **kwargs
):
270 """SetName(self, String name)"""
271 return _xrc
.XmlProperty_SetName(*args
, **kwargs
)
273 def SetValue(*args
, **kwargs
):
274 """SetValue(self, String value)"""
275 return _xrc
.XmlProperty_SetValue(*args
, **kwargs
)
277 def SetNext(*args
, **kwargs
):
278 """SetNext(self, XmlProperty next)"""
279 return _xrc
.XmlProperty_SetNext(*args
, **kwargs
)
282 class XmlPropertyPtr(XmlProperty
):
283 def __init__(self
, this
):
285 if not hasattr(self
,"thisown"): self
.thisown
= 0
286 self
.__class
__ = XmlProperty
287 _xrc
.XmlProperty_swigregister(XmlPropertyPtr
)
289 class XmlNode(object):
291 return "<%s.%s; proxy of C++ wxXmlNode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
292 def __init__(self
, *args
, **kwargs
):
294 __init__(self, XmlNode parent=None, int type=0, String name=EmptyString,
295 String content=EmptyString, XmlProperty props=None,
296 XmlNode next=None) -> XmlNode
298 newobj
= _xrc
.new_XmlNode(*args
, **kwargs
)
299 self
.this
= newobj
.this
302 def __del__(self
, destroy
=_xrc
.delete_XmlNode
):
305 if self
.thisown
: destroy(self
)
308 def AddChild(*args
, **kwargs
):
309 """AddChild(self, XmlNode child)"""
310 return _xrc
.XmlNode_AddChild(*args
, **kwargs
)
312 def InsertChild(*args
, **kwargs
):
313 """InsertChild(self, XmlNode child, XmlNode before_node)"""
314 return _xrc
.XmlNode_InsertChild(*args
, **kwargs
)
316 def RemoveChild(*args
, **kwargs
):
317 """RemoveChild(self, XmlNode child) -> bool"""
318 return _xrc
.XmlNode_RemoveChild(*args
, **kwargs
)
320 def AddProperty(*args
, **kwargs
):
321 """AddProperty(self, XmlProperty prop)"""
322 return _xrc
.XmlNode_AddProperty(*args
, **kwargs
)
324 def AddPropertyName(*args
, **kwargs
):
325 """AddPropertyName(self, String name, String value)"""
326 return _xrc
.XmlNode_AddPropertyName(*args
, **kwargs
)
328 def DeleteProperty(*args
, **kwargs
):
329 """DeleteProperty(self, String name) -> bool"""
330 return _xrc
.XmlNode_DeleteProperty(*args
, **kwargs
)
332 def GetType(*args
, **kwargs
):
333 """GetType(self) -> int"""
334 return _xrc
.XmlNode_GetType(*args
, **kwargs
)
336 def GetName(*args
, **kwargs
):
337 """GetName(self) -> String"""
338 return _xrc
.XmlNode_GetName(*args
, **kwargs
)
340 def GetContent(*args
, **kwargs
):
341 """GetContent(self) -> String"""
342 return _xrc
.XmlNode_GetContent(*args
, **kwargs
)
344 def GetParent(*args
, **kwargs
):
345 """GetParent(self) -> XmlNode"""
346 return _xrc
.XmlNode_GetParent(*args
, **kwargs
)
348 def GetNext(*args
, **kwargs
):
349 """GetNext(self) -> XmlNode"""
350 return _xrc
.XmlNode_GetNext(*args
, **kwargs
)
352 def GetChildren(*args
, **kwargs
):
353 """GetChildren(self) -> XmlNode"""
354 return _xrc
.XmlNode_GetChildren(*args
, **kwargs
)
356 def GetProperties(*args
, **kwargs
):
357 """GetProperties(self) -> XmlProperty"""
358 return _xrc
.XmlNode_GetProperties(*args
, **kwargs
)
360 def GetPropVal(*args
, **kwargs
):
361 """GetPropVal(self, String propName, String defaultVal) -> String"""
362 return _xrc
.XmlNode_GetPropVal(*args
, **kwargs
)
364 def HasProp(*args
, **kwargs
):
365 """HasProp(self, String propName) -> bool"""
366 return _xrc
.XmlNode_HasProp(*args
, **kwargs
)
368 def SetType(*args
, **kwargs
):
369 """SetType(self, int type)"""
370 return _xrc
.XmlNode_SetType(*args
, **kwargs
)
372 def SetName(*args
, **kwargs
):
373 """SetName(self, String name)"""
374 return _xrc
.XmlNode_SetName(*args
, **kwargs
)
376 def SetContent(*args
, **kwargs
):
377 """SetContent(self, String con)"""
378 return _xrc
.XmlNode_SetContent(*args
, **kwargs
)
380 def SetParent(*args
, **kwargs
):
381 """SetParent(self, XmlNode parent)"""
382 return _xrc
.XmlNode_SetParent(*args
, **kwargs
)
384 def SetNext(*args
, **kwargs
):
385 """SetNext(self, XmlNode next)"""
386 return _xrc
.XmlNode_SetNext(*args
, **kwargs
)
388 def SetChildren(*args
, **kwargs
):
389 """SetChildren(self, XmlNode child)"""
390 return _xrc
.XmlNode_SetChildren(*args
, **kwargs
)
392 def SetProperties(*args
, **kwargs
):
393 """SetProperties(self, XmlProperty prop)"""
394 return _xrc
.XmlNode_SetProperties(*args
, **kwargs
)
397 class XmlNodePtr(XmlNode
):
398 def __init__(self
, this
):
400 if not hasattr(self
,"thisown"): self
.thisown
= 0
401 self
.__class
__ = XmlNode
402 _xrc
.XmlNode_swigregister(XmlNodePtr
)
404 def XmlNodeEasy(*args
, **kwargs
):
405 """XmlNodeEasy(int type, String name, String content=EmptyString) -> XmlNode"""
406 val
= _xrc
.new_XmlNodeEasy(*args
, **kwargs
)
410 class XmlDocument(_core
.Object
):
412 return "<%s.%s; proxy of C++ wxXmlDocument instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
413 def __init__(self
, *args
, **kwargs
):
414 """__init__(self, String filename, String encoding=UTF8String) -> XmlDocument"""
415 newobj
= _xrc
.new_XmlDocument(*args
, **kwargs
)
416 self
.this
= newobj
.this
419 def __del__(self
, destroy
=_xrc
.delete_XmlDocument
):
422 if self
.thisown
: destroy(self
)
425 def Load(*args
, **kwargs
):
426 """Load(self, String filename, String encoding=UTF8String) -> bool"""
427 return _xrc
.XmlDocument_Load(*args
, **kwargs
)
429 def LoadFromStream(*args
, **kwargs
):
430 """LoadFromStream(self, InputStream stream, String encoding=UTF8String) -> bool"""
431 return _xrc
.XmlDocument_LoadFromStream(*args
, **kwargs
)
433 def Save(*args
, **kwargs
):
434 """Save(self, String filename) -> bool"""
435 return _xrc
.XmlDocument_Save(*args
, **kwargs
)
437 def SaveToStream(*args
, **kwargs
):
438 """SaveToStream(self, OutputStream stream) -> bool"""
439 return _xrc
.XmlDocument_SaveToStream(*args
, **kwargs
)
441 def IsOk(*args
, **kwargs
):
442 """IsOk(self) -> bool"""
443 return _xrc
.XmlDocument_IsOk(*args
, **kwargs
)
445 def GetRoot(*args
, **kwargs
):
446 """GetRoot(self) -> XmlNode"""
447 return _xrc
.XmlDocument_GetRoot(*args
, **kwargs
)
449 def GetVersion(*args
, **kwargs
):
450 """GetVersion(self) -> String"""
451 return _xrc
.XmlDocument_GetVersion(*args
, **kwargs
)
453 def GetFileEncoding(*args
, **kwargs
):
454 """GetFileEncoding(self) -> String"""
455 return _xrc
.XmlDocument_GetFileEncoding(*args
, **kwargs
)
457 def SetRoot(*args
, **kwargs
):
458 """SetRoot(self, XmlNode node)"""
459 return _xrc
.XmlDocument_SetRoot(*args
, **kwargs
)
461 def SetVersion(*args
, **kwargs
):
462 """SetVersion(self, String version)"""
463 return _xrc
.XmlDocument_SetVersion(*args
, **kwargs
)
465 def SetFileEncoding(*args
, **kwargs
):
466 """SetFileEncoding(self, String encoding)"""
467 return _xrc
.XmlDocument_SetFileEncoding(*args
, **kwargs
)
470 class XmlDocumentPtr(XmlDocument
):
471 def __init__(self
, this
):
473 if not hasattr(self
,"thisown"): self
.thisown
= 0
474 self
.__class
__ = XmlDocument
475 _xrc
.XmlDocument_swigregister(XmlDocumentPtr
)
477 def XmlDocumentFromStream(*args
, **kwargs
):
478 """XmlDocumentFromStream(InputStream stream, String encoding=UTF8String) -> XmlDocument"""
479 val
= _xrc
.new_XmlDocumentFromStream(*args
, **kwargs
)
483 def EmptyXmlDocument(*args
, **kwargs
):
484 """EmptyXmlDocument() -> XmlDocument"""
485 val
= _xrc
.new_EmptyXmlDocument(*args
, **kwargs
)
489 #---------------------------------------------------------------------------
491 class XmlResourceHandler(_core
.Object
):
493 return "<%s.%s; proxy of C++ wxPyXmlResourceHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
494 def __init__(self
, *args
, **kwargs
):
495 """__init__(self) -> XmlResourceHandler"""
496 newobj
= _xrc
.new_XmlResourceHandler(*args
, **kwargs
)
497 self
.this
= newobj
.this
500 self
._setCallbackInfo
(self
, XmlResourceHandler
)
502 def _setCallbackInfo(*args
, **kwargs
):
503 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
504 return _xrc
.XmlResourceHandler__setCallbackInfo(*args
, **kwargs
)
506 def CreateResource(*args
, **kwargs
):
507 """CreateResource(self, XmlNode node, Object parent, Object instance) -> Object"""
508 return _xrc
.XmlResourceHandler_CreateResource(*args
, **kwargs
)
510 def SetParentResource(*args
, **kwargs
):
511 """SetParentResource(self, XmlResource res)"""
512 return _xrc
.XmlResourceHandler_SetParentResource(*args
, **kwargs
)
514 def GetResource(*args
, **kwargs
):
515 """GetResource(self) -> XmlResource"""
516 return _xrc
.XmlResourceHandler_GetResource(*args
, **kwargs
)
518 def GetNode(*args
, **kwargs
):
519 """GetNode(self) -> XmlNode"""
520 return _xrc
.XmlResourceHandler_GetNode(*args
, **kwargs
)
522 def GetClass(*args
, **kwargs
):
523 """GetClass(self) -> String"""
524 return _xrc
.XmlResourceHandler_GetClass(*args
, **kwargs
)
526 def GetParent(*args
, **kwargs
):
527 """GetParent(self) -> Object"""
528 return _xrc
.XmlResourceHandler_GetParent(*args
, **kwargs
)
530 def GetInstance(*args
, **kwargs
):
531 """GetInstance(self) -> Object"""
532 return _xrc
.XmlResourceHandler_GetInstance(*args
, **kwargs
)
534 def GetParentAsWindow(*args
, **kwargs
):
535 """GetParentAsWindow(self) -> Window"""
536 return _xrc
.XmlResourceHandler_GetParentAsWindow(*args
, **kwargs
)
538 def GetInstanceAsWindow(*args
, **kwargs
):
539 """GetInstanceAsWindow(self) -> Window"""
540 return _xrc
.XmlResourceHandler_GetInstanceAsWindow(*args
, **kwargs
)
542 def IsOfClass(*args
, **kwargs
):
543 """IsOfClass(self, XmlNode node, String classname) -> bool"""
544 return _xrc
.XmlResourceHandler_IsOfClass(*args
, **kwargs
)
546 def GetNodeContent(*args
, **kwargs
):
547 """GetNodeContent(self, XmlNode node) -> String"""
548 return _xrc
.XmlResourceHandler_GetNodeContent(*args
, **kwargs
)
550 def HasParam(*args
, **kwargs
):
551 """HasParam(self, String param) -> bool"""
552 return _xrc
.XmlResourceHandler_HasParam(*args
, **kwargs
)
554 def GetParamNode(*args
, **kwargs
):
555 """GetParamNode(self, String param) -> XmlNode"""
556 return _xrc
.XmlResourceHandler_GetParamNode(*args
, **kwargs
)
558 def GetParamValue(*args
, **kwargs
):
559 """GetParamValue(self, String param) -> String"""
560 return _xrc
.XmlResourceHandler_GetParamValue(*args
, **kwargs
)
562 def AddStyle(*args
, **kwargs
):
563 """AddStyle(self, String name, int value)"""
564 return _xrc
.XmlResourceHandler_AddStyle(*args
, **kwargs
)
566 def AddWindowStyles(*args
, **kwargs
):
567 """AddWindowStyles(self)"""
568 return _xrc
.XmlResourceHandler_AddWindowStyles(*args
, **kwargs
)
570 def GetStyle(*args
, **kwargs
):
571 """GetStyle(self, String param=StyleString, int defaults=0) -> int"""
572 return _xrc
.XmlResourceHandler_GetStyle(*args
, **kwargs
)
574 def GetText(*args
, **kwargs
):
575 """GetText(self, String param, bool translate=True) -> String"""
576 return _xrc
.XmlResourceHandler_GetText(*args
, **kwargs
)
578 def GetID(*args
, **kwargs
):
579 """GetID(self) -> int"""
580 return _xrc
.XmlResourceHandler_GetID(*args
, **kwargs
)
582 def GetName(*args
, **kwargs
):
583 """GetName(self) -> String"""
584 return _xrc
.XmlResourceHandler_GetName(*args
, **kwargs
)
586 def GetBool(*args
, **kwargs
):
587 """GetBool(self, String param, bool defaultv=False) -> bool"""
588 return _xrc
.XmlResourceHandler_GetBool(*args
, **kwargs
)
590 def GetLong(*args
, **kwargs
):
591 """GetLong(self, String param, long defaultv=0) -> long"""
592 return _xrc
.XmlResourceHandler_GetLong(*args
, **kwargs
)
594 def GetColour(*args
, **kwargs
):
595 """GetColour(self, String param) -> Colour"""
596 return _xrc
.XmlResourceHandler_GetColour(*args
, **kwargs
)
598 def GetSize(*args
, **kwargs
):
599 """GetSize(self, String param=SizeString) -> Size"""
600 return _xrc
.XmlResourceHandler_GetSize(*args
, **kwargs
)
602 def GetPosition(*args
, **kwargs
):
603 """GetPosition(self, String param=PosString) -> Point"""
604 return _xrc
.XmlResourceHandler_GetPosition(*args
, **kwargs
)
606 def GetDimension(*args
, **kwargs
):
607 """GetDimension(self, String param, int defaultv=0) -> int"""
608 return _xrc
.XmlResourceHandler_GetDimension(*args
, **kwargs
)
610 def GetBitmap(*args
, **kwargs
):
612 GetBitmap(self, String param=BitmapString, wxArtClient defaultArtClient=wxART_OTHER,
613 Size size=DefaultSize) -> Bitmap
615 return _xrc
.XmlResourceHandler_GetBitmap(*args
, **kwargs
)
617 def GetIcon(*args
, **kwargs
):
619 GetIcon(self, String param=IconString, wxArtClient defaultArtClient=wxART_OTHER,
620 Size size=DefaultSize) -> Icon
622 return _xrc
.XmlResourceHandler_GetIcon(*args
, **kwargs
)
624 def GetFont(*args
, **kwargs
):
625 """GetFont(self, String param=FontString) -> Font"""
626 return _xrc
.XmlResourceHandler_GetFont(*args
, **kwargs
)
628 def SetupWindow(*args
, **kwargs
):
629 """SetupWindow(self, Window wnd)"""
630 return _xrc
.XmlResourceHandler_SetupWindow(*args
, **kwargs
)
632 def CreateChildren(*args
, **kwargs
):
633 """CreateChildren(self, Object parent, bool this_hnd_only=False)"""
634 return _xrc
.XmlResourceHandler_CreateChildren(*args
, **kwargs
)
636 def CreateChildrenPrivately(*args
, **kwargs
):
637 """CreateChildrenPrivately(self, Object parent, XmlNode rootnode=None)"""
638 return _xrc
.XmlResourceHandler_CreateChildrenPrivately(*args
, **kwargs
)
640 def CreateResFromNode(*args
, **kwargs
):
641 """CreateResFromNode(self, XmlNode node, Object parent, Object instance=None) -> Object"""
642 return _xrc
.XmlResourceHandler_CreateResFromNode(*args
, **kwargs
)
644 def GetCurFileSystem(*args
, **kwargs
):
645 """GetCurFileSystem(self) -> FileSystem"""
646 return _xrc
.XmlResourceHandler_GetCurFileSystem(*args
, **kwargs
)
649 class XmlResourceHandlerPtr(XmlResourceHandler
):
650 def __init__(self
, this
):
652 if not hasattr(self
,"thisown"): self
.thisown
= 0
653 self
.__class
__ = XmlResourceHandler
654 _xrc
.XmlResourceHandler_swigregister(XmlResourceHandlerPtr
)
656 #----------------------------------------------------------------------------
657 # The global was removed in favor of static accessor functions. This is for
658 # backwards compatibility:
660 TheXmlResource
= XmlResource_Get()
663 #----------------------------------------------------------------------------
664 # Create a factory for handling the subclass property of the object tag.
667 def _my_import(name
):
668 mod
= __import__(name
)
669 components
= name
.split('.')
670 for comp
in components
[1:]:
671 mod
= getattr(mod
, comp
)
675 class XmlSubclassFactory_Python(XmlSubclassFactory
):
677 XmlSubclassFactory
.__init
__(self
)
679 def Create(self
, className
):
680 assert className
.find('.') != -1, "Module name must be specified!"
681 mname
= className
[:className
.rfind('.')]
682 cname
= className
[className
.rfind('.')+1:]
683 module
= _my_import(mname
)
684 klass
= getattr(module
, cname
)
689 XmlResource_AddSubclassFactory(XmlSubclassFactory_Python())
691 #----------------------------------------------------------------------------