]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/xrc/xrc.py
removed code (not necessary anymore)
[wxWidgets.git] / wxPython / contrib / xrc / xrc.py
CommitLineData
d56cebe7
RD
1# This file was created automatically by SWIG.
2import xrcc
3
4from misc import *
5
6from misc2 import *
7
8from windows import *
9
10from gdi import *
11
68bc8549
RD
12from fonts import *
13
d56cebe7
RD
14from clip_dnd import *
15
16from events import *
17
18from streams import *
19
08da19d7
RD
20from utils import *
21
d56cebe7
RD
22from mdi import *
23
24from frames import *
25
26from stattool import *
27
28from controls import *
29
30from controls2 import *
31
32from windows2 import *
33
34from cmndlgs import *
35
36from windows3 import *
37
38from image import *
39
40from printfw import *
41
42from sizers import *
43
44from filesys import *
45
c6c593e8
RD
46def XRCID(str_id):
47 return wxXmlResource_GetXRCID(str_id)
d56cebe7 48
c6c593e8
RD
49def XRCCTRL(window, str_id, *ignoreargs):
50 return window.FindWindowById(XRCID(str_id))
d56cebe7 51
c6c593e8
RD
52XMLID = XRCID
53XMLCTRL = XRCCTRL
d56cebe7
RD
54
55class wxXmlResourcePtr(wxObjectPtr):
56 def __init__(self,this):
57 self.this = this
58 self.thisown = 0
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)
64 return val
65 def InitAllHandlers(self, *_args, **_kwargs):
66 val = apply(xrcc.wxXmlResource_InitAllHandlers,(self,) + _args, _kwargs)
67 return val
68 def AddHandler(self, *_args, **_kwargs):
69 val = apply(xrcc.wxXmlResource_AddHandler,(self,) + _args, _kwargs)
70 return val
71 def ClearHandlers(self, *_args, **_kwargs):
72 val = apply(xrcc.wxXmlResource_ClearHandlers,(self,) + _args, _kwargs)
73 return val
74 def LoadMenu(self, *_args, **_kwargs):
75 val = apply(xrcc.wxXmlResource_LoadMenu,(self,) + _args, _kwargs)
76 return val
77 def LoadMenuBar(self, *_args, **_kwargs):
78 val = apply(xrcc.wxXmlResource_LoadMenuBar,(self,) + _args, _kwargs)
79 return val
80 def LoadToolBar(self, *_args, **_kwargs):
81 val = apply(xrcc.wxXmlResource_LoadToolBar,(self,) + _args, _kwargs)
82 return val
83 def LoadDialog(self, *_args, **_kwargs):
84 val = apply(xrcc.wxXmlResource_LoadDialog,(self,) + _args, _kwargs)
85 if val: val = wxDialogPtr(val)
86 return val
87 def LoadOnDialog(self, *_args, **_kwargs):
88 val = apply(xrcc.wxXmlResource_LoadOnDialog,(self,) + _args, _kwargs)
89 return val
90 def LoadPanel(self, *_args, **_kwargs):
91 val = apply(xrcc.wxXmlResource_LoadPanel,(self,) + _args, _kwargs)
92 if val: val = wxPanelPtr(val)
93 return val
94 def LoadOnPanel(self, *_args, **_kwargs):
95 val = apply(xrcc.wxXmlResource_LoadOnPanel,(self,) + _args, _kwargs)
96 return val
97 def LoadFrame(self, *_args, **_kwargs):
98 val = apply(xrcc.wxXmlResource_LoadFrame,(self,) + _args, _kwargs)
99 return val
100 def LoadBitmap(self, *_args, **_kwargs):
101 val = apply(xrcc.wxXmlResource_LoadBitmap,(self,) + _args, _kwargs)
102 if val: val = wxBitmapPtr(val) ; val.thisown = 1
103 return val
104 def LoadIcon(self, *_args, **_kwargs):
105 val = apply(xrcc.wxXmlResource_LoadIcon,(self,) + _args, _kwargs)
106 if val: val = wxIconPtr(val) ; val.thisown = 1
107 return val
108 def AttachUnknownControl(self, *_args, **_kwargs):
109 val = apply(xrcc.wxXmlResource_AttachUnknownControl,(self,) + _args, _kwargs)
110 return val
111 def GetVersion(self, *_args, **_kwargs):
112 val = apply(xrcc.wxXmlResource_GetVersion,(self,) + _args, _kwargs)
113 return val
114 def CompareVersion(self, *_args, **_kwargs):
115 val = apply(xrcc.wxXmlResource_CompareVersion,(self,) + _args, _kwargs)
116 return val
117 def __repr__(self):
118 return "<C wxXmlResource instance at %s>" % (self.this,)
119class wxXmlResource(wxXmlResourcePtr):
120 def __init__(self,*_args,**_kwargs):
121 self.this = apply(xrcc.new_wxXmlResourceEmpty,_args,_kwargs)
122 self.thisown = 1
123
124
125
126def wxXmlResource(*_args,**_kwargs):
127 val = wxXmlResourcePtr(apply(xrcc.new_wxXmlResource,_args,_kwargs))
128 val.thisown = 1
129 return val
130
131
132
133
134#-------------- FUNCTION WRAPPERS ------------------
135
c6c593e8 136wxXmlResource_GetXRCID = xrcc.wxXmlResource_GetXRCID
d56cebe7 137
ce914f73
RD
138def wxXmlResource_Get(*_args, **_kwargs):
139 val = apply(xrcc.wxXmlResource_Get,_args,_kwargs)
140 if val: val = wxXmlResourcePtr(val)
141 return val
142
143def wxXmlResource_Set(*_args, **_kwargs):
144 val = apply(xrcc.wxXmlResource_Set,_args,_kwargs)
145 if val: val = wxXmlResourcePtr(val)
146 return val
147
d56cebe7
RD
148
149
150#-------------- VARIABLE WRAPPERS ------------------
151
b5a5d647
RD
152wxXRC_USE_LOCALE = xrcc.wxXRC_USE_LOCALE
153wxXRC_NO_SUBCLASSING = xrcc.wxXRC_NO_SUBCLASSING
ce914f73
RD
154
155
156#-------------- USER INCLUDE -----------------------
157
158
159# The global was removed in favor of static accessor functions. This is for
160# backwards compatibility:
161wxTheXmlResource = wxXmlResource_Get()