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
,xrcc
=xrcc
):
60 if self
.thisown
== 1 :
61 xrcc
.delete_wxXmlResource(self
)
62 def Load(self
, *_args
, **_kwargs
):
63 val
= apply(xrcc
.wxXmlResource_Load
,(self
,) + _args
, _kwargs
)
65 def InitAllHandlers(self
, *_args
, **_kwargs
):
66 val
= apply(xrcc
.wxXmlResource_InitAllHandlers
,(self
,) + _args
, _kwargs
)
68 def AddHandler(self
, *_args
, **_kwargs
):
69 val
= apply(xrcc
.wxXmlResource_AddHandler
,(self
,) + _args
, _kwargs
)
71 def ClearHandlers(self
, *_args
, **_kwargs
):
72 val
= apply(xrcc
.wxXmlResource_ClearHandlers
,(self
,) + _args
, _kwargs
)
74 def LoadMenu(self
, *_args
, **_kwargs
):
75 val
= apply(xrcc
.wxXmlResource_LoadMenu
,(self
,) + _args
, _kwargs
)
77 def LoadMenuBar(self
, *_args
, **_kwargs
):
78 val
= apply(xrcc
.wxXmlResource_LoadMenuBar
,(self
,) + _args
, _kwargs
)
80 def LoadMenuBarOnFrame(self
, *_args
, **_kwargs
):
81 val
= apply(xrcc
.wxXmlResource_LoadMenuBarOnFrame
,(self
,) + _args
, _kwargs
)
83 def LoadToolBar(self
, *_args
, **_kwargs
):
84 val
= apply(xrcc
.wxXmlResource_LoadToolBar
,(self
,) + _args
, _kwargs
)
86 def LoadDialog(self
, *_args
, **_kwargs
):
87 val
= apply(xrcc
.wxXmlResource_LoadDialog
,(self
,) + _args
, _kwargs
)
88 if val
: val
= wxDialogPtr(val
)
90 def LoadOnDialog(self
, *_args
, **_kwargs
):
91 val
= apply(xrcc
.wxXmlResource_LoadOnDialog
,(self
,) + _args
, _kwargs
)
93 def LoadPanel(self
, *_args
, **_kwargs
):
94 val
= apply(xrcc
.wxXmlResource_LoadPanel
,(self
,) + _args
, _kwargs
)
95 if val
: val
= wxPanelPtr(val
)
97 def LoadOnPanel(self
, *_args
, **_kwargs
):
98 val
= apply(xrcc
.wxXmlResource_LoadOnPanel
,(self
,) + _args
, _kwargs
)
100 def LoadFrame(self
, *_args
, **_kwargs
):
101 val
= apply(xrcc
.wxXmlResource_LoadFrame
,(self
,) + _args
, _kwargs
)
103 def LoadBitmap(self
, *_args
, **_kwargs
):
104 val
= apply(xrcc
.wxXmlResource_LoadBitmap
,(self
,) + _args
, _kwargs
)
105 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
107 def LoadIcon(self
, *_args
, **_kwargs
):
108 val
= apply(xrcc
.wxXmlResource_LoadIcon
,(self
,) + _args
, _kwargs
)
109 if val
: val
= wxIconPtr(val
) ; val
.thisown
= 1
111 def AttachUnknownControl(self
, *_args
, **_kwargs
):
112 val
= apply(xrcc
.wxXmlResource_AttachUnknownControl
,(self
,) + _args
, _kwargs
)
114 def GetVersion(self
, *_args
, **_kwargs
):
115 val
= apply(xrcc
.wxXmlResource_GetVersion
,(self
,) + _args
, _kwargs
)
117 def CompareVersion(self
, *_args
, **_kwargs
):
118 val
= apply(xrcc
.wxXmlResource_CompareVersion
,(self
,) + _args
, _kwargs
)
121 return "<C wxXmlResource instance at %s>" % (self
.this
,)
122 class wxXmlResource(wxXmlResourcePtr
):
123 def __init__(self
,*_args
,**_kwargs
):
124 self
.this
= apply(xrcc
.new_wxXmlResourceEmpty
,_args
,_kwargs
)
129 def wxXmlResource(*_args
,**_kwargs
):
130 val
= wxXmlResourcePtr(apply(xrcc
.new_wxXmlResource
,_args
,_kwargs
))
137 #-------------- FUNCTION WRAPPERS ------------------
139 wxXmlResource_GetXRCID
= xrcc
.wxXmlResource_GetXRCID
141 def wxXmlResource_Get(*_args
, **_kwargs
):
142 val
= apply(xrcc
.wxXmlResource_Get
,_args
,_kwargs
)
143 if val
: val
= wxXmlResourcePtr(val
)
146 def wxXmlResource_Set(*_args
, **_kwargs
):
147 val
= apply(xrcc
.wxXmlResource_Set
,_args
,_kwargs
)
148 if val
: val
= wxXmlResourcePtr(val
)
153 #-------------- VARIABLE WRAPPERS ------------------
155 wxXRC_USE_LOCALE
= xrcc
.wxXRC_USE_LOCALE
156 wxXRC_NO_SUBCLASSING
= xrcc
.wxXRC_NO_SUBCLASSING
159 #-------------- USER INCLUDE -----------------------
162 # The global was removed in favor of static accessor functions. This is for
163 # backwards compatibility:
164 wxTheXmlResource
= wxXmlResource_Get()