]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
1 | # This file was created automatically by SWIG. |
2 | import windowsc | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from gdi import * | |
105e45b9 RD |
7 | import wx |
8 | ||
d24a34bb 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)) | |
105e45b9 | 14 | |
d24a34bb 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)) | |
105e45b9 | 20 | |
70551f47 RD |
21 | class wxEvtHandlerPtr : |
22 | def __init__(self,this): | |
23 | self.this = this | |
24 | self.thisown = 0 | |
2d091820 RD |
25 | def ProcessEvent(self, *_args, **_kwargs): |
26 | val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs) | |
ab9bc19b | 27 | return val |
2d091820 RD |
28 | def Connect(self, *_args, **_kwargs): |
29 | val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs) | |
70551f47 RD |
30 | return val |
31 | def __repr__(self): | |
2d091820 | 32 | return "<C wxEvtHandler instance at %s>" % (self.this,) |
70551f47 RD |
33 | class wxEvtHandler(wxEvtHandlerPtr): |
34 | def __init__(self,this): | |
35 | self.this = this | |
36 | ||
37 | ||
38 | ||
39 | ||
40 | class wxWindowPtr(wxEvtHandlerPtr): | |
41 | def __init__(self,this): | |
42 | self.this = this | |
43 | self.thisown = 0 | |
2d091820 RD |
44 | def CaptureMouse(self, *_args, **_kwargs): |
45 | val = apply(windowsc.wxWindow_CaptureMouse,(self,) + _args, _kwargs) | |
70551f47 | 46 | return val |
2d091820 RD |
47 | def Center(self, *_args, **_kwargs): |
48 | val = apply(windowsc.wxWindow_Center,(self,) + _args, _kwargs) | |
70551f47 | 49 | return val |
2d091820 RD |
50 | def Centre(self, *_args, **_kwargs): |
51 | val = apply(windowsc.wxWindow_Centre,(self,) + _args, _kwargs) | |
70551f47 | 52 | return val |
2d091820 RD |
53 | def CentreOnParent(self, *_args, **_kwargs): |
54 | val = apply(windowsc.wxWindow_CentreOnParent,(self,) + _args, _kwargs) | |
d24a34bb | 55 | return val |
2d091820 RD |
56 | def CenterOnParent(self, *_args, **_kwargs): |
57 | val = apply(windowsc.wxWindow_CenterOnParent,(self,) + _args, _kwargs) | |
d24a34bb | 58 | return val |
2d091820 RD |
59 | def ClientToScreenXY(self, *_args, **_kwargs): |
60 | val = apply(windowsc.wxWindow_ClientToScreenXY,(self,) + _args, _kwargs) | |
70551f47 | 61 | return val |
2d091820 RD |
62 | def ClientToScreen(self, *_args, **_kwargs): |
63 | val = apply(windowsc.wxWindow_ClientToScreen,(self,) + _args, _kwargs) | |
64 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
d24a34bb | 65 | return val |
2d091820 RD |
66 | def Close(self, *_args, **_kwargs): |
67 | val = apply(windowsc.wxWindow_Close,(self,) + _args, _kwargs) | |
70551f47 | 68 | return val |
2d091820 RD |
69 | def Destroy(self, *_args, **_kwargs): |
70 | val = apply(windowsc.wxWindow_Destroy,(self,) + _args, _kwargs) | |
70551f47 | 71 | return val |
2d091820 RD |
72 | def DestroyChildren(self, *_args, **_kwargs): |
73 | val = apply(windowsc.wxWindow_DestroyChildren,(self,) + _args, _kwargs) | |
70551f47 | 74 | return val |
2d091820 RD |
75 | def Enable(self, *_args, **_kwargs): |
76 | val = apply(windowsc.wxWindow_Enable,(self,) + _args, _kwargs) | |
70551f47 | 77 | return val |
2d091820 RD |
78 | def FindWindowById(self, *_args, **_kwargs): |
79 | val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs) | |
80 | if val: val = wxWindowPtr(val) | |
70551f47 | 81 | return val |
2d091820 RD |
82 | def FindWindowByName(self, *_args, **_kwargs): |
83 | val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs) | |
84 | if val: val = wxWindowPtr(val) | |
70551f47 | 85 | return val |
2d091820 RD |
86 | def Fit(self, *_args, **_kwargs): |
87 | val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs) | |
70551f47 | 88 | return val |
2d091820 RD |
89 | def GetBackgroundColour(self, *_args, **_kwargs): |
90 | val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs) | |
91 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
70551f47 | 92 | return val |
9cce9de1 RD |
93 | def GetChildren(self, *_args, **_kwargs): |
94 | val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs) | |
95 | return val | |
2d091820 RD |
96 | def GetCharHeight(self, *_args, **_kwargs): |
97 | val = apply(windowsc.wxWindow_GetCharHeight,(self,) + _args, _kwargs) | |
70551f47 | 98 | return val |
2d091820 RD |
99 | def GetCharWidth(self, *_args, **_kwargs): |
100 | val = apply(windowsc.wxWindow_GetCharWidth,(self,) + _args, _kwargs) | |
70551f47 | 101 | return val |
2d091820 RD |
102 | def GetClientSizeTuple(self, *_args, **_kwargs): |
103 | val = apply(windowsc.wxWindow_GetClientSizeTuple,(self,) + _args, _kwargs) | |
105e45b9 | 104 | return val |
2d091820 RD |
105 | def GetClientSize(self, *_args, **_kwargs): |
106 | val = apply(windowsc.wxWindow_GetClientSize,(self,) + _args, _kwargs) | |
107 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
70551f47 | 108 | return val |
2d091820 RD |
109 | def GetConstraints(self, *_args, **_kwargs): |
110 | val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs) | |
111 | if val: val = wxLayoutConstraintsPtr(val) | |
70551f47 | 112 | return val |
9cce9de1 RD |
113 | def GetEventHandler(self, *_args, **_kwargs): |
114 | val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs) | |
115 | if val: val = wxEvtHandlerPtr(val) | |
116 | return val | |
2d091820 RD |
117 | def GetFont(self, *_args, **_kwargs): |
118 | val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs) | |
119 | if val: val = wxFontPtr(val) | |
70551f47 | 120 | return val |
2d091820 RD |
121 | def GetForegroundColour(self, *_args, **_kwargs): |
122 | val = apply(windowsc.wxWindow_GetForegroundColour,(self,) + _args, _kwargs) | |
123 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
70551f47 | 124 | return val |
2d091820 RD |
125 | def GetGrandParent(self, *_args, **_kwargs): |
126 | val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs) | |
127 | if val: val = wxWindowPtr(val) | |
70551f47 | 128 | return val |
2d091820 RD |
129 | def GetId(self, *_args, **_kwargs): |
130 | val = apply(windowsc.wxWindow_GetId,(self,) + _args, _kwargs) | |
70551f47 | 131 | return val |
2d091820 RD |
132 | def GetLabel(self, *_args, **_kwargs): |
133 | val = apply(windowsc.wxWindow_GetLabel,(self,) + _args, _kwargs) | |
70551f47 | 134 | return val |
2d091820 RD |
135 | def SetLabel(self, *_args, **_kwargs): |
136 | val = apply(windowsc.wxWindow_SetLabel,(self,) + _args, _kwargs) | |
d24a34bb | 137 | return val |
2d091820 RD |
138 | def GetName(self, *_args, **_kwargs): |
139 | val = apply(windowsc.wxWindow_GetName,(self,) + _args, _kwargs) | |
70551f47 | 140 | return val |
2d091820 RD |
141 | def GetParent(self, *_args, **_kwargs): |
142 | val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs) | |
143 | if val: val = wxWindowPtr(val) | |
70551f47 | 144 | return val |
2d091820 RD |
145 | def GetPositionTuple(self, *_args, **_kwargs): |
146 | val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs) | |
105e45b9 | 147 | return val |
2d091820 RD |
148 | def GetPosition(self, *_args, **_kwargs): |
149 | val = apply(windowsc.wxWindow_GetPosition,(self,) + _args, _kwargs) | |
150 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
c95e68d8 | 151 | return val |
2d091820 RD |
152 | def GetRect(self, *_args, **_kwargs): |
153 | val = apply(windowsc.wxWindow_GetRect,(self,) + _args, _kwargs) | |
154 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
c95e68d8 | 155 | return val |
2d091820 RD |
156 | def GetScrollThumb(self, *_args, **_kwargs): |
157 | val = apply(windowsc.wxWindow_GetScrollThumb,(self,) + _args, _kwargs) | |
70551f47 | 158 | return val |
2d091820 RD |
159 | def GetScrollPos(self, *_args, **_kwargs): |
160 | val = apply(windowsc.wxWindow_GetScrollPos,(self,) + _args, _kwargs) | |
70551f47 | 161 | return val |
2d091820 RD |
162 | def GetScrollRange(self, *_args, **_kwargs): |
163 | val = apply(windowsc.wxWindow_GetScrollRange,(self,) + _args, _kwargs) | |
70551f47 | 164 | return val |
2d091820 RD |
165 | def GetSizeTuple(self, *_args, **_kwargs): |
166 | val = apply(windowsc.wxWindow_GetSizeTuple,(self,) + _args, _kwargs) | |
70551f47 | 167 | return val |
2d091820 RD |
168 | def GetSize(self, *_args, **_kwargs): |
169 | val = apply(windowsc.wxWindow_GetSize,(self,) + _args, _kwargs) | |
170 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
c95e68d8 | 171 | return val |
2d091820 RD |
172 | def GetTextExtent(self, *_args, **_kwargs): |
173 | val = apply(windowsc.wxWindow_GetTextExtent,(self,) + _args, _kwargs) | |
70551f47 | 174 | return val |
2d091820 RD |
175 | def GetFullTextExtent(self, *_args, **_kwargs): |
176 | val = apply(windowsc.wxWindow_GetFullTextExtent,(self,) + _args, _kwargs) | |
21f8d7ea | 177 | return val |
2d091820 RD |
178 | def GetTitle(self, *_args, **_kwargs): |
179 | val = apply(windowsc.wxWindow_GetTitle,(self,) + _args, _kwargs) | |
70551f47 | 180 | return val |
2d091820 RD |
181 | def GetUpdateRegion(self, *_args, **_kwargs): |
182 | val = apply(windowsc.wxWindow_GetUpdateRegion,(self,) + _args, _kwargs) | |
183 | if val: val = wxRegionPtr(val) ; val.thisown = 1 | |
8bf5d46e | 184 | return val |
2d091820 RD |
185 | def GetWindowStyleFlag(self, *_args, **_kwargs): |
186 | val = apply(windowsc.wxWindow_GetWindowStyleFlag,(self,) + _args, _kwargs) | |
70551f47 | 187 | return val |
2d091820 RD |
188 | def Hide(self, *_args, **_kwargs): |
189 | val = apply(windowsc.wxWindow_Hide,(self,) + _args, _kwargs) | |
d24a34bb | 190 | return val |
2d091820 RD |
191 | def InitDialog(self, *_args, **_kwargs): |
192 | val = apply(windowsc.wxWindow_InitDialog,(self,) + _args, _kwargs) | |
70551f47 | 193 | return val |
2d091820 RD |
194 | def IsEnabled(self, *_args, **_kwargs): |
195 | val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs) | |
70551f47 | 196 | return val |
2d091820 RD |
197 | def IsRetained(self, *_args, **_kwargs): |
198 | val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs) | |
70551f47 | 199 | return val |
2d091820 RD |
200 | def IsShown(self, *_args, **_kwargs): |
201 | val = apply(windowsc.wxWindow_IsShown,(self,) + _args, _kwargs) | |
70551f47 | 202 | return val |
2d091820 RD |
203 | def IsTopLevel(self, *_args, **_kwargs): |
204 | val = apply(windowsc.wxWindow_IsTopLevel,(self,) + _args, _kwargs) | |
d24a34bb | 205 | return val |
2d091820 RD |
206 | def Layout(self, *_args, **_kwargs): |
207 | val = apply(windowsc.wxWindow_Layout,(self,) + _args, _kwargs) | |
70551f47 | 208 | return val |
2d091820 RD |
209 | def LoadFromResource(self, *_args, **_kwargs): |
210 | val = apply(windowsc.wxWindow_LoadFromResource,(self,) + _args, _kwargs) | |
70551f47 | 211 | return val |
2d091820 RD |
212 | def Lower(self, *_args, **_kwargs): |
213 | val = apply(windowsc.wxWindow_Lower,(self,) + _args, _kwargs) | |
70551f47 | 214 | return val |
2d091820 RD |
215 | def MakeModal(self, *_args, **_kwargs): |
216 | val = apply(windowsc.wxWindow_MakeModal,(self,) + _args, _kwargs) | |
70551f47 | 217 | return val |
2d091820 RD |
218 | def MoveXY(self, *_args, **_kwargs): |
219 | val = apply(windowsc.wxWindow_MoveXY,(self,) + _args, _kwargs) | |
70551f47 | 220 | return val |
2d091820 RD |
221 | def Move(self, *_args, **_kwargs): |
222 | val = apply(windowsc.wxWindow_Move,(self,) + _args, _kwargs) | |
afc48cd0 | 223 | return val |
9cce9de1 RD |
224 | def PopEventHandler(self, *_args, **_kwargs): |
225 | val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs) | |
226 | if val: val = wxEvtHandlerPtr(val) | |
227 | return val | |
228 | def PushEventHandler(self, *_args, **_kwargs): | |
229 | val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs) | |
230 | return val | |
2d091820 RD |
231 | def PopupMenuXY(self, *_args, **_kwargs): |
232 | val = apply(windowsc.wxWindow_PopupMenuXY,(self,) + _args, _kwargs) | |
8bf5d46e | 233 | return val |
2d091820 RD |
234 | def PopupMenu(self, *_args, **_kwargs): |
235 | val = apply(windowsc.wxWindow_PopupMenu,(self,) + _args, _kwargs) | |
70551f47 | 236 | return val |
2d091820 RD |
237 | def Raise(self, *_args, **_kwargs): |
238 | val = apply(windowsc.wxWindow_Raise,(self,) + _args, _kwargs) | |
70551f47 | 239 | return val |
2d091820 RD |
240 | def Refresh(self, *_args, **_kwargs): |
241 | val = apply(windowsc.wxWindow_Refresh,(self,) + _args, _kwargs) | |
70551f47 | 242 | return val |
2d091820 RD |
243 | def ReleaseMouse(self, *_args, **_kwargs): |
244 | val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs) | |
70551f47 | 245 | return val |
2d091820 RD |
246 | def Reparent(self, *_args, **_kwargs): |
247 | val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs) | |
d24a34bb | 248 | return val |
2d091820 RD |
249 | def ScreenToClientXY(self, *_args, **_kwargs): |
250 | val = apply(windowsc.wxWindow_ScreenToClientXY,(self,) + _args, _kwargs) | |
70551f47 | 251 | return val |
2d091820 RD |
252 | def ScreenToClient(self, *_args, **_kwargs): |
253 | val = apply(windowsc.wxWindow_ScreenToClient,(self,) + _args, _kwargs) | |
254 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
d24a34bb | 255 | return val |
2d091820 RD |
256 | def ScrollWindow(self, *_args, **_kwargs): |
257 | val = apply(windowsc.wxWindow_ScrollWindow,(self,) + _args, _kwargs) | |
70551f47 | 258 | return val |
2d091820 RD |
259 | def SetAcceleratorTable(self, *_args, **_kwargs): |
260 | val = apply(windowsc.wxWindow_SetAcceleratorTable,(self,) + _args, _kwargs) | |
105e45b9 | 261 | return val |
2d091820 RD |
262 | def SetAutoLayout(self, *_args, **_kwargs): |
263 | val = apply(windowsc.wxWindow_SetAutoLayout,(self,) + _args, _kwargs) | |
70551f47 | 264 | return val |
2d091820 RD |
265 | def SetBackgroundColour(self, *_args, **_kwargs): |
266 | val = apply(windowsc.wxWindow_SetBackgroundColour,(self,) + _args, _kwargs) | |
70551f47 | 267 | return val |
2d091820 RD |
268 | def SetConstraints(self, *_args, **_kwargs): |
269 | val = apply(windowsc.wxWindow_SetConstraints,(self,) + _args, _kwargs) | |
70551f47 | 270 | return val |
2d091820 RD |
271 | def SetFocus(self, *_args, **_kwargs): |
272 | val = apply(windowsc.wxWindow_SetFocus,(self,) + _args, _kwargs) | |
70551f47 | 273 | return val |
2d091820 RD |
274 | def SetFont(self, *_args, **_kwargs): |
275 | val = apply(windowsc.wxWindow_SetFont,(self,) + _args, _kwargs) | |
70551f47 | 276 | return val |
2d091820 RD |
277 | def SetForegroundColour(self, *_args, **_kwargs): |
278 | val = apply(windowsc.wxWindow_SetForegroundColour,(self,) + _args, _kwargs) | |
70551f47 | 279 | return val |
2d091820 RD |
280 | def SetId(self, *_args, **_kwargs): |
281 | val = apply(windowsc.wxWindow_SetId,(self,) + _args, _kwargs) | |
70551f47 | 282 | return val |
2d091820 RD |
283 | def SetName(self, *_args, **_kwargs): |
284 | val = apply(windowsc.wxWindow_SetName,(self,) + _args, _kwargs) | |
70551f47 | 285 | return val |
2d091820 RD |
286 | def SetScrollbar(self, *_args, **_kwargs): |
287 | val = apply(windowsc.wxWindow_SetScrollbar,(self,) + _args, _kwargs) | |
70551f47 | 288 | return val |
2d091820 RD |
289 | def SetScrollPos(self, *_args, **_kwargs): |
290 | val = apply(windowsc.wxWindow_SetScrollPos,(self,) + _args, _kwargs) | |
70551f47 | 291 | return val |
2d091820 RD |
292 | def SetDimensions(self, *_args, **_kwargs): |
293 | val = apply(windowsc.wxWindow_SetDimensions,(self,) + _args, _kwargs) | |
70551f47 | 294 | return val |
2d091820 RD |
295 | def SetSize(self, *_args, **_kwargs): |
296 | val = apply(windowsc.wxWindow_SetSize,(self,) + _args, _kwargs) | |
70551f47 | 297 | return val |
2d091820 RD |
298 | def SetPosition(self, *_args, **_kwargs): |
299 | val = apply(windowsc.wxWindow_SetPosition,(self,) + _args, _kwargs) | |
70551f47 | 300 | return val |
2d091820 RD |
301 | def SetSizeHints(self, *_args, **_kwargs): |
302 | val = apply(windowsc.wxWindow_SetSizeHints,(self,) + _args, _kwargs) | |
70551f47 | 303 | return val |
2d091820 RD |
304 | def SetClientSizeWH(self, *_args, **_kwargs): |
305 | val = apply(windowsc.wxWindow_SetClientSizeWH,(self,) + _args, _kwargs) | |
70551f47 | 306 | return val |
2d091820 RD |
307 | def SetClientSize(self, *_args, **_kwargs): |
308 | val = apply(windowsc.wxWindow_SetClientSize,(self,) + _args, _kwargs) | |
afc48cd0 | 309 | return val |
2d091820 RD |
310 | def SetCursor(self, *_args, **_kwargs): |
311 | val = apply(windowsc.wxWindow_SetCursor,(self,) + _args, _kwargs) | |
70551f47 | 312 | return val |
9cce9de1 RD |
313 | def SetEventHandler(self, *_args, **_kwargs): |
314 | val = apply(windowsc.wxWindow_SetEventHandler,(self,) + _args, _kwargs) | |
315 | return val | |
2d091820 RD |
316 | def SetTitle(self, *_args, **_kwargs): |
317 | val = apply(windowsc.wxWindow_SetTitle,(self,) + _args, _kwargs) | |
70551f47 | 318 | return val |
2d091820 RD |
319 | def Show(self, *_args, **_kwargs): |
320 | val = apply(windowsc.wxWindow_Show,(self,) + _args, _kwargs) | |
70551f47 | 321 | return val |
2d091820 RD |
322 | def TransferDataFromWindow(self, *_args, **_kwargs): |
323 | val = apply(windowsc.wxWindow_TransferDataFromWindow,(self,) + _args, _kwargs) | |
70551f47 | 324 | return val |
2d091820 RD |
325 | def TransferDataToWindow(self, *_args, **_kwargs): |
326 | val = apply(windowsc.wxWindow_TransferDataToWindow,(self,) + _args, _kwargs) | |
70551f47 | 327 | return val |
2d091820 RD |
328 | def Validate(self, *_args, **_kwargs): |
329 | val = apply(windowsc.wxWindow_Validate,(self,) + _args, _kwargs) | |
70551f47 | 330 | return val |
2d091820 RD |
331 | def WarpPointer(self, *_args, **_kwargs): |
332 | val = apply(windowsc.wxWindow_WarpPointer,(self,) + _args, _kwargs) | |
c95e68d8 | 333 | return val |
2d091820 RD |
334 | def ConvertDialogPointToPixels(self, *_args, **_kwargs): |
335 | val = apply(windowsc.wxWindow_ConvertDialogPointToPixels,(self,) + _args, _kwargs) | |
336 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
105e45b9 | 337 | return val |
2d091820 RD |
338 | def ConvertDialogSizeToPixels(self, *_args, **_kwargs): |
339 | val = apply(windowsc.wxWindow_ConvertDialogSizeToPixels,(self,) + _args, _kwargs) | |
340 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
105e45b9 | 341 | return val |
2d091820 RD |
342 | def DLG_PNT(self, *_args, **_kwargs): |
343 | val = apply(windowsc.wxWindow_DLG_PNT,(self,) + _args, _kwargs) | |
344 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
ab9bc19b | 345 | return val |
2d091820 RD |
346 | def DLG_SZE(self, *_args, **_kwargs): |
347 | val = apply(windowsc.wxWindow_DLG_SZE,(self,) + _args, _kwargs) | |
348 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
ab9bc19b | 349 | return val |
2d091820 RD |
350 | def ConvertPixelPointToDialog(self, *_args, **_kwargs): |
351 | val = apply(windowsc.wxWindow_ConvertPixelPointToDialog,(self,) + _args, _kwargs) | |
352 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
105e45b9 | 353 | return val |
2d091820 RD |
354 | def ConvertPixelSizeToDialog(self, *_args, **_kwargs): |
355 | val = apply(windowsc.wxWindow_ConvertPixelSizeToDialog,(self,) + _args, _kwargs) | |
356 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
105e45b9 | 357 | return val |
2d091820 RD |
358 | def SetToolTipString(self, *_args, **_kwargs): |
359 | val = apply(windowsc.wxWindow_SetToolTipString,(self,) + _args, _kwargs) | |
21f8d7ea | 360 | return val |
2d091820 RD |
361 | def SetToolTip(self, *_args, **_kwargs): |
362 | val = apply(windowsc.wxWindow_SetToolTip,(self,) + _args, _kwargs) | |
21f8d7ea | 363 | return val |
2d091820 RD |
364 | def GetToolTip(self, *_args, **_kwargs): |
365 | val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs) | |
366 | if val: val = wxToolTipPtr(val) | |
21f8d7ea | 367 | return val |
70551f47 | 368 | def __repr__(self): |
2d091820 | 369 | return "<C wxWindow instance at %s>" % (self.this,) |
70551f47 | 370 | class wxWindow(wxWindowPtr): |
2d091820 RD |
371 | def __init__(self,*_args,**_kwargs): |
372 | self.this = apply(windowsc.new_wxWindow,_args,_kwargs) | |
70551f47 | 373 | self.thisown = 1 |
105e45b9 | 374 | wx._StdWindowCallbacks(self) |
70551f47 RD |
375 | |
376 | ||
377 | ||
378 | ||
379 | class wxPanelPtr(wxWindowPtr): | |
380 | def __init__(self,this): | |
381 | self.this = this | |
382 | self.thisown = 0 | |
2d091820 RD |
383 | def InitDialog(self, *_args, **_kwargs): |
384 | val = apply(windowsc.wxPanel_InitDialog,(self,) + _args, _kwargs) | |
70551f47 | 385 | return val |
2d091820 RD |
386 | def GetDefaultItem(self, *_args, **_kwargs): |
387 | val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs) | |
388 | if val: val = wxButtonPtr(val) | |
d24a34bb | 389 | return val |
2d091820 RD |
390 | def SetDefaultItem(self, *_args, **_kwargs): |
391 | val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs) | |
d24a34bb | 392 | return val |
70551f47 | 393 | def __repr__(self): |
2d091820 | 394 | return "<C wxPanel instance at %s>" % (self.this,) |
d24a34bb RD |
395 | |
396 | def GetDefaultItem(self): | |
397 | import controls | |
398 | val = windowsc.wxPanel_GetDefaultItem(self.this) | |
399 | val = controls.wxButtonPtr(val) | |
400 | return val | |
401 | ||
70551f47 | 402 | class wxPanel(wxPanelPtr): |
2d091820 RD |
403 | def __init__(self,*_args,**_kwargs): |
404 | self.this = apply(windowsc.new_wxPanel,_args,_kwargs) | |
70551f47 | 405 | self.thisown = 1 |
105e45b9 | 406 | wx._StdWindowCallbacks(self) |
70551f47 RD |
407 | |
408 | ||
409 | ||
410 | ||
411 | class wxDialogPtr(wxPanelPtr): | |
412 | def __init__(self,this): | |
413 | self.this = this | |
414 | self.thisown = 0 | |
2d091820 RD |
415 | def Centre(self, *_args, **_kwargs): |
416 | val = apply(windowsc.wxDialog_Centre,(self,) + _args, _kwargs) | |
70551f47 | 417 | return val |
2d091820 RD |
418 | def EndModal(self, *_args, **_kwargs): |
419 | val = apply(windowsc.wxDialog_EndModal,(self,) + _args, _kwargs) | |
70551f47 | 420 | return val |
2d091820 RD |
421 | def GetTitle(self, *_args, **_kwargs): |
422 | val = apply(windowsc.wxDialog_GetTitle,(self,) + _args, _kwargs) | |
70551f47 | 423 | return val |
2d091820 RD |
424 | def Iconize(self, *_args, **_kwargs): |
425 | val = apply(windowsc.wxDialog_Iconize,(self,) + _args, _kwargs) | |
70551f47 | 426 | return val |
2d091820 RD |
427 | def IsIconized(self, *_args, **_kwargs): |
428 | val = apply(windowsc.wxDialog_IsIconized,(self,) + _args, _kwargs) | |
70551f47 | 429 | return val |
2d091820 RD |
430 | def SetModal(self, *_args, **_kwargs): |
431 | val = apply(windowsc.wxDialog_SetModal,(self,) + _args, _kwargs) | |
70551f47 | 432 | return val |
2d091820 RD |
433 | def IsModal(self, *_args, **_kwargs): |
434 | val = apply(windowsc.wxDialog_IsModal,(self,) + _args, _kwargs) | |
70551f47 | 435 | return val |
2d091820 RD |
436 | def SetTitle(self, *_args, **_kwargs): |
437 | val = apply(windowsc.wxDialog_SetTitle,(self,) + _args, _kwargs) | |
70551f47 | 438 | return val |
2d091820 RD |
439 | def Show(self, *_args, **_kwargs): |
440 | val = apply(windowsc.wxDialog_Show,(self,) + _args, _kwargs) | |
70551f47 | 441 | return val |
2d091820 RD |
442 | def ShowModal(self, *_args, **_kwargs): |
443 | val = apply(windowsc.wxDialog_ShowModal,(self,) + _args, _kwargs) | |
70551f47 | 444 | return val |
2d091820 RD |
445 | def GetReturnCode(self, *_args, **_kwargs): |
446 | val = apply(windowsc.wxDialog_GetReturnCode,(self,) + _args, _kwargs) | |
4cd9591a | 447 | return val |
2d091820 RD |
448 | def SetReturnCode(self, *_args, **_kwargs): |
449 | val = apply(windowsc.wxDialog_SetReturnCode,(self,) + _args, _kwargs) | |
4cd9591a | 450 | return val |
70551f47 | 451 | def __repr__(self): |
2d091820 | 452 | return "<C wxDialog instance at %s>" % (self.this,) |
70551f47 | 453 | class wxDialog(wxDialogPtr): |
2d091820 RD |
454 | def __init__(self,*_args,**_kwargs): |
455 | self.this = apply(windowsc.new_wxDialog,_args,_kwargs) | |
70551f47 | 456 | self.thisown = 1 |
105e45b9 | 457 | wx._StdDialogCallbacks(self) |
70551f47 RD |
458 | |
459 | ||
460 | ||
461 | ||
d24a34bb | 462 | class wxScrolledWindowPtr(wxPanelPtr): |
70551f47 RD |
463 | def __init__(self,this): |
464 | self.this = this | |
465 | self.thisown = 0 | |
2d091820 RD |
466 | def EnableScrolling(self, *_args, **_kwargs): |
467 | val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs) | |
70551f47 | 468 | return val |
2d091820 RD |
469 | def GetScrollPixelsPerUnit(self, *_args, **_kwargs): |
470 | val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs) | |
70551f47 | 471 | return val |
2d091820 RD |
472 | def GetVirtualSize(self, *_args, **_kwargs): |
473 | val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs) | |
70551f47 | 474 | return val |
2d091820 RD |
475 | def IsRetained(self, *_args, **_kwargs): |
476 | val = apply(windowsc.wxScrolledWindow_IsRetained,(self,) + _args, _kwargs) | |
70551f47 | 477 | return val |
2d091820 RD |
478 | def PrepareDC(self, *_args, **_kwargs): |
479 | val = apply(windowsc.wxScrolledWindow_PrepareDC,(self,) + _args, _kwargs) | |
70551f47 | 480 | return val |
2d091820 RD |
481 | def Scroll(self, *_args, **_kwargs): |
482 | val = apply(windowsc.wxScrolledWindow_Scroll,(self,) + _args, _kwargs) | |
70551f47 | 483 | return val |
2d091820 RD |
484 | def SetScrollbars(self, *_args, **_kwargs): |
485 | val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs) | |
70551f47 | 486 | return val |
2d091820 RD |
487 | def ViewStart(self, *_args, **_kwargs): |
488 | val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs) | |
70551f47 RD |
489 | return val |
490 | def __repr__(self): | |
2d091820 | 491 | return "<C wxScrolledWindow instance at %s>" % (self.this,) |
70551f47 | 492 | class wxScrolledWindow(wxScrolledWindowPtr): |
2d091820 RD |
493 | def __init__(self,*_args,**_kwargs): |
494 | self.this = apply(windowsc.new_wxScrolledWindow,_args,_kwargs) | |
70551f47 | 495 | self.thisown = 1 |
105e45b9 RD |
496 | wx._StdWindowCallbacks(self) |
497 | wx._StdOnScrollCallbacks(self) | |
70551f47 RD |
498 | |
499 | ||
500 | ||
501 | ||
502 | class wxMenuPtr(wxEvtHandlerPtr): | |
503 | def __init__(self,this): | |
504 | self.this = this | |
505 | self.thisown = 0 | |
2d091820 RD |
506 | def Append(self, *_args, **_kwargs): |
507 | val = apply(windowsc.wxMenu_Append,(self,) + _args, _kwargs) | |
70551f47 | 508 | return val |
2d091820 RD |
509 | def AppendMenu(self, *_args, **_kwargs): |
510 | val = apply(windowsc.wxMenu_AppendMenu,(self,) + _args, _kwargs) | |
70551f47 | 511 | return val |
9cce9de1 RD |
512 | def AppendItem(self, *_args, **_kwargs): |
513 | val = apply(windowsc.wxMenu_AppendItem,(self,) + _args, _kwargs) | |
514 | return val | |
2d091820 RD |
515 | def AppendSeparator(self, *_args, **_kwargs): |
516 | val = apply(windowsc.wxMenu_AppendSeparator,(self,) + _args, _kwargs) | |
70551f47 | 517 | return val |
2d091820 RD |
518 | def Break(self, *_args, **_kwargs): |
519 | val = apply(windowsc.wxMenu_Break,(self,) + _args, _kwargs) | |
70551f47 | 520 | return val |
2d091820 RD |
521 | def Check(self, *_args, **_kwargs): |
522 | val = apply(windowsc.wxMenu_Check,(self,) + _args, _kwargs) | |
70551f47 | 523 | return val |
2d091820 RD |
524 | def Enable(self, *_args, **_kwargs): |
525 | val = apply(windowsc.wxMenu_Enable,(self,) + _args, _kwargs) | |
70551f47 | 526 | return val |
2d091820 RD |
527 | def FindItem(self, *_args, **_kwargs): |
528 | val = apply(windowsc.wxMenu_FindItem,(self,) + _args, _kwargs) | |
70551f47 | 529 | return val |
2d091820 RD |
530 | def GetTitle(self, *_args, **_kwargs): |
531 | val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs) | |
c95e68d8 | 532 | return val |
2d091820 RD |
533 | def SetTitle(self, *_args, **_kwargs): |
534 | val = apply(windowsc.wxMenu_SetTitle,(self,) + _args, _kwargs) | |
c95e68d8 | 535 | return val |
2d091820 RD |
536 | def FindItemForId(self, *_args, **_kwargs): |
537 | val = apply(windowsc.wxMenu_FindItemForId,(self,) + _args, _kwargs) | |
538 | if val: val = wxMenuItemPtr(val) | |
70551f47 | 539 | return val |
2d091820 RD |
540 | def GetHelpString(self, *_args, **_kwargs): |
541 | val = apply(windowsc.wxMenu_GetHelpString,(self,) + _args, _kwargs) | |
70551f47 | 542 | return val |
2d091820 RD |
543 | def GetLabel(self, *_args, **_kwargs): |
544 | val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs) | |
70551f47 | 545 | return val |
2d091820 RD |
546 | def SetHelpString(self, *_args, **_kwargs): |
547 | val = apply(windowsc.wxMenu_SetHelpString,(self,) + _args, _kwargs) | |
70551f47 | 548 | return val |
2d091820 RD |
549 | def IsChecked(self, *_args, **_kwargs): |
550 | val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs) | |
70551f47 | 551 | return val |
2d091820 RD |
552 | def IsEnabled(self, *_args, **_kwargs): |
553 | val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs) | |
70551f47 | 554 | return val |
2d091820 RD |
555 | def SetLabel(self, *_args, **_kwargs): |
556 | val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs) | |
70551f47 | 557 | return val |
2d091820 RD |
558 | def UpdateUI(self, *_args, **_kwargs): |
559 | val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs) | |
107e4716 RD |
560 | return val |
561 | def Destroy(self, *_args, **_kwargs): | |
562 | val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs) | |
8bf5d46e | 563 | return val |
70551f47 | 564 | def __repr__(self): |
2d091820 | 565 | return "<C wxMenu instance at %s>" % (self.this,) |
70551f47 | 566 | class wxMenu(wxMenuPtr): |
2d091820 RD |
567 | def __init__(self,*_args,**_kwargs): |
568 | self.this = apply(windowsc.new_wxMenu,_args,_kwargs) | |
70551f47 RD |
569 | self.thisown = 1 |
570 | ||
571 | ||
572 | ||
573 | ||
70551f47 RD |
574 | class wxMenuBarPtr(wxEvtHandlerPtr): |
575 | def __init__(self,this): | |
576 | self.this = this | |
577 | self.thisown = 0 | |
2d091820 RD |
578 | def Append(self, *_args, **_kwargs): |
579 | val = apply(windowsc.wxMenuBar_Append,(self,) + _args, _kwargs) | |
70551f47 | 580 | return val |
2d091820 RD |
581 | def Check(self, *_args, **_kwargs): |
582 | val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs) | |
70551f47 | 583 | return val |
2d091820 RD |
584 | def Checked(self, *_args, **_kwargs): |
585 | val = apply(windowsc.wxMenuBar_Checked,(self,) + _args, _kwargs) | |
70551f47 | 586 | return val |
2d091820 RD |
587 | def Enable(self, *_args, **_kwargs): |
588 | val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs) | |
70551f47 | 589 | return val |
2d091820 RD |
590 | def Enabled(self, *_args, **_kwargs): |
591 | val = apply(windowsc.wxMenuBar_Enabled,(self,) + _args, _kwargs) | |
70551f47 | 592 | return val |
2d091820 RD |
593 | def FindMenuItem(self, *_args, **_kwargs): |
594 | val = apply(windowsc.wxMenuBar_FindMenuItem,(self,) + _args, _kwargs) | |
70551f47 | 595 | return val |
2d091820 RD |
596 | def FindItemForId(self, *_args, **_kwargs): |
597 | val = apply(windowsc.wxMenuBar_FindItemForId,(self,) + _args, _kwargs) | |
598 | if val: val = wxMenuItemPtr(val) | |
d3b4d113 | 599 | return val |
9cce9de1 RD |
600 | def SetLabel(self, *_args, **_kwargs): |
601 | val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs) | |
602 | return val | |
603 | def EnableTop(self, *_args, **_kwargs): | |
604 | val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs) | |
605 | return val | |
606 | def GetHelpString(self, *_args, **_kwargs): | |
607 | val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs) | |
608 | return val | |
609 | def GetLabel(self, *_args, **_kwargs): | |
610 | val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs) | |
611 | return val | |
612 | def SetHelpString(self, *_args, **_kwargs): | |
613 | val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs) | |
614 | return val | |
615 | def GetLabelTop(self, *_args, **_kwargs): | |
616 | val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs) | |
617 | return val | |
618 | def SetLabelTop(self, *_args, **_kwargs): | |
619 | val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs) | |
620 | return val | |
2d091820 RD |
621 | def GetMenuCount(self, *_args, **_kwargs): |
622 | val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs) | |
70551f47 | 623 | return val |
2d091820 RD |
624 | def GetMenu(self, *_args, **_kwargs): |
625 | val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs) | |
626 | if val: val = wxMenuPtr(val) | |
70551f47 RD |
627 | return val |
628 | def __repr__(self): | |
2d091820 | 629 | return "<C wxMenuBar instance at %s>" % (self.this,) |
70551f47 | 630 | class wxMenuBar(wxMenuBarPtr): |
2d091820 RD |
631 | def __init__(self,*_args,**_kwargs): |
632 | self.this = apply(windowsc.new_wxMenuBar,_args,_kwargs) | |
70551f47 RD |
633 | self.thisown = 1 |
634 | ||
635 | ||
636 | ||
637 | ||
638 | class wxMenuItemPtr : | |
639 | def __init__(self,this): | |
640 | self.this = this | |
641 | self.thisown = 0 | |
2d091820 RD |
642 | def IsSeparator(self, *_args, **_kwargs): |
643 | val = apply(windowsc.wxMenuItem_IsSeparator,(self,) + _args, _kwargs) | |
70551f47 | 644 | return val |
2d091820 RD |
645 | def IsEnabled(self, *_args, **_kwargs): |
646 | val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs) | |
70551f47 | 647 | return val |
2d091820 RD |
648 | def IsChecked(self, *_args, **_kwargs): |
649 | val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs) | |
70551f47 | 650 | return val |
2d091820 RD |
651 | def IsCheckable(self, *_args, **_kwargs): |
652 | val = apply(windowsc.wxMenuItem_IsCheckable,(self,) + _args, _kwargs) | |
70551f47 | 653 | return val |
2d091820 RD |
654 | def GetId(self, *_args, **_kwargs): |
655 | val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs) | |
70551f47 | 656 | return val |
2d091820 RD |
657 | def GetSubMenu(self, *_args, **_kwargs): |
658 | val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs) | |
659 | if val: val = wxMenuPtr(val) | |
70551f47 | 660 | return val |
2d091820 RD |
661 | def SetName(self, *_args, **_kwargs): |
662 | val = apply(windowsc.wxMenuItem_SetName,(self,) + _args, _kwargs) | |
c95e68d8 | 663 | return val |
2d091820 RD |
664 | def GetName(self, *_args, **_kwargs): |
665 | val = apply(windowsc.wxMenuItem_GetName,(self,) + _args, _kwargs) | |
c95e68d8 | 666 | return val |
2d091820 RD |
667 | def GetHelp(self, *_args, **_kwargs): |
668 | val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs) | |
70551f47 | 669 | return val |
2d091820 RD |
670 | def SetHelp(self, *_args, **_kwargs): |
671 | val = apply(windowsc.wxMenuItem_SetHelp,(self,) + _args, _kwargs) | |
70551f47 | 672 | return val |
2d091820 RD |
673 | def Enable(self, *_args, **_kwargs): |
674 | val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs) | |
70551f47 | 675 | return val |
2d091820 RD |
676 | def Check(self, *_args, **_kwargs): |
677 | val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs) | |
70551f47 RD |
678 | return val |
679 | def __repr__(self): | |
2d091820 | 680 | return "<C wxMenuItem instance at %s>" % (self.this,) |
70551f47 | 681 | class wxMenuItem(wxMenuItemPtr): |
2d091820 RD |
682 | def __init__(self,*_args,**_kwargs): |
683 | self.this = apply(windowsc.new_wxMenuItem,_args,_kwargs) | |
ab9bc19b | 684 | self.thisown = 1 |
70551f47 RD |
685 | |
686 | ||
687 | ||
688 | ||
689 | ||
690 | ||
691 | #-------------- FUNCTION WRAPPERS ------------------ | |
692 | ||
693 | ||
694 | ||
695 | #-------------- VARIABLE WRAPPERS ------------------ | |
696 |