]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/misc2.py
SWIGged update for wxGTK (the last checkin was really for wxMSW...)
[wxWidgets.git] / wxPython / src / gtk / misc2.py
1 # This file was created automatically by SWIG.
2 import misc2c
3
4 from windows import *
5
6 from misc import *
7
8 from gdi import *
9
10 from fonts import *
11
12 from clip_dnd import *
13
14 from events import *
15
16 from streams import *
17
18 from utils import *
19
20 # Art clients
21 wxART_TOOLBAR = 'wxART_TOOLBAR_C'
22 wxART_MENU = 'wxART_MENU_C'
23 wxART_FRAME_ICON = 'wxART_FRAME_ICON_C'
24 wxART_CMN_DIALOG = 'wxART_CMN_DIALOG_C'
25 wxART_HELP_BROWSER = 'wxART_HELP_BROWSER_C'
26 wxART_MESSAGE_BOX = 'wxART_MESSAGE_BOX_C'
27 wxART_OTHER = 'wxART_OTHER_C'
28
29 # Art IDs
30 wxART_ADD_BOOKMARK = 'wxART_ADD_BOOKMARK'
31 wxART_DEL_BOOKMARK = 'wxART_DEL_BOOKMARK'
32 wxART_HELP_SIDE_PANEL = 'wxART_HELP_SIDE_PANEL'
33 wxART_HELP_SETTINGS = 'wxART_HELP_SETTINGS'
34 wxART_HELP_BOOK = 'wxART_HELP_BOOK'
35 wxART_HELP_FOLDER = 'wxART_HELP_FOLDER'
36 wxART_HELP_PAGE = 'wxART_HELP_PAGE'
37 wxART_GO_BACK = 'wxART_GO_BACK'
38 wxART_GO_FORWARD = 'wxART_GO_FORWARD'
39 wxART_GO_UP = 'wxART_GO_UP'
40 wxART_GO_DOWN = 'wxART_GO_DOWN'
41 wxART_GO_TO_PARENT = 'wxART_GO_TO_PARENT'
42 wxART_GO_HOME = 'wxART_GO_HOME'
43 wxART_FILE_OPEN = 'wxART_FILE_OPEN'
44 wxART_PRINT = 'wxART_PRINT'
45 wxART_HELP = 'wxART_HELP'
46 wxART_TIP = 'wxART_TIP'
47 wxART_REPORT_VIEW = 'wxART_REPORT_VIEW'
48 wxART_LIST_VIEW = 'wxART_LIST_VIEW'
49 wxART_NEW_DIR = 'wxART_NEW_DIR'
50 wxART_FOLDER = 'wxART_FOLDER'
51 wxART_GO_DIR_UP = 'wxART_GO_DIR_UP'
52 wxART_EXECUTABLE_FILE = 'wxART_EXECUTABLE_FILE'
53 wxART_NORMAL_FILE = 'wxART_NORMAL_FILE'
54 wxART_TICK_MARK = 'wxART_TICK_MARK'
55 wxART_CROSS_MARK = 'wxART_CROSS_MARK'
56 wxART_ERROR = 'wxART_ERROR'
57 wxART_QUESTION = 'wxART_QUESTION'
58 wxART_WARNING = 'wxART_WARNING'
59 wxART_INFORMATION = 'wxART_INFORMATION'
60
61 class wxSystemSettingsPtr :
62 def __init__(self,this):
63 self.this = this
64 self.thisown = 0
65 def __repr__(self):
66 return "<C wxSystemSettings instance at %s>" % (self.this,)
67 class wxSystemSettings(wxSystemSettingsPtr):
68 def __init__(self,this):
69 self.this = this
70
71
72
73
74 class wxToolTipPtr(wxObjectPtr):
75 def __init__(self,this):
76 self.this = this
77 self.thisown = 0
78 def SetTip(self, *_args, **_kwargs):
79 val = apply(misc2c.wxToolTip_SetTip,(self,) + _args, _kwargs)
80 return val
81 def GetTip(self, *_args, **_kwargs):
82 val = apply(misc2c.wxToolTip_GetTip,(self,) + _args, _kwargs)
83 return val
84 def GetWindow(self, *_args, **_kwargs):
85 val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
86 return val
87 def __repr__(self):
88 return "<C wxToolTip instance at %s>" % (self.this,)
89 class wxToolTip(wxToolTipPtr):
90 def __init__(self,*_args,**_kwargs):
91 self.this = apply(misc2c.new_wxToolTip,_args,_kwargs)
92 self.thisown = 1
93
94
95
96
97 class wxCaretPtr :
98 def __init__(self,this):
99 self.this = this
100 self.thisown = 0
101 def __del__(self,misc2c=misc2c):
102 if self.thisown == 1 :
103 misc2c.delete_wxCaret(self)
104 def IsOk(self, *_args, **_kwargs):
105 val = apply(misc2c.wxCaret_IsOk,(self,) + _args, _kwargs)
106 return val
107 def IsVisible(self, *_args, **_kwargs):
108 val = apply(misc2c.wxCaret_IsVisible,(self,) + _args, _kwargs)
109 return val
110 def GetPositionTuple(self, *_args, **_kwargs):
111 val = apply(misc2c.wxCaret_GetPositionTuple,(self,) + _args, _kwargs)
112 return val
113 def GetPosition(self, *_args, **_kwargs):
114 val = apply(misc2c.wxCaret_GetPosition,(self,) + _args, _kwargs)
115 if val: val = wxPointPtr(val) ; val.thisown = 1
116 return val
117 def GetSizeTuple(self, *_args, **_kwargs):
118 val = apply(misc2c.wxCaret_GetSizeTuple,(self,) + _args, _kwargs)
119 return val
120 def GetSize(self, *_args, **_kwargs):
121 val = apply(misc2c.wxCaret_GetSize,(self,) + _args, _kwargs)
122 if val: val = wxSizePtr(val) ; val.thisown = 1
123 return val
124 def GetWindow(self, *_args, **_kwargs):
125 val = apply(misc2c.wxCaret_GetWindow,(self,) + _args, _kwargs)
126 return val
127 def MoveXY(self, *_args, **_kwargs):
128 val = apply(misc2c.wxCaret_MoveXY,(self,) + _args, _kwargs)
129 return val
130 def Move(self, *_args, **_kwargs):
131 val = apply(misc2c.wxCaret_Move,(self,) + _args, _kwargs)
132 return val
133 def SetSizeWH(self, *_args, **_kwargs):
134 val = apply(misc2c.wxCaret_SetSizeWH,(self,) + _args, _kwargs)
135 return val
136 def SetSize(self, *_args, **_kwargs):
137 val = apply(misc2c.wxCaret_SetSize,(self,) + _args, _kwargs)
138 return val
139 def Show(self, *_args, **_kwargs):
140 val = apply(misc2c.wxCaret_Show,(self,) + _args, _kwargs)
141 return val
142 def Hide(self, *_args, **_kwargs):
143 val = apply(misc2c.wxCaret_Hide,(self,) + _args, _kwargs)
144 return val
145 def __repr__(self):
146 return "<C wxCaret instance at %s>" % (self.this,)
147 class wxCaret(wxCaretPtr):
148 def __init__(self,*_args,**_kwargs):
149 self.this = apply(misc2c.new_wxCaret,_args,_kwargs)
150 self.thisown = 1
151
152
153
154
155 class wxBusyCursorPtr :
156 def __init__(self,this):
157 self.this = this
158 self.thisown = 0
159 def __del__(self,misc2c=misc2c):
160 if self.thisown == 1 :
161 misc2c.delete_wxBusyCursor(self)
162 def __repr__(self):
163 return "<C wxBusyCursor instance at %s>" % (self.this,)
164 class wxBusyCursor(wxBusyCursorPtr):
165 def __init__(self,*_args,**_kwargs):
166 self.this = apply(misc2c.new_wxBusyCursor,_args,_kwargs)
167 self.thisown = 1
168
169
170
171
172 class wxWindowDisablerPtr :
173 def __init__(self,this):
174 self.this = this
175 self.thisown = 0
176 def __del__(self,misc2c=misc2c):
177 if self.thisown == 1 :
178 misc2c.delete_wxWindowDisabler(self)
179 def __repr__(self):
180 return "<C wxWindowDisabler instance at %s>" % (self.this,)
181 class wxWindowDisabler(wxWindowDisablerPtr):
182 def __init__(self,*_args,**_kwargs):
183 self.this = apply(misc2c.new_wxWindowDisabler,_args,_kwargs)
184 self.thisown = 1
185
186
187
188
189 class wxMutexGuiLockerPtr :
190 def __init__(self,this):
191 self.this = this
192 self.thisown = 0
193 def __del__(self,misc2c=misc2c):
194 if self.thisown == 1 :
195 misc2c.delete_wxMutexGuiLocker(self)
196 def __repr__(self):
197 return "<C wxMutexGuiLocker instance at %s>" % (self.this,)
198 class wxMutexGuiLocker(wxMutexGuiLockerPtr):
199 def __init__(self,*_args,**_kwargs):
200 self.this = apply(misc2c.new_wxMutexGuiLocker,_args,_kwargs)
201 self.thisown = 1
202
203
204
205
206 class wxTipProviderPtr :
207 def __init__(self,this):
208 self.this = this
209 self.thisown = 0
210 def __del__(self,misc2c=misc2c):
211 if self.thisown == 1 :
212 misc2c.delete_wxTipProvider(self)
213 def GetTip(self, *_args, **_kwargs):
214 val = apply(misc2c.wxTipProvider_GetTip,(self,) + _args, _kwargs)
215 return val
216 def GetCurrentTip(self, *_args, **_kwargs):
217 val = apply(misc2c.wxTipProvider_GetCurrentTip,(self,) + _args, _kwargs)
218 return val
219 def __repr__(self):
220 return "<C wxTipProvider instance at %s>" % (self.this,)
221 class wxTipProvider(wxTipProviderPtr):
222 def __init__(self,this):
223 self.this = this
224
225
226
227
228 class wxPyTipProviderPtr(wxTipProviderPtr):
229 def __init__(self,this):
230 self.this = this
231 self.thisown = 0
232 def _setCallbackInfo(self, *_args, **_kwargs):
233 val = apply(misc2c.wxPyTipProvider__setCallbackInfo,(self,) + _args, _kwargs)
234 return val
235 def __repr__(self):
236 return "<C wxPyTipProvider instance at %s>" % (self.this,)
237 class wxPyTipProvider(wxPyTipProviderPtr):
238 def __init__(self,*_args,**_kwargs):
239 self.this = apply(misc2c.new_wxPyTipProvider,_args,_kwargs)
240 self.thisown = 1
241 self._setCallbackInfo(self, wxPyTipProvider)
242
243
244
245
246 class wxDragImagePtr(wxObjectPtr):
247 def __init__(self,this):
248 self.this = this
249 self.thisown = 0
250 def __del__(self,misc2c=misc2c):
251 if self.thisown == 1 :
252 misc2c.delete_wxDragImage(self)
253 def SetBackingBitmap(self, *_args, **_kwargs):
254 val = apply(misc2c.wxDragImage_SetBackingBitmap,(self,) + _args, _kwargs)
255 return val
256 def BeginDrag(self, *_args, **_kwargs):
257 val = apply(misc2c.wxDragImage_BeginDrag,(self,) + _args, _kwargs)
258 return val
259 def BeginDrag2(self, *_args, **_kwargs):
260 val = apply(misc2c.wxDragImage_BeginDrag2,(self,) + _args, _kwargs)
261 return val
262 def EndDrag(self, *_args, **_kwargs):
263 val = apply(misc2c.wxDragImage_EndDrag,(self,) + _args, _kwargs)
264 return val
265 def Move(self, *_args, **_kwargs):
266 val = apply(misc2c.wxDragImage_Move,(self,) + _args, _kwargs)
267 return val
268 def Show(self, *_args, **_kwargs):
269 val = apply(misc2c.wxDragImage_Show,(self,) + _args, _kwargs)
270 return val
271 def Hide(self, *_args, **_kwargs):
272 val = apply(misc2c.wxDragImage_Hide,(self,) + _args, _kwargs)
273 return val
274 def GetImageRect(self, *_args, **_kwargs):
275 val = apply(misc2c.wxDragImage_GetImageRect,(self,) + _args, _kwargs)
276 if val: val = wxRectPtr(val) ; val.thisown = 1
277 return val
278 def RedrawImage(self, *_args, **_kwargs):
279 val = apply(misc2c.wxDragImage_RedrawImage,(self,) + _args, _kwargs)
280 return val
281 def __repr__(self):
282 return "<C wxDragImage instance at %s>" % (self.this,)
283 class wxDragImage(wxDragImagePtr):
284 def __init__(self,*_args,**_kwargs):
285 self.this = apply(misc2c.new_wxDragImage,_args,_kwargs)
286 self.thisown = 1
287
288
289
290 def wxDragIcon(*_args,**_kwargs):
291 val = wxDragImagePtr(apply(misc2c.new_wxDragIcon,_args,_kwargs))
292 val.thisown = 1
293 return val
294
295 def wxDragString(*_args,**_kwargs):
296 val = wxDragImagePtr(apply(misc2c.new_wxDragString,_args,_kwargs))
297 val.thisown = 1
298 return val
299
300 def wxDragTreeItem(*_args,**_kwargs):
301 val = wxDragImagePtr(apply(misc2c.new_wxDragTreeItem,_args,_kwargs))
302 val.thisown = 1
303 return val
304
305 def wxDragListItem(*_args,**_kwargs):
306 val = wxDragImagePtr(apply(misc2c.new_wxDragListItem,_args,_kwargs))
307 val.thisown = 1
308 return val
309
310
311 class wxPyTimerPtr(wxObjectPtr):
312 def __init__(self,this):
313 self.this = this
314 self.thisown = 0
315 def __del__(self,misc2c=misc2c):
316 if self.thisown == 1 :
317 misc2c.delete_wxPyTimer(self)
318 def GetInterval(self, *_args, **_kwargs):
319 val = apply(misc2c.wxPyTimer_GetInterval,(self,) + _args, _kwargs)
320 return val
321 def IsOneShot(self, *_args, **_kwargs):
322 val = apply(misc2c.wxPyTimer_IsOneShot,(self,) + _args, _kwargs)
323 return val
324 def IsRunning(self, *_args, **_kwargs):
325 val = apply(misc2c.wxPyTimer_IsRunning,(self,) + _args, _kwargs)
326 return val
327 def SetOwner(self, *_args, **_kwargs):
328 val = apply(misc2c.wxPyTimer_SetOwner,(self,) + _args, _kwargs)
329 return val
330 def Start(self, *_args, **_kwargs):
331 val = apply(misc2c.wxPyTimer_Start,(self,) + _args, _kwargs)
332 return val
333 def Stop(self, *_args, **_kwargs):
334 val = apply(misc2c.wxPyTimer_Stop,(self,) + _args, _kwargs)
335 return val
336 def __repr__(self):
337 return "<C wxPyTimer instance at %s>" % (self.this,)
338 class wxPyTimer(wxPyTimerPtr):
339 def __init__(self,*_args,**_kwargs):
340 self.this = apply(misc2c.new_wxPyTimer,_args,_kwargs)
341 self.thisown = 1
342
343
344
345
346 class wxStopWatchPtr :
347 def __init__(self,this):
348 self.this = this
349 self.thisown = 0
350 def __del__(self,misc2c=misc2c):
351 if self.thisown == 1 :
352 misc2c.delete_wxStopWatch(self)
353 def Start(self, *_args, **_kwargs):
354 val = apply(misc2c.wxStopWatch_Start,(self,) + _args, _kwargs)
355 return val
356 def Pause(self, *_args, **_kwargs):
357 val = apply(misc2c.wxStopWatch_Pause,(self,) + _args, _kwargs)
358 return val
359 def Resume(self, *_args, **_kwargs):
360 val = apply(misc2c.wxStopWatch_Resume,(self,) + _args, _kwargs)
361 return val
362 def Time(self, *_args, **_kwargs):
363 val = apply(misc2c.wxStopWatch_Time,(self,) + _args, _kwargs)
364 return val
365 def __repr__(self):
366 return "<C wxStopWatch instance at %s>" % (self.this,)
367 class wxStopWatch(wxStopWatchPtr):
368 def __init__(self,*_args,**_kwargs):
369 self.this = apply(misc2c.new_wxStopWatch,_args,_kwargs)
370 self.thisown = 1
371
372
373
374
375 class wxLogPtr :
376 def __init__(self,this):
377 self.this = this
378 self.thisown = 0
379 def Flush(self, *_args, **_kwargs):
380 val = apply(misc2c.wxLog_Flush,(self,) + _args, _kwargs)
381 return val
382 def HasPendingMessages(self, *_args, **_kwargs):
383 val = apply(misc2c.wxLog_HasPendingMessages,(self,) + _args, _kwargs)
384 return val
385 def GetVerbose(self, *_args, **_kwargs):
386 val = apply(misc2c.wxLog_GetVerbose,(self,) + _args, _kwargs)
387 return val
388 def TimeStamp(self, *_args, **_kwargs):
389 val = apply(misc2c.wxLog_TimeStamp,(self,) + _args, _kwargs)
390 return val
391 def __repr__(self):
392 return "<C wxLog instance at %s>" % (self.this,)
393 class wxLog(wxLogPtr):
394 def __init__(self,*_args,**_kwargs):
395 self.this = apply(misc2c.new_wxLog,_args,_kwargs)
396 self.thisown = 1
397
398
399
400
401 class wxLogStderrPtr(wxLogPtr):
402 def __init__(self,this):
403 self.this = this
404 self.thisown = 0
405 def __repr__(self):
406 return "<C wxLogStderr instance at %s>" % (self.this,)
407 class wxLogStderr(wxLogStderrPtr):
408 def __init__(self,*_args,**_kwargs):
409 self.this = apply(misc2c.new_wxLogStderr,_args,_kwargs)
410 self.thisown = 1
411
412
413
414
415 class wxLogTextCtrlPtr(wxLogPtr):
416 def __init__(self,this):
417 self.this = this
418 self.thisown = 0
419 def __repr__(self):
420 return "<C wxLogTextCtrl instance at %s>" % (self.this,)
421 class wxLogTextCtrl(wxLogTextCtrlPtr):
422 def __init__(self,*_args,**_kwargs):
423 self.this = apply(misc2c.new_wxLogTextCtrl,_args,_kwargs)
424 self.thisown = 1
425
426
427
428
429 class wxLogGuiPtr(wxLogPtr):
430 def __init__(self,this):
431 self.this = this
432 self.thisown = 0
433 def __repr__(self):
434 return "<C wxLogGui instance at %s>" % (self.this,)
435 class wxLogGui(wxLogGuiPtr):
436 def __init__(self,*_args,**_kwargs):
437 self.this = apply(misc2c.new_wxLogGui,_args,_kwargs)
438 self.thisown = 1
439
440
441
442
443 class wxLogWindowPtr(wxLogPtr):
444 def __init__(self,this):
445 self.this = this
446 self.thisown = 0
447 def Show(self, *_args, **_kwargs):
448 val = apply(misc2c.wxLogWindow_Show,(self,) + _args, _kwargs)
449 return val
450 def GetFrame(self, *_args, **_kwargs):
451 val = apply(misc2c.wxLogWindow_GetFrame,(self,) + _args, _kwargs)
452 return val
453 def GetOldLog(self, *_args, **_kwargs):
454 val = apply(misc2c.wxLogWindow_GetOldLog,(self,) + _args, _kwargs)
455 if val: val = wxLogPtr(val)
456 return val
457 def IsPassingMessages(self, *_args, **_kwargs):
458 val = apply(misc2c.wxLogWindow_IsPassingMessages,(self,) + _args, _kwargs)
459 return val
460 def PassMessages(self, *_args, **_kwargs):
461 val = apply(misc2c.wxLogWindow_PassMessages,(self,) + _args, _kwargs)
462 return val
463 def __repr__(self):
464 return "<C wxLogWindow instance at %s>" % (self.this,)
465 class wxLogWindow(wxLogWindowPtr):
466 def __init__(self,*_args,**_kwargs):
467 self.this = apply(misc2c.new_wxLogWindow,_args,_kwargs)
468 self.thisown = 1
469
470
471
472
473 class wxLogChainPtr(wxLogPtr):
474 def __init__(self,this):
475 self.this = this
476 self.thisown = 0
477 def SetLog(self, *_args, **_kwargs):
478 val = apply(misc2c.wxLogChain_SetLog,(self,) + _args, _kwargs)
479 return val
480 def PassMessages(self, *_args, **_kwargs):
481 val = apply(misc2c.wxLogChain_PassMessages,(self,) + _args, _kwargs)
482 return val
483 def IsPassingMessages(self, *_args, **_kwargs):
484 val = apply(misc2c.wxLogChain_IsPassingMessages,(self,) + _args, _kwargs)
485 return val
486 def GetOldLog(self, *_args, **_kwargs):
487 val = apply(misc2c.wxLogChain_GetOldLog,(self,) + _args, _kwargs)
488 if val: val = wxLogPtr(val)
489 return val
490 def __repr__(self):
491 return "<C wxLogChain instance at %s>" % (self.this,)
492 class wxLogChain(wxLogChainPtr):
493 def __init__(self,*_args,**_kwargs):
494 self.this = apply(misc2c.new_wxLogChain,_args,_kwargs)
495 self.thisown = 1
496
497
498
499
500 class wxLogNullPtr :
501 def __init__(self,this):
502 self.this = this
503 self.thisown = 0
504 def __del__(self,misc2c=misc2c):
505 if self.thisown == 1 :
506 misc2c.delete_wxLogNull(self)
507 def __repr__(self):
508 return "<C wxLogNull instance at %s>" % (self.this,)
509 class wxLogNull(wxLogNullPtr):
510 def __init__(self,*_args,**_kwargs):
511 self.this = apply(misc2c.new_wxLogNull,_args,_kwargs)
512 self.thisown = 1
513
514
515
516
517 class wxPyLogPtr(wxLogPtr):
518 def __init__(self,this):
519 self.this = this
520 self.thisown = 0
521 def _setCallbackInfo(self, *_args, **_kwargs):
522 val = apply(misc2c.wxPyLog__setCallbackInfo,(self,) + _args, _kwargs)
523 return val
524 def Destroy(self, *_args, **_kwargs):
525 val = apply(misc2c.wxPyLog_Destroy,(self,) + _args, _kwargs)
526 return val
527 def __repr__(self):
528 return "<C wxPyLog instance at %s>" % (self.this,)
529 class wxPyLog(wxPyLogPtr):
530 def __init__(self,*_args,**_kwargs):
531 self.this = apply(misc2c.new_wxPyLog,_args,_kwargs)
532 self.thisown = 1
533 self._setCallbackInfo(self, wxPyLog)
534
535
536
537
538 class wxProcessEventPtr(wxEventPtr):
539 def __init__(self,this):
540 self.this = this
541 self.thisown = 0
542 def GetPid(self, *_args, **_kwargs):
543 val = apply(misc2c.wxProcessEvent_GetPid,(self,) + _args, _kwargs)
544 return val
545 def GetExitCode(self, *_args, **_kwargs):
546 val = apply(misc2c.wxProcessEvent_GetExitCode,(self,) + _args, _kwargs)
547 return val
548 def __setattr__(self,name,value):
549 if name == "m_pid" :
550 misc2c.wxProcessEvent_m_pid_set(self,value)
551 return
552 if name == "m_exitcode" :
553 misc2c.wxProcessEvent_m_exitcode_set(self,value)
554 return
555 self.__dict__[name] = value
556 def __getattr__(self,name):
557 if name == "m_pid" :
558 return misc2c.wxProcessEvent_m_pid_get(self)
559 if name == "m_exitcode" :
560 return misc2c.wxProcessEvent_m_exitcode_get(self)
561 raise AttributeError,name
562 def __repr__(self):
563 return "<C wxProcessEvent instance at %s>" % (self.this,)
564 class wxProcessEvent(wxProcessEventPtr):
565 def __init__(self,*_args,**_kwargs):
566 self.this = apply(misc2c.new_wxProcessEvent,_args,_kwargs)
567 self.thisown = 1
568
569
570
571
572 class wxProcessPtr(wxEvtHandlerPtr):
573 def __init__(self,this):
574 self.this = this
575 self.thisown = 0
576 def Destroy(self, *_args, **_kwargs):
577 val = apply(misc2c.wxProcess_Destroy,(self,) + _args, _kwargs)
578 return val
579 def _setCallbackInfo(self, *_args, **_kwargs):
580 val = apply(misc2c.wxProcess__setCallbackInfo,(self,) + _args, _kwargs)
581 return val
582 def base_OnTerminate(self, *_args, **_kwargs):
583 val = apply(misc2c.wxProcess_base_OnTerminate,(self,) + _args, _kwargs)
584 return val
585 def Redirect(self, *_args, **_kwargs):
586 val = apply(misc2c.wxProcess_Redirect,(self,) + _args, _kwargs)
587 return val
588 def IsRedirected(self, *_args, **_kwargs):
589 val = apply(misc2c.wxProcess_IsRedirected,(self,) + _args, _kwargs)
590 return val
591 def Detach(self, *_args, **_kwargs):
592 val = apply(misc2c.wxProcess_Detach,(self,) + _args, _kwargs)
593 return val
594 def GetInputStream(self, *_args, **_kwargs):
595 val = apply(misc2c.wxProcess_GetInputStream,(self,) + _args, _kwargs)
596 return val
597 def GetErrorStream(self, *_args, **_kwargs):
598 val = apply(misc2c.wxProcess_GetErrorStream,(self,) + _args, _kwargs)
599 return val
600 def GetOutputStream(self, *_args, **_kwargs):
601 val = apply(misc2c.wxProcess_GetOutputStream,(self,) + _args, _kwargs)
602 if val: val = wxOutputStreamPtr(val)
603 return val
604 def CloseOutput(self, *_args, **_kwargs):
605 val = apply(misc2c.wxProcess_CloseOutput,(self,) + _args, _kwargs)
606 return val
607 def IsInputOpened(self, *_args, **_kwargs):
608 val = apply(misc2c.wxProcess_IsInputOpened,(self,) + _args, _kwargs)
609 return val
610 def IsInputAvailable(self, *_args, **_kwargs):
611 val = apply(misc2c.wxProcess_IsInputAvailable,(self,) + _args, _kwargs)
612 return val
613 def IsErrorAvailable(self, *_args, **_kwargs):
614 val = apply(misc2c.wxProcess_IsErrorAvailable,(self,) + _args, _kwargs)
615 return val
616 def __repr__(self):
617 return "<C wxProcess instance at %s>" % (self.this,)
618 class wxProcess(wxProcessPtr):
619 def __init__(self,*_args,**_kwargs):
620 self.this = apply(misc2c.new_wxProcess,_args,_kwargs)
621 self.thisown = 1
622 self._setCallbackInfo(self, wxProcess)
623
624
625
626
627 class wxJoystickPtr(wxObjectPtr):
628 def __init__(self,this):
629 self.this = this
630 self.thisown = 0
631 def __del__(self,misc2c=misc2c):
632 if self.thisown == 1 :
633 misc2c.delete_wxJoystick(self)
634 def GetPosition(self, *_args, **_kwargs):
635 val = apply(misc2c.wxJoystick_GetPosition,(self,) + _args, _kwargs)
636 if val: val = wxPointPtr(val) ; val.thisown = 1
637 return val
638 def GetZPosition(self, *_args, **_kwargs):
639 val = apply(misc2c.wxJoystick_GetZPosition,(self,) + _args, _kwargs)
640 return val
641 def GetButtonState(self, *_args, **_kwargs):
642 val = apply(misc2c.wxJoystick_GetButtonState,(self,) + _args, _kwargs)
643 return val
644 def GetPOVPosition(self, *_args, **_kwargs):
645 val = apply(misc2c.wxJoystick_GetPOVPosition,(self,) + _args, _kwargs)
646 return val
647 def GetPOVCTSPosition(self, *_args, **_kwargs):
648 val = apply(misc2c.wxJoystick_GetPOVCTSPosition,(self,) + _args, _kwargs)
649 return val
650 def GetRudderPosition(self, *_args, **_kwargs):
651 val = apply(misc2c.wxJoystick_GetRudderPosition,(self,) + _args, _kwargs)
652 return val
653 def GetUPosition(self, *_args, **_kwargs):
654 val = apply(misc2c.wxJoystick_GetUPosition,(self,) + _args, _kwargs)
655 return val
656 def GetVPosition(self, *_args, **_kwargs):
657 val = apply(misc2c.wxJoystick_GetVPosition,(self,) + _args, _kwargs)
658 return val
659 def GetMovementThreshold(self, *_args, **_kwargs):
660 val = apply(misc2c.wxJoystick_GetMovementThreshold,(self,) + _args, _kwargs)
661 return val
662 def SetMovementThreshold(self, *_args, **_kwargs):
663 val = apply(misc2c.wxJoystick_SetMovementThreshold,(self,) + _args, _kwargs)
664 return val
665 def IsOk(self, *_args, **_kwargs):
666 val = apply(misc2c.wxJoystick_IsOk,(self,) + _args, _kwargs)
667 return val
668 def GetNumberJoysticks(self, *_args, **_kwargs):
669 val = apply(misc2c.wxJoystick_GetNumberJoysticks,(self,) + _args, _kwargs)
670 return val
671 def GetManufacturerId(self, *_args, **_kwargs):
672 val = apply(misc2c.wxJoystick_GetManufacturerId,(self,) + _args, _kwargs)
673 return val
674 def GetProductId(self, *_args, **_kwargs):
675 val = apply(misc2c.wxJoystick_GetProductId,(self,) + _args, _kwargs)
676 return val
677 def GetProductName(self, *_args, **_kwargs):
678 val = apply(misc2c.wxJoystick_GetProductName,(self,) + _args, _kwargs)
679 return val
680 def GetXMin(self, *_args, **_kwargs):
681 val = apply(misc2c.wxJoystick_GetXMin,(self,) + _args, _kwargs)
682 return val
683 def GetYMin(self, *_args, **_kwargs):
684 val = apply(misc2c.wxJoystick_GetYMin,(self,) + _args, _kwargs)
685 return val
686 def GetZMin(self, *_args, **_kwargs):
687 val = apply(misc2c.wxJoystick_GetZMin,(self,) + _args, _kwargs)
688 return val
689 def GetXMax(self, *_args, **_kwargs):
690 val = apply(misc2c.wxJoystick_GetXMax,(self,) + _args, _kwargs)
691 return val
692 def GetYMax(self, *_args, **_kwargs):
693 val = apply(misc2c.wxJoystick_GetYMax,(self,) + _args, _kwargs)
694 return val
695 def GetZMax(self, *_args, **_kwargs):
696 val = apply(misc2c.wxJoystick_GetZMax,(self,) + _args, _kwargs)
697 return val
698 def GetNumberButtons(self, *_args, **_kwargs):
699 val = apply(misc2c.wxJoystick_GetNumberButtons,(self,) + _args, _kwargs)
700 return val
701 def GetNumberAxes(self, *_args, **_kwargs):
702 val = apply(misc2c.wxJoystick_GetNumberAxes,(self,) + _args, _kwargs)
703 return val
704 def GetMaxButtons(self, *_args, **_kwargs):
705 val = apply(misc2c.wxJoystick_GetMaxButtons,(self,) + _args, _kwargs)
706 return val
707 def GetMaxAxes(self, *_args, **_kwargs):
708 val = apply(misc2c.wxJoystick_GetMaxAxes,(self,) + _args, _kwargs)
709 return val
710 def GetPollingMin(self, *_args, **_kwargs):
711 val = apply(misc2c.wxJoystick_GetPollingMin,(self,) + _args, _kwargs)
712 return val
713 def GetPollingMax(self, *_args, **_kwargs):
714 val = apply(misc2c.wxJoystick_GetPollingMax,(self,) + _args, _kwargs)
715 return val
716 def GetRudderMin(self, *_args, **_kwargs):
717 val = apply(misc2c.wxJoystick_GetRudderMin,(self,) + _args, _kwargs)
718 return val
719 def GetRudderMax(self, *_args, **_kwargs):
720 val = apply(misc2c.wxJoystick_GetRudderMax,(self,) + _args, _kwargs)
721 return val
722 def GetUMin(self, *_args, **_kwargs):
723 val = apply(misc2c.wxJoystick_GetUMin,(self,) + _args, _kwargs)
724 return val
725 def GetUMax(self, *_args, **_kwargs):
726 val = apply(misc2c.wxJoystick_GetUMax,(self,) + _args, _kwargs)
727 return val
728 def GetVMin(self, *_args, **_kwargs):
729 val = apply(misc2c.wxJoystick_GetVMin,(self,) + _args, _kwargs)
730 return val
731 def GetVMax(self, *_args, **_kwargs):
732 val = apply(misc2c.wxJoystick_GetVMax,(self,) + _args, _kwargs)
733 return val
734 def HasRudder(self, *_args, **_kwargs):
735 val = apply(misc2c.wxJoystick_HasRudder,(self,) + _args, _kwargs)
736 return val
737 def HasZ(self, *_args, **_kwargs):
738 val = apply(misc2c.wxJoystick_HasZ,(self,) + _args, _kwargs)
739 return val
740 def HasU(self, *_args, **_kwargs):
741 val = apply(misc2c.wxJoystick_HasU,(self,) + _args, _kwargs)
742 return val
743 def HasV(self, *_args, **_kwargs):
744 val = apply(misc2c.wxJoystick_HasV,(self,) + _args, _kwargs)
745 return val
746 def HasPOV(self, *_args, **_kwargs):
747 val = apply(misc2c.wxJoystick_HasPOV,(self,) + _args, _kwargs)
748 return val
749 def HasPOV4Dir(self, *_args, **_kwargs):
750 val = apply(misc2c.wxJoystick_HasPOV4Dir,(self,) + _args, _kwargs)
751 return val
752 def HasPOVCTS(self, *_args, **_kwargs):
753 val = apply(misc2c.wxJoystick_HasPOVCTS,(self,) + _args, _kwargs)
754 return val
755 def SetCapture(self, *_args, **_kwargs):
756 val = apply(misc2c.wxJoystick_SetCapture,(self,) + _args, _kwargs)
757 return val
758 def ReleaseCapture(self, *_args, **_kwargs):
759 val = apply(misc2c.wxJoystick_ReleaseCapture,(self,) + _args, _kwargs)
760 return val
761 def __repr__(self):
762 return "<C wxJoystick instance at %s>" % (self.this,)
763 class wxJoystick(wxJoystickPtr):
764 def __init__(self,*_args,**_kwargs):
765 self.this = apply(misc2c.new_wxJoystick,_args,_kwargs)
766 self.thisown = 1
767
768
769
770
771 class wxWavePtr(wxObjectPtr):
772 def __init__(self,this):
773 self.this = this
774 self.thisown = 0
775 def __del__(self,misc2c=misc2c):
776 if self.thisown == 1 :
777 misc2c.delete_wxWave(self)
778 def IsOk(self, *_args, **_kwargs):
779 val = apply(misc2c.wxWave_IsOk,(self,) + _args, _kwargs)
780 return val
781 def Play(self, *_args, **_kwargs):
782 val = apply(misc2c.wxWave_Play,(self,) + _args, _kwargs)
783 return val
784 def __repr__(self):
785 return "<C wxWave instance at %s>" % (self.this,)
786 class wxWave(wxWavePtr):
787 def __init__(self,*_args,**_kwargs):
788 self.this = apply(misc2c.new_wxWave,_args,_kwargs)
789 self.thisown = 1
790
791
792
793
794 class wxFileTypeInfoPtr :
795 def __init__(self,this):
796 self.this = this
797 self.thisown = 0
798 def IsValid(self, *_args, **_kwargs):
799 val = apply(misc2c.wxFileTypeInfo_IsValid,(self,) + _args, _kwargs)
800 return val
801 def SetIcon(self, *_args, **_kwargs):
802 val = apply(misc2c.wxFileTypeInfo_SetIcon,(self,) + _args, _kwargs)
803 return val
804 def SetShortDesc(self, *_args, **_kwargs):
805 val = apply(misc2c.wxFileTypeInfo_SetShortDesc,(self,) + _args, _kwargs)
806 return val
807 def GetMimeType(self, *_args, **_kwargs):
808 val = apply(misc2c.wxFileTypeInfo_GetMimeType,(self,) + _args, _kwargs)
809 return val
810 def GetOpenCommand(self, *_args, **_kwargs):
811 val = apply(misc2c.wxFileTypeInfo_GetOpenCommand,(self,) + _args, _kwargs)
812 return val
813 def GetPrintCommand(self, *_args, **_kwargs):
814 val = apply(misc2c.wxFileTypeInfo_GetPrintCommand,(self,) + _args, _kwargs)
815 return val
816 def GetShortDesc(self, *_args, **_kwargs):
817 val = apply(misc2c.wxFileTypeInfo_GetShortDesc,(self,) + _args, _kwargs)
818 return val
819 def GetDescription(self, *_args, **_kwargs):
820 val = apply(misc2c.wxFileTypeInfo_GetDescription,(self,) + _args, _kwargs)
821 return val
822 def GetExtensions(self, *_args, **_kwargs):
823 val = apply(misc2c.wxFileTypeInfo_GetExtensions,(self,) + _args, _kwargs)
824 return val
825 def GetExtensionsCount(self, *_args, **_kwargs):
826 val = apply(misc2c.wxFileTypeInfo_GetExtensionsCount,(self,) + _args, _kwargs)
827 return val
828 def GetIconFile(self, *_args, **_kwargs):
829 val = apply(misc2c.wxFileTypeInfo_GetIconFile,(self,) + _args, _kwargs)
830 return val
831 def GetIconIndex(self, *_args, **_kwargs):
832 val = apply(misc2c.wxFileTypeInfo_GetIconIndex,(self,) + _args, _kwargs)
833 return val
834 def __repr__(self):
835 return "<C wxFileTypeInfo instance at %s>" % (self.this,)
836 class wxFileTypeInfo(wxFileTypeInfoPtr):
837 def __init__(self,*_args,**_kwargs):
838 self.this = apply(misc2c.new_wxFileTypeInfo,_args,_kwargs)
839 self.thisown = 1
840
841
842
843 def wxFileTypeInfoSequence(*_args,**_kwargs):
844 val = wxFileTypeInfoPtr(apply(misc2c.new_wxFileTypeInfoSequence,_args,_kwargs))
845 val.thisown = 1
846 return val
847
848 def wxNullFileTypeInfo(*_args,**_kwargs):
849 val = wxFileTypeInfoPtr(apply(misc2c.new_wxNullFileTypeInfo,_args,_kwargs))
850 val.thisown = 1
851 return val
852
853
854 class wxFileTypePtr :
855 def __init__(self,this):
856 self.this = this
857 self.thisown = 0
858 def GetMimeType(self, *_args, **_kwargs):
859 val = apply(misc2c.wxFileType_GetMimeType,(self,) + _args, _kwargs)
860 return val
861 def GetMimeTypes(self, *_args, **_kwargs):
862 val = apply(misc2c.wxFileType_GetMimeTypes,(self,) + _args, _kwargs)
863 return val
864 def GetExtensions(self, *_args, **_kwargs):
865 val = apply(misc2c.wxFileType_GetExtensions,(self,) + _args, _kwargs)
866 return val
867 def GetIcon(self, *_args, **_kwargs):
868 val = apply(misc2c.wxFileType_GetIcon,(self,) + _args, _kwargs)
869 if val: val = wxIconPtr(val) ; val.thisown = 1
870 return val
871 def GetIconInfo(self, *_args, **_kwargs):
872 val = apply(misc2c.wxFileType_GetIconInfo,(self,) + _args, _kwargs)
873 return val
874 def GetDescription(self, *_args, **_kwargs):
875 val = apply(misc2c.wxFileType_GetDescription,(self,) + _args, _kwargs)
876 return val
877 def GetOpenCommand(self, *_args, **_kwargs):
878 val = apply(misc2c.wxFileType_GetOpenCommand,(self,) + _args, _kwargs)
879 return val
880 def GetPrintCommand(self, *_args, **_kwargs):
881 val = apply(misc2c.wxFileType_GetPrintCommand,(self,) + _args, _kwargs)
882 return val
883 def GetAllCommands(self, *_args, **_kwargs):
884 val = apply(misc2c.wxFileType_GetAllCommands,(self,) + _args, _kwargs)
885 return val
886 def SetCommand(self, *_args, **_kwargs):
887 val = apply(misc2c.wxFileType_SetCommand,(self,) + _args, _kwargs)
888 return val
889 def SetDefaultIcon(self, *_args, **_kwargs):
890 val = apply(misc2c.wxFileType_SetDefaultIcon,(self,) + _args, _kwargs)
891 return val
892 def Unassociate(self, *_args, **_kwargs):
893 val = apply(misc2c.wxFileType_Unassociate,(self,) + _args, _kwargs)
894 return val
895 def __del__(self,misc2c=misc2c):
896 if self.thisown == 1 :
897 misc2c.delete_wxFileType(self)
898 def __repr__(self):
899 return "<C wxFileType instance at %s>" % (self.this,)
900 class wxFileType(wxFileTypePtr):
901 def __init__(self,*_args,**_kwargs):
902 self.this = apply(misc2c.new_wxFileType,_args,_kwargs)
903 self.thisown = 1
904
905
906
907
908 class wxMimeTypesManagerPtr :
909 def __init__(self,this):
910 self.this = this
911 self.thisown = 0
912 def Initialize(self, *_args, **_kwargs):
913 val = apply(misc2c.wxMimeTypesManager_Initialize,(self,) + _args, _kwargs)
914 return val
915 def ClearData(self, *_args, **_kwargs):
916 val = apply(misc2c.wxMimeTypesManager_ClearData,(self,) + _args, _kwargs)
917 return val
918 def GetFileTypeFromExtension(self, *_args, **_kwargs):
919 val = apply(misc2c.wxMimeTypesManager_GetFileTypeFromExtension,(self,) + _args, _kwargs)
920 if val: val = wxFileTypePtr(val) ; val.thisown = 1
921 return val
922 def GetFileTypeFromMimeType(self, *_args, **_kwargs):
923 val = apply(misc2c.wxMimeTypesManager_GetFileTypeFromMimeType,(self,) + _args, _kwargs)
924 if val: val = wxFileTypePtr(val) ; val.thisown = 1
925 return val
926 def ReadMailcap(self, *_args, **_kwargs):
927 val = apply(misc2c.wxMimeTypesManager_ReadMailcap,(self,) + _args, _kwargs)
928 return val
929 def ReadMimeTypes(self, *_args, **_kwargs):
930 val = apply(misc2c.wxMimeTypesManager_ReadMimeTypes,(self,) + _args, _kwargs)
931 return val
932 def EnumAllFileTypes(self, *_args, **_kwargs):
933 val = apply(misc2c.wxMimeTypesManager_EnumAllFileTypes,(self,) + _args, _kwargs)
934 return val
935 def AddFallback(self, *_args, **_kwargs):
936 val = apply(misc2c.wxMimeTypesManager_AddFallback,(self,) + _args, _kwargs)
937 return val
938 def Associate(self, *_args, **_kwargs):
939 val = apply(misc2c.wxMimeTypesManager_Associate,(self,) + _args, _kwargs)
940 if val: val = wxFileTypePtr(val) ; val.thisown = 1
941 return val
942 def Unassociate(self, *_args, **_kwargs):
943 val = apply(misc2c.wxMimeTypesManager_Unassociate,(self,) + _args, _kwargs)
944 return val
945 def __del__(self,misc2c=misc2c):
946 if self.thisown == 1 :
947 misc2c.delete_wxMimeTypesManager(self)
948 def __repr__(self):
949 return "<C wxMimeTypesManager instance at %s>" % (self.this,)
950 class wxMimeTypesManager(wxMimeTypesManagerPtr):
951 def __init__(self,*_args,**_kwargs):
952 self.this = apply(misc2c.new_wxMimeTypesManager,_args,_kwargs)
953 self.thisown = 1
954
955
956
957
958 class wxArtProviderPtr(wxObjectPtr):
959 def __init__(self,this):
960 self.this = this
961 self.thisown = 0
962 def _setCallbackInfo(self, *_args, **_kwargs):
963 val = apply(misc2c.wxArtProvider__setCallbackInfo,(self,) + _args, _kwargs)
964 return val
965 def __repr__(self):
966 return "<C wxArtProvider instance at %s>" % (self.this,)
967 class wxArtProvider(wxArtProviderPtr):
968 def __init__(self,*_args,**_kwargs):
969 self.this = apply(misc2c.new_wxArtProvider,_args,_kwargs)
970 self.thisown = 1
971 self._setCallbackInfo(self, wxArtProvider)
972
973
974
975
976 class wxFileHistoryPtr(wxObjectPtr):
977 def __init__(self,this):
978 self.this = this
979 self.thisown = 0
980 def __del__(self,misc2c=misc2c):
981 if self.thisown == 1 :
982 misc2c.delete_wxFileHistory(self)
983 def AddFileToHistory(self, *_args, **_kwargs):
984 val = apply(misc2c.wxFileHistory_AddFileToHistory,(self,) + _args, _kwargs)
985 return val
986 def RemoveFileFromHistory(self, *_args, **_kwargs):
987 val = apply(misc2c.wxFileHistory_RemoveFileFromHistory,(self,) + _args, _kwargs)
988 return val
989 def GetMaxFiles(self, *_args, **_kwargs):
990 val = apply(misc2c.wxFileHistory_GetMaxFiles,(self,) + _args, _kwargs)
991 return val
992 def UseMenu(self, *_args, **_kwargs):
993 val = apply(misc2c.wxFileHistory_UseMenu,(self,) + _args, _kwargs)
994 return val
995 def RemoveMenu(self, *_args, **_kwargs):
996 val = apply(misc2c.wxFileHistory_RemoveMenu,(self,) + _args, _kwargs)
997 return val
998 def Load(self, *_args, **_kwargs):
999 val = apply(misc2c.wxFileHistory_Load,(self,) + _args, _kwargs)
1000 return val
1001 def Save(self, *_args, **_kwargs):
1002 val = apply(misc2c.wxFileHistory_Save,(self,) + _args, _kwargs)
1003 return val
1004 def AddFilesToMenu(self, *_args, **_kwargs):
1005 val = apply(misc2c.wxFileHistory_AddFilesToMenu,(self,) + _args, _kwargs)
1006 return val
1007 def AddFilesToThisMenu(self, *_args, **_kwargs):
1008 val = apply(misc2c.wxFileHistory_AddFilesToThisMenu,(self,) + _args, _kwargs)
1009 return val
1010 def GetHistoryFile(self, *_args, **_kwargs):
1011 val = apply(misc2c.wxFileHistory_GetHistoryFile,(self,) + _args, _kwargs)
1012 return val
1013 def GetCount(self, *_args, **_kwargs):
1014 val = apply(misc2c.wxFileHistory_GetCount,(self,) + _args, _kwargs)
1015 return val
1016 def GetNoHistoryFiles(self, *_args, **_kwargs):
1017 val = apply(misc2c.wxFileHistory_GetNoHistoryFiles,(self,) + _args, _kwargs)
1018 return val
1019 def __repr__(self):
1020 return "<C wxFileHistory instance at %s>" % (self.this,)
1021 class wxFileHistory(wxFileHistoryPtr):
1022 def __init__(self,*_args,**_kwargs):
1023 self.this = apply(misc2c.new_wxFileHistory,_args,_kwargs)
1024 self.thisown = 1
1025
1026
1027
1028
1029
1030
1031 #-------------- FUNCTION WRAPPERS ------------------
1032
1033 wxFileSelector = misc2c.wxFileSelector
1034
1035 wxLoadFileSelector = misc2c.wxLoadFileSelector
1036
1037 wxSaveFileSelector = misc2c.wxSaveFileSelector
1038
1039 wxDirSelector = misc2c.wxDirSelector
1040
1041 wxGetTextFromUser = misc2c.wxGetTextFromUser
1042
1043 wxGetPasswordFromUser = misc2c.wxGetPasswordFromUser
1044
1045 wxGetSingleChoice = misc2c.wxGetSingleChoice
1046
1047 wxGetSingleChoiceIndex = misc2c.wxGetSingleChoiceIndex
1048
1049 wxMessageBox = misc2c.wxMessageBox
1050
1051 wxGetNumberFromUser = misc2c.wxGetNumberFromUser
1052
1053 wxColourDisplay = misc2c.wxColourDisplay
1054
1055 wxDisplayDepth = misc2c.wxDisplayDepth
1056
1057 wxGetDisplayDepth = misc2c.wxGetDisplayDepth
1058
1059 wxDisplaySize = misc2c.wxDisplaySize
1060
1061 def wxGetDisplaySize(*_args, **_kwargs):
1062 val = apply(misc2c.wxGetDisplaySize,_args,_kwargs)
1063 if val: val = wxSizePtr(val); val.thisown = 1
1064 return val
1065
1066 wxDisplaySizeMM = misc2c.wxDisplaySizeMM
1067
1068 def wxGetDisplaySizeMM(*_args, **_kwargs):
1069 val = apply(misc2c.wxGetDisplaySizeMM,_args,_kwargs)
1070 if val: val = wxSizePtr(val); val.thisown = 1
1071 return val
1072
1073 wxClientDisplayRect = misc2c.wxClientDisplayRect
1074
1075 def wxGetClientDisplayRect(*_args, **_kwargs):
1076 val = apply(misc2c.wxGetClientDisplayRect,_args,_kwargs)
1077 if val: val = wxRectPtr(val); val.thisown = 1
1078 return val
1079
1080 wxSetCursor = misc2c.wxSetCursor
1081
1082 wxBeginBusyCursor = misc2c.wxBeginBusyCursor
1083
1084 def wxGetActiveWindow(*_args, **_kwargs):
1085 val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
1086 return val
1087
1088 def wxGenericFindWindowAtPoint(*_args, **_kwargs):
1089 val = apply(misc2c.wxGenericFindWindowAtPoint,_args,_kwargs)
1090 return val
1091
1092 def wxFindWindowAtPoint(*_args, **_kwargs):
1093 val = apply(misc2c.wxFindWindowAtPoint,_args,_kwargs)
1094 return val
1095
1096 def wxGetTopLevelParent(*_args, **_kwargs):
1097 val = apply(misc2c.wxGetTopLevelParent,_args,_kwargs)
1098 return val
1099
1100 wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
1101
1102 wxResourceClear = misc2c.wxResourceClear
1103
1104 def wxResourceCreateBitmap(*_args, **_kwargs):
1105 val = apply(misc2c.wxResourceCreateBitmap,_args,_kwargs)
1106 if val: val = wxBitmapPtr(val); val.thisown = 1
1107 return val
1108
1109 def wxResourceCreateIcon(*_args, **_kwargs):
1110 val = apply(misc2c.wxResourceCreateIcon,_args,_kwargs)
1111 if val: val = wxIconPtr(val); val.thisown = 1
1112 return val
1113
1114 def wxResourceCreateMenuBar(*_args, **_kwargs):
1115 val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
1116 return val
1117
1118 wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
1119
1120 wxResourceParseData = misc2c.wxResourceParseData
1121
1122 wxResourceParseFile = misc2c.wxResourceParseFile
1123
1124 wxResourceParseString = misc2c.wxResourceParseString
1125
1126 wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
1127
1128 wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
1129
1130 wxSafeYield = misc2c.wxSafeYield
1131
1132 wxPostEvent = misc2c.wxPostEvent
1133
1134 wxWakeUpIdle = misc2c.wxWakeUpIdle
1135
1136 wxMutexGuiEnter = misc2c.wxMutexGuiEnter
1137
1138 wxMutexGuiLeave = misc2c.wxMutexGuiLeave
1139
1140 wxThread_IsMain = misc2c.wxThread_IsMain
1141
1142 wxShowTip = misc2c.wxShowTip
1143
1144 def wxCreateFileTipProvider(*_args, **_kwargs):
1145 val = apply(misc2c.wxCreateFileTipProvider,_args,_kwargs)
1146 if val: val = wxTipProviderPtr(val); val.thisown = 1
1147 return val
1148
1149 wxSysErrorCode = misc2c.wxSysErrorCode
1150
1151 wxSysErrorMsg = misc2c.wxSysErrorMsg
1152
1153 wxLogFatalError = misc2c.wxLogFatalError
1154
1155 wxLogError = misc2c.wxLogError
1156
1157 wxLogWarning = misc2c.wxLogWarning
1158
1159 wxLogMessage = misc2c.wxLogMessage
1160
1161 wxLogInfo = misc2c.wxLogInfo
1162
1163 wxLogVerbose = misc2c.wxLogVerbose
1164
1165 wxLogStatus = misc2c.wxLogStatus
1166
1167 wxLogStatusFrame = misc2c.wxLogStatusFrame
1168
1169 wxLogSysError = misc2c.wxLogSysError
1170
1171 wxLogTrace = misc2c.wxLogTrace
1172
1173 wxLogTraceMask = misc2c.wxLogTraceMask
1174
1175 wxLogGeneric = misc2c.wxLogGeneric
1176
1177 wxSafeShowMessage = misc2c.wxSafeShowMessage
1178
1179 wxExecute = misc2c.wxExecute
1180
1181 def wxWaveData(*_args, **_kwargs):
1182 val = apply(misc2c.wxWaveData,_args,_kwargs)
1183 if val: val = wxWavePtr(val); val.thisown = 1
1184 return val
1185
1186 def wxSystemSettings_GetColour(*_args, **_kwargs):
1187 val = apply(misc2c.wxSystemSettings_GetColour,_args,_kwargs)
1188 if val: val = wxColourPtr(val); val.thisown = 1
1189 return val
1190
1191 def wxSystemSettings_GetFont(*_args, **_kwargs):
1192 val = apply(misc2c.wxSystemSettings_GetFont,_args,_kwargs)
1193 if val: val = wxFontPtr(val); val.thisown = 1
1194 return val
1195
1196 wxSystemSettings_GetMetric = misc2c.wxSystemSettings_GetMetric
1197
1198 wxSystemSettings_HasFeature = misc2c.wxSystemSettings_HasFeature
1199
1200 wxSystemSettings_GetScreenType = misc2c.wxSystemSettings_GetScreenType
1201
1202 wxSystemSettings_SetScreenType = misc2c.wxSystemSettings_SetScreenType
1203
1204 wxToolTip_Enable = misc2c.wxToolTip_Enable
1205
1206 wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay
1207
1208 wxLog_IsEnabled = misc2c.wxLog_IsEnabled
1209
1210 wxLog_EnableLogging = misc2c.wxLog_EnableLogging
1211
1212 wxLog_OnLog = misc2c.wxLog_OnLog
1213
1214 wxLog_FlushActive = misc2c.wxLog_FlushActive
1215
1216 def wxLog_GetActiveTarget(*_args, **_kwargs):
1217 val = apply(misc2c.wxLog_GetActiveTarget,_args,_kwargs)
1218 if val: val = wxLogPtr(val)
1219 return val
1220
1221 def wxLog_SetActiveTarget(*_args, **_kwargs):
1222 val = apply(misc2c.wxLog_SetActiveTarget,_args,_kwargs)
1223 if val: val = wxLogPtr(val)
1224 return val
1225
1226 wxLog_Suspend = misc2c.wxLog_Suspend
1227
1228 wxLog_Resume = misc2c.wxLog_Resume
1229
1230 wxLog_SetVerbose = misc2c.wxLog_SetVerbose
1231
1232 wxLog_DontCreateOnDemand = misc2c.wxLog_DontCreateOnDemand
1233
1234 wxLog_SetTraceMask = misc2c.wxLog_SetTraceMask
1235
1236 wxLog_AddTraceMask = misc2c.wxLog_AddTraceMask
1237
1238 wxLog_RemoveTraceMask = misc2c.wxLog_RemoveTraceMask
1239
1240 wxLog_ClearTraceMasks = misc2c.wxLog_ClearTraceMasks
1241
1242 wxLog_SetTimestamp = misc2c.wxLog_SetTimestamp
1243
1244 wxLog_GetTimestamp = misc2c.wxLog_GetTimestamp
1245
1246 wxLog_GetTraceMask = misc2c.wxLog_GetTraceMask
1247
1248 wxLog_IsAllowedTraceMask = misc2c.wxLog_IsAllowedTraceMask
1249
1250 wxProcess_Kill = misc2c.wxProcess_Kill
1251
1252 wxProcess_Exists = misc2c.wxProcess_Exists
1253
1254 def wxProcess_Open(*_args, **_kwargs):
1255 val = apply(misc2c.wxProcess_Open,_args,_kwargs)
1256 if val: val = wxProcessPtr(val)
1257 return val
1258
1259 wxFileType_ExpandCommand = misc2c.wxFileType_ExpandCommand
1260
1261 wxMimeTypesManager_IsOfType = misc2c.wxMimeTypesManager_IsOfType
1262
1263 wxArtProvider_PushProvider = misc2c.wxArtProvider_PushProvider
1264
1265 wxArtProvider_PopProvider = misc2c.wxArtProvider_PopProvider
1266
1267 wxArtProvider_RemoveProvider = misc2c.wxArtProvider_RemoveProvider
1268
1269 def wxArtProvider_GetBitmap(*_args, **_kwargs):
1270 val = apply(misc2c.wxArtProvider_GetBitmap,_args,_kwargs)
1271 if val: val = wxBitmapPtr(val); val.thisown = 1
1272 return val
1273
1274 def wxArtProvider_GetIcon(*_args, **_kwargs):
1275 val = apply(misc2c.wxArtProvider_GetIcon,_args,_kwargs)
1276 if val: val = wxIconPtr(val); val.thisown = 1
1277 return val
1278
1279 wxArtProvider_CleanUpProviders = misc2c.wxArtProvider_CleanUpProviders
1280
1281
1282
1283 #-------------- VARIABLE WRAPPERS ------------------
1284
1285 wxSYS_OEM_FIXED_FONT = misc2c.wxSYS_OEM_FIXED_FONT
1286 wxSYS_ANSI_FIXED_FONT = misc2c.wxSYS_ANSI_FIXED_FONT
1287 wxSYS_ANSI_VAR_FONT = misc2c.wxSYS_ANSI_VAR_FONT
1288 wxSYS_SYSTEM_FONT = misc2c.wxSYS_SYSTEM_FONT
1289 wxSYS_DEVICE_DEFAULT_FONT = misc2c.wxSYS_DEVICE_DEFAULT_FONT
1290 wxSYS_DEFAULT_PALETTE = misc2c.wxSYS_DEFAULT_PALETTE
1291 wxSYS_SYSTEM_FIXED_FONT = misc2c.wxSYS_SYSTEM_FIXED_FONT
1292 wxSYS_DEFAULT_GUI_FONT = misc2c.wxSYS_DEFAULT_GUI_FONT
1293 wxSYS_COLOUR_SCROLLBAR = misc2c.wxSYS_COLOUR_SCROLLBAR
1294 wxSYS_COLOUR_BACKGROUND = misc2c.wxSYS_COLOUR_BACKGROUND
1295 wxSYS_COLOUR_DESKTOP = misc2c.wxSYS_COLOUR_DESKTOP
1296 wxSYS_COLOUR_ACTIVECAPTION = misc2c.wxSYS_COLOUR_ACTIVECAPTION
1297 wxSYS_COLOUR_INACTIVECAPTION = misc2c.wxSYS_COLOUR_INACTIVECAPTION
1298 wxSYS_COLOUR_MENU = misc2c.wxSYS_COLOUR_MENU
1299 wxSYS_COLOUR_WINDOW = misc2c.wxSYS_COLOUR_WINDOW
1300 wxSYS_COLOUR_WINDOWFRAME = misc2c.wxSYS_COLOUR_WINDOWFRAME
1301 wxSYS_COLOUR_MENUTEXT = misc2c.wxSYS_COLOUR_MENUTEXT
1302 wxSYS_COLOUR_WINDOWTEXT = misc2c.wxSYS_COLOUR_WINDOWTEXT
1303 wxSYS_COLOUR_CAPTIONTEXT = misc2c.wxSYS_COLOUR_CAPTIONTEXT
1304 wxSYS_COLOUR_ACTIVEBORDER = misc2c.wxSYS_COLOUR_ACTIVEBORDER
1305 wxSYS_COLOUR_INACTIVEBORDER = misc2c.wxSYS_COLOUR_INACTIVEBORDER
1306 wxSYS_COLOUR_APPWORKSPACE = misc2c.wxSYS_COLOUR_APPWORKSPACE
1307 wxSYS_COLOUR_HIGHLIGHT = misc2c.wxSYS_COLOUR_HIGHLIGHT
1308 wxSYS_COLOUR_HIGHLIGHTTEXT = misc2c.wxSYS_COLOUR_HIGHLIGHTTEXT
1309 wxSYS_COLOUR_BTNFACE = misc2c.wxSYS_COLOUR_BTNFACE
1310 wxSYS_COLOUR_3DFACE = misc2c.wxSYS_COLOUR_3DFACE
1311 wxSYS_COLOUR_BTNSHADOW = misc2c.wxSYS_COLOUR_BTNSHADOW
1312 wxSYS_COLOUR_3DSHADOW = misc2c.wxSYS_COLOUR_3DSHADOW
1313 wxSYS_COLOUR_GRAYTEXT = misc2c.wxSYS_COLOUR_GRAYTEXT
1314 wxSYS_COLOUR_BTNTEXT = misc2c.wxSYS_COLOUR_BTNTEXT
1315 wxSYS_COLOUR_INACTIVECAPTIONTEXT = misc2c.wxSYS_COLOUR_INACTIVECAPTIONTEXT
1316 wxSYS_COLOUR_BTNHIGHLIGHT = misc2c.wxSYS_COLOUR_BTNHIGHLIGHT
1317 wxSYS_COLOUR_BTNHILIGHT = misc2c.wxSYS_COLOUR_BTNHILIGHT
1318 wxSYS_COLOUR_3DHIGHLIGHT = misc2c.wxSYS_COLOUR_3DHIGHLIGHT
1319 wxSYS_COLOUR_3DHILIGHT = misc2c.wxSYS_COLOUR_3DHILIGHT
1320 wxSYS_COLOUR_3DDKSHADOW = misc2c.wxSYS_COLOUR_3DDKSHADOW
1321 wxSYS_COLOUR_3DLIGHT = misc2c.wxSYS_COLOUR_3DLIGHT
1322 wxSYS_COLOUR_INFOTEXT = misc2c.wxSYS_COLOUR_INFOTEXT
1323 wxSYS_COLOUR_INFOBK = misc2c.wxSYS_COLOUR_INFOBK
1324 wxSYS_COLOUR_LISTBOX = misc2c.wxSYS_COLOUR_LISTBOX
1325 wxSYS_COLOUR_HOTLIGHT = misc2c.wxSYS_COLOUR_HOTLIGHT
1326 wxSYS_COLOUR_GRADIENTACTIVECAPTION = misc2c.wxSYS_COLOUR_GRADIENTACTIVECAPTION
1327 wxSYS_COLOUR_GRADIENTINACTIVECAPTION = misc2c.wxSYS_COLOUR_GRADIENTINACTIVECAPTION
1328 wxSYS_COLOUR_MENUHILIGHT = misc2c.wxSYS_COLOUR_MENUHILIGHT
1329 wxSYS_COLOUR_MENUBAR = misc2c.wxSYS_COLOUR_MENUBAR
1330 wxSYS_COLOUR_MAX = misc2c.wxSYS_COLOUR_MAX
1331 wxSYS_MOUSE_BUTTONS = misc2c.wxSYS_MOUSE_BUTTONS
1332 wxSYS_BORDER_X = misc2c.wxSYS_BORDER_X
1333 wxSYS_BORDER_Y = misc2c.wxSYS_BORDER_Y
1334 wxSYS_CURSOR_X = misc2c.wxSYS_CURSOR_X
1335 wxSYS_CURSOR_Y = misc2c.wxSYS_CURSOR_Y
1336 wxSYS_DCLICK_X = misc2c.wxSYS_DCLICK_X
1337 wxSYS_DCLICK_Y = misc2c.wxSYS_DCLICK_Y
1338 wxSYS_DRAG_X = misc2c.wxSYS_DRAG_X
1339 wxSYS_DRAG_Y = misc2c.wxSYS_DRAG_Y
1340 wxSYS_EDGE_X = misc2c.wxSYS_EDGE_X
1341 wxSYS_EDGE_Y = misc2c.wxSYS_EDGE_Y
1342 wxSYS_HSCROLL_ARROW_X = misc2c.wxSYS_HSCROLL_ARROW_X
1343 wxSYS_HSCROLL_ARROW_Y = misc2c.wxSYS_HSCROLL_ARROW_Y
1344 wxSYS_HTHUMB_X = misc2c.wxSYS_HTHUMB_X
1345 wxSYS_ICON_X = misc2c.wxSYS_ICON_X
1346 wxSYS_ICON_Y = misc2c.wxSYS_ICON_Y
1347 wxSYS_ICONSPACING_X = misc2c.wxSYS_ICONSPACING_X
1348 wxSYS_ICONSPACING_Y = misc2c.wxSYS_ICONSPACING_Y
1349 wxSYS_WINDOWMIN_X = misc2c.wxSYS_WINDOWMIN_X
1350 wxSYS_WINDOWMIN_Y = misc2c.wxSYS_WINDOWMIN_Y
1351 wxSYS_SCREEN_X = misc2c.wxSYS_SCREEN_X
1352 wxSYS_SCREEN_Y = misc2c.wxSYS_SCREEN_Y
1353 wxSYS_FRAMESIZE_X = misc2c.wxSYS_FRAMESIZE_X
1354 wxSYS_FRAMESIZE_Y = misc2c.wxSYS_FRAMESIZE_Y
1355 wxSYS_SMALLICON_X = misc2c.wxSYS_SMALLICON_X
1356 wxSYS_SMALLICON_Y = misc2c.wxSYS_SMALLICON_Y
1357 wxSYS_HSCROLL_Y = misc2c.wxSYS_HSCROLL_Y
1358 wxSYS_VSCROLL_X = misc2c.wxSYS_VSCROLL_X
1359 wxSYS_VSCROLL_ARROW_X = misc2c.wxSYS_VSCROLL_ARROW_X
1360 wxSYS_VSCROLL_ARROW_Y = misc2c.wxSYS_VSCROLL_ARROW_Y
1361 wxSYS_VTHUMB_Y = misc2c.wxSYS_VTHUMB_Y
1362 wxSYS_CAPTION_Y = misc2c.wxSYS_CAPTION_Y
1363 wxSYS_MENU_Y = misc2c.wxSYS_MENU_Y
1364 wxSYS_NETWORK_PRESENT = misc2c.wxSYS_NETWORK_PRESENT
1365 wxSYS_PENWINDOWS_PRESENT = misc2c.wxSYS_PENWINDOWS_PRESENT
1366 wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS
1367 wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS
1368 wxSYS_CAN_DRAW_FRAME_DECORATIONS = misc2c.wxSYS_CAN_DRAW_FRAME_DECORATIONS
1369 wxSYS_CAN_ICONIZE_FRAME = misc2c.wxSYS_CAN_ICONIZE_FRAME
1370 wxSYS_SCREEN_NONE = misc2c.wxSYS_SCREEN_NONE
1371 wxSYS_SCREEN_TINY = misc2c.wxSYS_SCREEN_TINY
1372 wxSYS_SCREEN_PDA = misc2c.wxSYS_SCREEN_PDA
1373 wxSYS_SCREEN_SMALL = misc2c.wxSYS_SCREEN_SMALL
1374 wxSYS_SCREEN_DESKTOP = misc2c.wxSYS_SCREEN_DESKTOP
1375 wxLOG_FatalError = misc2c.wxLOG_FatalError
1376 wxLOG_Error = misc2c.wxLOG_Error
1377 wxLOG_Warning = misc2c.wxLOG_Warning
1378 wxLOG_Message = misc2c.wxLOG_Message
1379 wxLOG_Info = misc2c.wxLOG_Info
1380 wxLOG_Status = misc2c.wxLOG_Status
1381 wxLOG_Debug = misc2c.wxLOG_Debug
1382 wxLOG_Trace = misc2c.wxLOG_Trace
1383 wxLOG_Progress = misc2c.wxLOG_Progress
1384 wxLOG_User = misc2c.wxLOG_User
1385 wxTRACE_MemAlloc = misc2c.wxTRACE_MemAlloc
1386 wxTRACE_Messages = misc2c.wxTRACE_Messages
1387 wxTRACE_ResAlloc = misc2c.wxTRACE_ResAlloc
1388 wxTRACE_RefCount = misc2c.wxTRACE_RefCount
1389 wxTraceMemAlloc = misc2c.wxTraceMemAlloc
1390 wxTraceMessages = misc2c.wxTraceMessages
1391 wxTraceResAlloc = misc2c.wxTraceResAlloc
1392 wxTraceRefCount = misc2c.wxTraceRefCount
1393 wxKILL_OK = misc2c.wxKILL_OK
1394 wxKILL_BAD_SIGNAL = misc2c.wxKILL_BAD_SIGNAL
1395 wxKILL_ACCESS_DENIED = misc2c.wxKILL_ACCESS_DENIED
1396 wxKILL_NO_PROCESS = misc2c.wxKILL_NO_PROCESS
1397 wxKILL_ERROR = misc2c.wxKILL_ERROR
1398 wxSIGNONE = misc2c.wxSIGNONE
1399 wxSIGHUP = misc2c.wxSIGHUP
1400 wxSIGINT = misc2c.wxSIGINT
1401 wxSIGQUIT = misc2c.wxSIGQUIT
1402 wxSIGILL = misc2c.wxSIGILL
1403 wxSIGTRAP = misc2c.wxSIGTRAP
1404 wxSIGABRT = misc2c.wxSIGABRT
1405 wxSIGIOT = misc2c.wxSIGIOT
1406 wxSIGEMT = misc2c.wxSIGEMT
1407 wxSIGFPE = misc2c.wxSIGFPE
1408 wxSIGKILL = misc2c.wxSIGKILL
1409 wxSIGBUS = misc2c.wxSIGBUS
1410 wxSIGSEGV = misc2c.wxSIGSEGV
1411 wxSIGSYS = misc2c.wxSIGSYS
1412 wxSIGPIPE = misc2c.wxSIGPIPE
1413 wxSIGALRM = misc2c.wxSIGALRM
1414 wxSIGTERM = misc2c.wxSIGTERM
1415 wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS
1416 wxEXEC_ASYNC = misc2c.wxEXEC_ASYNC
1417 wxEXEC_SYNC = misc2c.wxEXEC_SYNC
1418 wxEXEC_NOHIDE = misc2c.wxEXEC_NOHIDE
1419 wxEXEC_MAKE_GROUP_LEADER = misc2c.wxEXEC_MAKE_GROUP_LEADER
1420 wxJOYSTICK1 = misc2c.wxJOYSTICK1
1421 wxJOYSTICK2 = misc2c.wxJOYSTICK2
1422 wxJOY_BUTTON_ANY = misc2c.wxJOY_BUTTON_ANY
1423 wxJOY_BUTTON1 = misc2c.wxJOY_BUTTON1
1424 wxJOY_BUTTON2 = misc2c.wxJOY_BUTTON2
1425 wxJOY_BUTTON3 = misc2c.wxJOY_BUTTON3
1426 wxJOY_BUTTON4 = misc2c.wxJOY_BUTTON4
1427 wxMAILCAP_STANDARD = misc2c.wxMAILCAP_STANDARD
1428 wxMAILCAP_NETSCAPE = misc2c.wxMAILCAP_NETSCAPE
1429 wxMAILCAP_KDE = misc2c.wxMAILCAP_KDE
1430 wxMAILCAP_GNOME = misc2c.wxMAILCAP_GNOME
1431 wxMAILCAP_ALL = misc2c.wxMAILCAP_ALL
1432 cvar = misc2c.cvar
1433 wxTheMimeTypesManager = wxMimeTypesManagerPtr(misc2c.cvar.wxTheMimeTypesManager)