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_GetXRCID(str_id
)
47 def XRCCTRL(window
, str_id
, *ignoreargs
):
48 return window
.FindWindowById(XRCID(str_id
))
53 class wxXmlResourcePtr(wxObjectPtr
):
54 def __init__(self
,this
):
57 def __del__(self
,xrcc
=xrcc
):
58 if self
.thisown
== 1 :
59 xrcc
.delete_wxXmlResource(self
)
60 def Load(self
, *_args
, **_kwargs
):
61 val
= apply(xrcc
.wxXmlResource_Load
,(self
,) + _args
, _kwargs
)
63 def InitAllHandlers(self
, *_args
, **_kwargs
):
64 val
= apply(xrcc
.wxXmlResource_InitAllHandlers
,(self
,) + _args
, _kwargs
)
66 def AddHandler(self
, *_args
, **_kwargs
):
67 val
= apply(xrcc
.wxXmlResource_AddHandler
,(self
,) + _args
, _kwargs
)
69 def ClearHandlers(self
, *_args
, **_kwargs
):
70 val
= apply(xrcc
.wxXmlResource_ClearHandlers
,(self
,) + _args
, _kwargs
)
72 def LoadMenu(self
, *_args
, **_kwargs
):
73 val
= apply(xrcc
.wxXmlResource_LoadMenu
,(self
,) + _args
, _kwargs
)
75 def LoadMenuBar(self
, *_args
, **_kwargs
):
76 val
= apply(xrcc
.wxXmlResource_LoadMenuBar
,(self
,) + _args
, _kwargs
)
78 def LoadToolBar(self
, *_args
, **_kwargs
):
79 val
= apply(xrcc
.wxXmlResource_LoadToolBar
,(self
,) + _args
, _kwargs
)
81 def LoadDialog(self
, *_args
, **_kwargs
):
82 val
= apply(xrcc
.wxXmlResource_LoadDialog
,(self
,) + _args
, _kwargs
)
83 if val
: val
= wxDialogPtr(val
)
85 def LoadOnDialog(self
, *_args
, **_kwargs
):
86 val
= apply(xrcc
.wxXmlResource_LoadOnDialog
,(self
,) + _args
, _kwargs
)
88 def LoadPanel(self
, *_args
, **_kwargs
):
89 val
= apply(xrcc
.wxXmlResource_LoadPanel
,(self
,) + _args
, _kwargs
)
90 if val
: val
= wxPanelPtr(val
)
92 def LoadOnPanel(self
, *_args
, **_kwargs
):
93 val
= apply(xrcc
.wxXmlResource_LoadOnPanel
,(self
,) + _args
, _kwargs
)
95 def LoadFrame(self
, *_args
, **_kwargs
):
96 val
= apply(xrcc
.wxXmlResource_LoadFrame
,(self
,) + _args
, _kwargs
)
98 def LoadBitmap(self
, *_args
, **_kwargs
):
99 val
= apply(xrcc
.wxXmlResource_LoadBitmap
,(self
,) + _args
, _kwargs
)
100 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
102 def LoadIcon(self
, *_args
, **_kwargs
):
103 val
= apply(xrcc
.wxXmlResource_LoadIcon
,(self
,) + _args
, _kwargs
)
104 if val
: val
= wxIconPtr(val
) ; val
.thisown
= 1
106 def AttachUnknownControl(self
, *_args
, **_kwargs
):
107 val
= apply(xrcc
.wxXmlResource_AttachUnknownControl
,(self
,) + _args
, _kwargs
)
109 def GetVersion(self
, *_args
, **_kwargs
):
110 val
= apply(xrcc
.wxXmlResource_GetVersion
,(self
,) + _args
, _kwargs
)
112 def CompareVersion(self
, *_args
, **_kwargs
):
113 val
= apply(xrcc
.wxXmlResource_CompareVersion
,(self
,) + _args
, _kwargs
)
116 return "<C wxXmlResource instance at %s>" % (self
.this
,)
117 class wxXmlResource(wxXmlResourcePtr
):
118 def __init__(self
,*_args
,**_kwargs
):
119 self
.this
= apply(xrcc
.new_wxXmlResourceEmpty
,_args
,_kwargs
)
124 def wxXmlResource(*_args
,**_kwargs
):
125 val
= wxXmlResourcePtr(apply(xrcc
.new_wxXmlResource
,_args
,_kwargs
))
132 #-------------- FUNCTION WRAPPERS ------------------
134 wxXmlResource_GetXRCID
= xrcc
.wxXmlResource_GetXRCID
136 def wxXmlResource_Get(*_args
, **_kwargs
):
137 val
= apply(xrcc
.wxXmlResource_Get
,_args
,_kwargs
)
138 if val
: val
= wxXmlResourcePtr(val
)
141 def wxXmlResource_Set(*_args
, **_kwargs
):
142 val
= apply(xrcc
.wxXmlResource_Set
,_args
,_kwargs
)
143 if val
: val
= wxXmlResourcePtr(val
)
148 #-------------- VARIABLE WRAPPERS ------------------
150 wxXRC_USE_LOCALE
= xrcc
.wxXRC_USE_LOCALE
151 wxXRC_NO_SUBCLASSING
= xrcc
.wxXRC_NO_SUBCLASSING
154 #-------------- USER INCLUDE -----------------------
157 # The global was removed in favor of static accessor functions. This is for
158 # backwards compatibility:
159 wxTheXmlResource
= wxXmlResource_Get()