1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
24 from stattool
import *
26 from controls
import *
28 from controls2
import *
30 from windows2
import *
34 from windows3
import *
45 return wxXmlResource_GetXMLID(str_id
)
47 def XMLCTRL(window
, str_id
, *args
):
48 return window
.FindWindowById(XMLID(str_id
))
51 class wxXmlResourcePtr(wxObjectPtr
):
52 def __init__(self
,this
):
55 def __del__(self
,xrcc
=xrcc
):
56 if self
.thisown
== 1 :
57 xrcc
.delete_wxXmlResource(self
)
58 def Load(self
, *_args
, **_kwargs
):
59 val
= apply(xrcc
.wxXmlResource_Load
,(self
,) + _args
, _kwargs
)
61 def InitAllHandlers(self
, *_args
, **_kwargs
):
62 val
= apply(xrcc
.wxXmlResource_InitAllHandlers
,(self
,) + _args
, _kwargs
)
64 def AddHandler(self
, *_args
, **_kwargs
):
65 val
= apply(xrcc
.wxXmlResource_AddHandler
,(self
,) + _args
, _kwargs
)
67 def ClearHandlers(self
, *_args
, **_kwargs
):
68 val
= apply(xrcc
.wxXmlResource_ClearHandlers
,(self
,) + _args
, _kwargs
)
70 def LoadMenu(self
, *_args
, **_kwargs
):
71 val
= apply(xrcc
.wxXmlResource_LoadMenu
,(self
,) + _args
, _kwargs
)
73 def LoadMenuBar(self
, *_args
, **_kwargs
):
74 val
= apply(xrcc
.wxXmlResource_LoadMenuBar
,(self
,) + _args
, _kwargs
)
76 def LoadToolBar(self
, *_args
, **_kwargs
):
77 val
= apply(xrcc
.wxXmlResource_LoadToolBar
,(self
,) + _args
, _kwargs
)
79 def LoadDialog(self
, *_args
, **_kwargs
):
80 val
= apply(xrcc
.wxXmlResource_LoadDialog
,(self
,) + _args
, _kwargs
)
81 if val
: val
= wxDialogPtr(val
)
83 def LoadOnDialog(self
, *_args
, **_kwargs
):
84 val
= apply(xrcc
.wxXmlResource_LoadOnDialog
,(self
,) + _args
, _kwargs
)
86 def LoadPanel(self
, *_args
, **_kwargs
):
87 val
= apply(xrcc
.wxXmlResource_LoadPanel
,(self
,) + _args
, _kwargs
)
88 if val
: val
= wxPanelPtr(val
)
90 def LoadOnPanel(self
, *_args
, **_kwargs
):
91 val
= apply(xrcc
.wxXmlResource_LoadOnPanel
,(self
,) + _args
, _kwargs
)
93 def LoadFrame(self
, *_args
, **_kwargs
):
94 val
= apply(xrcc
.wxXmlResource_LoadFrame
,(self
,) + _args
, _kwargs
)
96 def LoadBitmap(self
, *_args
, **_kwargs
):
97 val
= apply(xrcc
.wxXmlResource_LoadBitmap
,(self
,) + _args
, _kwargs
)
98 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
100 def LoadIcon(self
, *_args
, **_kwargs
):
101 val
= apply(xrcc
.wxXmlResource_LoadIcon
,(self
,) + _args
, _kwargs
)
102 if val
: val
= wxIconPtr(val
) ; val
.thisown
= 1
104 def AttachUnknownControl(self
, *_args
, **_kwargs
):
105 val
= apply(xrcc
.wxXmlResource_AttachUnknownControl
,(self
,) + _args
, _kwargs
)
107 def GetVersion(self
, *_args
, **_kwargs
):
108 val
= apply(xrcc
.wxXmlResource_GetVersion
,(self
,) + _args
, _kwargs
)
110 def CompareVersion(self
, *_args
, **_kwargs
):
111 val
= apply(xrcc
.wxXmlResource_CompareVersion
,(self
,) + _args
, _kwargs
)
114 return "<C wxXmlResource instance at %s>" % (self
.this
,)
115 class wxXmlResource(wxXmlResourcePtr
):
116 def __init__(self
,*_args
,**_kwargs
):
117 self
.this
= apply(xrcc
.new_wxXmlResourceEmpty
,_args
,_kwargs
)
122 def wxXmlResource(*_args
,**_kwargs
):
123 val
= wxXmlResourcePtr(apply(xrcc
.new_wxXmlResource
,_args
,_kwargs
))
130 #-------------- FUNCTION WRAPPERS ------------------
132 wxXmlResource_GetXMLID
= xrcc
.wxXmlResource_GetXMLID
136 #-------------- VARIABLE WRAPPERS ------------------
139 wxTheXmlResource
= wxXmlResourcePtr(xrcc
.cvar
.wxTheXmlResource
)