1 # This file was created automatically by SWIG.
14 from clip_dnd
import *
26 from stattool
import *
28 from controls
import *
30 from controls2
import *
32 from windows2
import *
36 from windows3
import *
47 return wxXmlResource_GetXRCID(str_id
)
49 def XRCCTRL(window
, str_id
, *ignoreargs
):
50 return window
.FindWindowById(XRCID(str_id
))
55 class wxXmlResourcePtr(wxObjectPtr
):
56 def __init__(self
,this
):
59 def __del__(self
, delfunc
=xrcc
.delete_wxXmlResource
):
65 def Load(self
, *_args
, **_kwargs
):
66 val
= xrcc
.wxXmlResource_Load(self
, *_args
, **_kwargs
)
68 def LoadFromString(self
, *_args
, **_kwargs
):
69 val
= xrcc
.wxXmlResource_LoadFromString(self
, *_args
, **_kwargs
)
71 def InitAllHandlers(self
, *_args
, **_kwargs
):
72 val
= xrcc
.wxXmlResource_InitAllHandlers(self
, *_args
, **_kwargs
)
74 def AddHandler(self
, *_args
, **_kwargs
):
75 val
= xrcc
.wxXmlResource_AddHandler(self
, *_args
, **_kwargs
)
77 def InsertHandler(self
, *_args
, **_kwargs
):
78 val
= xrcc
.wxXmlResource_InsertHandler(self
, *_args
, **_kwargs
)
80 def ClearHandlers(self
, *_args
, **_kwargs
):
81 val
= xrcc
.wxXmlResource_ClearHandlers(self
, *_args
, **_kwargs
)
83 def LoadMenu(self
, *_args
, **_kwargs
):
84 val
= xrcc
.wxXmlResource_LoadMenu(self
, *_args
, **_kwargs
)
86 def LoadMenuBar(self
, *_args
, **_kwargs
):
87 val
= xrcc
.wxXmlResource_LoadMenuBar(self
, *_args
, **_kwargs
)
89 def LoadMenuBarOnFrame(self
, *_args
, **_kwargs
):
90 val
= xrcc
.wxXmlResource_LoadMenuBarOnFrame(self
, *_args
, **_kwargs
)
92 def LoadToolBar(self
, *_args
, **_kwargs
):
93 val
= xrcc
.wxXmlResource_LoadToolBar(self
, *_args
, **_kwargs
)
95 def LoadDialog(self
, *_args
, **_kwargs
):
96 val
= xrcc
.wxXmlResource_LoadDialog(self
, *_args
, **_kwargs
)
97 if val
: val
= wxDialogPtr(val
)
99 def LoadOnDialog(self
, *_args
, **_kwargs
):
100 val
= xrcc
.wxXmlResource_LoadOnDialog(self
, *_args
, **_kwargs
)
102 def LoadPanel(self
, *_args
, **_kwargs
):
103 val
= xrcc
.wxXmlResource_LoadPanel(self
, *_args
, **_kwargs
)
104 if val
: val
= wxPanelPtr(val
)
106 def LoadOnPanel(self
, *_args
, **_kwargs
):
107 val
= xrcc
.wxXmlResource_LoadOnPanel(self
, *_args
, **_kwargs
)
109 def LoadFrame(self
, *_args
, **_kwargs
):
110 val
= xrcc
.wxXmlResource_LoadFrame(self
, *_args
, **_kwargs
)
112 def LoadOnFrame(self
, *_args
, **_kwargs
):
113 val
= xrcc
.wxXmlResource_LoadOnFrame(self
, *_args
, **_kwargs
)
115 def LoadObject(self
, *_args
, **_kwargs
):
116 val
= xrcc
.wxXmlResource_LoadObject(self
, *_args
, **_kwargs
)
118 def LoadOnObject(self
, *_args
, **_kwargs
):
119 val
= xrcc
.wxXmlResource_LoadOnObject(self
, *_args
, **_kwargs
)
121 def LoadBitmap(self
, *_args
, **_kwargs
):
122 val
= xrcc
.wxXmlResource_LoadBitmap(self
, *_args
, **_kwargs
)
123 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
125 def LoadIcon(self
, *_args
, **_kwargs
):
126 val
= xrcc
.wxXmlResource_LoadIcon(self
, *_args
, **_kwargs
)
127 if val
: val
= wxIconPtr(val
) ; val
.thisown
= 1
129 def AttachUnknownControl(self
, *_args
, **_kwargs
):
130 val
= xrcc
.wxXmlResource_AttachUnknownControl(self
, *_args
, **_kwargs
)
132 def GetVersion(self
, *_args
, **_kwargs
):
133 val
= xrcc
.wxXmlResource_GetVersion(self
, *_args
, **_kwargs
)
135 def CompareVersion(self
, *_args
, **_kwargs
):
136 val
= xrcc
.wxXmlResource_CompareVersion(self
, *_args
, **_kwargs
)
138 def GetFlags(self
, *_args
, **_kwargs
):
139 val
= xrcc
.wxXmlResource_GetFlags(self
, *_args
, **_kwargs
)
141 def SetFlags(self
, *_args
, **_kwargs
):
142 val
= xrcc
.wxXmlResource_SetFlags(self
, *_args
, **_kwargs
)
145 return "<%s.%s instance; proxy of C++ wxXmlResource instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
146 class wxXmlResource(wxXmlResourcePtr
):
147 def __init__(self
,*_args
,**_kwargs
):
148 self
.this
= xrcc
.new_wxXmlResource(*_args
,**_kwargs
)
150 self
.InitAllHandlers()
154 def wxEmptyXmlResource(*_args
,**_kwargs
):
155 val
= wxXmlResourcePtr(xrcc
.new_wxEmptyXmlResource(*_args
,**_kwargs
))
157 val
.InitAllHandlers()
161 class wxXmlSubclassFactoryPtr
:
162 def __init__(self
,this
):
165 def _setCallbackInfo(self
, *_args
, **_kwargs
):
166 val
= xrcc
.wxXmlSubclassFactory__setCallbackInfo(self
, *_args
, **_kwargs
)
169 return "<%s.%s instance; proxy of C++ wxXmlSubclassFactory instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
170 class wxXmlSubclassFactory(wxXmlSubclassFactoryPtr
):
171 def __init__(self
,*_args
,**_kwargs
):
172 self
.this
= xrcc
.new_wxXmlSubclassFactory(*_args
,**_kwargs
)
174 self
._setCallbackInfo
(self
, wxXmlSubclassFactory
)
179 class wxXmlPropertyPtr
:
180 def __init__(self
,this
):
183 def GetName(self
, *_args
, **_kwargs
):
184 val
= xrcc
.wxXmlProperty_GetName(self
, *_args
, **_kwargs
)
186 def GetValue(self
, *_args
, **_kwargs
):
187 val
= xrcc
.wxXmlProperty_GetValue(self
, *_args
, **_kwargs
)
189 def GetNext(self
, *_args
, **_kwargs
):
190 val
= xrcc
.wxXmlProperty_GetNext(self
, *_args
, **_kwargs
)
191 if val
: val
= wxXmlPropertyPtr(val
)
193 def SetName(self
, *_args
, **_kwargs
):
194 val
= xrcc
.wxXmlProperty_SetName(self
, *_args
, **_kwargs
)
196 def SetValue(self
, *_args
, **_kwargs
):
197 val
= xrcc
.wxXmlProperty_SetValue(self
, *_args
, **_kwargs
)
199 def SetNext(self
, *_args
, **_kwargs
):
200 val
= xrcc
.wxXmlProperty_SetNext(self
, *_args
, **_kwargs
)
203 return "<%s.%s instance; proxy of C++ wxXmlProperty instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
204 class wxXmlProperty(wxXmlPropertyPtr
):
205 def __init__(self
,*_args
,**_kwargs
):
206 self
.this
= xrcc
.new_wxXmlProperty(*_args
,**_kwargs
)
213 def __init__(self
,this
):
216 def __del__(self
, delfunc
=xrcc
.delete_wxXmlNode
):
217 if self
.thisown
== 1:
222 def AddChild(self
, *_args
, **_kwargs
):
223 val
= xrcc
.wxXmlNode_AddChild(self
, *_args
, **_kwargs
)
225 def InsertChild(self
, *_args
, **_kwargs
):
226 val
= xrcc
.wxXmlNode_InsertChild(self
, *_args
, **_kwargs
)
228 def RemoveChild(self
, *_args
, **_kwargs
):
229 val
= xrcc
.wxXmlNode_RemoveChild(self
, *_args
, **_kwargs
)
231 def AddProperty(self
, *_args
, **_kwargs
):
232 val
= xrcc
.wxXmlNode_AddProperty(self
, *_args
, **_kwargs
)
234 def AddPropertyName(self
, *_args
, **_kwargs
):
235 val
= xrcc
.wxXmlNode_AddPropertyName(self
, *_args
, **_kwargs
)
237 def DeleteProperty(self
, *_args
, **_kwargs
):
238 val
= xrcc
.wxXmlNode_DeleteProperty(self
, *_args
, **_kwargs
)
240 def GetType(self
, *_args
, **_kwargs
):
241 val
= xrcc
.wxXmlNode_GetType(self
, *_args
, **_kwargs
)
243 def GetName(self
, *_args
, **_kwargs
):
244 val
= xrcc
.wxXmlNode_GetName(self
, *_args
, **_kwargs
)
246 def GetContent(self
, *_args
, **_kwargs
):
247 val
= xrcc
.wxXmlNode_GetContent(self
, *_args
, **_kwargs
)
249 def GetParent(self
, *_args
, **_kwargs
):
250 val
= xrcc
.wxXmlNode_GetParent(self
, *_args
, **_kwargs
)
251 if val
: val
= wxXmlNodePtr(val
)
253 def GetNext(self
, *_args
, **_kwargs
):
254 val
= xrcc
.wxXmlNode_GetNext(self
, *_args
, **_kwargs
)
255 if val
: val
= wxXmlNodePtr(val
)
257 def GetChildren(self
, *_args
, **_kwargs
):
258 val
= xrcc
.wxXmlNode_GetChildren(self
, *_args
, **_kwargs
)
259 if val
: val
= wxXmlNodePtr(val
)
261 def GetProperties(self
, *_args
, **_kwargs
):
262 val
= xrcc
.wxXmlNode_GetProperties(self
, *_args
, **_kwargs
)
263 if val
: val
= wxXmlPropertyPtr(val
)
265 def GetPropVal(self
, *_args
, **_kwargs
):
266 val
= xrcc
.wxXmlNode_GetPropVal(self
, *_args
, **_kwargs
)
268 def HasProp(self
, *_args
, **_kwargs
):
269 val
= xrcc
.wxXmlNode_HasProp(self
, *_args
, **_kwargs
)
271 def SetType(self
, *_args
, **_kwargs
):
272 val
= xrcc
.wxXmlNode_SetType(self
, *_args
, **_kwargs
)
274 def SetName(self
, *_args
, **_kwargs
):
275 val
= xrcc
.wxXmlNode_SetName(self
, *_args
, **_kwargs
)
277 def SetContent(self
, *_args
, **_kwargs
):
278 val
= xrcc
.wxXmlNode_SetContent(self
, *_args
, **_kwargs
)
280 def SetParent(self
, *_args
, **_kwargs
):
281 val
= xrcc
.wxXmlNode_SetParent(self
, *_args
, **_kwargs
)
283 def SetNext(self
, *_args
, **_kwargs
):
284 val
= xrcc
.wxXmlNode_SetNext(self
, *_args
, **_kwargs
)
286 def SetChildren(self
, *_args
, **_kwargs
):
287 val
= xrcc
.wxXmlNode_SetChildren(self
, *_args
, **_kwargs
)
289 def SetProperties(self
, *_args
, **_kwargs
):
290 val
= xrcc
.wxXmlNode_SetProperties(self
, *_args
, **_kwargs
)
293 return "<%s.%s instance; proxy of C++ wxXmlNode instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
294 class wxXmlNode(wxXmlNodePtr
):
295 def __init__(self
,*_args
,**_kwargs
):
296 self
.this
= xrcc
.new_wxXmlNode(*_args
,**_kwargs
)
301 def wxXmlNodeEasy(*_args
,**_kwargs
):
302 val
= wxXmlNodePtr(xrcc
.new_wxXmlNodeEasy(*_args
,**_kwargs
))
307 class wxXmlDocumentPtr(wxObjectPtr
):
308 def __init__(self
,this
):
311 def __del__(self
, delfunc
=xrcc
.delete_wxXmlDocument
):
312 if self
.thisown
== 1:
317 def Load(self
, *_args
, **_kwargs
):
318 val
= xrcc
.wxXmlDocument_Load(self
, *_args
, **_kwargs
)
320 def LoadFromStream(self
, *_args
, **_kwargs
):
321 val
= xrcc
.wxXmlDocument_LoadFromStream(self
, *_args
, **_kwargs
)
323 def Save(self
, *_args
, **_kwargs
):
324 val
= xrcc
.wxXmlDocument_Save(self
, *_args
, **_kwargs
)
326 def SaveToStream(self
, *_args
, **_kwargs
):
327 val
= xrcc
.wxXmlDocument_SaveToStream(self
, *_args
, **_kwargs
)
329 def IsOk(self
, *_args
, **_kwargs
):
330 val
= xrcc
.wxXmlDocument_IsOk(self
, *_args
, **_kwargs
)
332 def GetRoot(self
, *_args
, **_kwargs
):
333 val
= xrcc
.wxXmlDocument_GetRoot(self
, *_args
, **_kwargs
)
334 if val
: val
= wxXmlNodePtr(val
)
336 def GetVersion(self
, *_args
, **_kwargs
):
337 val
= xrcc
.wxXmlDocument_GetVersion(self
, *_args
, **_kwargs
)
339 def GetFileEncoding(self
, *_args
, **_kwargs
):
340 val
= xrcc
.wxXmlDocument_GetFileEncoding(self
, *_args
, **_kwargs
)
342 def SetRoot(self
, *_args
, **_kwargs
):
343 val
= xrcc
.wxXmlDocument_SetRoot(self
, *_args
, **_kwargs
)
345 def SetVersion(self
, *_args
, **_kwargs
):
346 val
= xrcc
.wxXmlDocument_SetVersion(self
, *_args
, **_kwargs
)
348 def SetFileEncoding(self
, *_args
, **_kwargs
):
349 val
= xrcc
.wxXmlDocument_SetFileEncoding(self
, *_args
, **_kwargs
)
351 def GetEncoding(self
, *_args
, **_kwargs
):
352 val
= xrcc
.wxXmlDocument_GetEncoding(self
, *_args
, **_kwargs
)
354 def SetEncoding(self
, *_args
, **_kwargs
):
355 val
= xrcc
.wxXmlDocument_SetEncoding(self
, *_args
, **_kwargs
)
358 return "<%s.%s instance; proxy of C++ wxXmlDocument instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
359 class wxXmlDocument(wxXmlDocumentPtr
):
360 def __init__(self
,*_args
,**_kwargs
):
361 self
.this
= xrcc
.new_wxXmlDocument(*_args
,**_kwargs
)
366 def wxXmlDocumentFromStream(*_args
,**_kwargs
):
367 val
= wxXmlDocumentPtr(xrcc
.new_wxXmlDocumentFromStream(*_args
,**_kwargs
))
371 def wxEmptyXmlDocument(*_args
,**_kwargs
):
372 val
= wxXmlDocumentPtr(xrcc
.new_wxEmptyXmlDocument(*_args
,**_kwargs
))
377 class wxXmlResourceHandlerPtr(wxObjectPtr
):
378 def __init__(self
,this
):
381 def _setCallbackInfo(self
, *_args
, **_kwargs
):
382 val
= xrcc
.wxXmlResourceHandler__setCallbackInfo(self
, *_args
, **_kwargs
)
384 def CreateResource(self
, *_args
, **_kwargs
):
385 val
= xrcc
.wxXmlResourceHandler_CreateResource(self
, *_args
, **_kwargs
)
387 def SetParentResource(self
, *_args
, **_kwargs
):
388 val
= xrcc
.wxXmlResourceHandler_SetParentResource(self
, *_args
, **_kwargs
)
390 def GetResource(self
, *_args
, **_kwargs
):
391 val
= xrcc
.wxXmlResourceHandler_GetResource(self
, *_args
, **_kwargs
)
392 if val
: val
= wxXmlResourcePtr(val
)
394 def GetNode(self
, *_args
, **_kwargs
):
395 val
= xrcc
.wxXmlResourceHandler_GetNode(self
, *_args
, **_kwargs
)
396 if val
: val
= wxXmlNodePtr(val
)
398 def GetClass(self
, *_args
, **_kwargs
):
399 val
= xrcc
.wxXmlResourceHandler_GetClass(self
, *_args
, **_kwargs
)
401 def GetParent(self
, *_args
, **_kwargs
):
402 val
= xrcc
.wxXmlResourceHandler_GetParent(self
, *_args
, **_kwargs
)
404 def GetInstance(self
, *_args
, **_kwargs
):
405 val
= xrcc
.wxXmlResourceHandler_GetInstance(self
, *_args
, **_kwargs
)
407 def GetParentAsWindow(self
, *_args
, **_kwargs
):
408 val
= xrcc
.wxXmlResourceHandler_GetParentAsWindow(self
, *_args
, **_kwargs
)
410 def GetInstanceAsWindow(self
, *_args
, **_kwargs
):
411 val
= xrcc
.wxXmlResourceHandler_GetInstanceAsWindow(self
, *_args
, **_kwargs
)
413 def IsOfClass(self
, *_args
, **_kwargs
):
414 val
= xrcc
.wxXmlResourceHandler_IsOfClass(self
, *_args
, **_kwargs
)
416 def GetNodeContent(self
, *_args
, **_kwargs
):
417 val
= xrcc
.wxXmlResourceHandler_GetNodeContent(self
, *_args
, **_kwargs
)
419 def HasParam(self
, *_args
, **_kwargs
):
420 val
= xrcc
.wxXmlResourceHandler_HasParam(self
, *_args
, **_kwargs
)
422 def GetParamNode(self
, *_args
, **_kwargs
):
423 val
= xrcc
.wxXmlResourceHandler_GetParamNode(self
, *_args
, **_kwargs
)
424 if val
: val
= wxXmlNodePtr(val
)
426 def GetParamValue(self
, *_args
, **_kwargs
):
427 val
= xrcc
.wxXmlResourceHandler_GetParamValue(self
, *_args
, **_kwargs
)
429 def AddStyle(self
, *_args
, **_kwargs
):
430 val
= xrcc
.wxXmlResourceHandler_AddStyle(self
, *_args
, **_kwargs
)
432 def AddWindowStyles(self
, *_args
, **_kwargs
):
433 val
= xrcc
.wxXmlResourceHandler_AddWindowStyles(self
, *_args
, **_kwargs
)
435 def GetStyle(self
, *_args
, **_kwargs
):
436 val
= xrcc
.wxXmlResourceHandler_GetStyle(self
, *_args
, **_kwargs
)
438 def GetText(self
, *_args
, **_kwargs
):
439 val
= xrcc
.wxXmlResourceHandler_GetText(self
, *_args
, **_kwargs
)
441 def GetID(self
, *_args
, **_kwargs
):
442 val
= xrcc
.wxXmlResourceHandler_GetID(self
, *_args
, **_kwargs
)
444 def GetName(self
, *_args
, **_kwargs
):
445 val
= xrcc
.wxXmlResourceHandler_GetName(self
, *_args
, **_kwargs
)
447 def GetBool(self
, *_args
, **_kwargs
):
448 val
= xrcc
.wxXmlResourceHandler_GetBool(self
, *_args
, **_kwargs
)
450 def GetLong(self
, *_args
, **_kwargs
):
451 val
= xrcc
.wxXmlResourceHandler_GetLong(self
, *_args
, **_kwargs
)
453 def GetColour(self
, *_args
, **_kwargs
):
454 val
= xrcc
.wxXmlResourceHandler_GetColour(self
, *_args
, **_kwargs
)
455 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
457 def GetSize(self
, *_args
, **_kwargs
):
458 val
= xrcc
.wxXmlResourceHandler_GetSize(self
, *_args
, **_kwargs
)
459 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
461 def GetPosition(self
, *_args
, **_kwargs
):
462 val
= xrcc
.wxXmlResourceHandler_GetPosition(self
, *_args
, **_kwargs
)
463 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
465 def GetDimension(self
, *_args
, **_kwargs
):
466 val
= xrcc
.wxXmlResourceHandler_GetDimension(self
, *_args
, **_kwargs
)
468 def GetBitmap(self
, *_args
, **_kwargs
):
469 val
= xrcc
.wxXmlResourceHandler_GetBitmap(self
, *_args
, **_kwargs
)
470 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
472 def GetIcon(self
, *_args
, **_kwargs
):
473 val
= xrcc
.wxXmlResourceHandler_GetIcon(self
, *_args
, **_kwargs
)
474 if val
: val
= wxIconPtr(val
) ; val
.thisown
= 1
476 def GetFont(self
, *_args
, **_kwargs
):
477 val
= xrcc
.wxXmlResourceHandler_GetFont(self
, *_args
, **_kwargs
)
478 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
480 def SetupWindow(self
, *_args
, **_kwargs
):
481 val
= xrcc
.wxXmlResourceHandler_SetupWindow(self
, *_args
, **_kwargs
)
483 def CreateChildren(self
, *_args
, **_kwargs
):
484 val
= xrcc
.wxXmlResourceHandler_CreateChildren(self
, *_args
, **_kwargs
)
486 def CreateChildrenPrivately(self
, *_args
, **_kwargs
):
487 val
= xrcc
.wxXmlResourceHandler_CreateChildrenPrivately(self
, *_args
, **_kwargs
)
489 def CreateResFromNode(self
, *_args
, **_kwargs
):
490 val
= xrcc
.wxXmlResourceHandler_CreateResFromNode(self
, *_args
, **_kwargs
)
492 def GetCurFileSystem(self
, *_args
, **_kwargs
):
493 val
= xrcc
.wxXmlResourceHandler_GetCurFileSystem(self
, *_args
, **_kwargs
)
496 return "<%s.%s instance; proxy of C++ wxXmlResourceHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
497 class wxXmlResourceHandler(wxXmlResourceHandlerPtr
):
498 def __init__(self
,*_args
,**_kwargs
):
499 self
.this
= xrcc
.new_wxXmlResourceHandler(*_args
,**_kwargs
)
501 self
._setCallbackInfo
(self
, wxXmlResourceHandler
)
508 #-------------- FUNCTION WRAPPERS ------------------
510 wxXmlResource_AddSubclassFactory
= xrcc
.wxXmlResource_AddSubclassFactory
512 wxXmlResource_GetXRCID
= xrcc
.wxXmlResource_GetXRCID
514 def wxXmlResource_Get(*_args
, **_kwargs
):
515 val
= xrcc
.wxXmlResource_Get(*_args
,**_kwargs
)
516 if val
: val
= wxXmlResourcePtr(val
)
519 def wxXmlResource_Set(*_args
, **_kwargs
):
520 val
= xrcc
.wxXmlResource_Set(*_args
,**_kwargs
)
521 if val
: val
= wxXmlResourcePtr(val
)
526 #-------------- VARIABLE WRAPPERS ------------------
528 wxXRC_USE_LOCALE
= xrcc
.wxXRC_USE_LOCALE
529 wxXRC_NO_SUBCLASSING
= xrcc
.wxXRC_NO_SUBCLASSING
530 wxXML_ELEMENT_NODE
= xrcc
.wxXML_ELEMENT_NODE
531 wxXML_ATTRIBUTE_NODE
= xrcc
.wxXML_ATTRIBUTE_NODE
532 wxXML_TEXT_NODE
= xrcc
.wxXML_TEXT_NODE
533 wxXML_CDATA_SECTION_NODE
= xrcc
.wxXML_CDATA_SECTION_NODE
534 wxXML_ENTITY_REF_NODE
= xrcc
.wxXML_ENTITY_REF_NODE
535 wxXML_ENTITY_NODE
= xrcc
.wxXML_ENTITY_NODE
536 wxXML_PI_NODE
= xrcc
.wxXML_PI_NODE
537 wxXML_COMMENT_NODE
= xrcc
.wxXML_COMMENT_NODE
538 wxXML_DOCUMENT_NODE
= xrcc
.wxXML_DOCUMENT_NODE
539 wxXML_DOCUMENT_TYPE_NODE
= xrcc
.wxXML_DOCUMENT_TYPE_NODE
540 wxXML_DOCUMENT_FRAG_NODE
= xrcc
.wxXML_DOCUMENT_FRAG_NODE
541 wxXML_NOTATION_NODE
= xrcc
.wxXML_NOTATION_NODE
542 wxXML_HTML_DOCUMENT_NODE
= xrcc
.wxXML_HTML_DOCUMENT_NODE
545 #-------------- USER INCLUDE -----------------------
548 # The global was removed in favor of static accessor functions. This is for
549 # backwards compatibility:
550 wxTheXmlResource
= wxXmlResource_Get()
552 wx
.wxXmlNodePtr
= wxXmlNodePtr
557 #----------------------------------------------------------------------
558 # Create a factory for handling the subclass property of the object tag.
561 def _my_import(name
):
562 mod
= __import__(name
)
563 components
= name
.split('.')
564 for comp
in components
[1:]:
565 mod
= getattr(mod
, comp
)
569 class wxXmlSubclassFactory_Python(wxXmlSubclassFactory
):
571 wxXmlSubclassFactory
.__init
__(self
)
573 def Create(self
, className
):
574 assert className
.find('.') != -1, "Module name must be specified!"
575 mname
= className
[:className
.rfind('.')]
576 cname
= className
[className
.rfind('.')+1:]
577 module
= _my_import(mname
)
578 klass
= getattr(module
, cname
)
583 wxXmlResource_AddSubclassFactory(wxXmlSubclassFactory_Python())