]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/xrc/xrc.py
1) wxHTML now outputs unrecognized entities verbosely
[wxWidgets.git] / wxPython / contrib / xrc / xrc.py
1 # This file was created automatically by SWIG.
2 import xrcc
3
4 from misc import *
5
6 from misc2 import *
7
8 from windows import *
9
10 from gdi import *
11
12 from clip_dnd import *
13
14 from events import *
15
16 from streams import *
17
18 from mdi import *
19
20 from frames import *
21
22 from stattool import *
23
24 from controls import *
25
26 from controls2 import *
27
28 from windows2 import *
29
30 from cmndlgs import *
31
32 from windows3 import *
33
34 from image import *
35
36 from printfw import *
37
38 from sizers import *
39
40 from filesys import *
41
42 from utils import *
43
44 def XMLID(str_id):
45 return wxXmlResource_GetXMLID(str_id)
46
47 def XMLCTRL(window, str_id, *args):
48 return window.FindWindowById(XMLID(str_id))
49
50
51 class 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,)
115 class wxXmlResource(wxXmlResourcePtr):
116 def __init__(self,*_args,**_kwargs):
117 self.this = apply(xrcc.new_wxXmlResourceEmpty,_args,_kwargs)
118 self.thisown = 1
119
120
121
122 def 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
132 wxXmlResource_GetXMLID = xrcc.wxXmlResource_GetXMLID
133
134
135
136 #-------------- VARIABLE WRAPPERS ------------------
137
138 cvar = xrcc.cvar
139 wxTheXmlResource = wxXmlResourcePtr(xrcc.cvar.wxTheXmlResource)