]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/xrc/xrc.py
For Python 2.2 builds
[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
12from clip_dnd import *
13
14from events import *
15
16from streams import *
17
08da19d7
RD
18from utils import *
19
d56cebe7
RD
20from mdi import *
21
22from frames import *
23
24from stattool import *
25
26from controls import *
27
28from controls2 import *
29
30from windows2 import *
31
32from cmndlgs import *
33
34from windows3 import *
35
36from image import *
37
38from printfw import *
39
40from sizers import *
41
42from filesys import *
43
d56cebe7
RD
44def XMLID(str_id):
45 return wxXmlResource_GetXMLID(str_id)
46
47def XMLCTRL(window, str_id, *args):
48 return window.FindWindowById(XMLID(str_id))
49
50
51class wxXmlResourcePtr(wxObjectPtr):
52 def __init__(self,this):
53 self.this = this
54 self.thisown = 0
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)
60 return val
61 def InitAllHandlers(self, *_args, **_kwargs):
62 val = apply(xrcc.wxXmlResource_InitAllHandlers,(self,) + _args, _kwargs)
63 return val
64 def AddHandler(self, *_args, **_kwargs):
65 val = apply(xrcc.wxXmlResource_AddHandler,(self,) + _args, _kwargs)
66 return val
67 def ClearHandlers(self, *_args, **_kwargs):
68 val = apply(xrcc.wxXmlResource_ClearHandlers,(self,) + _args, _kwargs)
69 return val
70 def LoadMenu(self, *_args, **_kwargs):
71 val = apply(xrcc.wxXmlResource_LoadMenu,(self,) + _args, _kwargs)
72 return val
73 def LoadMenuBar(self, *_args, **_kwargs):
74 val = apply(xrcc.wxXmlResource_LoadMenuBar,(self,) + _args, _kwargs)
75 return val
76 def LoadToolBar(self, *_args, **_kwargs):
77 val = apply(xrcc.wxXmlResource_LoadToolBar,(self,) + _args, _kwargs)
78 return val
79 def LoadDialog(self, *_args, **_kwargs):
80 val = apply(xrcc.wxXmlResource_LoadDialog,(self,) + _args, _kwargs)
81 if val: val = wxDialogPtr(val)
82 return val
83 def LoadOnDialog(self, *_args, **_kwargs):
84 val = apply(xrcc.wxXmlResource_LoadOnDialog,(self,) + _args, _kwargs)
85 return val
86 def LoadPanel(self, *_args, **_kwargs):
87 val = apply(xrcc.wxXmlResource_LoadPanel,(self,) + _args, _kwargs)
88 if val: val = wxPanelPtr(val)
89 return val
90 def LoadOnPanel(self, *_args, **_kwargs):
91 val = apply(xrcc.wxXmlResource_LoadOnPanel,(self,) + _args, _kwargs)
92 return val
93 def LoadFrame(self, *_args, **_kwargs):
94 val = apply(xrcc.wxXmlResource_LoadFrame,(self,) + _args, _kwargs)
95 return val
96 def LoadBitmap(self, *_args, **_kwargs):
97 val = apply(xrcc.wxXmlResource_LoadBitmap,(self,) + _args, _kwargs)
98 if val: val = wxBitmapPtr(val) ; val.thisown = 1
99 return val
100 def LoadIcon(self, *_args, **_kwargs):
101 val = apply(xrcc.wxXmlResource_LoadIcon,(self,) + _args, _kwargs)
102 if val: val = wxIconPtr(val) ; val.thisown = 1
103 return val
104 def AttachUnknownControl(self, *_args, **_kwargs):
105 val = apply(xrcc.wxXmlResource_AttachUnknownControl,(self,) + _args, _kwargs)
106 return val
107 def GetVersion(self, *_args, **_kwargs):
108 val = apply(xrcc.wxXmlResource_GetVersion,(self,) + _args, _kwargs)
109 return val
110 def CompareVersion(self, *_args, **_kwargs):
111 val = apply(xrcc.wxXmlResource_CompareVersion,(self,) + _args, _kwargs)
112 return val
113 def __repr__(self):
114 return "<C wxXmlResource instance at %s>" % (self.this,)
115class wxXmlResource(wxXmlResourcePtr):
116 def __init__(self,*_args,**_kwargs):
117 self.this = apply(xrcc.new_wxXmlResourceEmpty,_args,_kwargs)
118 self.thisown = 1
119
120
121
122def wxXmlResource(*_args,**_kwargs):
123 val = wxXmlResourcePtr(apply(xrcc.new_wxXmlResource,_args,_kwargs))
124 val.thisown = 1
125 return val
126
127
128
129
130#-------------- FUNCTION WRAPPERS ------------------
131
132wxXmlResource_GetXMLID = xrcc.wxXmlResource_GetXMLID
133
134
135
136#-------------- VARIABLE WRAPPERS ------------------
137
138cvar = xrcc.cvar
139wxTheXmlResource = wxXmlResourcePtr(xrcc.cvar.wxTheXmlResource)