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