]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
1 | # This file was created automatically by SWIG. |
2 | import windowsc | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from gdi import * | |
b8b8dda7 RD |
7 | import wx |
8 | ||
bb0054cd RD |
9 | def wxDLG_PNT(win, point_or_x, y=None): |
10 | if y is None: | |
11 | return win.ConvertDialogPointToPixels(point_or_x) | |
12 | else: | |
13 | return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y)) | |
b8b8dda7 | 14 | |
bb0054cd RD |
15 | def wxDLG_SZE(win, size_width, height=None): |
16 | if height is None: | |
17 | return win.ConvertDialogSizeToPixels(size_width) | |
18 | else: | |
19 | return win.ConvertDialogSizeToPixels(wxSize(size_width, height)) | |
b8b8dda7 | 20 | |
8ab979d7 RD |
21 | class wxEvtHandlerPtr : |
22 | def __init__(self,this): | |
23 | self.this = this | |
24 | self.thisown = 0 | |
1d99702e RD |
25 | def ProcessEvent(self, *_args, **_kwargs): |
26 | val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs) | |
cf694132 | 27 | return val |
2f90df85 RD |
28 | def GetEvtHandlerEnabled(self, *_args, **_kwargs): |
29 | val = apply(windowsc.wxEvtHandler_GetEvtHandlerEnabled,(self,) + _args, _kwargs) | |
30 | return val | |
31 | def SetEvtHandlerEnabled(self, *_args, **_kwargs): | |
32 | val = apply(windowsc.wxEvtHandler_SetEvtHandlerEnabled,(self,) + _args, _kwargs) | |
33 | return val | |
34 | def GetNextHandler(self, *_args, **_kwargs): | |
35 | val = apply(windowsc.wxEvtHandler_GetNextHandler,(self,) + _args, _kwargs) | |
36 | if val: val = wxEvtHandlerPtr(val) | |
37 | return val | |
38 | def GetPreviousHandler(self, *_args, **_kwargs): | |
39 | val = apply(windowsc.wxEvtHandler_GetPreviousHandler,(self,) + _args, _kwargs) | |
40 | if val: val = wxEvtHandlerPtr(val) | |
41 | return val | |
42 | def SetNextHandler(self, *_args, **_kwargs): | |
43 | val = apply(windowsc.wxEvtHandler_SetNextHandler,(self,) + _args, _kwargs) | |
44 | return val | |
45 | def SetPreviousHandler(self, *_args, **_kwargs): | |
46 | val = apply(windowsc.wxEvtHandler_SetPreviousHandler,(self,) + _args, _kwargs) | |
47 | return val | |
1d99702e RD |
48 | def Connect(self, *_args, **_kwargs): |
49 | val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs) | |
8ab979d7 RD |
50 | return val |
51 | def __repr__(self): | |
1d99702e | 52 | return "<C wxEvtHandler instance at %s>" % (self.this,) |
8ab979d7 RD |
53 | class wxEvtHandler(wxEvtHandlerPtr): |
54 | def __init__(self,this): | |
55 | self.this = this | |
56 | ||
57 | ||
58 | ||
59 | ||
2f90df85 RD |
60 | class wxValidatorPtr(wxEvtHandlerPtr): |
61 | def __init__(self,this): | |
62 | self.this = this | |
63 | self.thisown = 0 | |
64 | def Clone(self, *_args, **_kwargs): | |
65 | val = apply(windowsc.wxValidator_Clone,(self,) + _args, _kwargs) | |
66 | if val: val = wxValidatorPtr(val) | |
67 | return val | |
68 | def GetWindow(self, *_args, **_kwargs): | |
69 | val = apply(windowsc.wxValidator_GetWindow,(self,) + _args, _kwargs) | |
70 | if val: val = wxWindowPtr(val) | |
71 | return val | |
72 | def SetWindow(self, *_args, **_kwargs): | |
73 | val = apply(windowsc.wxValidator_SetWindow,(self,) + _args, _kwargs) | |
74 | return val | |
75 | def __repr__(self): | |
76 | return "<C wxValidator instance at %s>" % (self.this,) | |
77 | class wxValidator(wxValidatorPtr): | |
78 | def __init__(self,*_args,**_kwargs): | |
79 | self.this = apply(windowsc.new_wxValidator,_args,_kwargs) | |
80 | self.thisown = 1 | |
81 | ||
82 | ||
83 | ||
84 | ||
85 | class wxPyValidatorPtr(wxValidatorPtr): | |
86 | def __init__(self,this): | |
87 | self.this = this | |
88 | self.thisown = 0 | |
89 | def Destroy(self, *_args, **_kwargs): | |
90 | val = apply(windowsc.wxPyValidator_Destroy,(self,) + _args, _kwargs) | |
91 | return val | |
92 | def _setSelf(self, *_args, **_kwargs): | |
93 | val = apply(windowsc.wxPyValidator__setSelf,(self,) + _args, _kwargs) | |
94 | return val | |
95 | def __repr__(self): | |
96 | return "<C wxPyValidator instance at %s>" % (self.this,) | |
97 | class wxPyValidator(wxPyValidatorPtr): | |
98 | def __init__(self,*_args,**_kwargs): | |
99 | self.this = apply(windowsc.new_wxPyValidator,_args,_kwargs) | |
100 | self.thisown = 1 | |
101 | self._setSelf(self, 0) | |
102 | ||
103 | ||
104 | ||
105 | ||
8ab979d7 RD |
106 | class wxWindowPtr(wxEvtHandlerPtr): |
107 | def __init__(self,this): | |
108 | self.this = this | |
109 | self.thisown = 0 | |
1d99702e RD |
110 | def CaptureMouse(self, *_args, **_kwargs): |
111 | val = apply(windowsc.wxWindow_CaptureMouse,(self,) + _args, _kwargs) | |
8ab979d7 | 112 | return val |
1d99702e RD |
113 | def Center(self, *_args, **_kwargs): |
114 | val = apply(windowsc.wxWindow_Center,(self,) + _args, _kwargs) | |
8ab979d7 | 115 | return val |
1d99702e RD |
116 | def Centre(self, *_args, **_kwargs): |
117 | val = apply(windowsc.wxWindow_Centre,(self,) + _args, _kwargs) | |
8ab979d7 | 118 | return val |
1d99702e RD |
119 | def CentreOnParent(self, *_args, **_kwargs): |
120 | val = apply(windowsc.wxWindow_CentreOnParent,(self,) + _args, _kwargs) | |
bb0054cd | 121 | return val |
1d99702e RD |
122 | def CenterOnParent(self, *_args, **_kwargs): |
123 | val = apply(windowsc.wxWindow_CenterOnParent,(self,) + _args, _kwargs) | |
bb0054cd | 124 | return val |
1d99702e RD |
125 | def ClientToScreenXY(self, *_args, **_kwargs): |
126 | val = apply(windowsc.wxWindow_ClientToScreenXY,(self,) + _args, _kwargs) | |
af309447 | 127 | return val |
1d99702e RD |
128 | def ClientToScreen(self, *_args, **_kwargs): |
129 | val = apply(windowsc.wxWindow_ClientToScreen,(self,) + _args, _kwargs) | |
130 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 131 | return val |
1d99702e RD |
132 | def Close(self, *_args, **_kwargs): |
133 | val = apply(windowsc.wxWindow_Close,(self,) + _args, _kwargs) | |
8ab979d7 | 134 | return val |
1d99702e RD |
135 | def Destroy(self, *_args, **_kwargs): |
136 | val = apply(windowsc.wxWindow_Destroy,(self,) + _args, _kwargs) | |
8ab979d7 | 137 | return val |
1d99702e RD |
138 | def DestroyChildren(self, *_args, **_kwargs): |
139 | val = apply(windowsc.wxWindow_DestroyChildren,(self,) + _args, _kwargs) | |
8ab979d7 | 140 | return val |
1d99702e RD |
141 | def DragAcceptFiles(self, *_args, **_kwargs): |
142 | val = apply(windowsc.wxWindow_DragAcceptFiles,(self,) + _args, _kwargs) | |
8ab979d7 | 143 | return val |
1d99702e RD |
144 | def Enable(self, *_args, **_kwargs): |
145 | val = apply(windowsc.wxWindow_Enable,(self,) + _args, _kwargs) | |
8ab979d7 | 146 | return val |
1d99702e RD |
147 | def FindWindowById(self, *_args, **_kwargs): |
148 | val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs) | |
149 | if val: val = wxWindowPtr(val) | |
8ab979d7 | 150 | return val |
1d99702e RD |
151 | def FindWindowByName(self, *_args, **_kwargs): |
152 | val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs) | |
153 | if val: val = wxWindowPtr(val) | |
8ab979d7 | 154 | return val |
1d99702e RD |
155 | def Fit(self, *_args, **_kwargs): |
156 | val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs) | |
8ab979d7 | 157 | return val |
1d99702e RD |
158 | def GetBackgroundColour(self, *_args, **_kwargs): |
159 | val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs) | |
160 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
8ab979d7 | 161 | return val |
d426c97e RD |
162 | def GetChildren(self, *_args, **_kwargs): |
163 | val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs) | |
164 | return val | |
1d99702e RD |
165 | def GetCharHeight(self, *_args, **_kwargs): |
166 | val = apply(windowsc.wxWindow_GetCharHeight,(self,) + _args, _kwargs) | |
8ab979d7 | 167 | return val |
1d99702e RD |
168 | def GetCharWidth(self, *_args, **_kwargs): |
169 | val = apply(windowsc.wxWindow_GetCharWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 170 | return val |
1d99702e RD |
171 | def GetClientSizeTuple(self, *_args, **_kwargs): |
172 | val = apply(windowsc.wxWindow_GetClientSizeTuple,(self,) + _args, _kwargs) | |
b8b8dda7 | 173 | return val |
1d99702e RD |
174 | def GetClientSize(self, *_args, **_kwargs): |
175 | val = apply(windowsc.wxWindow_GetClientSize,(self,) + _args, _kwargs) | |
176 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
8ab979d7 | 177 | return val |
1d99702e RD |
178 | def GetConstraints(self, *_args, **_kwargs): |
179 | val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs) | |
180 | if val: val = wxLayoutConstraintsPtr(val) | |
8ab979d7 | 181 | return val |
1afc06c2 RD |
182 | def GetEventHandler(self, *_args, **_kwargs): |
183 | val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs) | |
184 | if val: val = wxEvtHandlerPtr(val) | |
185 | return val | |
1d99702e RD |
186 | def GetFont(self, *_args, **_kwargs): |
187 | val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs) | |
188 | if val: val = wxFontPtr(val) | |
8ab979d7 | 189 | return val |
1d99702e RD |
190 | def GetForegroundColour(self, *_args, **_kwargs): |
191 | val = apply(windowsc.wxWindow_GetForegroundColour,(self,) + _args, _kwargs) | |
192 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
8ab979d7 | 193 | return val |
1d99702e RD |
194 | def GetGrandParent(self, *_args, **_kwargs): |
195 | val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs) | |
196 | if val: val = wxWindowPtr(val) | |
8ab979d7 | 197 | return val |
2abc0a0f RD |
198 | def GetHandle(self, *_args, **_kwargs): |
199 | val = apply(windowsc.wxWindow_GetHandle,(self,) + _args, _kwargs) | |
200 | return val | |
1d99702e RD |
201 | def GetId(self, *_args, **_kwargs): |
202 | val = apply(windowsc.wxWindow_GetId,(self,) + _args, _kwargs) | |
8ab979d7 | 203 | return val |
1d99702e RD |
204 | def GetLabel(self, *_args, **_kwargs): |
205 | val = apply(windowsc.wxWindow_GetLabel,(self,) + _args, _kwargs) | |
8ab979d7 | 206 | return val |
1d99702e RD |
207 | def SetLabel(self, *_args, **_kwargs): |
208 | val = apply(windowsc.wxWindow_SetLabel,(self,) + _args, _kwargs) | |
bb0054cd | 209 | return val |
1d99702e RD |
210 | def GetName(self, *_args, **_kwargs): |
211 | val = apply(windowsc.wxWindow_GetName,(self,) + _args, _kwargs) | |
8ab979d7 | 212 | return val |
1d99702e RD |
213 | def GetParent(self, *_args, **_kwargs): |
214 | val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs) | |
215 | if val: val = wxWindowPtr(val) | |
8ab979d7 | 216 | return val |
1d99702e RD |
217 | def GetPositionTuple(self, *_args, **_kwargs): |
218 | val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs) | |
b8b8dda7 | 219 | return val |
1d99702e RD |
220 | def GetPosition(self, *_args, **_kwargs): |
221 | val = apply(windowsc.wxWindow_GetPosition,(self,) + _args, _kwargs) | |
222 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
b8b8dda7 | 223 | return val |
1d99702e RD |
224 | def GetRect(self, *_args, **_kwargs): |
225 | val = apply(windowsc.wxWindow_GetRect,(self,) + _args, _kwargs) | |
226 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
b8b8dda7 | 227 | return val |
1d99702e RD |
228 | def GetScrollThumb(self, *_args, **_kwargs): |
229 | val = apply(windowsc.wxWindow_GetScrollThumb,(self,) + _args, _kwargs) | |
8ab979d7 | 230 | return val |
1d99702e RD |
231 | def GetScrollPos(self, *_args, **_kwargs): |
232 | val = apply(windowsc.wxWindow_GetScrollPos,(self,) + _args, _kwargs) | |
8ab979d7 | 233 | return val |
1d99702e RD |
234 | def GetScrollRange(self, *_args, **_kwargs): |
235 | val = apply(windowsc.wxWindow_GetScrollRange,(self,) + _args, _kwargs) | |
8ab979d7 | 236 | return val |
1d99702e RD |
237 | def GetSizeTuple(self, *_args, **_kwargs): |
238 | val = apply(windowsc.wxWindow_GetSizeTuple,(self,) + _args, _kwargs) | |
b8b8dda7 | 239 | return val |
1d99702e RD |
240 | def GetSize(self, *_args, **_kwargs): |
241 | val = apply(windowsc.wxWindow_GetSize,(self,) + _args, _kwargs) | |
242 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
8ab979d7 | 243 | return val |
1d99702e RD |
244 | def GetTextExtent(self, *_args, **_kwargs): |
245 | val = apply(windowsc.wxWindow_GetTextExtent,(self,) + _args, _kwargs) | |
8ab979d7 | 246 | return val |
1d99702e RD |
247 | def GetFullTextExtent(self, *_args, **_kwargs): |
248 | val = apply(windowsc.wxWindow_GetFullTextExtent,(self,) + _args, _kwargs) | |
af309447 | 249 | return val |
1d99702e RD |
250 | def GetTitle(self, *_args, **_kwargs): |
251 | val = apply(windowsc.wxWindow_GetTitle,(self,) + _args, _kwargs) | |
8ab979d7 | 252 | return val |
1d99702e RD |
253 | def GetUpdateRegion(self, *_args, **_kwargs): |
254 | val = apply(windowsc.wxWindow_GetUpdateRegion,(self,) + _args, _kwargs) | |
255 | if val: val = wxRegionPtr(val) ; val.thisown = 1 | |
8bf5d46e | 256 | return val |
1d99702e RD |
257 | def GetWindowStyleFlag(self, *_args, **_kwargs): |
258 | val = apply(windowsc.wxWindow_GetWindowStyleFlag,(self,) + _args, _kwargs) | |
8ab979d7 | 259 | return val |
1d99702e RD |
260 | def Hide(self, *_args, **_kwargs): |
261 | val = apply(windowsc.wxWindow_Hide,(self,) + _args, _kwargs) | |
bb0054cd | 262 | return val |
1d99702e RD |
263 | def InitDialog(self, *_args, **_kwargs): |
264 | val = apply(windowsc.wxWindow_InitDialog,(self,) + _args, _kwargs) | |
8ab979d7 | 265 | return val |
1d99702e RD |
266 | def IsEnabled(self, *_args, **_kwargs): |
267 | val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs) | |
8ab979d7 | 268 | return val |
1d99702e RD |
269 | def IsRetained(self, *_args, **_kwargs): |
270 | val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs) | |
8ab979d7 | 271 | return val |
1d99702e RD |
272 | def IsShown(self, *_args, **_kwargs): |
273 | val = apply(windowsc.wxWindow_IsShown,(self,) + _args, _kwargs) | |
8ab979d7 | 274 | return val |
1d99702e RD |
275 | def IsTopLevel(self, *_args, **_kwargs): |
276 | val = apply(windowsc.wxWindow_IsTopLevel,(self,) + _args, _kwargs) | |
bb0054cd | 277 | return val |
1d99702e RD |
278 | def Layout(self, *_args, **_kwargs): |
279 | val = apply(windowsc.wxWindow_Layout,(self,) + _args, _kwargs) | |
8ab979d7 | 280 | return val |
1d99702e RD |
281 | def LoadFromResource(self, *_args, **_kwargs): |
282 | val = apply(windowsc.wxWindow_LoadFromResource,(self,) + _args, _kwargs) | |
8ab979d7 | 283 | return val |
1d99702e RD |
284 | def Lower(self, *_args, **_kwargs): |
285 | val = apply(windowsc.wxWindow_Lower,(self,) + _args, _kwargs) | |
8ab979d7 | 286 | return val |
1d99702e RD |
287 | def MakeModal(self, *_args, **_kwargs): |
288 | val = apply(windowsc.wxWindow_MakeModal,(self,) + _args, _kwargs) | |
8ab979d7 | 289 | return val |
1d99702e RD |
290 | def MoveXY(self, *_args, **_kwargs): |
291 | val = apply(windowsc.wxWindow_MoveXY,(self,) + _args, _kwargs) | |
af309447 | 292 | return val |
1d99702e RD |
293 | def Move(self, *_args, **_kwargs): |
294 | val = apply(windowsc.wxWindow_Move,(self,) + _args, _kwargs) | |
8ab979d7 | 295 | return val |
1afc06c2 RD |
296 | def PopEventHandler(self, *_args, **_kwargs): |
297 | val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs) | |
298 | if val: val = wxEvtHandlerPtr(val) | |
299 | return val | |
300 | def PushEventHandler(self, *_args, **_kwargs): | |
301 | val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs) | |
302 | return val | |
1d99702e RD |
303 | def PopupMenuXY(self, *_args, **_kwargs): |
304 | val = apply(windowsc.wxWindow_PopupMenuXY,(self,) + _args, _kwargs) | |
8bf5d46e | 305 | return val |
1d99702e RD |
306 | def PopupMenu(self, *_args, **_kwargs): |
307 | val = apply(windowsc.wxWindow_PopupMenu,(self,) + _args, _kwargs) | |
8ab979d7 | 308 | return val |
1d99702e RD |
309 | def Raise(self, *_args, **_kwargs): |
310 | val = apply(windowsc.wxWindow_Raise,(self,) + _args, _kwargs) | |
8ab979d7 | 311 | return val |
1d99702e RD |
312 | def Refresh(self, *_args, **_kwargs): |
313 | val = apply(windowsc.wxWindow_Refresh,(self,) + _args, _kwargs) | |
8ab979d7 | 314 | return val |
1d99702e RD |
315 | def ReleaseMouse(self, *_args, **_kwargs): |
316 | val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs) | |
8ab979d7 | 317 | return val |
1d99702e RD |
318 | def Reparent(self, *_args, **_kwargs): |
319 | val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs) | |
bb0054cd | 320 | return val |
1d99702e RD |
321 | def ScreenToClientXY(self, *_args, **_kwargs): |
322 | val = apply(windowsc.wxWindow_ScreenToClientXY,(self,) + _args, _kwargs) | |
af309447 | 323 | return val |
1d99702e RD |
324 | def ScreenToClient(self, *_args, **_kwargs): |
325 | val = apply(windowsc.wxWindow_ScreenToClient,(self,) + _args, _kwargs) | |
326 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 327 | return val |
1d99702e RD |
328 | def ScrollWindow(self, *_args, **_kwargs): |
329 | val = apply(windowsc.wxWindow_ScrollWindow,(self,) + _args, _kwargs) | |
8ab979d7 | 330 | return val |
1d99702e RD |
331 | def SetAcceleratorTable(self, *_args, **_kwargs): |
332 | val = apply(windowsc.wxWindow_SetAcceleratorTable,(self,) + _args, _kwargs) | |
b8b8dda7 | 333 | return val |
1d99702e RD |
334 | def SetAutoLayout(self, *_args, **_kwargs): |
335 | val = apply(windowsc.wxWindow_SetAutoLayout,(self,) + _args, _kwargs) | |
8ab979d7 | 336 | return val |
9d8bd15f RD |
337 | def GetAutoLayout(self, *_args, **_kwargs): |
338 | val = apply(windowsc.wxWindow_GetAutoLayout,(self,) + _args, _kwargs) | |
339 | return val | |
1d99702e RD |
340 | def SetBackgroundColour(self, *_args, **_kwargs): |
341 | val = apply(windowsc.wxWindow_SetBackgroundColour,(self,) + _args, _kwargs) | |
8ab979d7 | 342 | return val |
1d99702e RD |
343 | def SetConstraints(self, *_args, **_kwargs): |
344 | val = apply(windowsc.wxWindow_SetConstraints,(self,) + _args, _kwargs) | |
8ab979d7 | 345 | return val |
2f90df85 RD |
346 | def UnsetConstraints(self, *_args, **_kwargs): |
347 | val = apply(windowsc.wxWindow_UnsetConstraints,(self,) + _args, _kwargs) | |
348 | return val | |
1d99702e RD |
349 | def SetFocus(self, *_args, **_kwargs): |
350 | val = apply(windowsc.wxWindow_SetFocus,(self,) + _args, _kwargs) | |
8ab979d7 | 351 | return val |
2f90df85 RD |
352 | def AcceptsFocus(self, *_args, **_kwargs): |
353 | val = apply(windowsc.wxWindow_AcceptsFocus,(self,) + _args, _kwargs) | |
354 | return val | |
1d99702e RD |
355 | def SetFont(self, *_args, **_kwargs): |
356 | val = apply(windowsc.wxWindow_SetFont,(self,) + _args, _kwargs) | |
8ab979d7 | 357 | return val |
1d99702e RD |
358 | def SetForegroundColour(self, *_args, **_kwargs): |
359 | val = apply(windowsc.wxWindow_SetForegroundColour,(self,) + _args, _kwargs) | |
8ab979d7 | 360 | return val |
1d99702e RD |
361 | def SetId(self, *_args, **_kwargs): |
362 | val = apply(windowsc.wxWindow_SetId,(self,) + _args, _kwargs) | |
8ab979d7 | 363 | return val |
1d99702e RD |
364 | def SetName(self, *_args, **_kwargs): |
365 | val = apply(windowsc.wxWindow_SetName,(self,) + _args, _kwargs) | |
8ab979d7 | 366 | return val |
1d99702e RD |
367 | def SetScrollbar(self, *_args, **_kwargs): |
368 | val = apply(windowsc.wxWindow_SetScrollbar,(self,) + _args, _kwargs) | |
8ab979d7 | 369 | return val |
1d99702e RD |
370 | def SetScrollPos(self, *_args, **_kwargs): |
371 | val = apply(windowsc.wxWindow_SetScrollPos,(self,) + _args, _kwargs) | |
8ab979d7 | 372 | return val |
1d99702e RD |
373 | def SetDimensions(self, *_args, **_kwargs): |
374 | val = apply(windowsc.wxWindow_SetDimensions,(self,) + _args, _kwargs) | |
8ab979d7 | 375 | return val |
1d99702e RD |
376 | def SetSize(self, *_args, **_kwargs): |
377 | val = apply(windowsc.wxWindow_SetSize,(self,) + _args, _kwargs) | |
8ab979d7 | 378 | return val |
1d99702e RD |
379 | def SetPosition(self, *_args, **_kwargs): |
380 | val = apply(windowsc.wxWindow_SetPosition,(self,) + _args, _kwargs) | |
8ab979d7 | 381 | return val |
1d99702e RD |
382 | def SetSizeHints(self, *_args, **_kwargs): |
383 | val = apply(windowsc.wxWindow_SetSizeHints,(self,) + _args, _kwargs) | |
8ab979d7 | 384 | return val |
1d99702e RD |
385 | def SetClientSizeWH(self, *_args, **_kwargs): |
386 | val = apply(windowsc.wxWindow_SetClientSizeWH,(self,) + _args, _kwargs) | |
af309447 | 387 | return val |
1d99702e RD |
388 | def SetClientSize(self, *_args, **_kwargs): |
389 | val = apply(windowsc.wxWindow_SetClientSize,(self,) + _args, _kwargs) | |
8ab979d7 | 390 | return val |
1d99702e RD |
391 | def SetCursor(self, *_args, **_kwargs): |
392 | val = apply(windowsc.wxWindow_SetCursor,(self,) + _args, _kwargs) | |
8ab979d7 | 393 | return val |
1afc06c2 RD |
394 | def SetEventHandler(self, *_args, **_kwargs): |
395 | val = apply(windowsc.wxWindow_SetEventHandler,(self,) + _args, _kwargs) | |
396 | return val | |
1d99702e RD |
397 | def SetTitle(self, *_args, **_kwargs): |
398 | val = apply(windowsc.wxWindow_SetTitle,(self,) + _args, _kwargs) | |
8ab979d7 | 399 | return val |
1d99702e RD |
400 | def Show(self, *_args, **_kwargs): |
401 | val = apply(windowsc.wxWindow_Show,(self,) + _args, _kwargs) | |
8ab979d7 | 402 | return val |
1d99702e RD |
403 | def TransferDataFromWindow(self, *_args, **_kwargs): |
404 | val = apply(windowsc.wxWindow_TransferDataFromWindow,(self,) + _args, _kwargs) | |
8ab979d7 | 405 | return val |
1d99702e RD |
406 | def TransferDataToWindow(self, *_args, **_kwargs): |
407 | val = apply(windowsc.wxWindow_TransferDataToWindow,(self,) + _args, _kwargs) | |
8ab979d7 | 408 | return val |
1d99702e RD |
409 | def Validate(self, *_args, **_kwargs): |
410 | val = apply(windowsc.wxWindow_Validate,(self,) + _args, _kwargs) | |
8ab979d7 | 411 | return val |
1d99702e RD |
412 | def WarpPointer(self, *_args, **_kwargs): |
413 | val = apply(windowsc.wxWindow_WarpPointer,(self,) + _args, _kwargs) | |
8ab979d7 | 414 | return val |
1d99702e RD |
415 | def ConvertDialogPointToPixels(self, *_args, **_kwargs): |
416 | val = apply(windowsc.wxWindow_ConvertDialogPointToPixels,(self,) + _args, _kwargs) | |
417 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
b8b8dda7 | 418 | return val |
1d99702e RD |
419 | def ConvertDialogSizeToPixels(self, *_args, **_kwargs): |
420 | val = apply(windowsc.wxWindow_ConvertDialogSizeToPixels,(self,) + _args, _kwargs) | |
421 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
b8b8dda7 | 422 | return val |
1d99702e RD |
423 | def DLG_PNT(self, *_args, **_kwargs): |
424 | val = apply(windowsc.wxWindow_DLG_PNT,(self,) + _args, _kwargs) | |
425 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
cf694132 | 426 | return val |
1d99702e RD |
427 | def DLG_SZE(self, *_args, **_kwargs): |
428 | val = apply(windowsc.wxWindow_DLG_SZE,(self,) + _args, _kwargs) | |
429 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
cf694132 | 430 | return val |
1d99702e RD |
431 | def ConvertPixelPointToDialog(self, *_args, **_kwargs): |
432 | val = apply(windowsc.wxWindow_ConvertPixelPointToDialog,(self,) + _args, _kwargs) | |
433 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
b8b8dda7 | 434 | return val |
1d99702e RD |
435 | def ConvertPixelSizeToDialog(self, *_args, **_kwargs): |
436 | val = apply(windowsc.wxWindow_ConvertPixelSizeToDialog,(self,) + _args, _kwargs) | |
437 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
b8b8dda7 | 438 | return val |
1d99702e RD |
439 | def SetToolTipString(self, *_args, **_kwargs): |
440 | val = apply(windowsc.wxWindow_SetToolTipString,(self,) + _args, _kwargs) | |
af309447 | 441 | return val |
1d99702e RD |
442 | def SetToolTip(self, *_args, **_kwargs): |
443 | val = apply(windowsc.wxWindow_SetToolTip,(self,) + _args, _kwargs) | |
af309447 | 444 | return val |
1d99702e RD |
445 | def GetToolTip(self, *_args, **_kwargs): |
446 | val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs) | |
447 | if val: val = wxToolTipPtr(val) | |
af309447 | 448 | return val |
2f90df85 RD |
449 | def SetSizer(self, *_args, **_kwargs): |
450 | val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs) | |
451 | return val | |
452 | def GetValidator(self, *_args, **_kwargs): | |
453 | val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs) | |
454 | if val: val = wxValidatorPtr(val) | |
455 | return val | |
456 | def SetValidator(self, *_args, **_kwargs): | |
457 | val = apply(windowsc.wxWindow_SetValidator,(self,) + _args, _kwargs) | |
458 | return val | |
8ab979d7 | 459 | def __repr__(self): |
1d99702e | 460 | return "<C wxWindow instance at %s>" % (self.this,) |
8ab979d7 | 461 | class wxWindow(wxWindowPtr): |
1d99702e RD |
462 | def __init__(self,*_args,**_kwargs): |
463 | self.this = apply(windowsc.new_wxWindow,_args,_kwargs) | |
8ab979d7 | 464 | self.thisown = 1 |
b8b8dda7 | 465 | wx._StdWindowCallbacks(self) |
8ab979d7 RD |
466 | |
467 | ||
468 | ||
469 | ||
470 | class wxPanelPtr(wxWindowPtr): | |
471 | def __init__(self,this): | |
472 | self.this = this | |
473 | self.thisown = 0 | |
1d99702e RD |
474 | def InitDialog(self, *_args, **_kwargs): |
475 | val = apply(windowsc.wxPanel_InitDialog,(self,) + _args, _kwargs) | |
8ab979d7 | 476 | return val |
1d99702e RD |
477 | def GetDefaultItem(self, *_args, **_kwargs): |
478 | val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs) | |
479 | if val: val = wxButtonPtr(val) | |
bb0054cd | 480 | return val |
1d99702e RD |
481 | def SetDefaultItem(self, *_args, **_kwargs): |
482 | val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs) | |
bb0054cd | 483 | return val |
8ab979d7 | 484 | def __repr__(self): |
1d99702e | 485 | return "<C wxPanel instance at %s>" % (self.this,) |
bb0054cd RD |
486 | |
487 | def GetDefaultItem(self): | |
488 | import controls | |
489 | val = windowsc.wxPanel_GetDefaultItem(self.this) | |
490 | val = controls.wxButtonPtr(val) | |
491 | return val | |
492 | ||
8ab979d7 | 493 | class wxPanel(wxPanelPtr): |
1d99702e RD |
494 | def __init__(self,*_args,**_kwargs): |
495 | self.this = apply(windowsc.new_wxPanel,_args,_kwargs) | |
8ab979d7 | 496 | self.thisown = 1 |
b8b8dda7 | 497 | wx._StdWindowCallbacks(self) |
8ab979d7 RD |
498 | |
499 | ||
500 | ||
501 | ||
502 | class wxDialogPtr(wxPanelPtr): | |
503 | def __init__(self,this): | |
504 | self.this = this | |
505 | self.thisown = 0 | |
1d99702e RD |
506 | def Centre(self, *_args, **_kwargs): |
507 | val = apply(windowsc.wxDialog_Centre,(self,) + _args, _kwargs) | |
8ab979d7 | 508 | return val |
1d99702e RD |
509 | def EndModal(self, *_args, **_kwargs): |
510 | val = apply(windowsc.wxDialog_EndModal,(self,) + _args, _kwargs) | |
8ab979d7 | 511 | return val |
1d99702e RD |
512 | def GetTitle(self, *_args, **_kwargs): |
513 | val = apply(windowsc.wxDialog_GetTitle,(self,) + _args, _kwargs) | |
8ab979d7 | 514 | return val |
1d99702e RD |
515 | def Iconize(self, *_args, **_kwargs): |
516 | val = apply(windowsc.wxDialog_Iconize,(self,) + _args, _kwargs) | |
8ab979d7 | 517 | return val |
1d99702e RD |
518 | def IsIconized(self, *_args, **_kwargs): |
519 | val = apply(windowsc.wxDialog_IsIconized,(self,) + _args, _kwargs) | |
8ab979d7 | 520 | return val |
1d99702e RD |
521 | def SetModal(self, *_args, **_kwargs): |
522 | val = apply(windowsc.wxDialog_SetModal,(self,) + _args, _kwargs) | |
8ab979d7 | 523 | return val |
1d99702e RD |
524 | def IsModal(self, *_args, **_kwargs): |
525 | val = apply(windowsc.wxDialog_IsModal,(self,) + _args, _kwargs) | |
8ab979d7 | 526 | return val |
1d99702e RD |
527 | def SetTitle(self, *_args, **_kwargs): |
528 | val = apply(windowsc.wxDialog_SetTitle,(self,) + _args, _kwargs) | |
8ab979d7 | 529 | return val |
1d99702e RD |
530 | def Show(self, *_args, **_kwargs): |
531 | val = apply(windowsc.wxDialog_Show,(self,) + _args, _kwargs) | |
8ab979d7 | 532 | return val |
1d99702e RD |
533 | def ShowModal(self, *_args, **_kwargs): |
534 | val = apply(windowsc.wxDialog_ShowModal,(self,) + _args, _kwargs) | |
8ab979d7 | 535 | return val |
1d99702e RD |
536 | def GetReturnCode(self, *_args, **_kwargs): |
537 | val = apply(windowsc.wxDialog_GetReturnCode,(self,) + _args, _kwargs) | |
bb0054cd | 538 | return val |
1d99702e RD |
539 | def SetReturnCode(self, *_args, **_kwargs): |
540 | val = apply(windowsc.wxDialog_SetReturnCode,(self,) + _args, _kwargs) | |
bb0054cd | 541 | return val |
8ab979d7 | 542 | def __repr__(self): |
1d99702e | 543 | return "<C wxDialog instance at %s>" % (self.this,) |
8ab979d7 | 544 | class wxDialog(wxDialogPtr): |
1d99702e RD |
545 | def __init__(self,*_args,**_kwargs): |
546 | self.this = apply(windowsc.new_wxDialog,_args,_kwargs) | |
8ab979d7 | 547 | self.thisown = 1 |
b8b8dda7 | 548 | wx._StdDialogCallbacks(self) |
8ab979d7 RD |
549 | |
550 | ||
551 | ||
552 | ||
bb0054cd | 553 | class wxScrolledWindowPtr(wxPanelPtr): |
8ab979d7 RD |
554 | def __init__(self,this): |
555 | self.this = this | |
556 | self.thisown = 0 | |
1d99702e RD |
557 | def EnableScrolling(self, *_args, **_kwargs): |
558 | val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs) | |
8ab979d7 | 559 | return val |
1d99702e RD |
560 | def GetScrollPixelsPerUnit(self, *_args, **_kwargs): |
561 | val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs) | |
8ab979d7 | 562 | return val |
1d99702e RD |
563 | def GetVirtualSize(self, *_args, **_kwargs): |
564 | val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs) | |
8ab979d7 | 565 | return val |
1d99702e RD |
566 | def IsRetained(self, *_args, **_kwargs): |
567 | val = apply(windowsc.wxScrolledWindow_IsRetained,(self,) + _args, _kwargs) | |
8ab979d7 | 568 | return val |
1d99702e RD |
569 | def PrepareDC(self, *_args, **_kwargs): |
570 | val = apply(windowsc.wxScrolledWindow_PrepareDC,(self,) + _args, _kwargs) | |
8ab979d7 | 571 | return val |
1d99702e RD |
572 | def Scroll(self, *_args, **_kwargs): |
573 | val = apply(windowsc.wxScrolledWindow_Scroll,(self,) + _args, _kwargs) | |
8ab979d7 | 574 | return val |
1d99702e RD |
575 | def SetScrollbars(self, *_args, **_kwargs): |
576 | val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs) | |
8ab979d7 | 577 | return val |
1d99702e RD |
578 | def ViewStart(self, *_args, **_kwargs): |
579 | val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs) | |
8ab979d7 | 580 | return val |
9d8bd15f RD |
581 | def CalcScrolledPosition(self, *_args, **_kwargs): |
582 | val = apply(windowsc.wxScrolledWindow_CalcScrolledPosition,(self,) + _args, _kwargs) | |
583 | return val | |
584 | def CalcUnscrolledPosition(self, *_args, **_kwargs): | |
585 | val = apply(windowsc.wxScrolledWindow_CalcUnscrolledPosition,(self,) + _args, _kwargs) | |
586 | return val | |
8ab979d7 | 587 | def __repr__(self): |
1d99702e | 588 | return "<C wxScrolledWindow instance at %s>" % (self.this,) |
8ab979d7 | 589 | class wxScrolledWindow(wxScrolledWindowPtr): |
1d99702e RD |
590 | def __init__(self,*_args,**_kwargs): |
591 | self.this = apply(windowsc.new_wxScrolledWindow,_args,_kwargs) | |
8ab979d7 | 592 | self.thisown = 1 |
b8b8dda7 RD |
593 | wx._StdWindowCallbacks(self) |
594 | wx._StdOnScrollCallbacks(self) | |
8ab979d7 RD |
595 | |
596 | ||
597 | ||
598 | ||
599 | class wxMenuPtr(wxEvtHandlerPtr): | |
600 | def __init__(self,this): | |
601 | self.this = this | |
602 | self.thisown = 0 | |
1d99702e RD |
603 | def Append(self, *_args, **_kwargs): |
604 | val = apply(windowsc.wxMenu_Append,(self,) + _args, _kwargs) | |
8ab979d7 | 605 | return val |
1d99702e RD |
606 | def AppendMenu(self, *_args, **_kwargs): |
607 | val = apply(windowsc.wxMenu_AppendMenu,(self,) + _args, _kwargs) | |
8ab979d7 | 608 | return val |
1d99702e RD |
609 | def AppendItem(self, *_args, **_kwargs): |
610 | val = apply(windowsc.wxMenu_AppendItem,(self,) + _args, _kwargs) | |
af309447 | 611 | return val |
1d99702e RD |
612 | def AppendSeparator(self, *_args, **_kwargs): |
613 | val = apply(windowsc.wxMenu_AppendSeparator,(self,) + _args, _kwargs) | |
8ab979d7 | 614 | return val |
1d99702e RD |
615 | def Break(self, *_args, **_kwargs): |
616 | val = apply(windowsc.wxMenu_Break,(self,) + _args, _kwargs) | |
8ab979d7 | 617 | return val |
1d99702e RD |
618 | def Check(self, *_args, **_kwargs): |
619 | val = apply(windowsc.wxMenu_Check,(self,) + _args, _kwargs) | |
8ab979d7 | 620 | return val |
1d99702e RD |
621 | def Enable(self, *_args, **_kwargs): |
622 | val = apply(windowsc.wxMenu_Enable,(self,) + _args, _kwargs) | |
8ab979d7 | 623 | return val |
1d99702e RD |
624 | def FindItem(self, *_args, **_kwargs): |
625 | val = apply(windowsc.wxMenu_FindItem,(self,) + _args, _kwargs) | |
8ab979d7 | 626 | return val |
1d99702e RD |
627 | def GetTitle(self, *_args, **_kwargs): |
628 | val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs) | |
8ab979d7 | 629 | return val |
1d99702e RD |
630 | def SetTitle(self, *_args, **_kwargs): |
631 | val = apply(windowsc.wxMenu_SetTitle,(self,) + _args, _kwargs) | |
8ab979d7 | 632 | return val |
1d99702e RD |
633 | def FindItemForId(self, *_args, **_kwargs): |
634 | val = apply(windowsc.wxMenu_FindItemForId,(self,) + _args, _kwargs) | |
635 | if val: val = wxMenuItemPtr(val) | |
8ab979d7 | 636 | return val |
1d99702e RD |
637 | def GetHelpString(self, *_args, **_kwargs): |
638 | val = apply(windowsc.wxMenu_GetHelpString,(self,) + _args, _kwargs) | |
8ab979d7 | 639 | return val |
1d99702e RD |
640 | def GetLabel(self, *_args, **_kwargs): |
641 | val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs) | |
8ab979d7 | 642 | return val |
1d99702e RD |
643 | def SetHelpString(self, *_args, **_kwargs): |
644 | val = apply(windowsc.wxMenu_SetHelpString,(self,) + _args, _kwargs) | |
8ab979d7 | 645 | return val |
1d99702e RD |
646 | def IsChecked(self, *_args, **_kwargs): |
647 | val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs) | |
8ab979d7 | 648 | return val |
1d99702e RD |
649 | def IsEnabled(self, *_args, **_kwargs): |
650 | val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs) | |
8ab979d7 | 651 | return val |
1d99702e RD |
652 | def SetLabel(self, *_args, **_kwargs): |
653 | val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs) | |
8ab979d7 | 654 | return val |
1d99702e RD |
655 | def UpdateUI(self, *_args, **_kwargs): |
656 | val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs) | |
efc5f224 RD |
657 | return val |
658 | def Destroy(self, *_args, **_kwargs): | |
659 | val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs) | |
8bf5d46e | 660 | return val |
8ab979d7 | 661 | def __repr__(self): |
1d99702e | 662 | return "<C wxMenu instance at %s>" % (self.this,) |
8ab979d7 | 663 | class wxMenu(wxMenuPtr): |
1d99702e RD |
664 | def __init__(self,*_args,**_kwargs): |
665 | self.this = apply(windowsc.new_wxMenu,_args,_kwargs) | |
8ab979d7 RD |
666 | self.thisown = 1 |
667 | ||
668 | ||
669 | ||
670 | ||
8ab979d7 RD |
671 | class wxMenuBarPtr(wxEvtHandlerPtr): |
672 | def __init__(self,this): | |
673 | self.this = this | |
674 | self.thisown = 0 | |
1d99702e RD |
675 | def Append(self, *_args, **_kwargs): |
676 | val = apply(windowsc.wxMenuBar_Append,(self,) + _args, _kwargs) | |
8ab979d7 | 677 | return val |
1d99702e RD |
678 | def Check(self, *_args, **_kwargs): |
679 | val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs) | |
8ab979d7 | 680 | return val |
1d99702e RD |
681 | def Enable(self, *_args, **_kwargs): |
682 | val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs) | |
8ab979d7 | 683 | return val |
2abc0a0f RD |
684 | def IsChecked(self, *_args, **_kwargs): |
685 | val = apply(windowsc.wxMenuBar_IsChecked,(self,) + _args, _kwargs) | |
686 | return val | |
687 | def IsEnabled(self, *_args, **_kwargs): | |
688 | val = apply(windowsc.wxMenuBar_IsEnabled,(self,) + _args, _kwargs) | |
8ab979d7 | 689 | return val |
1d99702e RD |
690 | def FindMenuItem(self, *_args, **_kwargs): |
691 | val = apply(windowsc.wxMenuBar_FindMenuItem,(self,) + _args, _kwargs) | |
8ab979d7 | 692 | return val |
1d99702e RD |
693 | def FindItemForId(self, *_args, **_kwargs): |
694 | val = apply(windowsc.wxMenuBar_FindItemForId,(self,) + _args, _kwargs) | |
695 | if val: val = wxMenuItemPtr(val) | |
8ab979d7 | 696 | return val |
2f90df85 RD |
697 | def SetLabel(self, *_args, **_kwargs): |
698 | val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs) | |
699 | return val | |
1d99702e RD |
700 | def EnableTop(self, *_args, **_kwargs): |
701 | val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs) | |
8ab979d7 | 702 | return val |
1d99702e RD |
703 | def GetHelpString(self, *_args, **_kwargs): |
704 | val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs) | |
8ab979d7 | 705 | return val |
1d99702e RD |
706 | def GetLabel(self, *_args, **_kwargs): |
707 | val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs) | |
8ab979d7 | 708 | return val |
1d99702e RD |
709 | def SetHelpString(self, *_args, **_kwargs): |
710 | val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs) | |
8ab979d7 | 711 | return val |
1d99702e RD |
712 | def GetLabelTop(self, *_args, **_kwargs): |
713 | val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs) | |
8ab979d7 | 714 | return val |
1d99702e RD |
715 | def SetLabelTop(self, *_args, **_kwargs): |
716 | val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs) | |
8ab979d7 | 717 | return val |
1d99702e RD |
718 | def GetMenuCount(self, *_args, **_kwargs): |
719 | val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs) | |
8ab979d7 | 720 | return val |
1d99702e RD |
721 | def GetMenu(self, *_args, **_kwargs): |
722 | val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs) | |
723 | if val: val = wxMenuPtr(val) | |
8ab979d7 | 724 | return val |
06c0fba4 RD |
725 | def Refresh(self, *_args, **_kwargs): |
726 | val = apply(windowsc.wxMenuBar_Refresh,(self,) + _args, _kwargs) | |
727 | return val | |
2abc0a0f RD |
728 | def Replace(self, *_args, **_kwargs): |
729 | val = apply(windowsc.wxMenuBar_Replace,(self,) + _args, _kwargs) | |
730 | if val: val = wxMenuPtr(val) | |
731 | return val | |
732 | def Remove(self, *_args, **_kwargs): | |
733 | val = apply(windowsc.wxMenuBar_Remove,(self,) + _args, _kwargs) | |
734 | if val: val = wxMenuPtr(val) | |
735 | return val | |
8ab979d7 | 736 | def __repr__(self): |
1d99702e | 737 | return "<C wxMenuBar instance at %s>" % (self.this,) |
8ab979d7 | 738 | class wxMenuBar(wxMenuBarPtr): |
1d99702e RD |
739 | def __init__(self,*_args,**_kwargs): |
740 | self.this = apply(windowsc.new_wxMenuBar,_args,_kwargs) | |
8ab979d7 RD |
741 | self.thisown = 1 |
742 | ||
743 | ||
744 | ||
745 | ||
746 | class wxMenuItemPtr : | |
747 | def __init__(self,this): | |
748 | self.this = this | |
749 | self.thisown = 0 | |
1d99702e RD |
750 | def IsSeparator(self, *_args, **_kwargs): |
751 | val = apply(windowsc.wxMenuItem_IsSeparator,(self,) + _args, _kwargs) | |
8ab979d7 | 752 | return val |
1d99702e RD |
753 | def IsEnabled(self, *_args, **_kwargs): |
754 | val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs) | |
8ab979d7 | 755 | return val |
1d99702e RD |
756 | def IsChecked(self, *_args, **_kwargs): |
757 | val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs) | |
8ab979d7 | 758 | return val |
1d99702e RD |
759 | def IsCheckable(self, *_args, **_kwargs): |
760 | val = apply(windowsc.wxMenuItem_IsCheckable,(self,) + _args, _kwargs) | |
8ab979d7 | 761 | return val |
2abc0a0f RD |
762 | def IsSubMenu(self, *_args, **_kwargs): |
763 | val = apply(windowsc.wxMenuItem_IsSubMenu,(self,) + _args, _kwargs) | |
764 | return val | |
1d99702e RD |
765 | def GetId(self, *_args, **_kwargs): |
766 | val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs) | |
8ab979d7 | 767 | return val |
2abc0a0f RD |
768 | def SetId(self, *_args, **_kwargs): |
769 | val = apply(windowsc.wxMenuItem_SetId,(self,) + _args, _kwargs) | |
770 | return val | |
1d99702e RD |
771 | def GetSubMenu(self, *_args, **_kwargs): |
772 | val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs) | |
773 | if val: val = wxMenuPtr(val) | |
8ab979d7 | 774 | return val |
1d99702e RD |
775 | def GetHelp(self, *_args, **_kwargs): |
776 | val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs) | |
8ab979d7 | 777 | return val |
1d99702e RD |
778 | def SetHelp(self, *_args, **_kwargs): |
779 | val = apply(windowsc.wxMenuItem_SetHelp,(self,) + _args, _kwargs) | |
8ab979d7 | 780 | return val |
1d99702e RD |
781 | def Enable(self, *_args, **_kwargs): |
782 | val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs) | |
8ab979d7 | 783 | return val |
1d99702e RD |
784 | def Check(self, *_args, **_kwargs): |
785 | val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs) | |
8ab979d7 | 786 | return val |
1d99702e RD |
787 | def GetBackgroundColour(self, *_args, **_kwargs): |
788 | val = apply(windowsc.wxMenuItem_GetBackgroundColour,(self,) + _args, _kwargs) | |
789 | if val: val = wxColourPtr(val) | |
cf694132 | 790 | return val |
1d99702e RD |
791 | def GetBitmap(self, *_args, **_kwargs): |
792 | val = apply(windowsc.wxMenuItem_GetBitmap,(self,) + _args, _kwargs) | |
793 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 | |
cf694132 | 794 | return val |
1d99702e RD |
795 | def GetFont(self, *_args, **_kwargs): |
796 | val = apply(windowsc.wxMenuItem_GetFont,(self,) + _args, _kwargs) | |
797 | if val: val = wxFontPtr(val) | |
cf694132 | 798 | return val |
1d99702e RD |
799 | def GetMarginWidth(self, *_args, **_kwargs): |
800 | val = apply(windowsc.wxMenuItem_GetMarginWidth,(self,) + _args, _kwargs) | |
cf694132 | 801 | return val |
1d99702e RD |
802 | def GetTextColour(self, *_args, **_kwargs): |
803 | val = apply(windowsc.wxMenuItem_GetTextColour,(self,) + _args, _kwargs) | |
804 | if val: val = wxColourPtr(val) | |
cf694132 | 805 | return val |
1d99702e RD |
806 | def SetBackgroundColour(self, *_args, **_kwargs): |
807 | val = apply(windowsc.wxMenuItem_SetBackgroundColour,(self,) + _args, _kwargs) | |
cf694132 | 808 | return val |
1d99702e RD |
809 | def SetBitmaps(self, *_args, **_kwargs): |
810 | val = apply(windowsc.wxMenuItem_SetBitmaps,(self,) + _args, _kwargs) | |
cf694132 | 811 | return val |
1d99702e RD |
812 | def SetFont(self, *_args, **_kwargs): |
813 | val = apply(windowsc.wxMenuItem_SetFont,(self,) + _args, _kwargs) | |
cf694132 | 814 | return val |
1d99702e RD |
815 | def SetMarginWidth(self, *_args, **_kwargs): |
816 | val = apply(windowsc.wxMenuItem_SetMarginWidth,(self,) + _args, _kwargs) | |
cf694132 | 817 | return val |
2abc0a0f RD |
818 | def SetText(self, *_args, **_kwargs): |
819 | val = apply(windowsc.wxMenuItem_SetText,(self,) + _args, _kwargs) | |
820 | return val | |
821 | def GetText(self, *_args, **_kwargs): | |
822 | val = apply(windowsc.wxMenuItem_GetText,(self,) + _args, _kwargs) | |
823 | return val | |
1d99702e RD |
824 | def SetTextColour(self, *_args, **_kwargs): |
825 | val = apply(windowsc.wxMenuItem_SetTextColour,(self,) + _args, _kwargs) | |
cf694132 | 826 | return val |
1d99702e RD |
827 | def DeleteSubMenu(self, *_args, **_kwargs): |
828 | val = apply(windowsc.wxMenuItem_DeleteSubMenu,(self,) + _args, _kwargs) | |
be4d9c1f | 829 | return val |
2abc0a0f RD |
830 | def SetCheckable(self, *_args, **_kwargs): |
831 | val = apply(windowsc.wxMenuItem_SetCheckable,(self,) + _args, _kwargs) | |
832 | return val | |
833 | def SetSubMenu(self, *_args, **_kwargs): | |
834 | val = apply(windowsc.wxMenuItem_SetSubMenu,(self,) + _args, _kwargs) | |
835 | return val | |
8ab979d7 | 836 | def __repr__(self): |
1d99702e | 837 | return "<C wxMenuItem instance at %s>" % (self.this,) |
8ab979d7 | 838 | class wxMenuItem(wxMenuItemPtr): |
1d99702e RD |
839 | def __init__(self,*_args,**_kwargs): |
840 | self.this = apply(windowsc.new_wxMenuItem,_args,_kwargs) | |
cf694132 | 841 | self.thisown = 1 |
8ab979d7 RD |
842 | |
843 | ||
844 | ||
845 | ||
846 | ||
847 | ||
848 | #-------------- FUNCTION WRAPPERS ------------------ | |
849 | ||
2f90df85 RD |
850 | wxValidator_IsSilent = windowsc.wxValidator_IsSilent |
851 | ||
852 | wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError | |
853 | ||
1d99702e RD |
854 | def wxWindow_FindFocus(*_args, **_kwargs): |
855 | val = apply(windowsc.wxWindow_FindFocus,_args,_kwargs) | |
856 | if val: val = wxWindowPtr(val) | |
8ab979d7 RD |
857 | return val |
858 | ||
1d99702e RD |
859 | def wxWindow_FromHWND(*_args, **_kwargs): |
860 | val = apply(windowsc.wxWindow_FromHWND,_args,_kwargs) | |
861 | if val: val = wxWindowPtr(val) | |
af309447 RD |
862 | return val |
863 | ||
8ab979d7 RD |
864 | |
865 | ||
866 | #-------------- VARIABLE WRAPPERS ------------------ | |
867 |