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