1 # This file was created automatically by SWIG.
14 from clip_dnd
import *
26 from stattool
import *
28 from controls
import *
30 from controls2
import *
32 from windows2
import *
36 from windows3
import *
45 class wxPyAppPtr(wxEvtHandlerPtr
):
46 def __init__(self
,this
):
49 def __del__(self
,wxc
=wxc
):
50 if self
.thisown
== 1 :
51 wxc
.delete_wxPyApp(self
)
52 def GetAppName(self
, *_args
, **_kwargs
):
53 val
= apply(wxc
.wxPyApp_GetAppName
,(self
,) + _args
, _kwargs
)
55 def GetClassName(self
, *_args
, **_kwargs
):
56 val
= apply(wxc
.wxPyApp_GetClassName
,(self
,) + _args
, _kwargs
)
58 def GetExitOnFrameDelete(self
, *_args
, **_kwargs
):
59 val
= apply(wxc
.wxPyApp_GetExitOnFrameDelete
,(self
,) + _args
, _kwargs
)
61 def GetPrintMode(self
, *_args
, **_kwargs
):
62 val
= apply(wxc
.wxPyApp_GetPrintMode
,(self
,) + _args
, _kwargs
)
64 def GetTopWindow(self
, *_args
, **_kwargs
):
65 val
= apply(wxc
.wxPyApp_GetTopWindow
,(self
,) + _args
, _kwargs
)
67 def GetVendorName(self
, *_args
, **_kwargs
):
68 val
= apply(wxc
.wxPyApp_GetVendorName
,(self
,) + _args
, _kwargs
)
70 def GetUseBestVisual(self
, *_args
, **_kwargs
):
71 val
= apply(wxc
.wxPyApp_GetUseBestVisual
,(self
,) + _args
, _kwargs
)
73 def Dispatch(self
, *_args
, **_kwargs
):
74 val
= apply(wxc
.wxPyApp_Dispatch
,(self
,) + _args
, _kwargs
)
76 def ExitMainLoop(self
, *_args
, **_kwargs
):
77 val
= apply(wxc
.wxPyApp_ExitMainLoop
,(self
,) + _args
, _kwargs
)
79 def Initialized(self
, *_args
, **_kwargs
):
80 val
= apply(wxc
.wxPyApp_Initialized
,(self
,) + _args
, _kwargs
)
82 def MainLoop(self
, *_args
, **_kwargs
):
83 val
= apply(wxc
.wxPyApp_MainLoop
,(self
,) + _args
, _kwargs
)
85 def Pending(self
, *_args
, **_kwargs
):
86 val
= apply(wxc
.wxPyApp_Pending
,(self
,) + _args
, _kwargs
)
88 def ProcessIdle(self
, *_args
, **_kwargs
):
89 val
= apply(wxc
.wxPyApp_ProcessIdle
,(self
,) + _args
, _kwargs
)
91 def Yield(self
, *_args
, **_kwargs
):
92 val
= apply(wxc
.wxPyApp_Yield
,(self
,) + _args
, _kwargs
)
94 def SetAppName(self
, *_args
, **_kwargs
):
95 val
= apply(wxc
.wxPyApp_SetAppName
,(self
,) + _args
, _kwargs
)
97 def SetClassName(self
, *_args
, **_kwargs
):
98 val
= apply(wxc
.wxPyApp_SetClassName
,(self
,) + _args
, _kwargs
)
100 def SetExitOnFrameDelete(self
, *_args
, **_kwargs
):
101 val
= apply(wxc
.wxPyApp_SetExitOnFrameDelete
,(self
,) + _args
, _kwargs
)
103 def SetPrintMode(self
, *_args
, **_kwargs
):
104 val
= apply(wxc
.wxPyApp_SetPrintMode
,(self
,) + _args
, _kwargs
)
106 def SetTopWindow(self
, *_args
, **_kwargs
):
107 val
= apply(wxc
.wxPyApp_SetTopWindow
,(self
,) + _args
, _kwargs
)
109 def SetVendorName(self
, *_args
, **_kwargs
):
110 val
= apply(wxc
.wxPyApp_SetVendorName
,(self
,) + _args
, _kwargs
)
112 def SetUseBestVisual(self
, *_args
, **_kwargs
):
113 val
= apply(wxc
.wxPyApp_SetUseBestVisual
,(self
,) + _args
, _kwargs
)
116 return "<C wxPyApp instance at %s>" % (self
.this
,)
117 class wxPyApp(wxPyAppPtr
):
118 def __init__(self
,*_args
,**_kwargs
):
119 self
.this
= apply(wxc
.new_wxPyApp
,_args
,_kwargs
)
127 #-------------- FUNCTION WRAPPERS ------------------
129 ptrcast
= wxc
.ptrcast
131 ptrvalue
= wxc
.ptrvalue
135 ptrcreate
= wxc
.ptrcreate
137 ptrfree
= wxc
.ptrfree
143 _wxStart
= wxc
._wxStart
145 _wxSetDictionary
= wxc
._wxSetDictionary
147 def wxGetApp(*_args
, **_kwargs
):
148 val
= apply(wxc
.wxGetApp
,_args
,_kwargs
)
149 if val
: val
= wxPyAppPtr(val
)
152 wxApp_CleanUp
= wxc
.wxApp_CleanUp
156 #-------------- VARIABLE WRAPPERS ------------------
158 wxMAJOR_VERSION
= wxc
.wxMAJOR_VERSION
159 wxMINOR_VERSION
= wxc
.wxMINOR_VERSION
160 wxRELEASE_NUMBER
= wxc
.wxRELEASE_NUMBER
161 wxNOT_FOUND
= wxc
.wxNOT_FOUND
162 wxVSCROLL
= wxc
.wxVSCROLL
163 wxHSCROLL
= wxc
.wxHSCROLL
164 wxCAPTION
= wxc
.wxCAPTION
165 wxDOUBLE_BORDER
= wxc
.wxDOUBLE_BORDER
166 wxSUNKEN_BORDER
= wxc
.wxSUNKEN_BORDER
167 wxRAISED_BORDER
= wxc
.wxRAISED_BORDER
168 wxBORDER
= wxc
.wxBORDER
169 wxSIMPLE_BORDER
= wxc
.wxSIMPLE_BORDER
170 wxSTATIC_BORDER
= wxc
.wxSTATIC_BORDER
171 wxTRANSPARENT_WINDOW
= wxc
.wxTRANSPARENT_WINDOW
172 wxNO_BORDER
= wxc
.wxNO_BORDER
173 wxUSER_COLOURS
= wxc
.wxUSER_COLOURS
174 wxNO_3D
= wxc
.wxNO_3D
175 wxTAB_TRAVERSAL
= wxc
.wxTAB_TRAVERSAL
176 wxWANTS_CHARS
= wxc
.wxWANTS_CHARS
177 wxPOPUP_WINDOW
= wxc
.wxPOPUP_WINDOW
178 wxHORIZONTAL
= wxc
.wxHORIZONTAL
179 wxVERTICAL
= wxc
.wxVERTICAL
181 wxCENTER_FRAME
= wxc
.wxCENTER_FRAME
182 wxCENTRE_ON_SCREEN
= wxc
.wxCENTRE_ON_SCREEN
183 wxCENTER_ON_SCREEN
= wxc
.wxCENTER_ON_SCREEN
184 wxSTAY_ON_TOP
= wxc
.wxSTAY_ON_TOP
185 wxICONIZE
= wxc
.wxICONIZE
186 wxMINIMIZE
= wxc
.wxMINIMIZE
187 wxMAXIMIZE
= wxc
.wxMAXIMIZE
188 wxTHICK_FRAME
= wxc
.wxTHICK_FRAME
189 wxSYSTEM_MENU
= wxc
.wxSYSTEM_MENU
190 wxMINIMIZE_BOX
= wxc
.wxMINIMIZE_BOX
191 wxMAXIMIZE_BOX
= wxc
.wxMAXIMIZE_BOX
192 wxTINY_CAPTION_HORIZ
= wxc
.wxTINY_CAPTION_HORIZ
193 wxTINY_CAPTION_VERT
= wxc
.wxTINY_CAPTION_VERT
194 wxRESIZE_BOX
= wxc
.wxRESIZE_BOX
195 wxRESIZE_BORDER
= wxc
.wxRESIZE_BORDER
196 wxDIALOG_MODAL
= wxc
.wxDIALOG_MODAL
197 wxDIALOG_MODELESS
= wxc
.wxDIALOG_MODELESS
198 wxDIALOG_NO_PARENT
= wxc
.wxDIALOG_NO_PARENT
199 wxDEFAULT_FRAME_STYLE
= wxc
.wxDEFAULT_FRAME_STYLE
200 wxDEFAULT_DIALOG_STYLE
= wxc
.wxDEFAULT_DIALOG_STYLE
201 wxFRAME_TOOL_WINDOW
= wxc
.wxFRAME_TOOL_WINDOW
202 wxFRAME_FLOAT_ON_PARENT
= wxc
.wxFRAME_FLOAT_ON_PARENT
203 wxFRAME_NO_WINDOW_MENU
= wxc
.wxFRAME_NO_WINDOW_MENU
204 wxFRAME_NO_TASKBAR
= wxc
.wxFRAME_NO_TASKBAR
205 wxED_CLIENT_MARGIN
= wxc
.wxED_CLIENT_MARGIN
206 wxED_BUTTONS_BOTTOM
= wxc
.wxED_BUTTONS_BOTTOM
207 wxED_BUTTONS_RIGHT
= wxc
.wxED_BUTTONS_RIGHT
208 wxED_STATIC_LINE
= wxc
.wxED_STATIC_LINE
209 wxEXT_DIALOG_STYLE
= wxc
.wxEXT_DIALOG_STYLE
210 wxCLIP_CHILDREN
= wxc
.wxCLIP_CHILDREN
211 wxCLIP_SIBLINGS
= wxc
.wxCLIP_SIBLINGS
212 wxRETAINED
= wxc
.wxRETAINED
213 wxBACKINGSTORE
= wxc
.wxBACKINGSTORE
214 wxTB_HORIZONTAL
= wxc
.wxTB_HORIZONTAL
215 wxTB_VERTICAL
= wxc
.wxTB_VERTICAL
216 wxTB_3DBUTTONS
= wxc
.wxTB_3DBUTTONS
217 wxTB_FLAT
= wxc
.wxTB_FLAT
218 wxTB_DOCKABLE
= wxc
.wxTB_DOCKABLE
219 wxTB_NOICONS
= wxc
.wxTB_NOICONS
220 wxTB_TEXT
= wxc
.wxTB_TEXT
221 wxTB_NODIVIDER
= wxc
.wxTB_NODIVIDER
222 wxTB_NOALIGN
= wxc
.wxTB_NOALIGN
223 wxCOLOURED
= wxc
.wxCOLOURED
224 wxFIXED_LENGTH
= wxc
.wxFIXED_LENGTH
225 wxALIGN_LEFT
= wxc
.wxALIGN_LEFT
226 wxALIGN_CENTER_HORIZONTAL
= wxc
.wxALIGN_CENTER_HORIZONTAL
227 wxALIGN_CENTRE_HORIZONTAL
= wxc
.wxALIGN_CENTRE_HORIZONTAL
228 wxALIGN_RIGHT
= wxc
.wxALIGN_RIGHT
229 wxALIGN_BOTTOM
= wxc
.wxALIGN_BOTTOM
230 wxALIGN_CENTER_VERTICAL
= wxc
.wxALIGN_CENTER_VERTICAL
231 wxALIGN_CENTRE_VERTICAL
= wxc
.wxALIGN_CENTRE_VERTICAL
232 wxALIGN_TOP
= wxc
.wxALIGN_TOP
233 wxALIGN_CENTER
= wxc
.wxALIGN_CENTER
234 wxALIGN_CENTRE
= wxc
.wxALIGN_CENTRE
235 wxSHAPED
= wxc
.wxSHAPED
236 wxADJUST_MINSIZE
= wxc
.wxADJUST_MINSIZE
237 wxLB_NEEDED_SB
= wxc
.wxLB_NEEDED_SB
238 wxLB_ALWAYS_SB
= wxc
.wxLB_ALWAYS_SB
239 wxLB_SORT
= wxc
.wxLB_SORT
240 wxLB_SINGLE
= wxc
.wxLB_SINGLE
241 wxLB_MULTIPLE
= wxc
.wxLB_MULTIPLE
242 wxLB_EXTENDED
= wxc
.wxLB_EXTENDED
243 wxLB_OWNERDRAW
= wxc
.wxLB_OWNERDRAW
244 wxLB_HSCROLL
= wxc
.wxLB_HSCROLL
245 wxPROCESS_ENTER
= wxc
.wxPROCESS_ENTER
246 wxPASSWORD
= wxc
.wxPASSWORD
247 wxTE_READONLY
= wxc
.wxTE_READONLY
248 wxTE_MULTILINE
= wxc
.wxTE_MULTILINE
249 wxTE_PROCESS_TAB
= wxc
.wxTE_PROCESS_TAB
250 wxTE_RICH
= wxc
.wxTE_RICH
251 wxTE_RICH2
= wxc
.wxTE_RICH2
252 wxTE_NO_VSCROLL
= wxc
.wxTE_NO_VSCROLL
253 wxTE_AUTO_SCROLL
= wxc
.wxTE_AUTO_SCROLL
254 wxTE_PROCESS_ENTER
= wxc
.wxTE_PROCESS_ENTER
255 wxTE_PASSWORD
= wxc
.wxTE_PASSWORD
256 wxTE_AUTO_URL
= wxc
.wxTE_AUTO_URL
257 wxTE_NOHIDESEL
= wxc
.wxTE_NOHIDESEL
258 wxTE_DONTWRAP
= wxc
.wxTE_DONTWRAP
259 wxTE_LINEWRAP
= wxc
.wxTE_LINEWRAP
260 wxTE_WORDWRAP
= wxc
.wxTE_WORDWRAP
261 wxTE_LEFT
= wxc
.wxTE_LEFT
262 wxTE_RIGHT
= wxc
.wxTE_RIGHT
263 wxTE_CENTER
= wxc
.wxTE_CENTER
264 wxTE_CENTRE
= wxc
.wxTE_CENTRE
265 wxCB_SIMPLE
= wxc
.wxCB_SIMPLE
266 wxCB_DROPDOWN
= wxc
.wxCB_DROPDOWN
267 wxCB_SORT
= wxc
.wxCB_SORT
268 wxCB_READONLY
= wxc
.wxCB_READONLY
269 wxRA_HORIZONTAL
= wxc
.wxRA_HORIZONTAL
270 wxRA_VERTICAL
= wxc
.wxRA_VERTICAL
271 wxRA_SPECIFY_ROWS
= wxc
.wxRA_SPECIFY_ROWS
272 wxRA_SPECIFY_COLS
= wxc
.wxRA_SPECIFY_COLS
273 wxRB_GROUP
= wxc
.wxRB_GROUP
274 wxGA_PROGRESSBAR
= wxc
.wxGA_PROGRESSBAR
275 wxGA_HORIZONTAL
= wxc
.wxGA_HORIZONTAL
276 wxGA_VERTICAL
= wxc
.wxGA_VERTICAL
277 wxGA_SMOOTH
= wxc
.wxGA_SMOOTH
278 wxSL_HORIZONTAL
= wxc
.wxSL_HORIZONTAL
279 wxSL_VERTICAL
= wxc
.wxSL_VERTICAL
280 wxSL_AUTOTICKS
= wxc
.wxSL_AUTOTICKS
281 wxSL_LABELS
= wxc
.wxSL_LABELS
282 wxSL_LEFT
= wxc
.wxSL_LEFT
283 wxSL_TOP
= wxc
.wxSL_TOP
284 wxSL_RIGHT
= wxc
.wxSL_RIGHT
285 wxSL_BOTTOM
= wxc
.wxSL_BOTTOM
286 wxSL_BOTH
= wxc
.wxSL_BOTH
287 wxSL_SELRANGE
= wxc
.wxSL_SELRANGE
288 wxSB_HORIZONTAL
= wxc
.wxSB_HORIZONTAL
289 wxSB_VERTICAL
= wxc
.wxSB_VERTICAL
290 wxST_SIZEGRIP
= wxc
.wxST_SIZEGRIP
291 wxST_NO_AUTORESIZE
= wxc
.wxST_NO_AUTORESIZE
292 wxBU_NOAUTODRAW
= wxc
.wxBU_NOAUTODRAW
293 wxBU_AUTODRAW
= wxc
.wxBU_AUTODRAW
294 wxBU_LEFT
= wxc
.wxBU_LEFT
295 wxBU_TOP
= wxc
.wxBU_TOP
296 wxBU_RIGHT
= wxc
.wxBU_RIGHT
297 wxBU_BOTTOM
= wxc
.wxBU_BOTTOM
298 wxBU_EXACTFIT
= wxc
.wxBU_EXACTFIT
299 wxSP_VERTICAL
= wxc
.wxSP_VERTICAL
300 wxSP_HORIZONTAL
= wxc
.wxSP_HORIZONTAL
301 wxSP_ARROW_KEYS
= wxc
.wxSP_ARROW_KEYS
302 wxSP_WRAP
= wxc
.wxSP_WRAP
303 wxSP_NOBORDER
= wxc
.wxSP_NOBORDER
304 wxSP_3D
= wxc
.wxSP_3D
305 wxSP_3DSASH
= wxc
.wxSP_3DSASH
306 wxSP_3DBORDER
= wxc
.wxSP_3DBORDER
307 wxSP_FULLSASH
= wxc
.wxSP_FULLSASH
308 wxSP_BORDER
= wxc
.wxSP_BORDER
309 wxSP_LIVE_UPDATE
= wxc
.wxSP_LIVE_UPDATE
310 wxSP_PERMIT_UNSPLIT
= wxc
.wxSP_PERMIT_UNSPLIT
311 wxFLOOD_SURFACE
= wxc
.wxFLOOD_SURFACE
312 wxFLOOD_BORDER
= wxc
.wxFLOOD_BORDER
313 wxODDEVEN_RULE
= wxc
.wxODDEVEN_RULE
314 wxWINDING_RULE
= wxc
.wxWINDING_RULE
315 wxTOOL_TOP
= wxc
.wxTOOL_TOP
316 wxTOOL_BOTTOM
= wxc
.wxTOOL_BOTTOM
317 wxTOOL_LEFT
= wxc
.wxTOOL_LEFT
318 wxTOOL_RIGHT
= wxc
.wxTOOL_RIGHT
320 wxYES_NO
= wxc
.wxYES_NO
321 wxCANCEL
= wxc
.wxCANCEL
324 wxNO_DEFAULT
= wxc
.wxNO_DEFAULT
325 wxYES_DEFAULT
= wxc
.wxYES_DEFAULT
326 wxICON_EXCLAMATION
= wxc
.wxICON_EXCLAMATION
327 wxICON_HAND
= wxc
.wxICON_HAND
328 wxICON_QUESTION
= wxc
.wxICON_QUESTION
329 wxICON_INFORMATION
= wxc
.wxICON_INFORMATION
330 wxICON_STOP
= wxc
.wxICON_STOP
331 wxICON_ASTERISK
= wxc
.wxICON_ASTERISK
332 wxICON_MASK
= wxc
.wxICON_MASK
333 wxICON_WARNING
= wxc
.wxICON_WARNING
334 wxICON_ERROR
= wxc
.wxICON_ERROR
335 wxFORWARD
= wxc
.wxFORWARD
336 wxBACKWARD
= wxc
.wxBACKWARD
337 wxRESET
= wxc
.wxRESET
340 wxSETUP
= wxc
.wxSETUP
341 wxCENTRE
= wxc
.wxCENTRE
342 wxCENTER
= wxc
.wxCENTER
343 wxSIZE_AUTO_WIDTH
= wxc
.wxSIZE_AUTO_WIDTH
344 wxSIZE_AUTO_HEIGHT
= wxc
.wxSIZE_AUTO_HEIGHT
345 wxSIZE_AUTO
= wxc
.wxSIZE_AUTO
346 wxSIZE_USE_EXISTING
= wxc
.wxSIZE_USE_EXISTING
347 wxSIZE_ALLOW_MINUS_ONE
= wxc
.wxSIZE_ALLOW_MINUS_ONE
348 wxPORTRAIT
= wxc
.wxPORTRAIT
349 wxLANDSCAPE
= wxc
.wxLANDSCAPE
350 wxPRINT_QUALITY_HIGH
= wxc
.wxPRINT_QUALITY_HIGH
351 wxPRINT_QUALITY_MEDIUM
= wxc
.wxPRINT_QUALITY_MEDIUM
352 wxPRINT_QUALITY_LOW
= wxc
.wxPRINT_QUALITY_LOW
353 wxPRINT_QUALITY_DRAFT
= wxc
.wxPRINT_QUALITY_DRAFT
354 wxID_ANY
= wxc
.wxID_ANY
355 wxID_SEPARATOR
= wxc
.wxID_SEPARATOR
356 wxID_OPEN
= wxc
.wxID_OPEN
357 wxID_CLOSE
= wxc
.wxID_CLOSE
358 wxID_NEW
= wxc
.wxID_NEW
359 wxID_SAVE
= wxc
.wxID_SAVE
360 wxID_SAVEAS
= wxc
.wxID_SAVEAS
361 wxID_REVERT
= wxc
.wxID_REVERT
362 wxID_EXIT
= wxc
.wxID_EXIT
363 wxID_UNDO
= wxc
.wxID_UNDO
364 wxID_REDO
= wxc
.wxID_REDO
365 wxID_HELP
= wxc
.wxID_HELP
366 wxID_PRINT
= wxc
.wxID_PRINT
367 wxID_PRINT_SETUP
= wxc
.wxID_PRINT_SETUP
368 wxID_PREVIEW
= wxc
.wxID_PREVIEW
369 wxID_ABOUT
= wxc
.wxID_ABOUT
370 wxID_HELP_CONTENTS
= wxc
.wxID_HELP_CONTENTS
371 wxID_HELP_COMMANDS
= wxc
.wxID_HELP_COMMANDS
372 wxID_HELP_PROCEDURES
= wxc
.wxID_HELP_PROCEDURES
373 wxID_HELP_CONTEXT
= wxc
.wxID_HELP_CONTEXT
374 wxID_CLOSE_ALL
= wxc
.wxID_CLOSE_ALL
375 wxID_CUT
= wxc
.wxID_CUT
376 wxID_COPY
= wxc
.wxID_COPY
377 wxID_PASTE
= wxc
.wxID_PASTE
378 wxID_CLEAR
= wxc
.wxID_CLEAR
379 wxID_FIND
= wxc
.wxID_FIND
380 wxID_DUPLICATE
= wxc
.wxID_DUPLICATE
381 wxID_SELECTALL
= wxc
.wxID_SELECTALL
382 wxID_FILE1
= wxc
.wxID_FILE1
383 wxID_FILE2
= wxc
.wxID_FILE2
384 wxID_FILE3
= wxc
.wxID_FILE3
385 wxID_FILE4
= wxc
.wxID_FILE4
386 wxID_FILE5
= wxc
.wxID_FILE5
387 wxID_FILE6
= wxc
.wxID_FILE6
388 wxID_FILE7
= wxc
.wxID_FILE7
389 wxID_FILE8
= wxc
.wxID_FILE8
390 wxID_FILE9
= wxc
.wxID_FILE9
391 wxID_OK
= wxc
.wxID_OK
392 wxID_CANCEL
= wxc
.wxID_CANCEL
393 wxID_APPLY
= wxc
.wxID_APPLY
394 wxID_YES
= wxc
.wxID_YES
395 wxID_NO
= wxc
.wxID_NO
396 wxID_STATIC
= wxc
.wxID_STATIC
397 wxID_FORWARD
= wxc
.wxID_FORWARD
398 wxID_BACKWARD
= wxc
.wxID_BACKWARD
399 wxID_DEFAULT
= wxc
.wxID_DEFAULT
400 wxID_MORE
= wxc
.wxID_MORE
401 wxID_SETUP
= wxc
.wxID_SETUP
402 wxID_RESET
= wxc
.wxID_RESET
403 wxID_CONTEXT_HELP
= wxc
.wxID_CONTEXT_HELP
404 wxID_YESTOALL
= wxc
.wxID_YESTOALL
405 wxID_NOTOALL
= wxc
.wxID_NOTOALL
406 wxID_ABORT
= wxc
.wxID_ABORT
407 wxID_RETRY
= wxc
.wxID_RETRY
408 wxID_IGNORE
= wxc
.wxID_IGNORE
411 wxHIDE_READONLY
= wxc
.wxHIDE_READONLY
412 wxOVERWRITE_PROMPT
= wxc
.wxOVERWRITE_PROMPT
413 wxFILE_MUST_EXIST
= wxc
.wxFILE_MUST_EXIST
414 wxMULTIPLE
= wxc
.wxMULTIPLE
415 wxCHANGE_DIR
= wxc
.wxCHANGE_DIR
416 wxACCEL_ALT
= wxc
.wxACCEL_ALT
417 wxACCEL_CTRL
= wxc
.wxACCEL_CTRL
418 wxACCEL_SHIFT
= wxc
.wxACCEL_SHIFT
419 wxACCEL_NORMAL
= wxc
.wxACCEL_NORMAL
420 wxPD_AUTO_HIDE
= wxc
.wxPD_AUTO_HIDE
421 wxPD_APP_MODAL
= wxc
.wxPD_APP_MODAL
422 wxPD_CAN_ABORT
= wxc
.wxPD_CAN_ABORT
423 wxPD_ELAPSED_TIME
= wxc
.wxPD_ELAPSED_TIME
424 wxPD_ESTIMATED_TIME
= wxc
.wxPD_ESTIMATED_TIME
425 wxPD_REMAINING_TIME
= wxc
.wxPD_REMAINING_TIME
426 wxDD_NEW_DIR_BUTTON
= wxc
.wxDD_NEW_DIR_BUTTON
427 wxDD_DEFAULT_STYLE
= wxc
.wxDD_DEFAULT_STYLE
428 wxMENU_TEAROFF
= wxc
.wxMENU_TEAROFF
429 wxMB_DOCKABLE
= wxc
.wxMB_DOCKABLE
430 wxNO_FULL_REPAINT_ON_RESIZE
= wxc
.wxNO_FULL_REPAINT_ON_RESIZE
432 wxRIGHT
= wxc
.wxRIGHT
437 wxBOTTOM
= wxc
.wxBOTTOM
438 wxNORTH
= wxc
.wxNORTH
439 wxSOUTH
= wxc
.wxSOUTH
442 wxSTRETCH_NOT
= wxc
.wxSTRETCH_NOT
443 wxSHRINK
= wxc
.wxSHRINK
445 wxEXPAND
= wxc
.wxEXPAND
446 wxNB_FIXEDWIDTH
= wxc
.wxNB_FIXEDWIDTH
447 wxNB_LEFT
= wxc
.wxNB_LEFT
448 wxNB_RIGHT
= wxc
.wxNB_RIGHT
449 wxNB_BOTTOM
= wxc
.wxNB_BOTTOM
450 wxNB_MULTILINE
= wxc
.wxNB_MULTILINE
451 wxLI_HORIZONTAL
= wxc
.wxLI_HORIZONTAL
452 wxLI_VERTICAL
= wxc
.wxLI_VERTICAL
453 wxJOYSTICK1
= wxc
.wxJOYSTICK1
454 wxJOYSTICK2
= wxc
.wxJOYSTICK2
455 wxJOY_BUTTON1
= wxc
.wxJOY_BUTTON1
456 wxJOY_BUTTON2
= wxc
.wxJOY_BUTTON2
457 wxJOY_BUTTON3
= wxc
.wxJOY_BUTTON3
458 wxJOY_BUTTON4
= wxc
.wxJOY_BUTTON4
459 wxJOY_BUTTON_ANY
= wxc
.wxJOY_BUTTON_ANY
460 wxWS_EX_VALIDATE_RECURSIVELY
= wxc
.wxWS_EX_VALIDATE_RECURSIVELY
461 wxWS_EX_BLOCK_EVENTS
= wxc
.wxWS_EX_BLOCK_EVENTS
462 wxWS_EX_TRANSIENT
= wxc
.wxWS_EX_TRANSIENT
463 wxMM_TEXT
= wxc
.wxMM_TEXT
464 wxMM_LOMETRIC
= wxc
.wxMM_LOMETRIC
465 wxMM_HIMETRIC
= wxc
.wxMM_HIMETRIC
466 wxMM_LOENGLISH
= wxc
.wxMM_LOENGLISH
467 wxMM_HIENGLISH
= wxc
.wxMM_HIENGLISH
468 wxMM_TWIPS
= wxc
.wxMM_TWIPS
469 wxMM_ISOTROPIC
= wxc
.wxMM_ISOTROPIC
470 wxMM_ANISOTROPIC
= wxc
.wxMM_ANISOTROPIC
471 wxMM_POINTS
= wxc
.wxMM_POINTS
472 wxMM_METRIC
= wxc
.wxMM_METRIC
473 wxTIMER_CONTINUOUS
= wxc
.wxTIMER_CONTINUOUS
474 wxTIMER_ONE_SHOT
= wxc
.wxTIMER_ONE_SHOT
475 wxMOUSE_BTN_ANY
= wxc
.wxMOUSE_BTN_ANY
476 wxMOUSE_BTN_NONE
= wxc
.wxMOUSE_BTN_NONE
477 wxMOUSE_BTN_LEFT
= wxc
.wxMOUSE_BTN_LEFT
478 wxMOUSE_BTN_MIDDLE
= wxc
.wxMOUSE_BTN_MIDDLE
479 wxMOUSE_BTN_RIGHT
= wxc
.wxMOUSE_BTN_RIGHT
480 wxBORDER_DEFAULT
= wxc
.wxBORDER_DEFAULT
481 wxBORDER_NONE
= wxc
.wxBORDER_NONE
482 wxBORDER_STATIC
= wxc
.wxBORDER_STATIC
483 wxBORDER_SIMPLE
= wxc
.wxBORDER_SIMPLE
484 wxBORDER_RAISED
= wxc
.wxBORDER_RAISED
485 wxBORDER_SUNKEN
= wxc
.wxBORDER_SUNKEN
486 wxBORDER_DOUBLE
= wxc
.wxBORDER_DOUBLE
487 wxBORDER_MASK
= wxc
.wxBORDER_MASK
488 wxDEFAULT
= wxc
.wxDEFAULT
489 wxDECORATIVE
= wxc
.wxDECORATIVE
490 wxROMAN
= wxc
.wxROMAN
491 wxSCRIPT
= wxc
.wxSCRIPT
492 wxSWISS
= wxc
.wxSWISS
493 wxMODERN
= wxc
.wxMODERN
494 wxTELETYPE
= wxc
.wxTELETYPE
495 wxVARIABLE
= wxc
.wxVARIABLE
496 wxFIXED
= wxc
.wxFIXED
497 wxNORMAL
= wxc
.wxNORMAL
498 wxLIGHT
= wxc
.wxLIGHT
500 wxITALIC
= wxc
.wxITALIC
501 wxSLANT
= wxc
.wxSLANT
502 wxSOLID
= wxc
.wxSOLID
504 wxLONG_DASH
= wxc
.wxLONG_DASH
505 wxSHORT_DASH
= wxc
.wxSHORT_DASH
506 wxDOT_DASH
= wxc
.wxDOT_DASH
507 wxUSER_DASH
= wxc
.wxUSER_DASH
508 wxTRANSPARENT
= wxc
.wxTRANSPARENT
509 wxSTIPPLE
= wxc
.wxSTIPPLE
510 wxBDIAGONAL_HATCH
= wxc
.wxBDIAGONAL_HATCH
511 wxCROSSDIAG_HATCH
= wxc
.wxCROSSDIAG_HATCH
512 wxFDIAGONAL_HATCH
= wxc
.wxFDIAGONAL_HATCH
513 wxCROSS_HATCH
= wxc
.wxCROSS_HATCH
514 wxHORIZONTAL_HATCH
= wxc
.wxHORIZONTAL_HATCH
515 wxVERTICAL_HATCH
= wxc
.wxVERTICAL_HATCH
516 wxJOIN_BEVEL
= wxc
.wxJOIN_BEVEL
517 wxJOIN_MITER
= wxc
.wxJOIN_MITER
518 wxJOIN_ROUND
= wxc
.wxJOIN_ROUND
519 wxCAP_ROUND
= wxc
.wxCAP_ROUND
520 wxCAP_PROJECTING
= wxc
.wxCAP_PROJECTING
521 wxCAP_BUTT
= wxc
.wxCAP_BUTT
522 wxCLEAR
= wxc
.wxCLEAR
524 wxINVERT
= wxc
.wxINVERT
525 wxOR_REVERSE
= wxc
.wxOR_REVERSE
526 wxAND_REVERSE
= wxc
.wxAND_REVERSE
529 wxAND_INVERT
= wxc
.wxAND_INVERT
530 wxNO_OP
= wxc
.wxNO_OP
532 wxEQUIV
= wxc
.wxEQUIV
533 wxSRC_INVERT
= wxc
.wxSRC_INVERT
534 wxOR_INVERT
= wxc
.wxOR_INVERT
538 WXK_BACK
= wxc
.WXK_BACK
539 WXK_TAB
= wxc
.WXK_TAB
540 WXK_RETURN
= wxc
.WXK_RETURN
541 WXK_ESCAPE
= wxc
.WXK_ESCAPE
542 WXK_SPACE
= wxc
.WXK_SPACE
543 WXK_DELETE
= wxc
.WXK_DELETE
544 WXK_START
= wxc
.WXK_START
545 WXK_LBUTTON
= wxc
.WXK_LBUTTON
546 WXK_RBUTTON
= wxc
.WXK_RBUTTON
547 WXK_CANCEL
= wxc
.WXK_CANCEL
548 WXK_MBUTTON
= wxc
.WXK_MBUTTON
549 WXK_CLEAR
= wxc
.WXK_CLEAR
550 WXK_SHIFT
= wxc
.WXK_SHIFT
551 WXK_ALT
= wxc
.WXK_ALT
552 WXK_CONTROL
= wxc
.WXK_CONTROL
553 WXK_MENU
= wxc
.WXK_MENU
554 WXK_PAUSE
= wxc
.WXK_PAUSE
555 WXK_CAPITAL
= wxc
.WXK_CAPITAL
556 WXK_PRIOR
= wxc
.WXK_PRIOR
557 WXK_NEXT
= wxc
.WXK_NEXT
558 WXK_END
= wxc
.WXK_END
559 WXK_HOME
= wxc
.WXK_HOME
560 WXK_LEFT
= wxc
.WXK_LEFT
562 WXK_RIGHT
= wxc
.WXK_RIGHT
563 WXK_DOWN
= wxc
.WXK_DOWN
564 WXK_SELECT
= wxc
.WXK_SELECT
565 WXK_PRINT
= wxc
.WXK_PRINT
566 WXK_EXECUTE
= wxc
.WXK_EXECUTE
567 WXK_SNAPSHOT
= wxc
.WXK_SNAPSHOT
568 WXK_INSERT
= wxc
.WXK_INSERT
569 WXK_HELP
= wxc
.WXK_HELP
570 WXK_NUMPAD0
= wxc
.WXK_NUMPAD0
571 WXK_NUMPAD1
= wxc
.WXK_NUMPAD1
572 WXK_NUMPAD2
= wxc
.WXK_NUMPAD2
573 WXK_NUMPAD3
= wxc
.WXK_NUMPAD3
574 WXK_NUMPAD4
= wxc
.WXK_NUMPAD4
575 WXK_NUMPAD5
= wxc
.WXK_NUMPAD5
576 WXK_NUMPAD6
= wxc
.WXK_NUMPAD6
577 WXK_NUMPAD7
= wxc
.WXK_NUMPAD7
578 WXK_NUMPAD8
= wxc
.WXK_NUMPAD8
579 WXK_NUMPAD9
= wxc
.WXK_NUMPAD9
580 WXK_MULTIPLY
= wxc
.WXK_MULTIPLY
581 WXK_ADD
= wxc
.WXK_ADD
582 WXK_SEPARATOR
= wxc
.WXK_SEPARATOR
583 WXK_SUBTRACT
= wxc
.WXK_SUBTRACT
584 WXK_DECIMAL
= wxc
.WXK_DECIMAL
585 WXK_DIVIDE
= wxc
.WXK_DIVIDE
595 WXK_F10
= wxc
.WXK_F10
596 WXK_F11
= wxc
.WXK_F11
597 WXK_F12
= wxc
.WXK_F12
598 WXK_F13
= wxc
.WXK_F13
599 WXK_F14
= wxc
.WXK_F14
600 WXK_F15
= wxc
.WXK_F15
601 WXK_F16
= wxc
.WXK_F16
602 WXK_F17
= wxc
.WXK_F17
603 WXK_F18
= wxc
.WXK_F18
604 WXK_F19
= wxc
.WXK_F19
605 WXK_F20
= wxc
.WXK_F20
606 WXK_F21
= wxc
.WXK_F21
607 WXK_F22
= wxc
.WXK_F22
608 WXK_F23
= wxc
.WXK_F23
609 WXK_F24
= wxc
.WXK_F24
610 WXK_NUMLOCK
= wxc
.WXK_NUMLOCK
611 WXK_SCROLL
= wxc
.WXK_SCROLL
612 WXK_PAGEUP
= wxc
.WXK_PAGEUP
613 WXK_PAGEDOWN
= wxc
.WXK_PAGEDOWN
614 WXK_NUMPAD_SPACE
= wxc
.WXK_NUMPAD_SPACE
615 WXK_NUMPAD_TAB
= wxc
.WXK_NUMPAD_TAB
616 WXK_NUMPAD_ENTER
= wxc
.WXK_NUMPAD_ENTER
617 WXK_NUMPAD_F1
= wxc
.WXK_NUMPAD_F1
618 WXK_NUMPAD_F2
= wxc
.WXK_NUMPAD_F2
619 WXK_NUMPAD_F3
= wxc
.WXK_NUMPAD_F3
620 WXK_NUMPAD_F4
= wxc
.WXK_NUMPAD_F4
621 WXK_NUMPAD_HOME
= wxc
.WXK_NUMPAD_HOME
622 WXK_NUMPAD_LEFT
= wxc
.WXK_NUMPAD_LEFT
623 WXK_NUMPAD_UP
= wxc
.WXK_NUMPAD_UP
624 WXK_NUMPAD_RIGHT
= wxc
.WXK_NUMPAD_RIGHT
625 WXK_NUMPAD_DOWN
= wxc
.WXK_NUMPAD_DOWN
626 WXK_NUMPAD_PRIOR
= wxc
.WXK_NUMPAD_PRIOR
627 WXK_NUMPAD_PAGEUP
= wxc
.WXK_NUMPAD_PAGEUP
628 WXK_NUMPAD_NEXT
= wxc
.WXK_NUMPAD_NEXT
629 WXK_NUMPAD_PAGEDOWN
= wxc
.WXK_NUMPAD_PAGEDOWN
630 WXK_NUMPAD_END
= wxc
.WXK_NUMPAD_END
631 WXK_NUMPAD_BEGIN
= wxc
.WXK_NUMPAD_BEGIN
632 WXK_NUMPAD_INSERT
= wxc
.WXK_NUMPAD_INSERT
633 WXK_NUMPAD_DELETE
= wxc
.WXK_NUMPAD_DELETE
634 WXK_NUMPAD_EQUAL
= wxc
.WXK_NUMPAD_EQUAL
635 WXK_NUMPAD_MULTIPLY
= wxc
.WXK_NUMPAD_MULTIPLY
636 WXK_NUMPAD_ADD
= wxc
.WXK_NUMPAD_ADD
637 WXK_NUMPAD_SEPARATOR
= wxc
.WXK_NUMPAD_SEPARATOR
638 WXK_NUMPAD_SUBTRACT
= wxc
.WXK_NUMPAD_SUBTRACT
639 WXK_NUMPAD_DECIMAL
= wxc
.WXK_NUMPAD_DECIMAL
640 WXK_NUMPAD_DIVIDE
= wxc
.WXK_NUMPAD_DIVIDE
641 wxBITMAP_TYPE_INVALID
= wxc
.wxBITMAP_TYPE_INVALID
642 wxBITMAP_TYPE_BMP
= wxc
.wxBITMAP_TYPE_BMP
643 wxBITMAP_TYPE_BMP_RESOURCE
= wxc
.wxBITMAP_TYPE_BMP_RESOURCE
644 wxBITMAP_TYPE_RESOURCE
= wxc
.wxBITMAP_TYPE_RESOURCE
645 wxBITMAP_TYPE_ICO
= wxc
.wxBITMAP_TYPE_ICO
646 wxBITMAP_TYPE_ICO_RESOURCE
= wxc
.wxBITMAP_TYPE_ICO_RESOURCE
647 wxBITMAP_TYPE_CUR
= wxc
.wxBITMAP_TYPE_CUR
648 wxBITMAP_TYPE_CUR_RESOURCE
= wxc
.wxBITMAP_TYPE_CUR_RESOURCE
649 wxBITMAP_TYPE_XBM
= wxc
.wxBITMAP_TYPE_XBM
650 wxBITMAP_TYPE_XBM_DATA
= wxc
.wxBITMAP_TYPE_XBM_DATA
651 wxBITMAP_TYPE_XPM
= wxc
.wxBITMAP_TYPE_XPM
652 wxBITMAP_TYPE_XPM_DATA
= wxc
.wxBITMAP_TYPE_XPM_DATA
653 wxBITMAP_TYPE_TIF
= wxc
.wxBITMAP_TYPE_TIF
654 wxBITMAP_TYPE_TIF_RESOURCE
= wxc
.wxBITMAP_TYPE_TIF_RESOURCE
655 wxBITMAP_TYPE_GIF
= wxc
.wxBITMAP_TYPE_GIF
656 wxBITMAP_TYPE_GIF_RESOURCE
= wxc
.wxBITMAP_TYPE_GIF_RESOURCE
657 wxBITMAP_TYPE_PNG
= wxc
.wxBITMAP_TYPE_PNG
658 wxBITMAP_TYPE_PNG_RESOURCE
= wxc
.wxBITMAP_TYPE_PNG_RESOURCE
659 wxBITMAP_TYPE_JPEG
= wxc
.wxBITMAP_TYPE_JPEG
660 wxBITMAP_TYPE_JPEG_RESOURCE
= wxc
.wxBITMAP_TYPE_JPEG_RESOURCE
661 wxBITMAP_TYPE_PNM
= wxc
.wxBITMAP_TYPE_PNM
662 wxBITMAP_TYPE_PNM_RESOURCE
= wxc
.wxBITMAP_TYPE_PNM_RESOURCE
663 wxBITMAP_TYPE_PCX
= wxc
.wxBITMAP_TYPE_PCX
664 wxBITMAP_TYPE_PCX_RESOURCE
= wxc
.wxBITMAP_TYPE_PCX_RESOURCE
665 wxBITMAP_TYPE_PICT
= wxc
.wxBITMAP_TYPE_PICT
666 wxBITMAP_TYPE_PICT_RESOURCE
= wxc
.wxBITMAP_TYPE_PICT_RESOURCE
667 wxBITMAP_TYPE_ICON
= wxc
.wxBITMAP_TYPE_ICON
668 wxBITMAP_TYPE_ICON_RESOURCE
= wxc
.wxBITMAP_TYPE_ICON_RESOURCE
669 wxBITMAP_TYPE_ANI
= wxc
.wxBITMAP_TYPE_ANI
670 wxBITMAP_TYPE_IFF
= wxc
.wxBITMAP_TYPE_IFF
671 wxBITMAP_TYPE_MACCURSOR
= wxc
.wxBITMAP_TYPE_MACCURSOR
672 wxBITMAP_TYPE_MACCURSOR_RESOURCE
= wxc
.wxBITMAP_TYPE_MACCURSOR_RESOURCE
673 wxBITMAP_TYPE_ANY
= wxc
.wxBITMAP_TYPE_ANY
674 wxCURSOR_NONE
= wxc
.wxCURSOR_NONE
675 wxCURSOR_ARROW
= wxc
.wxCURSOR_ARROW
676 wxCURSOR_RIGHT_ARROW
= wxc
.wxCURSOR_RIGHT_ARROW
677 wxCURSOR_BULLSEYE
= wxc
.wxCURSOR_BULLSEYE
678 wxCURSOR_CHAR
= wxc
.wxCURSOR_CHAR
679 wxCURSOR_CROSS
= wxc
.wxCURSOR_CROSS
680 wxCURSOR_HAND
= wxc
.wxCURSOR_HAND
681 wxCURSOR_IBEAM
= wxc
.wxCURSOR_IBEAM
682 wxCURSOR_LEFT_BUTTON
= wxc
.wxCURSOR_LEFT_BUTTON
683 wxCURSOR_MAGNIFIER
= wxc
.wxCURSOR_MAGNIFIER
684 wxCURSOR_MIDDLE_BUTTON
= wxc
.wxCURSOR_MIDDLE_BUTTON
685 wxCURSOR_NO_ENTRY
= wxc
.wxCURSOR_NO_ENTRY
686 wxCURSOR_PAINT_BRUSH
= wxc
.wxCURSOR_PAINT_BRUSH
687 wxCURSOR_PENCIL
= wxc
.wxCURSOR_PENCIL
688 wxCURSOR_POINT_LEFT
= wxc
.wxCURSOR_POINT_LEFT
689 wxCURSOR_POINT_RIGHT
= wxc
.wxCURSOR_POINT_RIGHT
690 wxCURSOR_QUESTION_ARROW
= wxc
.wxCURSOR_QUESTION_ARROW
691 wxCURSOR_RIGHT_BUTTON
= wxc
.wxCURSOR_RIGHT_BUTTON
692 wxCURSOR_SIZENESW
= wxc
.wxCURSOR_SIZENESW
693 wxCURSOR_SIZENS
= wxc
.wxCURSOR_SIZENS
694 wxCURSOR_SIZENWSE
= wxc
.wxCURSOR_SIZENWSE
695 wxCURSOR_SIZEWE
= wxc
.wxCURSOR_SIZEWE
696 wxCURSOR_SIZING
= wxc
.wxCURSOR_SIZING
697 wxCURSOR_SPRAYCAN
= wxc
.wxCURSOR_SPRAYCAN
698 wxCURSOR_WAIT
= wxc
.wxCURSOR_WAIT
699 wxCURSOR_WATCH
= wxc
.wxCURSOR_WATCH
700 wxCURSOR_BLANK
= wxc
.wxCURSOR_BLANK
701 wxCURSOR_DEFAULT
= wxc
.wxCURSOR_DEFAULT
702 wxCURSOR_ARROWWAIT
= wxc
.wxCURSOR_ARROWWAIT
703 wxCURSOR_MAX
= wxc
.wxCURSOR_MAX
704 wxPAPER_NONE
= wxc
.wxPAPER_NONE
705 wxPAPER_LETTER
= wxc
.wxPAPER_LETTER
706 wxPAPER_LEGAL
= wxc
.wxPAPER_LEGAL
707 wxPAPER_A4
= wxc
.wxPAPER_A4
708 wxPAPER_CSHEET
= wxc
.wxPAPER_CSHEET
709 wxPAPER_DSHEET
= wxc
.wxPAPER_DSHEET
710 wxPAPER_ESHEET
= wxc
.wxPAPER_ESHEET
711 wxPAPER_LETTERSMALL
= wxc
.wxPAPER_LETTERSMALL
712 wxPAPER_TABLOID
= wxc
.wxPAPER_TABLOID
713 wxPAPER_LEDGER
= wxc
.wxPAPER_LEDGER
714 wxPAPER_STATEMENT
= wxc
.wxPAPER_STATEMENT
715 wxPAPER_EXECUTIVE
= wxc
.wxPAPER_EXECUTIVE
716 wxPAPER_A3
= wxc
.wxPAPER_A3
717 wxPAPER_A4SMALL
= wxc
.wxPAPER_A4SMALL
718 wxPAPER_A5
= wxc
.wxPAPER_A5
719 wxPAPER_B4
= wxc
.wxPAPER_B4
720 wxPAPER_B5
= wxc
.wxPAPER_B5
721 wxPAPER_FOLIO
= wxc
.wxPAPER_FOLIO
722 wxPAPER_QUARTO
= wxc
.wxPAPER_QUARTO
723 wxPAPER_10X14
= wxc
.wxPAPER_10X14
724 wxPAPER_11X17
= wxc
.wxPAPER_11X17
725 wxPAPER_NOTE
= wxc
.wxPAPER_NOTE
726 wxPAPER_ENV_9
= wxc
.wxPAPER_ENV_9
727 wxPAPER_ENV_10
= wxc
.wxPAPER_ENV_10
728 wxPAPER_ENV_11
= wxc
.wxPAPER_ENV_11
729 wxPAPER_ENV_12
= wxc
.wxPAPER_ENV_12
730 wxPAPER_ENV_14
= wxc
.wxPAPER_ENV_14
731 wxPAPER_ENV_DL
= wxc
.wxPAPER_ENV_DL
732 wxPAPER_ENV_C5
= wxc
.wxPAPER_ENV_C5
733 wxPAPER_ENV_C3
= wxc
.wxPAPER_ENV_C3
734 wxPAPER_ENV_C4
= wxc
.wxPAPER_ENV_C4
735 wxPAPER_ENV_C6
= wxc
.wxPAPER_ENV_C6
736 wxPAPER_ENV_C65
= wxc
.wxPAPER_ENV_C65
737 wxPAPER_ENV_B4
= wxc
.wxPAPER_ENV_B4
738 wxPAPER_ENV_B5
= wxc
.wxPAPER_ENV_B5
739 wxPAPER_ENV_B6
= wxc
.wxPAPER_ENV_B6
740 wxPAPER_ENV_ITALY
= wxc
.wxPAPER_ENV_ITALY
741 wxPAPER_ENV_MONARCH
= wxc
.wxPAPER_ENV_MONARCH
742 wxPAPER_ENV_PERSONAL
= wxc
.wxPAPER_ENV_PERSONAL
743 wxPAPER_FANFOLD_US
= wxc
.wxPAPER_FANFOLD_US
744 wxPAPER_FANFOLD_STD_GERMAN
= wxc
.wxPAPER_FANFOLD_STD_GERMAN
745 wxPAPER_FANFOLD_LGL_GERMAN
= wxc
.wxPAPER_FANFOLD_LGL_GERMAN
746 wxPAPER_ISO_B4
= wxc
.wxPAPER_ISO_B4
747 wxPAPER_JAPANESE_POSTCARD
= wxc
.wxPAPER_JAPANESE_POSTCARD
748 wxPAPER_9X11
= wxc
.wxPAPER_9X11
749 wxPAPER_10X11
= wxc
.wxPAPER_10X11
750 wxPAPER_15X11
= wxc
.wxPAPER_15X11
751 wxPAPER_ENV_INVITE
= wxc
.wxPAPER_ENV_INVITE
752 wxPAPER_LETTER_EXTRA
= wxc
.wxPAPER_LETTER_EXTRA
753 wxPAPER_LEGAL_EXTRA
= wxc
.wxPAPER_LEGAL_EXTRA
754 wxPAPER_TABLOID_EXTRA
= wxc
.wxPAPER_TABLOID_EXTRA
755 wxPAPER_A4_EXTRA
= wxc
.wxPAPER_A4_EXTRA
756 wxPAPER_LETTER_TRANSVERSE
= wxc
.wxPAPER_LETTER_TRANSVERSE
757 wxPAPER_A4_TRANSVERSE
= wxc
.wxPAPER_A4_TRANSVERSE
758 wxPAPER_LETTER_EXTRA_TRANSVERSE
= wxc
.wxPAPER_LETTER_EXTRA_TRANSVERSE
759 wxPAPER_A_PLUS
= wxc
.wxPAPER_A_PLUS
760 wxPAPER_B_PLUS
= wxc
.wxPAPER_B_PLUS
761 wxPAPER_LETTER_PLUS
= wxc
.wxPAPER_LETTER_PLUS
762 wxPAPER_A4_PLUS
= wxc
.wxPAPER_A4_PLUS
763 wxPAPER_A5_TRANSVERSE
= wxc
.wxPAPER_A5_TRANSVERSE
764 wxPAPER_B5_TRANSVERSE
= wxc
.wxPAPER_B5_TRANSVERSE
765 wxPAPER_A3_EXTRA
= wxc
.wxPAPER_A3_EXTRA
766 wxPAPER_A5_EXTRA
= wxc
.wxPAPER_A5_EXTRA
767 wxPAPER_B5_EXTRA
= wxc
.wxPAPER_B5_EXTRA
768 wxPAPER_A2
= wxc
.wxPAPER_A2
769 wxPAPER_A3_TRANSVERSE
= wxc
.wxPAPER_A3_TRANSVERSE
770 wxPAPER_A3_EXTRA_TRANSVERSE
= wxc
.wxPAPER_A3_EXTRA_TRANSVERSE
771 wxDUPLEX_SIMPLEX
= wxc
.wxDUPLEX_SIMPLEX
772 wxDUPLEX_HORIZONTAL
= wxc
.wxDUPLEX_HORIZONTAL
773 wxDUPLEX_VERTICAL
= wxc
.wxDUPLEX_VERTICAL
774 wxITEM_SEPARATOR
= wxc
.wxITEM_SEPARATOR
775 wxITEM_NORMAL
= wxc
.wxITEM_NORMAL
776 wxITEM_CHECK
= wxc
.wxITEM_CHECK
777 wxITEM_RADIO
= wxc
.wxITEM_RADIO
778 wxITEM_MAX
= wxc
.wxITEM_MAX
779 wxHT_NOWHERE
= wxc
.wxHT_NOWHERE
780 wxHT_SCROLLBAR_FIRST
= wxc
.wxHT_SCROLLBAR_FIRST
781 wxHT_SCROLLBAR_ARROW_LINE_1
= wxc
.wxHT_SCROLLBAR_ARROW_LINE_1
782 wxHT_SCROLLBAR_ARROW_LINE_2
= wxc
.wxHT_SCROLLBAR_ARROW_LINE_2
783 wxHT_SCROLLBAR_ARROW_PAGE_1
= wxc
.wxHT_SCROLLBAR_ARROW_PAGE_1
784 wxHT_SCROLLBAR_ARROW_PAGE_2
= wxc
.wxHT_SCROLLBAR_ARROW_PAGE_2
785 wxHT_SCROLLBAR_THUMB
= wxc
.wxHT_SCROLLBAR_THUMB
786 wxHT_SCROLLBAR_BAR_1
= wxc
.wxHT_SCROLLBAR_BAR_1
787 wxHT_SCROLLBAR_BAR_2
= wxc
.wxHT_SCROLLBAR_BAR_2
788 wxHT_SCROLLBAR_LAST
= wxc
.wxHT_SCROLLBAR_LAST
789 wxHT_WINDOW_OUTSIDE
= wxc
.wxHT_WINDOW_OUTSIDE
790 wxHT_WINDOW_INSIDE
= wxc
.wxHT_WINDOW_INSIDE
791 wxHT_WINDOW_VERT_SCROLLBAR
= wxc
.wxHT_WINDOW_VERT_SCROLLBAR
792 wxHT_WINDOW_HORZ_SCROLLBAR
= wxc
.wxHT_WINDOW_HORZ_SCROLLBAR
793 wxHT_WINDOW_CORNER
= wxc
.wxHT_WINDOW_CORNER
794 wxHT_MAX
= wxc
.wxHT_MAX
799 wxEVT_NULL
= wxc
.wxEVT_NULL
800 wxEVT_FIRST
= wxc
.wxEVT_FIRST
801 wxEVT_COMMAND_BUTTON_CLICKED
= wxc
.wxEVT_COMMAND_BUTTON_CLICKED
802 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxc
.wxEVT_COMMAND_CHECKBOX_CLICKED
803 wxEVT_COMMAND_CHOICE_SELECTED
= wxc
.wxEVT_COMMAND_CHOICE_SELECTED
804 wxEVT_COMMAND_LISTBOX_SELECTED
= wxc
.wxEVT_COMMAND_LISTBOX_SELECTED
805 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
806 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
807 wxEVT_COMMAND_SPINCTRL_UPDATED
= wxc
.wxEVT_COMMAND_SPINCTRL_UPDATED
808 wxEVT_COMMAND_TEXT_UPDATED
= wxc
.wxEVT_COMMAND_TEXT_UPDATED
809 wxEVT_COMMAND_TEXT_ENTER
= wxc
.wxEVT_COMMAND_TEXT_ENTER
810 wxEVT_COMMAND_TEXT_URL
= wxc
.wxEVT_COMMAND_TEXT_URL
811 wxEVT_COMMAND_TEXT_MAXLEN
= wxc
.wxEVT_COMMAND_TEXT_MAXLEN
812 wxEVT_COMMAND_MENU_SELECTED
= wxc
.wxEVT_COMMAND_MENU_SELECTED
813 wxEVT_COMMAND_SLIDER_UPDATED
= wxc
.wxEVT_COMMAND_SLIDER_UPDATED
814 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBOX_SELECTED
815 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
816 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
817 wxEVT_COMMAND_VLBOX_SELECTED
= wxc
.wxEVT_COMMAND_VLBOX_SELECTED
818 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxc
.wxEVT_COMMAND_COMBOBOX_SELECTED
819 wxEVT_COMMAND_TOOL_CLICKED
= wxc
.wxEVT_COMMAND_TOOL_CLICKED
820 wxEVT_COMMAND_TOOL_RCLICKED
= wxc
.wxEVT_COMMAND_TOOL_RCLICKED
821 wxEVT_COMMAND_TOOL_ENTER
= wxc
.wxEVT_COMMAND_TOOL_ENTER
822 wxEVT_SET_FOCUS
= wxc
.wxEVT_SET_FOCUS
823 wxEVT_KILL_FOCUS
= wxc
.wxEVT_KILL_FOCUS
824 wxEVT_CHILD_FOCUS
= wxc
.wxEVT_CHILD_FOCUS
825 wxEVT_MOUSEWHEEL
= wxc
.wxEVT_MOUSEWHEEL
826 wxEVT_LEFT_DOWN
= wxc
.wxEVT_LEFT_DOWN
827 wxEVT_LEFT_UP
= wxc
.wxEVT_LEFT_UP
828 wxEVT_MIDDLE_DOWN
= wxc
.wxEVT_MIDDLE_DOWN
829 wxEVT_MIDDLE_UP
= wxc
.wxEVT_MIDDLE_UP
830 wxEVT_RIGHT_DOWN
= wxc
.wxEVT_RIGHT_DOWN
831 wxEVT_RIGHT_UP
= wxc
.wxEVT_RIGHT_UP
832 wxEVT_MOTION
= wxc
.wxEVT_MOTION
833 wxEVT_ENTER_WINDOW
= wxc
.wxEVT_ENTER_WINDOW
834 wxEVT_LEAVE_WINDOW
= wxc
.wxEVT_LEAVE_WINDOW
835 wxEVT_LEFT_DCLICK
= wxc
.wxEVT_LEFT_DCLICK
836 wxEVT_MIDDLE_DCLICK
= wxc
.wxEVT_MIDDLE_DCLICK
837 wxEVT_RIGHT_DCLICK
= wxc
.wxEVT_RIGHT_DCLICK
838 wxEVT_MOUSE_CAPTURE_CHANGED
= wxc
.wxEVT_MOUSE_CAPTURE_CHANGED
839 wxEVT_NC_LEFT_DOWN
= wxc
.wxEVT_NC_LEFT_DOWN
840 wxEVT_NC_LEFT_UP
= wxc
.wxEVT_NC_LEFT_UP
841 wxEVT_NC_MIDDLE_DOWN
= wxc
.wxEVT_NC_MIDDLE_DOWN
842 wxEVT_NC_MIDDLE_UP
= wxc
.wxEVT_NC_MIDDLE_UP
843 wxEVT_NC_RIGHT_DOWN
= wxc
.wxEVT_NC_RIGHT_DOWN
844 wxEVT_NC_RIGHT_UP
= wxc
.wxEVT_NC_RIGHT_UP
845 wxEVT_NC_MOTION
= wxc
.wxEVT_NC_MOTION
846 wxEVT_NC_ENTER_WINDOW
= wxc
.wxEVT_NC_ENTER_WINDOW
847 wxEVT_NC_LEAVE_WINDOW
= wxc
.wxEVT_NC_LEAVE_WINDOW
848 wxEVT_NC_LEFT_DCLICK
= wxc
.wxEVT_NC_LEFT_DCLICK
849 wxEVT_NC_MIDDLE_DCLICK
= wxc
.wxEVT_NC_MIDDLE_DCLICK
850 wxEVT_NC_RIGHT_DCLICK
= wxc
.wxEVT_NC_RIGHT_DCLICK
851 wxEVT_SET_CURSOR
= wxc
.wxEVT_SET_CURSOR
852 wxEVT_CHAR
= wxc
.wxEVT_CHAR
853 wxEVT_KEY_DOWN
= wxc
.wxEVT_KEY_DOWN
854 wxEVT_KEY_UP
= wxc
.wxEVT_KEY_UP
855 wxEVT_CHAR_HOOK
= wxc
.wxEVT_CHAR_HOOK
856 wxEVT_SCROLL_TOP
= wxc
.wxEVT_SCROLL_TOP
857 wxEVT_SCROLL_BOTTOM
= wxc
.wxEVT_SCROLL_BOTTOM
858 wxEVT_SCROLL_LINEUP
= wxc
.wxEVT_SCROLL_LINEUP
859 wxEVT_SCROLL_LINEDOWN
= wxc
.wxEVT_SCROLL_LINEDOWN
860 wxEVT_SCROLL_PAGEUP
= wxc
.wxEVT_SCROLL_PAGEUP
861 wxEVT_SCROLL_PAGEDOWN
= wxc
.wxEVT_SCROLL_PAGEDOWN
862 wxEVT_SCROLL_THUMBTRACK
= wxc
.wxEVT_SCROLL_THUMBTRACK
863 wxEVT_SCROLL_THUMBRELEASE
= wxc
.wxEVT_SCROLL_THUMBRELEASE
864 wxEVT_SCROLL_ENDSCROLL
= wxc
.wxEVT_SCROLL_ENDSCROLL
865 wxEVT_SCROLLWIN_TOP
= wxc
.wxEVT_SCROLLWIN_TOP
866 wxEVT_SCROLLWIN_BOTTOM
= wxc
.wxEVT_SCROLLWIN_BOTTOM
867 wxEVT_SCROLLWIN_LINEUP
= wxc
.wxEVT_SCROLLWIN_LINEUP
868 wxEVT_SCROLLWIN_LINEDOWN
= wxc
.wxEVT_SCROLLWIN_LINEDOWN
869 wxEVT_SCROLLWIN_PAGEUP
= wxc
.wxEVT_SCROLLWIN_PAGEUP
870 wxEVT_SCROLLWIN_PAGEDOWN
= wxc
.wxEVT_SCROLLWIN_PAGEDOWN
871 wxEVT_SCROLLWIN_THUMBTRACK
= wxc
.wxEVT_SCROLLWIN_THUMBTRACK
872 wxEVT_SCROLLWIN_THUMBRELEASE
= wxc
.wxEVT_SCROLLWIN_THUMBRELEASE
873 wxEVT_SIZE
= wxc
.wxEVT_SIZE
874 wxEVT_MOVE
= wxc
.wxEVT_MOVE
875 wxEVT_CLOSE_WINDOW
= wxc
.wxEVT_CLOSE_WINDOW
876 wxEVT_END_SESSION
= wxc
.wxEVT_END_SESSION
877 wxEVT_QUERY_END_SESSION
= wxc
.wxEVT_QUERY_END_SESSION
878 wxEVT_ACTIVATE_APP
= wxc
.wxEVT_ACTIVATE_APP
879 wxEVT_POWER
= wxc
.wxEVT_POWER
880 wxEVT_ACTIVATE
= wxc
.wxEVT_ACTIVATE
881 wxEVT_CREATE
= wxc
.wxEVT_CREATE
882 wxEVT_DESTROY
= wxc
.wxEVT_DESTROY
883 wxEVT_SHOW
= wxc
.wxEVT_SHOW
884 wxEVT_ICONIZE
= wxc
.wxEVT_ICONIZE
885 wxEVT_MAXIMIZE
= wxc
.wxEVT_MAXIMIZE
886 wxEVT_PAINT
= wxc
.wxEVT_PAINT
887 wxEVT_ERASE_BACKGROUND
= wxc
.wxEVT_ERASE_BACKGROUND
888 wxEVT_NC_PAINT
= wxc
.wxEVT_NC_PAINT
889 wxEVT_PAINT_ICON
= wxc
.wxEVT_PAINT_ICON
890 wxEVT_MENU_OPEN
= wxc
.wxEVT_MENU_OPEN
891 wxEVT_MENU_CLOSE
= wxc
.wxEVT_MENU_CLOSE
892 wxEVT_MENU_HIGHLIGHT
= wxc
.wxEVT_MENU_HIGHLIGHT
893 wxEVT_CONTEXT_MENU
= wxc
.wxEVT_CONTEXT_MENU
894 wxEVT_SYS_COLOUR_CHANGED
= wxc
.wxEVT_SYS_COLOUR_CHANGED
895 wxEVT_DISPLAY_CHANGED
= wxc
.wxEVT_DISPLAY_CHANGED
896 wxEVT_SETTING_CHANGED
= wxc
.wxEVT_SETTING_CHANGED
897 wxEVT_QUERY_NEW_PALETTE
= wxc
.wxEVT_QUERY_NEW_PALETTE
898 wxEVT_PALETTE_CHANGED
= wxc
.wxEVT_PALETTE_CHANGED
899 wxEVT_JOY_BUTTON_DOWN
= wxc
.wxEVT_JOY_BUTTON_DOWN
900 wxEVT_JOY_BUTTON_UP
= wxc
.wxEVT_JOY_BUTTON_UP
901 wxEVT_JOY_MOVE
= wxc
.wxEVT_JOY_MOVE
902 wxEVT_JOY_ZMOVE
= wxc
.wxEVT_JOY_ZMOVE
903 wxEVT_DROP_FILES
= wxc
.wxEVT_DROP_FILES
904 wxEVT_DRAW_ITEM
= wxc
.wxEVT_DRAW_ITEM
905 wxEVT_MEASURE_ITEM
= wxc
.wxEVT_MEASURE_ITEM
906 wxEVT_COMPARE_ITEM
= wxc
.wxEVT_COMPARE_ITEM
907 wxEVT_INIT_DIALOG
= wxc
.wxEVT_INIT_DIALOG
908 wxEVT_IDLE
= wxc
.wxEVT_IDLE
909 wxEVT_UPDATE_UI
= wxc
.wxEVT_UPDATE_UI
910 wxEVT_COMMAND_LEFT_CLICK
= wxc
.wxEVT_COMMAND_LEFT_CLICK
911 wxEVT_COMMAND_LEFT_DCLICK
= wxc
.wxEVT_COMMAND_LEFT_DCLICK
912 wxEVT_COMMAND_RIGHT_CLICK
= wxc
.wxEVT_COMMAND_RIGHT_CLICK
913 wxEVT_COMMAND_RIGHT_DCLICK
= wxc
.wxEVT_COMMAND_RIGHT_DCLICK
914 wxEVT_COMMAND_SET_FOCUS
= wxc
.wxEVT_COMMAND_SET_FOCUS
915 wxEVT_COMMAND_KILL_FOCUS
= wxc
.wxEVT_COMMAND_KILL_FOCUS
916 wxEVT_COMMAND_ENTER
= wxc
.wxEVT_COMMAND_ENTER
917 wxEVT_NAVIGATION_KEY
= wxc
.wxEVT_NAVIGATION_KEY
918 wxEVT_TIMER
= wxc
.wxEVT_TIMER
919 __version__
= wxc
.__version
__
921 wxDefaultPosition
= wxPointPtr(wxc
.cvar
.wxDefaultPosition
)
922 wxDefaultSize
= wxSizePtr(wxc
.cvar
.wxDefaultSize
)
925 #-------------- USER INCLUDE -----------------------
927 #----------------------------------------------------------------------------
929 # Purpose: This file is appended to the shadow class file generated
930 # by SWIG. We add some unSWIGable things here.
935 # Copyright: (c) 1998 by Total Control Software
936 # Licence: wxWindows license
937 #----------------------------------------------------------------------------
941 #----------------------------------------------------------------------
942 # This gives this module's dictionary to the C++ extension code...
944 _wxSetDictionary(vars())
947 #----------------------------------------------------------------------
948 #----------------------------------------------------------------------
949 # Helper function to link python methods to wxWindows virtual
952 def _checkForCallback(obj
, name
, event
, theID
=-1):
953 try: cb
= getattr(obj
, name
)
955 else: obj
.Connect(theID
, -1, event
, cb
)
958 #----------------------------------------------------------------------
959 #----------------------------------------------------------------------
960 # functions that look and act like the C++ Macros of the same name
964 def EVT_SIZE(win
, func
):
965 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
967 def EVT_MOVE(win
, func
):
968 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
970 def EVT_CLOSE(win
, func
):
971 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
973 def EVT_PAINT(win
, func
):
974 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
976 def EVT_ERASE_BACKGROUND(win
, func
):
977 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
979 def EVT_CHAR(win
, func
):
980 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
982 def EVT_CHAR_HOOK(win
, func
):
983 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
985 def EVT_KEY_DOWN(win
, func
):
986 win
.Connect(-1, -1, wxEVT_KEY_DOWN
, func
)
988 def EVT_KEY_UP(win
, func
):
989 win
.Connect(-1, -1, wxEVT_KEY_UP
, func
)
991 def EVT_MENU_OPEN(win
, func
):
992 win
.Connect(-1, -1, wxEVT_MENU_OPEN
, func
)
994 def EVT_MENU_CLOSE(win
, func
):
995 win
.Connect(-1, -1, wxEVT_MENU_CLOSE
, func
)
997 def EVT_MENU_HIGHLIGHT(win
, id, func
):
998 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
1000 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
1001 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
1003 def EVT_SET_FOCUS(win
, func
):
1004 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
1006 def EVT_KILL_FOCUS(win
, func
):
1007 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
1009 def EVT_CHILD_FOCUS(win
, func
):
1010 win
.Connect(-1, -1, wxEVT_CHILD_FOCUS
, func
)
1012 def EVT_ACTIVATE(win
, func
):
1013 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
1015 def EVT_ACTIVATE_APP(win
, func
):
1016 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
1018 def EVT_END_SESSION(win
, func
):
1019 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
1021 def EVT_QUERY_END_SESSION(win
, func
):
1022 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
1024 def EVT_DROP_FILES(win
, func
):
1025 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
1027 def EVT_INIT_DIALOG(win
, func
):
1028 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
1030 def EVT_SYS_COLOUR_CHANGED(win
, func
):
1031 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
1033 def EVT_DISPLAY_CHANGED(win
, func
):
1034 win
.Connect(-1, -1, wxEVT_DISPLAY_CHANGED
, func
)
1036 def EVT_SHOW(win
, func
):
1037 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
1039 def EVT_MAXIMIZE(win
, func
):
1040 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
1042 def EVT_ICONIZE(win
, func
):
1043 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
1045 def EVT_NAVIGATION_KEY(win
, func
):
1046 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
1048 def EVT_PALETTE_CHANGED(win
, func
):
1049 win
.Connect(-1, -1, wxEVT_PALETTE_CHANGED
, func
)
1051 def EVT_QUERY_NEW_PALETTE(win
, func
):
1052 win
.Connect(-1, -1, wxEVT_QUERY_NEW_PALETTE
, func
)
1054 def EVT_WINDOW_CREATE(win
, func
):
1055 win
.Connect(-1, -1, wxEVT_CREATE
, func
)
1057 def EVT_WINDOW_DESTROY(win
, func
):
1058 win
.Connect(-1, -1, wxEVT_DESTROY
, func
)
1060 def EVT_SET_CURSOR(win
, func
):
1061 win
.Connect(-1, -1, wxEVT_SET_CURSOR
, func
)
1065 def EVT_IDLE(win
, func
):
1066 win
.Connect(-1, -1, wxEVT_IDLE
, func
)
1068 def EVT_UPDATE_UI(win
, id, func
):
1069 win
.Connect(id, -1, wxEVT_UPDATE_UI
, func
)
1071 def EVT_UPDATE_UI_RANGE(win
, id, id2
, func
):
1072 win
.Connect(id, id2
, wxEVT_UPDATE_UI
, func
)
1076 def EVT_LEFT_DOWN(win
, func
):
1077 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
1079 def EVT_LEFT_UP(win
, func
):
1080 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
1082 def EVT_MIDDLE_DOWN(win
, func
):
1083 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
1085 def EVT_MIDDLE_UP(win
, func
):
1086 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
1088 def EVT_RIGHT_DOWN(win
, func
):
1089 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
1091 def EVT_RIGHT_UP(win
, func
):
1092 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
1094 def EVT_MOTION(win
, func
):
1095 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
1097 def EVT_LEFT_DCLICK(win
, func
):
1098 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
1100 def EVT_MIDDLE_DCLICK(win
, func
):
1101 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
1103 def EVT_RIGHT_DCLICK(win
, func
):
1104 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
1106 def EVT_LEAVE_WINDOW(win
, func
):
1107 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
1109 def EVT_ENTER_WINDOW(win
, func
):
1110 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
1112 def EVT_MOUSEWHEEL(win
, func
):
1113 win
.Connect(-1, -1, wxEVT_MOUSEWHEEL
, func
)
1116 def EVT_MOUSE_EVENTS(win
, func
):
1117 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
1118 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
1119 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
1120 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
1121 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
1122 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
1123 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
1124 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
1125 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
1126 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
1127 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
1128 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
1130 def EVT_MOUSE_CAPTURE_CHANGED(win
, func
):
1131 win
.Connect(-1, -1, wxEVT_MOUSE_CAPTURE_CHANGED
, func
)
1134 def EVT_COMMAND(win
, id, cmd
, func
):
1135 win
.Connect(id, -1, cmd
, func
)
1137 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
1138 win
.Connect(id1
, id2
, cmd
, func
)
1142 def EVT_SCROLL(win
, func
):
1143 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
1144 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
1145 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
1146 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1147 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
1148 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
1149 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
1150 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE
,func
)
1151 win
.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL
, func
)
1153 def EVT_SCROLL_TOP(win
, func
):
1154 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
1156 def EVT_SCROLL_BOTTOM(win
, func
):
1157 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
1159 def EVT_SCROLL_LINEUP(win
, func
):
1160 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
1162 def EVT_SCROLL_LINEDOWN(win
, func
):
1163 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1165 def EVT_SCROLL_PAGEUP(win
, func
):
1166 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
1168 def EVT_SCROLL_PAGEDOWN(win
, func
):
1169 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
1171 def EVT_SCROLL_THUMBTRACK(win
, func
):
1172 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
1174 def EVT_SCROLL_THUMBRELEASE(win
, func
):
1175 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE
, func
)
1177 def EVT_SCROLL_ENDSCROLL(win
, func
):
1178 win
.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL
, func
)
1182 # Scrolling, with an id
1183 def EVT_COMMAND_SCROLL(win
, id, func
):
1184 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
1185 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
1186 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1187 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1188 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
1189 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
1190 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
1191 win
.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE
,func
)
1192 win
.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL
, func
)
1194 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
1195 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
1197 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
1198 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
1200 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
1201 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1203 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
1204 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1206 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
1207 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
1209 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
1210 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
1212 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
1213 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
1215 def EVT_COMMAND_SCROLL_THUMBRELEASE(win
, id, func
):
1216 win
.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE
, func
)
1218 def EVT_COMMAND_SCROLL_ENDSCROLL(win
, id, func
):
1219 win
.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL
, func
)
1222 def EVT_SCROLLWIN(win
, func
):
1223 win
.Connect(-1, -1, wxEVT_SCROLLWIN_TOP
, func
)
1224 win
.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM
, func
)
1225 win
.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP
, func
)
1226 win
.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN
, func
)
1227 win
.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP
, func
)
1228 win
.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN
, func
)
1229 win
.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK
, func
)
1230 win
.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE
,func
)
1232 def EVT_SCROLLWIN_TOP(win
, func
):
1233 win
.Connect(-1, -1, wxEVT_SCROLLWIN_TOP
, func
)
1235 def EVT_SCROLLWIN_BOTTOM(win
, func
):
1236 win
.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM
, func
)
1238 def EVT_SCROLLWIN_LINEUP(win
, func
):
1239 win
.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP
, func
)
1241 def EVT_SCROLLWIN_LINEDOWN(win
, func
):
1242 win
.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN
, func
)
1244 def EVT_SCROLLWIN_PAGEUP(win
, func
):
1245 win
.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP
, func
)
1247 def EVT_SCROLLWIN_PAGEDOWN(win
, func
):
1248 win
.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN
, func
)
1250 def EVT_SCROLLWIN_THUMBTRACK(win
, func
):
1251 win
.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK
, func
)
1253 def EVT_SCROLLWIN_THUMBRELEASE(win
, func
):
1254 win
.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE
, func
)
1258 # Scrolling, with an id
1259 def EVT_COMMAND_SCROLLWIN(win
, id, func
):
1260 win
.Connect(id, -1, wxEVT_SCROLLWIN_TOP
, func
)
1261 win
.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM
, func
)
1262 win
.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP
, func
)
1263 win
.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN
, func
)
1264 win
.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP
, func
)
1265 win
.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN
, func
)
1266 win
.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK
, func
)
1267 win
.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE
,func
)
1269 def EVT_COMMAND_SCROLLWIN_TOP(win
, id, func
):
1270 win
.Connect(id, -1, wxEVT_SCROLLWIN_TOP
, func
)
1272 def EVT_COMMAND_SCROLLWIN_BOTTOM(win
, id, func
):
1273 win
.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM
, func
)
1275 def EVT_COMMAND_SCROLLWIN_LINEUP(win
, id, func
):
1276 win
.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP
, func
)
1278 def EVT_COMMAND_SCROLLWIN_LINEDOWN(win
, id, func
):
1279 win
.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN
, func
)
1281 def EVT_COMMAND_SCROLLWIN_PAGEUP(win
, id, func
):
1282 win
.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP
, func
)
1284 def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win
, id, func
):
1285 win
.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN
, func
)
1287 def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win
, id, func
):
1288 win
.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK
, func
)
1290 def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win
, id, func
):
1291 win
.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE
, func
)
1294 # Convenience commands
1295 def EVT_BUTTON(win
, id, func
):
1296 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
1298 def EVT_CHECKBOX(win
, id, func
):
1299 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
1301 def EVT_CHOICE(win
, id, func
):
1302 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
1304 def EVT_LISTBOX(win
, id, func
):
1305 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
1307 def EVT_LISTBOX_DCLICK(win
, id, func
):
1308 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
1310 def EVT_TEXT(win
, id, func
):
1311 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
1313 def EVT_TEXT_ENTER(win
, id, func
):
1314 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
1316 def EVT_TEXT_URL(win
, id, func
):
1317 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_URL
, func
)
1319 def EVT_TEXT_MAXLEN(win
, id, func
):
1320 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_MAXLEN
, func
)
1322 def EVT_MENU(win
, id, func
):
1323 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
1325 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
1326 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
1328 def EVT_SLIDER(win
, id, func
):
1329 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
1331 def EVT_RADIOBOX(win
, id, func
):
1332 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
1334 def EVT_RADIOBUTTON(win
, id, func
):
1335 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
1337 def EVT_VLBOX(win
, id, func
):
1338 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
1340 def EVT_COMBOBOX(win
, id, func
):
1341 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
1343 def EVT_TOOL(win
, id, func
):
1344 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
1346 def EVT_TOOL_RANGE(win
, id, id2
, func
):
1347 win
.Connect(id, id2
, wxEVT_COMMAND_TOOL_CLICKED
, func
)
1349 def EVT_TOOL_RCLICKED(win
, id, func
):
1350 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
1352 def EVT_TOOL_RCLICKED_RANGE(win
, id, id2
, func
):
1353 win
.Connect(id, id2
, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
1355 def EVT_TOOL_ENTER(win
, id, func
):
1356 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
1358 def EVT_CHECKLISTBOX(win
, id, func
):
1359 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
1361 def EVT_SPINCTRL(win
, id, func
):
1362 win
.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED
, func
)
1366 # Generic command events
1368 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
1369 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
1371 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
1372 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
1374 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
1375 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
1377 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
1378 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
1380 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
1381 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
1383 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
1384 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
1386 def EVT_COMMAND_ENTER(win
, id, func
):
1387 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
1391 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
1392 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
1394 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
1395 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
1399 def EVT_SPIN_UP(win
, id, func
):
1400 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1402 def EVT_SPIN_DOWN(win
, id, func
):
1403 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1405 def EVT_SPIN(win
, id, func
):
1406 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
1410 def EVT_TASKBAR_MOVE(win
, func
):
1411 win
.Connect(-1, -1, wxEVT_TASKBAR_MOVE
, func
)
1413 def EVT_TASKBAR_LEFT_DOWN(win
, func
):
1414 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN
, func
)
1416 def EVT_TASKBAR_LEFT_UP(win
, func
):
1417 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP
, func
)
1419 def EVT_TASKBAR_RIGHT_DOWN(win
, func
):
1420 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN
, func
)
1422 def EVT_TASKBAR_RIGHT_UP(win
, func
):
1423 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP
, func
)
1425 def EVT_TASKBAR_LEFT_DCLICK(win
, func
):
1426 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK
, func
)
1428 def EVT_TASKBAR_RIGHT_DCLICK(win
, func
):
1429 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK
, func
)
1433 def EVT_SASH_DRAGGED(win
, id, func
):
1434 win
.Connect(id, -1, wxEVT_SASH_DRAGGED
, func
)
1436 def EVT_SASH_DRAGGED_RANGE(win
, id1
, id2
, func
):
1437 win
.Connect(id1
, id2
, wxEVT_SASH_DRAGGED
, func
)
1439 def EVT_QUERY_LAYOUT_INFO(win
, func
):
1440 win
.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO
, func
)
1442 def EVT_CALCULATE_LAYOUT(win
, func
):
1443 win
.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT
, func
)
1447 def EVT_SPLITTER_SASH_POS_CHANGING(win
, id, func
):
1448 win
.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, func
)
1450 def EVT_SPLITTER_SASH_POS_CHANGED(win
, id, func
):
1451 win
.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, func
)
1453 def EVT_SPLITTER_UNSPLIT(win
, id, func
):
1454 win
.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT
, func
)
1456 def EVT_SPLITTER_DOUBLECLICKED(win
, id, func
):
1457 win
.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, func
)
1461 def EVT_TIMER(win
, id, func
):
1462 win
.Connect(id, -1, wxEVT_TIMER
, func
)
1465 def EVT_END_PROCESS(eh
, id, func
):
1466 eh
.Connect(id, -1, wxEVT_END_PROCESS
, func
)
1470 def EVT_JOY_DOWN(win
, func
):
1471 win
.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN
, func
)
1473 def EVT_JOY_UP(win
, func
):
1474 win
.Connect(-1, -1, wxEVT_JOY_BUTTON_UP
, func
)
1476 def EVT_JOY_MOVE(win
, func
):
1477 win
.Connect(-1, -1, wxEVT_JOY_MOVE
, func
)
1479 def EVT_JOY_ZMOVE(win
, func
):
1480 win
.Connect(-1, -1, wxEVT_JOY_ZMOVE
, func
)
1482 def EVT_JOYSTICK_EVENTS(win
, func
):
1483 win
.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN
, func
)
1484 win
.Connect(-1, -1, wxEVT_JOY_BUTTON_UP
, func
)
1485 win
.Connect(-1, -1, wxEVT_JOY_MOVE
, func
)
1486 win
.Connect(-1, -1, wxEVT_JOY_ZMOVE
, func
)
1489 def EVT_TOGGLEBUTTON(win
, id, func
):
1490 win
.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED
, func
)
1494 def EVT_CONTEXT_MENU(win
, func
):
1495 win
.Connect(-1, -1, wxEVT_CONTEXT_MENU
, func
)
1498 #----------------------------------------------------------------------
1500 class wxTimer(wxPyTimer
):
1501 def __init__(self
, evtHandler
= None, id = -1):
1502 if evtHandler
is None:
1503 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1504 # Notify(self) method.
1506 wxPyTimer
.__init
__(self
, None)
1507 self
.SetOwner(evtHandler
, id)
1509 #----------------------------------------------------------------------
1513 wxNamedColor
= wxNamedColour
1515 wxScrollbar
= wxScrollBar
1518 # backwards compatibility
1519 wxNoRefBitmap
= wxBitmap
1520 wxPyDefaultPosition
= wxDefaultPosition
1521 wxPyDefaultSize
= wxDefaultSize
1523 wxSystemSettings_GetSystemColour
= wxSystemSettings_GetColour
1524 wxSystemSettings_GetSystemFont
= wxSystemSettings_GetFont
1525 wxSystemSettings_GetSystemMetric
= wxSystemSettings_GetMetric
1527 #----------------------------------------------------------------------
1528 # wxGTK sets the locale when initialized. Doing this at the Python
1529 # level should set it up to match what GTK is doing at the C level.
1530 if wxPlatform
== "__WXGTK__":
1533 locale
.setlocale(locale
.LC_ALL
, "")
1539 #----------------------------------------------------------------------
1540 # wxWindows version numbers. wxPython version is in __version__.
1542 wxMAJOR_VERSION
= wxc
.wxMAJOR_VERSION
1543 wxMINOR_VERSION
= wxc
.wxMINOR_VERSION
1544 wxRELEASE_NUMBER
= wxc
.wxRELEASE_NUMBER
1545 wxVERSION_STRING
= wxc
.wxVERSION_STRING
1546 wxVERSION_NUMBER
= wxc
.wxVERSION_NUMBER
1548 wxVERSION
= (wxMAJOR_VERSION
, wxMINOR_VERSION
, wxRELEASE_NUMBER
)
1551 #----------------------------------------------------------------------
1552 # This helper function will take a wxPython object and convert it to
1553 # another wxPython object type. This will not be able to create objects
1554 # that are derived from wxPython classes by the user, only those that are
1555 # actually part of wxPython and directly corespond to C++ objects.
1557 # This is useful in situations where some method returns a generic
1558 # type such as wxWindow, but you know that it is actually some
1559 # derived type such as a wxTextCtrl. You can't call wxTextCtrl specific
1560 # methods on a wxWindow object, but you can use this function to
1561 # create a wxTextCtrl object that will pass the same pointer to
1562 # the C++ code. You use it like this:
1564 # textCtrl = wxPyTypeCast(window, "wxTextCtrl")
1567 # WARNING: Using this function to type cast objects into types that
1568 # they are not is not recommended and is likely to cause your
1569 # program to crash... Hard.
1572 def wxPyTypeCast(obj
, typeStr
):
1575 theClass
= globals()[typeStr
+"Ptr"]
1576 typeStr
= __wxPyPtrTypeMap
.get(typeStr
, typeStr
)
1577 if hasattr(obj
, "this"):
1578 # if already the right type then just return it
1579 if isinstance(obj
, theClass
) or obj
.__class
__ is theClass
:
1581 newPtr
= ptrcast(obj
.this
, typeStr
+"_p")
1583 newPtr
= ptrcast(obj
, typeStr
+"_p")
1584 theObj
= theClass(newPtr
)
1585 if hasattr(obj
, "this"):
1586 theObj
.thisown
= obj
.thisown
1590 #----------------------------------------------------------------------------
1591 _wxCallAfterId
= None
1593 def wxCallAfter(callable, *args
, **kw
):
1595 Call the specified function after the current and pending event
1596 handlers have been completed. This is also good for making GUI
1597 method calls from non-GUI threads.
1600 assert app
, 'No wxApp created yet'
1602 global _wxCallAfterId
1603 if _wxCallAfterId
is None:
1604 _wxCallAfterId
= wxNewId()
1605 app
.Connect(-1, -1, _wxCallAfterId
,
1606 lambda event
: apply(event
.callable, event
.args
, event
.kw
) )
1608 evt
.SetEventType(_wxCallAfterId
)
1609 evt
.callable = callable
1612 wxPostEvent(app
, evt
)
1614 #----------------------------------------------------------------------
1616 class wxPyDeadObjectError(AttributeError):
1619 class _wxPyDeadObject
:
1621 Instances of wx objects that are OOR capable will have their __class__
1622 changed to this class when the C++ object is deleted. This should help
1623 prevent crashes due to referencing a bogus C++ pointer.
1625 reprStr
= "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)"
1626 attrStr
= "The C++ part of the %s object has been deleted, attribute access no longer allowed."
1628 def __repr__( self
):
1629 if not hasattr(self
, "_name"):
1630 self
._name
= "[unknown]"
1631 return self
.reprStr
% self
._name
1633 def __getattr__( self
, *args
):
1634 if not hasattr(self
, "_name"):
1635 self
._name
= "[unknown]"
1636 raise wxPyDeadObjectError( self
.attrStr
% self
._name
)
1638 def __nonzero__(self
):
1642 #----------------------------------------------------------------------
1643 #----------------------------------------------------------------------
1645 class wxPyOnDemandOutputWindow
:
1646 def __init__(self
, title
= "wxPython: stdout/stderr"):
1651 def SetParent(self
, parent
):
1652 self
.parent
= parent
1654 def OnCloseWindow(self
, event
):
1655 if self
.frame
!= None:
1656 self
.frame
.Destroy()
1660 # These methods provide the file-like output behaviour.
1661 def write(self
, str):
1662 if not wxThread_IsMain():
1663 # Aquire the GUI mutex before making GUI calls. Mutex is released
1664 # when locker is deleted at the end of this function.
1665 locker
= wxMutexGuiLocker()
1668 self
.frame
= wxFrame(self
.parent
, -1, self
.title
,
1669 style
=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE
)
1670 self
.text
= wxTextCtrl(self
.frame
, -1, "",
1671 style
= wxTE_MULTILINE|wxTE_READONLY
)
1672 self
.frame
.SetSize(wxSize(450, 300))
1673 self
.frame
.Show(true
)
1674 EVT_CLOSE(self
.frame
, self
.OnCloseWindow
)
1675 self
.text
.AppendText(str)
1678 if self
.frame
!= None:
1679 if not wxThread_IsMain():
1680 locker
= wxMutexGuiLocker()
1684 _defRedirect
= (wxPlatform
== '__WXMSW__' or wxPlatform
== '__WXMAC__')
1686 #----------------------------------------------------------------------
1687 # The main application class. Derive from this and implement an OnInit
1688 # method that creates a frame and then calls self.SetTopWindow(frame)
1690 class wxApp(wxPyApp
):
1691 error
= 'wxApp.error'
1692 outputWindowClass
= wxPyOnDemandOutputWindow
1694 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1695 wxPyApp
.__init
__(self
)
1696 self
.stdioWin
= None
1697 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1699 self
.RedirectStdio(filename
)
1700 # this initializes wxWindows and then calls our OnInit
1701 _wxStart(self
.OnInit
)
1711 def SetTopWindow(self
, frame
):
1713 self
.stdioWin
.SetParent(frame
)
1714 wxPyApp
.SetTopWindow(self
, frame
)
1718 wxPyApp
.MainLoop(self
)
1722 def RedirectStdio(self
, filename
):
1724 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1726 self
.stdioWin
= self
.outputWindowClass() # wxPyOnDemandOutputWindow
1727 sys
.stdout
= sys
.stderr
= self
.stdioWin
1730 def RestoreStdio(self
):
1731 sys
.stdout
, sys
.stderr
= self
.saveStdio
1734 #----------------------------------------------------------------------------
1736 class wxPySimpleApp(wxApp
):
1737 def __init__(self
, flag
=0):
1738 wxApp
.__init
__(self
, flag
)
1740 wxInitAllImageHandlers()
1744 class wxPyWidgetTester(wxApp
):
1745 def __init__(self
, size
= (250, 100)):
1747 wxApp
.__init
__(self
, 0)
1750 self
.frame
= wxFrame(None, -1, "Widget Tester", pos
=(0,0), size
=self
.size
)
1751 self
.SetTopWindow(self
.frame
)
1754 def SetWidget(self
, widgetClass
, *args
):
1755 w
= apply(widgetClass
, (self
.frame
,) + args
)
1756 self
.frame
.Show(true
)
1758 #----------------------------------------------------------------------------
1759 # DO NOT hold any other references to this object. This is how we
1760 # know when to cleanup system resources that wxWin is holding. When
1761 # the sys module is unloaded, the refcount on sys.__wxPythonCleanup
1762 # goes to zero and it calls the wxApp_CleanUp function.
1764 class __wxPyCleanup
:
1766 self
.cleanup
= wxc
.wxApp_CleanUp
1770 sys
.__wxPythonCleanup
= __wxPyCleanup()
1772 ## # another possible solution, but it gets called too early...
1773 ## if sys.version[0] == '2':
1775 ## atexit.register(wxc.wxApp_CleanUp)
1777 ## sys.exitfunc = wxc.wxApp_CleanUp
1780 #----------------------------------------------------------------------------
1781 #----------------------------------------------------------------------------