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
= apply(xrcc
.wxXmlResource_Load
,(self
,) + _args
, _kwargs
)
68 def LoadFromString(self
, *_args
, **_kwargs
):
69 val
= apply(xrcc
.wxXmlResource_LoadFromString
,(self
,) + _args
, _kwargs
)
71 def InitAllHandlers(self
, *_args
, **_kwargs
):
72 val
= apply(xrcc
.wxXmlResource_InitAllHandlers
,(self
,) + _args
, _kwargs
)
74 def AddHandler(self
, *_args
, **_kwargs
):
75 val
= apply(xrcc
.wxXmlResource_AddHandler
,(self
,) + _args
, _kwargs
)
77 def InsertHandler(self
, *_args
, **_kwargs
):
78 val
= apply(xrcc
.wxXmlResource_InsertHandler
,(self
,) + _args
, _kwargs
)
80 def ClearHandlers(self
, *_args
, **_kwargs
):
81 val
= apply(xrcc
.wxXmlResource_ClearHandlers
,(self
,) + _args
, _kwargs
)
83 def LoadMenu(self
, *_args
, **_kwargs
):
84 val
= apply(xrcc
.wxXmlResource_LoadMenu
,(self
,) + _args
, _kwargs
)
86 def LoadMenuBar(self
, *_args
, **_kwargs
):
87 val
= apply(xrcc
.wxXmlResource_LoadMenuBar
,(self
,) + _args
, _kwargs
)
89 def LoadMenuBarOnFrame(self
, *_args
, **_kwargs
):
90 val
= apply(xrcc
.wxXmlResource_LoadMenuBarOnFrame
,(self
,) + _args
, _kwargs
)
92 def LoadToolBar(self
, *_args
, **_kwargs
):
93 val
= apply(xrcc
.wxXmlResource_LoadToolBar
,(self
,) + _args
, _kwargs
)
95 def LoadDialog(self
, *_args
, **_kwargs
):
96 val
= apply(xrcc
.wxXmlResource_LoadDialog
,(self
,) + _args
, _kwargs
)
97 if val
: val
= wxDialogPtr(val
)
99 def LoadOnDialog(self
, *_args
, **_kwargs
):
100 val
= apply(xrcc
.wxXmlResource_LoadOnDialog
,(self
,) + _args
, _kwargs
)
102 def LoadPanel(self
, *_args
, **_kwargs
):
103 val
= apply(xrcc
.wxXmlResource_LoadPanel
,(self
,) + _args
, _kwargs
)
104 if val
: val
= wxPanelPtr(val
)
106 def LoadOnPanel(self
, *_args
, **_kwargs
):
107 val
= apply(xrcc
.wxXmlResource_LoadOnPanel
,(self
,) + _args
, _kwargs
)
109 def LoadFrame(self
, *_args
, **_kwargs
):
110 val
= apply(xrcc
.wxXmlResource_LoadFrame
,(self
,) + _args
, _kwargs
)
112 def LoadOnFrame(self
, *_args
, **_kwargs
):
113 val
= apply(xrcc
.wxXmlResource_LoadOnFrame
,(self
,) + _args
, _kwargs
)
115 def LoadObject(self
, *_args
, **_kwargs
):
116 val
= apply(xrcc
.wxXmlResource_LoadObject
,(self
,) + _args
, _kwargs
)
118 def LoadOnObject(self
, *_args
, **_kwargs
):
119 val
= apply(xrcc
.wxXmlResource_LoadOnObject
,(self
,) + _args
, _kwargs
)
121 def LoadBitmap(self
, *_args
, **_kwargs
):
122 val
= apply(xrcc
.wxXmlResource_LoadBitmap
,(self
,) + _args
, _kwargs
)
123 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
125 def LoadIcon(self
, *_args
, **_kwargs
):
126 val
= apply(xrcc
.wxXmlResource_LoadIcon
,(self
,) + _args
, _kwargs
)
127 if val
: val
= wxIconPtr(val
) ; val
.thisown
= 1
129 def AttachUnknownControl(self
, *_args
, **_kwargs
):
130 val
= apply(xrcc
.wxXmlResource_AttachUnknownControl
,(self
,) + _args
, _kwargs
)
132 def GetVersion(self
, *_args
, **_kwargs
):
133 val
= apply(xrcc
.wxXmlResource_GetVersion
,(self
,) + _args
, _kwargs
)
135 def CompareVersion(self
, *_args
, **_kwargs
):
136 val
= apply(xrcc
.wxXmlResource_CompareVersion
,(self
,) + _args
, _kwargs
)
138 def GetFlags(self
, *_args
, **_kwargs
):
139 val
= apply(xrcc
.wxXmlResource_GetFlags
,(self
,) + _args
, _kwargs
)
141 def SetFlags(self
, *_args
, **_kwargs
):
142 val
= apply(xrcc
.wxXmlResource_SetFlags
,(self
,) + _args
, _kwargs
)
145 return "<C wxXmlResource instance at %s>" % (self
.this
,)
146 class wxXmlResource(wxXmlResourcePtr
):
147 def __init__(self
,*_args
,**_kwargs
):
148 self
.this
= apply(xrcc
.new_wxXmlResource
,_args
,_kwargs
)
150 self
.InitAllHandlers()
154 def wxEmptyXmlResource(*_args
,**_kwargs
):
155 val
= wxXmlResourcePtr(apply(xrcc
.new_wxEmptyXmlResource
,_args
,_kwargs
))
157 val
.InitAllHandlers()
161 class wxXmlSubclassFactoryPtr
:
162 def __init__(self
,this
):
165 def _setCallbackInfo(self
, *_args
, **_kwargs
):
166 val
= apply(xrcc
.wxXmlSubclassFactory__setCallbackInfo
,(self
,) + _args
, _kwargs
)
169 return "<C wxXmlSubclassFactory instance at %s>" % (self
.this
,)
170 class wxXmlSubclassFactory(wxXmlSubclassFactoryPtr
):
171 def __init__(self
,*_args
,**_kwargs
):
172 self
.this
= apply(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
= apply(xrcc
.wxXmlProperty_GetName
,(self
,) + _args
, _kwargs
)
186 def GetValue(self
, *_args
, **_kwargs
):
187 val
= apply(xrcc
.wxXmlProperty_GetValue
,(self
,) + _args
, _kwargs
)
189 def GetNext(self
, *_args
, **_kwargs
):
190 val
= apply(xrcc
.wxXmlProperty_GetNext
,(self
,) + _args
, _kwargs
)
191 if val
: val
= wxXmlPropertyPtr(val
)
193 def SetName(self
, *_args
, **_kwargs
):
194 val
= apply(xrcc
.wxXmlProperty_SetName
,(self
,) + _args
, _kwargs
)
196 def SetValue(self
, *_args
, **_kwargs
):
197 val
= apply(xrcc
.wxXmlProperty_SetValue
,(self
,) + _args
, _kwargs
)
199 def SetNext(self
, *_args
, **_kwargs
):
200 val
= apply(xrcc
.wxXmlProperty_SetNext
,(self
,) + _args
, _kwargs
)
203 return "<C wxXmlProperty instance at %s>" % (self
.this
,)
204 class wxXmlProperty(wxXmlPropertyPtr
):
205 def __init__(self
,*_args
,**_kwargs
):
206 self
.this
= apply(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
= apply(xrcc
.wxXmlNode_AddChild
,(self
,) + _args
, _kwargs
)
225 def InsertChild(self
, *_args
, **_kwargs
):
226 val
= apply(xrcc
.wxXmlNode_InsertChild
,(self
,) + _args
, _kwargs
)
228 def RemoveChild(self
, *_args
, **_kwargs
):
229 val
= apply(xrcc
.wxXmlNode_RemoveChild
,(self
,) + _args
, _kwargs
)
231 def AddProperty(self
, *_args
, **_kwargs
):
232 val
= apply(xrcc
.wxXmlNode_AddProperty
,(self
,) + _args
, _kwargs
)
234 def AddPropertyName(self
, *_args
, **_kwargs
):
235 val
= apply(xrcc
.wxXmlNode_AddPropertyName
,(self
,) + _args
, _kwargs
)
237 def DeleteProperty(self
, *_args
, **_kwargs
):
238 val
= apply(xrcc
.wxXmlNode_DeleteProperty
,(self
,) + _args
, _kwargs
)
240 def GetType(self
, *_args
, **_kwargs
):
241 val
= apply(xrcc
.wxXmlNode_GetType
,(self
,) + _args
, _kwargs
)
243 def GetName(self
, *_args
, **_kwargs
):
244 val
= apply(xrcc
.wxXmlNode_GetName
,(self
,) + _args
, _kwargs
)
246 def GetContent(self
, *_args
, **_kwargs
):
247 val
= apply(xrcc
.wxXmlNode_GetContent
,(self
,) + _args
, _kwargs
)
249 def GetParent(self
, *_args
, **_kwargs
):
250 val
= apply(xrcc
.wxXmlNode_GetParent
,(self
,) + _args
, _kwargs
)
251 if val
: val
= wxXmlNodePtr(val
)
253 def GetNext(self
, *_args
, **_kwargs
):
254 val
= apply(xrcc
.wxXmlNode_GetNext
,(self
,) + _args
, _kwargs
)
255 if val
: val
= wxXmlNodePtr(val
)
257 def GetChildren(self
, *_args
, **_kwargs
):
258 val
= apply(xrcc
.wxXmlNode_GetChildren
,(self
,) + _args
, _kwargs
)
259 if val
: val
= wxXmlNodePtr(val
)
261 def GetProperties(self
, *_args
, **_kwargs
):
262 val
= apply(xrcc
.wxXmlNode_GetProperties
,(self
,) + _args
, _kwargs
)
263 if val
: val
= wxXmlPropertyPtr(val
)
265 def GetPropVal(self
, *_args
, **_kwargs
):
266 val
= apply(xrcc
.wxXmlNode_GetPropVal
,(self
,) + _args
, _kwargs
)
268 def HasProp(self
, *_args
, **_kwargs
):
269 val
= apply(xrcc
.wxXmlNode_HasProp
,(self
,) + _args
, _kwargs
)
271 def SetType(self
, *_args
, **_kwargs
):
272 val
= apply(xrcc
.wxXmlNode_SetType
,(self
,) + _args
, _kwargs
)
274 def SetName(self
, *_args
, **_kwargs
):
275 val
= apply(xrcc
.wxXmlNode_SetName
,(self
,) + _args
, _kwargs
)
277 def SetContent(self
, *_args
, **_kwargs
):
278 val
= apply(xrcc
.wxXmlNode_SetContent
,(self
,) + _args
, _kwargs
)
280 def SetParent(self
, *_args
, **_kwargs
):
281 val
= apply(xrcc
.wxXmlNode_SetParent
,(self
,) + _args
, _kwargs
)
283 def SetNext(self
, *_args
, **_kwargs
):
284 val
= apply(xrcc
.wxXmlNode_SetNext
,(self
,) + _args
, _kwargs
)
286 def SetChildren(self
, *_args
, **_kwargs
):
287 val
= apply(xrcc
.wxXmlNode_SetChildren
,(self
,) + _args
, _kwargs
)
289 def SetProperties(self
, *_args
, **_kwargs
):
290 val
= apply(xrcc
.wxXmlNode_SetProperties
,(self
,) + _args
, _kwargs
)
293 return "<C wxXmlNode instance at %s>" % (self
.this
,)
294 class wxXmlNode(wxXmlNodePtr
):
295 def __init__(self
,*_args
,**_kwargs
):
296 self
.this
= apply(xrcc
.new_wxXmlNode
,_args
,_kwargs
)
301 def wxXmlNodeEasy(*_args
,**_kwargs
):
302 val
= wxXmlNodePtr(apply(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
= apply(xrcc
.wxXmlDocument_Load
,(self
,) + _args
, _kwargs
)
320 def LoadFromStream(self
, *_args
, **_kwargs
):
321 val
= apply(xrcc
.wxXmlDocument_LoadFromStream
,(self
,) + _args
, _kwargs
)
323 def Save(self
, *_args
, **_kwargs
):
324 val
= apply(xrcc
.wxXmlDocument_Save
,(self
,) + _args
, _kwargs
)
326 def SaveToStream(self
, *_args
, **_kwargs
):
327 val
= apply(xrcc
.wxXmlDocument_SaveToStream
,(self
,) + _args
, _kwargs
)
329 def IsOk(self
, *_args
, **_kwargs
):
330 val
= apply(xrcc
.wxXmlDocument_IsOk
,(self
,) + _args
, _kwargs
)
332 def GetRoot(self
, *_args
, **_kwargs
):
333 val
= apply(xrcc
.wxXmlDocument_GetRoot
,(self
,) + _args
, _kwargs
)
334 if val
: val
= wxXmlNodePtr(val
)
336 def GetVersion(self
, *_args
, **_kwargs
):
337 val
= apply(xrcc
.wxXmlDocument_GetVersion
,(self
,) + _args
, _kwargs
)
339 def GetFileEncoding(self
, *_args
, **_kwargs
):
340 val
= apply(xrcc
.wxXmlDocument_GetFileEncoding
,(self
,) + _args
, _kwargs
)
342 def SetRoot(self
, *_args
, **_kwargs
):
343 val
= apply(xrcc
.wxXmlDocument_SetRoot
,(self
,) + _args
, _kwargs
)
345 def SetVersion(self
, *_args
, **_kwargs
):
346 val
= apply(xrcc
.wxXmlDocument_SetVersion
,(self
,) + _args
, _kwargs
)
348 def SetFileEncoding(self
, *_args
, **_kwargs
):
349 val
= apply(xrcc
.wxXmlDocument_SetFileEncoding
,(self
,) + _args
, _kwargs
)
351 def GetEncoding(self
, *_args
, **_kwargs
):
352 val
= apply(xrcc
.wxXmlDocument_GetEncoding
,(self
,) + _args
, _kwargs
)
354 def SetEncoding(self
, *_args
, **_kwargs
):
355 val
= apply(xrcc
.wxXmlDocument_SetEncoding
,(self
,) + _args
, _kwargs
)
358 return "<C wxXmlDocument instance at %s>" % (self
.this
,)
359 class wxXmlDocument(wxXmlDocumentPtr
):
360 def __init__(self
,*_args
,**_kwargs
):
361 self
.this
= apply(xrcc
.new_wxXmlDocument
,_args
,_kwargs
)
366 def wxXmlDocumentFromStream(*_args
,**_kwargs
):
367 val
= wxXmlDocumentPtr(apply(xrcc
.new_wxXmlDocumentFromStream
,_args
,_kwargs
))
371 def wxEmptyXmlDocument(*_args
,**_kwargs
):
372 val
= wxXmlDocumentPtr(apply(xrcc
.new_wxEmptyXmlDocument
,_args
,_kwargs
))
377 class wxXmlResourceHandlerPtr(wxObjectPtr
):
378 def __init__(self
,this
):
381 def _setCallbackInfo(self
, *_args
, **_kwargs
):
382 val
= apply(xrcc
.wxXmlResourceHandler__setCallbackInfo
,(self
,) + _args
, _kwargs
)
384 def CreateResource(self
, *_args
, **_kwargs
):
385 val
= apply(xrcc
.wxXmlResourceHandler_CreateResource
,(self
,) + _args
, _kwargs
)
387 def SetParentResource(self
, *_args
, **_kwargs
):
388 val
= apply(xrcc
.wxXmlResourceHandler_SetParentResource
,(self
,) + _args
, _kwargs
)
390 def GetResource(self
, *_args
, **_kwargs
):
391 val
= apply(xrcc
.wxXmlResourceHandler_GetResource
,(self
,) + _args
, _kwargs
)
392 if val
: val
= wxXmlResourcePtr(val
)
394 def GetNode(self
, *_args
, **_kwargs
):
395 val
= apply(xrcc
.wxXmlResourceHandler_GetNode
,(self
,) + _args
, _kwargs
)
396 if val
: val
= wxXmlNodePtr(val
)
398 def GetClass(self
, *_args
, **_kwargs
):
399 val
= apply(xrcc
.wxXmlResourceHandler_GetClass
,(self
,) + _args
, _kwargs
)
401 def GetParent(self
, *_args
, **_kwargs
):
402 val
= apply(xrcc
.wxXmlResourceHandler_GetParent
,(self
,) + _args
, _kwargs
)
404 def GetInstance(self
, *_args
, **_kwargs
):
405 val
= apply(xrcc
.wxXmlResourceHandler_GetInstance
,(self
,) + _args
, _kwargs
)
407 def GetParentAsWindow(self
, *_args
, **_kwargs
):
408 val
= apply(xrcc
.wxXmlResourceHandler_GetParentAsWindow
,(self
,) + _args
, _kwargs
)
410 def GetInstanceAsWindow(self
, *_args
, **_kwargs
):
411 val
= apply(xrcc
.wxXmlResourceHandler_GetInstanceAsWindow
,(self
,) + _args
, _kwargs
)
413 def IsOfClass(self
, *_args
, **_kwargs
):
414 val
= apply(xrcc
.wxXmlResourceHandler_IsOfClass
,(self
,) + _args
, _kwargs
)
416 def GetNodeContent(self
, *_args
, **_kwargs
):
417 val
= apply(xrcc
.wxXmlResourceHandler_GetNodeContent
,(self
,) + _args
, _kwargs
)
419 def HasParam(self
, *_args
, **_kwargs
):
420 val
= apply(xrcc
.wxXmlResourceHandler_HasParam
,(self
,) + _args
, _kwargs
)
422 def GetParamNode(self
, *_args
, **_kwargs
):
423 val
= apply(xrcc
.wxXmlResourceHandler_GetParamNode
,(self
,) + _args
, _kwargs
)
424 if val
: val
= wxXmlNodePtr(val
)
426 def GetParamValue(self
, *_args
, **_kwargs
):
427 val
= apply(xrcc
.wxXmlResourceHandler_GetParamValue
,(self
,) + _args
, _kwargs
)
429 def AddStyle(self
, *_args
, **_kwargs
):
430 val
= apply(xrcc
.wxXmlResourceHandler_AddStyle
,(self
,) + _args
, _kwargs
)
432 def AddWindowStyles(self
, *_args
, **_kwargs
):
433 val
= apply(xrcc
.wxXmlResourceHandler_AddWindowStyles
,(self
,) + _args
, _kwargs
)
435 def GetStyle(self
, *_args
, **_kwargs
):
436 val
= apply(xrcc
.wxXmlResourceHandler_GetStyle
,(self
,) + _args
, _kwargs
)
438 def GetText(self
, *_args
, **_kwargs
):
439 val
= apply(xrcc
.wxXmlResourceHandler_GetText
,(self
,) + _args
, _kwargs
)
441 def GetID(self
, *_args
, **_kwargs
):
442 val
= apply(xrcc
.wxXmlResourceHandler_GetID
,(self
,) + _args
, _kwargs
)
444 def GetName(self
, *_args
, **_kwargs
):
445 val
= apply(xrcc
.wxXmlResourceHandler_GetName
,(self
,) + _args
, _kwargs
)
447 def GetBool(self
, *_args
, **_kwargs
):
448 val
= apply(xrcc
.wxXmlResourceHandler_GetBool
,(self
,) + _args
, _kwargs
)
450 def GetLong(self
, *_args
, **_kwargs
):
451 val
= apply(xrcc
.wxXmlResourceHandler_GetLong
,(self
,) + _args
, _kwargs
)
453 def GetColour(self
, *_args
, **_kwargs
):
454 val
= apply(xrcc
.wxXmlResourceHandler_GetColour
,(self
,) + _args
, _kwargs
)
455 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
457 def GetSize(self
, *_args
, **_kwargs
):
458 val
= apply(xrcc
.wxXmlResourceHandler_GetSize
,(self
,) + _args
, _kwargs
)
459 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
461 def GetPosition(self
, *_args
, **_kwargs
):
462 val
= apply(xrcc
.wxXmlResourceHandler_GetPosition
,(self
,) + _args
, _kwargs
)
463 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
465 def GetDimension(self
, *_args
, **_kwargs
):
466 val
= apply(xrcc
.wxXmlResourceHandler_GetDimension
,(self
,) + _args
, _kwargs
)
468 def GetBitmap(self
, *_args
, **_kwargs
):
469 val
= apply(xrcc
.wxXmlResourceHandler_GetBitmap
,(self
,) + _args
, _kwargs
)
470 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
472 def GetIcon(self
, *_args
, **_kwargs
):
473 val
= apply(xrcc
.wxXmlResourceHandler_GetIcon
,(self
,) + _args
, _kwargs
)
474 if val
: val
= wxIconPtr(val
) ; val
.thisown
= 1
476 def GetFont(self
, *_args
, **_kwargs
):
477 val
= apply(xrcc
.wxXmlResourceHandler_GetFont
,(self
,) + _args
, _kwargs
)
478 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
480 def SetupWindow(self
, *_args
, **_kwargs
):
481 val
= apply(xrcc
.wxXmlResourceHandler_SetupWindow
,(self
,) + _args
, _kwargs
)
483 def CreateChildren(self
, *_args
, **_kwargs
):
484 val
= apply(xrcc
.wxXmlResourceHandler_CreateChildren
,(self
,) + _args
, _kwargs
)
486 def CreateChildrenPrivately(self
, *_args
, **_kwargs
):
487 val
= apply(xrcc
.wxXmlResourceHandler_CreateChildrenPrivately
,(self
,) + _args
, _kwargs
)
489 def CreateResFromNode(self
, *_args
, **_kwargs
):
490 val
= apply(xrcc
.wxXmlResourceHandler_CreateResFromNode
,(self
,) + _args
, _kwargs
)
492 def GetCurFileSystem(self
, *_args
, **_kwargs
):
493 val
= apply(xrcc
.wxXmlResourceHandler_GetCurFileSystem
,(self
,) + _args
, _kwargs
)
496 return "<C wxXmlResourceHandler instance at %s>" % (self
.this
,)
497 class wxXmlResourceHandler(wxXmlResourceHandlerPtr
):
498 def __init__(self
,*_args
,**_kwargs
):
499 self
.this
= apply(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
= apply(xrcc
.wxXmlResource_Get
,_args
,_kwargs
)
516 if val
: val
= wxXmlResourcePtr(val
)
519 def wxXmlResource_Set(*_args
, **_kwargs
):
520 val
= apply(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())