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