1 # This file was created automatically by SWIG.
16 from stattool
import *
18 from controls
import *
20 from controls2
import *
22 from windows2
import *
26 from windows3
import *
29 class wxPyAppPtr(wxEvtHandlerPtr
):
30 def __init__(self
,this
):
34 val
= wxc
.wxPyApp_GetAppName(self
.this
)
37 val
= wxc
.wxPyApp_GetAuto3D(self
.this
)
39 def GetClassName(self
):
40 val
= wxc
.wxPyApp_GetClassName(self
.this
)
42 def GetExitOnFrameDelete(self
):
43 val
= wxc
.wxPyApp_GetExitOnFrameDelete(self
.this
)
45 def GetPrintMode(self
):
46 val
= wxc
.wxPyApp_GetPrintMode(self
.this
)
48 def GetTopWindow(self
):
49 val
= wxc
.wxPyApp_GetTopWindow(self
.this
)
50 val
= wxWindowPtr(val
)
52 def GetVendorName(self
):
53 val
= wxc
.wxPyApp_GetVendorName(self
.this
)
56 val
= wxc
.wxPyApp_Dispatch(self
.this
)
58 def ExitMainLoop(self
):
59 val
= wxc
.wxPyApp_ExitMainLoop(self
.this
)
61 def Initialized(self
):
62 val
= wxc
.wxPyApp_Initialized(self
.this
)
65 val
= wxc
.wxPyApp_MainLoop(self
.this
)
68 val
= wxc
.wxPyApp_Pending(self
.this
)
70 def SetAppName(self
,arg0
):
71 val
= wxc
.wxPyApp_SetAppName(self
.this
,arg0
)
73 def SetAuto3D(self
,arg0
):
74 val
= wxc
.wxPyApp_SetAuto3D(self
.this
,arg0
)
76 def SetClassName(self
,arg0
):
77 val
= wxc
.wxPyApp_SetClassName(self
.this
,arg0
)
79 def SetExitOnFrameDelete(self
,arg0
):
80 val
= wxc
.wxPyApp_SetExitOnFrameDelete(self
.this
,arg0
)
82 def SetPrintMode(self
,arg0
):
83 val
= wxc
.wxPyApp_SetPrintMode(self
.this
,arg0
)
85 def SetTopWindow(self
,arg0
):
86 val
= wxc
.wxPyApp_SetTopWindow(self
.this
,arg0
.this
)
88 def SetVendorName(self
,arg0
):
89 val
= wxc
.wxPyApp_SetVendorName(self
.this
,arg0
)
91 def AfterMainLoop(self
):
92 val
= wxc
.wxPyApp_AfterMainLoop(self
.this
)
95 return "<C wxPyApp instance>"
96 class wxPyApp(wxPyAppPtr
):
98 self
.this
= wxc
.new_wxPyApp()
106 #-------------- FUNCTION WRAPPERS ------------------
108 _wxStart
= wxc
._wxStart
110 _wxSetDictionary
= wxc
._wxSetDictionary
114 #-------------- VARIABLE WRAPPERS ------------------
116 wxMAJOR_VERSION
= wxc
.wxMAJOR_VERSION
117 wxMINOR_VERSION
= wxc
.wxMINOR_VERSION
118 wxRELEASE_NUMBER
= wxc
.wxRELEASE_NUMBER
119 wxNOT_FOUND
= wxc
.wxNOT_FOUND
120 wxVSCROLL
= wxc
.wxVSCROLL
121 wxHSCROLL
= wxc
.wxHSCROLL
122 wxCAPTION
= wxc
.wxCAPTION
123 wxDOUBLE_BORDER
= wxc
.wxDOUBLE_BORDER
124 wxSUNKEN_BORDER
= wxc
.wxSUNKEN_BORDER
125 wxRAISED_BORDER
= wxc
.wxRAISED_BORDER
126 wxBORDER
= wxc
.wxBORDER
127 wxSIMPLE_BORDER
= wxc
.wxSIMPLE_BORDER
128 wxSTATIC_BORDER
= wxc
.wxSTATIC_BORDER
129 wxTRANSPARENT_WINDOW
= wxc
.wxTRANSPARENT_WINDOW
130 wxNO_BORDER
= wxc
.wxNO_BORDER
131 wxUSER_COLOURS
= wxc
.wxUSER_COLOURS
132 wxNO_3D
= wxc
.wxNO_3D
133 wxTAB_TRAVERSAL
= wxc
.wxTAB_TRAVERSAL
134 wxHORIZONTAL
= wxc
.wxHORIZONTAL
135 wxVERTICAL
= wxc
.wxVERTICAL
137 wxCENTER_FRAME
= wxc
.wxCENTER_FRAME
138 wxSTAY_ON_TOP
= wxc
.wxSTAY_ON_TOP
139 wxICONIZE
= wxc
.wxICONIZE
140 wxMINIMIZE
= wxc
.wxMINIMIZE
141 wxMAXIMIZE
= wxc
.wxMAXIMIZE
142 wxTHICK_FRAME
= wxc
.wxTHICK_FRAME
143 wxSYSTEM_MENU
= wxc
.wxSYSTEM_MENU
144 wxMINIMIZE_BOX
= wxc
.wxMINIMIZE_BOX
145 wxMAXIMIZE_BOX
= wxc
.wxMAXIMIZE_BOX
146 wxTINY_CAPTION_HORIZ
= wxc
.wxTINY_CAPTION_HORIZ
147 wxTINY_CAPTION_VERT
= wxc
.wxTINY_CAPTION_VERT
148 wxRESIZE_BOX
= wxc
.wxRESIZE_BOX
149 wxRESIZE_BORDER
= wxc
.wxRESIZE_BORDER
150 wxDIALOG_MODAL
= wxc
.wxDIALOG_MODAL
151 wxDIALOG_MODELESS
= wxc
.wxDIALOG_MODELESS
152 wxDEFAULT_FRAME_STYLE
= wxc
.wxDEFAULT_FRAME_STYLE
153 wxDEFAULT_DIALOG_STYLE
= wxc
.wxDEFAULT_DIALOG_STYLE
154 wxFRAME_TOOL_WINDOW
= wxc
.wxFRAME_TOOL_WINDOW
155 wxCLIP_CHILDREN
= wxc
.wxCLIP_CHILDREN
156 wxRETAINED
= wxc
.wxRETAINED
157 wxBACKINGSTORE
= wxc
.wxBACKINGSTORE
158 wxTB_3DBUTTONS
= wxc
.wxTB_3DBUTTONS
159 wxTB_HORIZONTAL
= wxc
.wxTB_HORIZONTAL
160 wxTB_VERTICAL
= wxc
.wxTB_VERTICAL
161 wxTB_FLAT
= wxc
.wxTB_FLAT
162 wxCOLOURED
= wxc
.wxCOLOURED
163 wxFIXED_LENGTH
= wxc
.wxFIXED_LENGTH
164 wxALIGN_LEFT
= wxc
.wxALIGN_LEFT
165 wxALIGN_CENTER
= wxc
.wxALIGN_CENTER
166 wxALIGN_CENTRE
= wxc
.wxALIGN_CENTRE
167 wxALIGN_RIGHT
= wxc
.wxALIGN_RIGHT
168 wxLB_NEEDED_SB
= wxc
.wxLB_NEEDED_SB
169 wxLB_ALWAYS_SB
= wxc
.wxLB_ALWAYS_SB
170 wxLB_SORT
= wxc
.wxLB_SORT
171 wxLB_SINGLE
= wxc
.wxLB_SINGLE
172 wxLB_MULTIPLE
= wxc
.wxLB_MULTIPLE
173 wxLB_EXTENDED
= wxc
.wxLB_EXTENDED
174 wxLB_OWNERDRAW
= wxc
.wxLB_OWNERDRAW
175 wxLB_HSCROLL
= wxc
.wxLB_HSCROLL
176 wxPROCESS_ENTER
= wxc
.wxPROCESS_ENTER
177 wxPASSWORD
= wxc
.wxPASSWORD
178 wxTE_PROCESS_ENTER
= wxc
.wxTE_PROCESS_ENTER
179 wxTE_PASSWORD
= wxc
.wxTE_PASSWORD
180 wxTE_READONLY
= wxc
.wxTE_READONLY
181 wxTE_MULTILINE
= wxc
.wxTE_MULTILINE
182 wxCB_SIMPLE
= wxc
.wxCB_SIMPLE
183 wxCB_DROPDOWN
= wxc
.wxCB_DROPDOWN
184 wxCB_SORT
= wxc
.wxCB_SORT
185 wxCB_READONLY
= wxc
.wxCB_READONLY
186 wxRA_HORIZONTAL
= wxc
.wxRA_HORIZONTAL
187 wxRA_VERTICAL
= wxc
.wxRA_VERTICAL
188 wxRA_SPECIFY_ROWS
= wxc
.wxRA_SPECIFY_ROWS
189 wxRA_SPECIFY_COLS
= wxc
.wxRA_SPECIFY_COLS
190 wxRB_GROUP
= wxc
.wxRB_GROUP
191 wxGA_PROGRESSBAR
= wxc
.wxGA_PROGRESSBAR
192 wxGA_HORIZONTAL
= wxc
.wxGA_HORIZONTAL
193 wxGA_VERTICAL
= wxc
.wxGA_VERTICAL
194 wxSL_HORIZONTAL
= wxc
.wxSL_HORIZONTAL
195 wxSL_VERTICAL
= wxc
.wxSL_VERTICAL
196 wxSL_AUTOTICKS
= wxc
.wxSL_AUTOTICKS
197 wxSL_LABELS
= wxc
.wxSL_LABELS
198 wxSL_LEFT
= wxc
.wxSL_LEFT
199 wxSL_TOP
= wxc
.wxSL_TOP
200 wxSL_RIGHT
= wxc
.wxSL_RIGHT
201 wxSL_BOTTOM
= wxc
.wxSL_BOTTOM
202 wxSL_BOTH
= wxc
.wxSL_BOTH
203 wxSL_SELRANGE
= wxc
.wxSL_SELRANGE
204 wxSB_HORIZONTAL
= wxc
.wxSB_HORIZONTAL
205 wxSB_VERTICAL
= wxc
.wxSB_VERTICAL
206 wxBU_AUTODRAW
= wxc
.wxBU_AUTODRAW
207 wxBU_NOAUTODRAW
= wxc
.wxBU_NOAUTODRAW
208 wxTR_HAS_BUTTONS
= wxc
.wxTR_HAS_BUTTONS
209 wxTR_EDIT_LABELS
= wxc
.wxTR_EDIT_LABELS
210 wxTR_LINES_AT_ROOT
= wxc
.wxTR_LINES_AT_ROOT
211 wxLC_ICON
= wxc
.wxLC_ICON
212 wxLC_SMALL_ICON
= wxc
.wxLC_SMALL_ICON
213 wxLC_LIST
= wxc
.wxLC_LIST
214 wxLC_REPORT
= wxc
.wxLC_REPORT
215 wxLC_ALIGN_TOP
= wxc
.wxLC_ALIGN_TOP
216 wxLC_ALIGN_LEFT
= wxc
.wxLC_ALIGN_LEFT
217 wxLC_AUTOARRANGE
= wxc
.wxLC_AUTOARRANGE
218 wxLC_USER_TEXT
= wxc
.wxLC_USER_TEXT
219 wxLC_EDIT_LABELS
= wxc
.wxLC_EDIT_LABELS
220 wxLC_NO_HEADER
= wxc
.wxLC_NO_HEADER
221 wxLC_NO_SORT_HEADER
= wxc
.wxLC_NO_SORT_HEADER
222 wxLC_SINGLE_SEL
= wxc
.wxLC_SINGLE_SEL
223 wxLC_SORT_ASCENDING
= wxc
.wxLC_SORT_ASCENDING
224 wxLC_SORT_DESCENDING
= wxc
.wxLC_SORT_DESCENDING
225 wxLC_MASK_TYPE
= wxc
.wxLC_MASK_TYPE
226 wxLC_MASK_ALIGN
= wxc
.wxLC_MASK_ALIGN
227 wxLC_MASK_SORT
= wxc
.wxLC_MASK_SORT
228 wxSP_VERTICAL
= wxc
.wxSP_VERTICAL
229 wxSP_HORIZONTAL
= wxc
.wxSP_HORIZONTAL
230 wxSP_ARROW_KEYS
= wxc
.wxSP_ARROW_KEYS
231 wxSP_WRAP
= wxc
.wxSP_WRAP
232 wxSP_NOBORDER
= wxc
.wxSP_NOBORDER
233 wxSP_3D
= wxc
.wxSP_3D
234 wxSP_BORDER
= wxc
.wxSP_BORDER
235 wxTAB_MULTILINE
= wxc
.wxTAB_MULTILINE
236 wxTAB_RIGHTJUSTIFY
= wxc
.wxTAB_RIGHTJUSTIFY
237 wxTAB_FIXEDWIDTH
= wxc
.wxTAB_FIXEDWIDTH
238 wxTAB_OWNERDRAW
= wxc
.wxTAB_OWNERDRAW
239 wxFLOOD_SURFACE
= wxc
.wxFLOOD_SURFACE
240 wxFLOOD_BORDER
= wxc
.wxFLOOD_BORDER
241 wxODDEVEN_RULE
= wxc
.wxODDEVEN_RULE
242 wxWINDING_RULE
= wxc
.wxWINDING_RULE
243 wxTOOL_TOP
= wxc
.wxTOOL_TOP
244 wxTOOL_BOTTOM
= wxc
.wxTOOL_BOTTOM
245 wxTOOL_LEFT
= wxc
.wxTOOL_LEFT
246 wxTOOL_RIGHT
= wxc
.wxTOOL_RIGHT
248 wxYES_NO
= wxc
.wxYES_NO
249 wxCANCEL
= wxc
.wxCANCEL
252 wxICON_EXCLAMATION
= wxc
.wxICON_EXCLAMATION
253 wxICON_HAND
= wxc
.wxICON_HAND
254 wxICON_QUESTION
= wxc
.wxICON_QUESTION
255 wxICON_INFORMATION
= wxc
.wxICON_INFORMATION
256 wxICON_STOP
= wxc
.wxICON_STOP
257 wxICON_ASTERISK
= wxc
.wxICON_ASTERISK
258 wxICON_MASK
= wxc
.wxICON_MASK
259 wxCENTRE
= wxc
.wxCENTRE
260 wxCENTER
= wxc
.wxCENTER
261 wxSIZE_AUTO_WIDTH
= wxc
.wxSIZE_AUTO_WIDTH
262 wxSIZE_AUTO_HEIGHT
= wxc
.wxSIZE_AUTO_HEIGHT
263 wxSIZE_AUTO
= wxc
.wxSIZE_AUTO
264 wxSIZE_USE_EXISTING
= wxc
.wxSIZE_USE_EXISTING
265 wxSIZE_ALLOW_MINUS_ONE
= wxc
.wxSIZE_ALLOW_MINUS_ONE
266 wxDF_TEXT
= wxc
.wxDF_TEXT
267 wxDF_BITMAP
= wxc
.wxDF_BITMAP
268 wxDF_METAFILE
= wxc
.wxDF_METAFILE
269 wxDF_DIB
= wxc
.wxDF_DIB
270 wxDF_OEMTEXT
= wxc
.wxDF_OEMTEXT
271 wxDF_FILENAME
= wxc
.wxDF_FILENAME
272 wxPORTRAIT
= wxc
.wxPORTRAIT
273 wxLANDSCAPE
= wxc
.wxLANDSCAPE
274 wxID_OPEN
= wxc
.wxID_OPEN
275 wxID_CLOSE
= wxc
.wxID_CLOSE
276 wxID_NEW
= wxc
.wxID_NEW
277 wxID_SAVE
= wxc
.wxID_SAVE
278 wxID_SAVEAS
= wxc
.wxID_SAVEAS
279 wxID_REVERT
= wxc
.wxID_REVERT
280 wxID_EXIT
= wxc
.wxID_EXIT
281 wxID_UNDO
= wxc
.wxID_UNDO
282 wxID_REDO
= wxc
.wxID_REDO
283 wxID_HELP
= wxc
.wxID_HELP
284 wxID_PRINT
= wxc
.wxID_PRINT
285 wxID_PRINT_SETUP
= wxc
.wxID_PRINT_SETUP
286 wxID_PREVIEW
= wxc
.wxID_PREVIEW
287 wxID_ABOUT
= wxc
.wxID_ABOUT
288 wxID_HELP_CONTENTS
= wxc
.wxID_HELP_CONTENTS
289 wxID_HELP_COMMANDS
= wxc
.wxID_HELP_COMMANDS
290 wxID_HELP_PROCEDURES
= wxc
.wxID_HELP_PROCEDURES
291 wxID_HELP_CONTEXT
= wxc
.wxID_HELP_CONTEXT
292 wxID_CUT
= wxc
.wxID_CUT
293 wxID_COPY
= wxc
.wxID_COPY
294 wxID_PASTE
= wxc
.wxID_PASTE
295 wxID_CLEAR
= wxc
.wxID_CLEAR
296 wxID_FIND
= wxc
.wxID_FIND
297 wxID_FILE1
= wxc
.wxID_FILE1
298 wxID_FILE2
= wxc
.wxID_FILE2
299 wxID_FILE3
= wxc
.wxID_FILE3
300 wxID_FILE4
= wxc
.wxID_FILE4
301 wxID_FILE5
= wxc
.wxID_FILE5
302 wxID_FILE6
= wxc
.wxID_FILE6
303 wxID_FILE7
= wxc
.wxID_FILE7
304 wxID_FILE8
= wxc
.wxID_FILE8
305 wxID_FILE9
= wxc
.wxID_FILE9
306 wxID_OK
= wxc
.wxID_OK
307 wxID_CANCEL
= wxc
.wxID_CANCEL
308 wxID_APPLY
= wxc
.wxID_APPLY
309 wxID_YES
= wxc
.wxID_YES
310 wxID_NO
= wxc
.wxID_NO
311 wxBITMAP_TYPE_BMP
= wxc
.wxBITMAP_TYPE_BMP
312 wxBITMAP_TYPE_BMP_RESOURCE
= wxc
.wxBITMAP_TYPE_BMP_RESOURCE
313 wxBITMAP_TYPE_ICO
= wxc
.wxBITMAP_TYPE_ICO
314 wxBITMAP_TYPE_ICO_RESOURCE
= wxc
.wxBITMAP_TYPE_ICO_RESOURCE
315 wxBITMAP_TYPE_CUR
= wxc
.wxBITMAP_TYPE_CUR
316 wxBITMAP_TYPE_CUR_RESOURCE
= wxc
.wxBITMAP_TYPE_CUR_RESOURCE
317 wxBITMAP_TYPE_XBM
= wxc
.wxBITMAP_TYPE_XBM
318 wxBITMAP_TYPE_XBM_DATA
= wxc
.wxBITMAP_TYPE_XBM_DATA
319 wxBITMAP_TYPE_XPM
= wxc
.wxBITMAP_TYPE_XPM
320 wxBITMAP_TYPE_XPM_DATA
= wxc
.wxBITMAP_TYPE_XPM_DATA
321 wxBITMAP_TYPE_TIF
= wxc
.wxBITMAP_TYPE_TIF
322 wxBITMAP_TYPE_TIF_RESOURCE
= wxc
.wxBITMAP_TYPE_TIF_RESOURCE
323 wxBITMAP_TYPE_GIF
= wxc
.wxBITMAP_TYPE_GIF
324 wxBITMAP_TYPE_GIF_RESOURCE
= wxc
.wxBITMAP_TYPE_GIF_RESOURCE
325 wxBITMAP_TYPE_PNG
= wxc
.wxBITMAP_TYPE_PNG
326 wxBITMAP_TYPE_PNG_RESOURCE
= wxc
.wxBITMAP_TYPE_PNG_RESOURCE
327 wxBITMAP_TYPE_ANY
= wxc
.wxBITMAP_TYPE_ANY
328 wxBITMAP_TYPE_RESOURCE
= wxc
.wxBITMAP_TYPE_RESOURCE
331 wxHIDE_READONLY
= wxc
.wxHIDE_READONLY
332 wxOVERWRITE_PROMPT
= wxc
.wxOVERWRITE_PROMPT
333 wxACCEL_ALT
= wxc
.wxACCEL_ALT
334 wxACCEL_CTRL
= wxc
.wxACCEL_CTRL
335 wxACCEL_SHIFT
= wxc
.wxACCEL_SHIFT
336 ERR_PARAM
= wxc
.ERR_PARAM
337 ERR_NODATA
= wxc
.ERR_NODATA
338 ERR_CANCEL
= wxc
.ERR_CANCEL
339 ERR_SUCCESS
= wxc
.ERR_SUCCESS
340 wxDEFAULT
= wxc
.wxDEFAULT
341 wxDECORATIVE
= wxc
.wxDECORATIVE
342 wxROMAN
= wxc
.wxROMAN
343 wxSCRIPT
= wxc
.wxSCRIPT
344 wxSWISS
= wxc
.wxSWISS
345 wxMODERN
= wxc
.wxMODERN
346 wxTELETYPE
= wxc
.wxTELETYPE
347 wxVARIABLE
= wxc
.wxVARIABLE
348 wxFIXED
= wxc
.wxFIXED
349 wxNORMAL
= wxc
.wxNORMAL
350 wxLIGHT
= wxc
.wxLIGHT
352 wxITALIC
= wxc
.wxITALIC
353 wxSLANT
= wxc
.wxSLANT
354 wxSOLID
= wxc
.wxSOLID
356 wxLONG_DASH
= wxc
.wxLONG_DASH
357 wxSHORT_DASH
= wxc
.wxSHORT_DASH
358 wxDOT_DASH
= wxc
.wxDOT_DASH
359 wxUSER_DASH
= wxc
.wxUSER_DASH
360 wxTRANSPARENT
= wxc
.wxTRANSPARENT
361 wxSTIPPLE
= wxc
.wxSTIPPLE
362 wxBDIAGONAL_HATCH
= wxc
.wxBDIAGONAL_HATCH
363 wxCROSSDIAG_HATCH
= wxc
.wxCROSSDIAG_HATCH
364 wxFDIAGONAL_HATCH
= wxc
.wxFDIAGONAL_HATCH
365 wxCROSS_HATCH
= wxc
.wxCROSS_HATCH
366 wxHORIZONTAL_HATCH
= wxc
.wxHORIZONTAL_HATCH
367 wxVERTICAL_HATCH
= wxc
.wxVERTICAL_HATCH
368 wxJOIN_BEVEL
= wxc
.wxJOIN_BEVEL
369 wxJOIN_MITER
= wxc
.wxJOIN_MITER
370 wxJOIN_ROUND
= wxc
.wxJOIN_ROUND
371 wxCAP_ROUND
= wxc
.wxCAP_ROUND
372 wxCAP_PROJECTING
= wxc
.wxCAP_PROJECTING
373 wxCAP_BUTT
= wxc
.wxCAP_BUTT
374 wxCLEAR
= wxc
.wxCLEAR
376 wxINVERT
= wxc
.wxINVERT
377 wxOR_REVERSE
= wxc
.wxOR_REVERSE
378 wxAND_REVERSE
= wxc
.wxAND_REVERSE
381 wxAND_INVERT
= wxc
.wxAND_INVERT
382 wxNO_OP
= wxc
.wxNO_OP
384 wxEQUIV
= wxc
.wxEQUIV
385 wxSRC_INVERT
= wxc
.wxSRC_INVERT
386 wxOR_INVERT
= wxc
.wxOR_INVERT
390 wxSRC_OR
= wxc
.wxSRC_OR
391 wxSRC_AND
= wxc
.wxSRC_AND
392 WXK_BACK
= wxc
.WXK_BACK
393 WXK_TAB
= wxc
.WXK_TAB
394 WXK_RETURN
= wxc
.WXK_RETURN
395 WXK_ESCAPE
= wxc
.WXK_ESCAPE
396 WXK_SPACE
= wxc
.WXK_SPACE
397 WXK_DELETE
= wxc
.WXK_DELETE
398 WXK_START
= wxc
.WXK_START
399 WXK_LBUTTON
= wxc
.WXK_LBUTTON
400 WXK_RBUTTON
= wxc
.WXK_RBUTTON
401 WXK_CANCEL
= wxc
.WXK_CANCEL
402 WXK_MBUTTON
= wxc
.WXK_MBUTTON
403 WXK_CLEAR
= wxc
.WXK_CLEAR
404 WXK_SHIFT
= wxc
.WXK_SHIFT
405 WXK_CONTROL
= wxc
.WXK_CONTROL
406 WXK_MENU
= wxc
.WXK_MENU
407 WXK_PAUSE
= wxc
.WXK_PAUSE
408 WXK_CAPITAL
= wxc
.WXK_CAPITAL
409 WXK_PRIOR
= wxc
.WXK_PRIOR
410 WXK_NEXT
= wxc
.WXK_NEXT
411 WXK_END
= wxc
.WXK_END
412 WXK_HOME
= wxc
.WXK_HOME
413 WXK_LEFT
= wxc
.WXK_LEFT
415 WXK_RIGHT
= wxc
.WXK_RIGHT
416 WXK_DOWN
= wxc
.WXK_DOWN
417 WXK_SELECT
= wxc
.WXK_SELECT
418 WXK_PRINT
= wxc
.WXK_PRINT
419 WXK_EXECUTE
= wxc
.WXK_EXECUTE
420 WXK_SNAPSHOT
= wxc
.WXK_SNAPSHOT
421 WXK_INSERT
= wxc
.WXK_INSERT
422 WXK_HELP
= wxc
.WXK_HELP
423 WXK_NUMPAD0
= wxc
.WXK_NUMPAD0
424 WXK_NUMPAD1
= wxc
.WXK_NUMPAD1
425 WXK_NUMPAD2
= wxc
.WXK_NUMPAD2
426 WXK_NUMPAD3
= wxc
.WXK_NUMPAD3
427 WXK_NUMPAD4
= wxc
.WXK_NUMPAD4
428 WXK_NUMPAD5
= wxc
.WXK_NUMPAD5
429 WXK_NUMPAD6
= wxc
.WXK_NUMPAD6
430 WXK_NUMPAD7
= wxc
.WXK_NUMPAD7
431 WXK_NUMPAD8
= wxc
.WXK_NUMPAD8
432 WXK_NUMPAD9
= wxc
.WXK_NUMPAD9
433 WXK_MULTIPLY
= wxc
.WXK_MULTIPLY
434 WXK_ADD
= wxc
.WXK_ADD
435 WXK_SEPARATOR
= wxc
.WXK_SEPARATOR
436 WXK_SUBTRACT
= wxc
.WXK_SUBTRACT
437 WXK_DECIMAL
= wxc
.WXK_DECIMAL
438 WXK_DIVIDE
= wxc
.WXK_DIVIDE
448 WXK_F10
= wxc
.WXK_F10
449 WXK_F11
= wxc
.WXK_F11
450 WXK_F12
= wxc
.WXK_F12
451 WXK_F13
= wxc
.WXK_F13
452 WXK_F14
= wxc
.WXK_F14
453 WXK_F15
= wxc
.WXK_F15
454 WXK_F16
= wxc
.WXK_F16
455 WXK_F17
= wxc
.WXK_F17
456 WXK_F18
= wxc
.WXK_F18
457 WXK_F19
= wxc
.WXK_F19
458 WXK_F20
= wxc
.WXK_F20
459 WXK_F21
= wxc
.WXK_F21
460 WXK_F22
= wxc
.WXK_F22
461 WXK_F23
= wxc
.WXK_F23
462 WXK_F24
= wxc
.WXK_F24
463 WXK_NUMLOCK
= wxc
.WXK_NUMLOCK
464 WXK_SCROLL
= wxc
.WXK_SCROLL
465 WXK_PAGEUP
= wxc
.WXK_PAGEUP
466 WXK_PAGEDOWN
= wxc
.WXK_PAGEDOWN
467 wxCURSOR_NONE
= wxc
.wxCURSOR_NONE
468 wxCURSOR_ARROW
= wxc
.wxCURSOR_ARROW
469 wxCURSOR_BULLSEYE
= wxc
.wxCURSOR_BULLSEYE
470 wxCURSOR_CHAR
= wxc
.wxCURSOR_CHAR
471 wxCURSOR_CROSS
= wxc
.wxCURSOR_CROSS
472 wxCURSOR_HAND
= wxc
.wxCURSOR_HAND
473 wxCURSOR_IBEAM
= wxc
.wxCURSOR_IBEAM
474 wxCURSOR_LEFT_BUTTON
= wxc
.wxCURSOR_LEFT_BUTTON
475 wxCURSOR_MAGNIFIER
= wxc
.wxCURSOR_MAGNIFIER
476 wxCURSOR_MIDDLE_BUTTON
= wxc
.wxCURSOR_MIDDLE_BUTTON
477 wxCURSOR_NO_ENTRY
= wxc
.wxCURSOR_NO_ENTRY
478 wxCURSOR_PAINT_BRUSH
= wxc
.wxCURSOR_PAINT_BRUSH
479 wxCURSOR_PENCIL
= wxc
.wxCURSOR_PENCIL
480 wxCURSOR_POINT_LEFT
= wxc
.wxCURSOR_POINT_LEFT
481 wxCURSOR_POINT_RIGHT
= wxc
.wxCURSOR_POINT_RIGHT
482 wxCURSOR_QUESTION_ARROW
= wxc
.wxCURSOR_QUESTION_ARROW
483 wxCURSOR_RIGHT_BUTTON
= wxc
.wxCURSOR_RIGHT_BUTTON
484 wxCURSOR_SIZENESW
= wxc
.wxCURSOR_SIZENESW
485 wxCURSOR_SIZENS
= wxc
.wxCURSOR_SIZENS
486 wxCURSOR_SIZENWSE
= wxc
.wxCURSOR_SIZENWSE
487 wxCURSOR_SIZEWE
= wxc
.wxCURSOR_SIZEWE
488 wxCURSOR_SIZING
= wxc
.wxCURSOR_SIZING
489 wxCURSOR_SPRAYCAN
= wxc
.wxCURSOR_SPRAYCAN
490 wxCURSOR_WAIT
= wxc
.wxCURSOR_WAIT
491 wxCURSOR_WATCH
= wxc
.wxCURSOR_WATCH
492 wxCURSOR_BLANK
= wxc
.wxCURSOR_BLANK
497 wxVERSION_STRING
= wxc
.wxVERSION_STRING
498 wxEVT_NULL
= wxc
.wxEVT_NULL
499 wxEVT_FIRST
= wxc
.wxEVT_FIRST
500 wxEVT_COMMAND_BUTTON_CLICKED
= wxc
.wxEVT_COMMAND_BUTTON_CLICKED
501 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxc
.wxEVT_COMMAND_CHECKBOX_CLICKED
502 wxEVT_COMMAND_CHOICE_SELECTED
= wxc
.wxEVT_COMMAND_CHOICE_SELECTED
503 wxEVT_COMMAND_LISTBOX_SELECTED
= wxc
.wxEVT_COMMAND_LISTBOX_SELECTED
504 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
505 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
506 wxEVT_COMMAND_TEXT_UPDATED
= wxc
.wxEVT_COMMAND_TEXT_UPDATED
507 wxEVT_COMMAND_TEXT_ENTER
= wxc
.wxEVT_COMMAND_TEXT_ENTER
508 wxEVT_COMMAND_MENU_SELECTED
= wxc
.wxEVT_COMMAND_MENU_SELECTED
509 wxEVT_COMMAND_SLIDER_UPDATED
= wxc
.wxEVT_COMMAND_SLIDER_UPDATED
510 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBOX_SELECTED
511 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
512 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
513 wxEVT_COMMAND_VLBOX_SELECTED
= wxc
.wxEVT_COMMAND_VLBOX_SELECTED
514 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxc
.wxEVT_COMMAND_COMBOBOX_SELECTED
515 wxEVT_COMMAND_TOOL_CLICKED
= wxc
.wxEVT_COMMAND_TOOL_CLICKED
516 wxEVT_COMMAND_TOOL_RCLICKED
= wxc
.wxEVT_COMMAND_TOOL_RCLICKED
517 wxEVT_COMMAND_TOOL_ENTER
= wxc
.wxEVT_COMMAND_TOOL_ENTER
518 wxEVT_SET_FOCUS
= wxc
.wxEVT_SET_FOCUS
519 wxEVT_KILL_FOCUS
= wxc
.wxEVT_KILL_FOCUS
520 wxEVT_LEFT_DOWN
= wxc
.wxEVT_LEFT_DOWN
521 wxEVT_LEFT_UP
= wxc
.wxEVT_LEFT_UP
522 wxEVT_MIDDLE_DOWN
= wxc
.wxEVT_MIDDLE_DOWN
523 wxEVT_MIDDLE_UP
= wxc
.wxEVT_MIDDLE_UP
524 wxEVT_RIGHT_DOWN
= wxc
.wxEVT_RIGHT_DOWN
525 wxEVT_RIGHT_UP
= wxc
.wxEVT_RIGHT_UP
526 wxEVT_MOTION
= wxc
.wxEVT_MOTION
527 wxEVT_ENTER_WINDOW
= wxc
.wxEVT_ENTER_WINDOW
528 wxEVT_LEAVE_WINDOW
= wxc
.wxEVT_LEAVE_WINDOW
529 wxEVT_LEFT_DCLICK
= wxc
.wxEVT_LEFT_DCLICK
530 wxEVT_MIDDLE_DCLICK
= wxc
.wxEVT_MIDDLE_DCLICK
531 wxEVT_RIGHT_DCLICK
= wxc
.wxEVT_RIGHT_DCLICK
532 wxEVT_NC_LEFT_DOWN
= wxc
.wxEVT_NC_LEFT_DOWN
533 wxEVT_NC_LEFT_UP
= wxc
.wxEVT_NC_LEFT_UP
534 wxEVT_NC_MIDDLE_DOWN
= wxc
.wxEVT_NC_MIDDLE_DOWN
535 wxEVT_NC_MIDDLE_UP
= wxc
.wxEVT_NC_MIDDLE_UP
536 wxEVT_NC_RIGHT_DOWN
= wxc
.wxEVT_NC_RIGHT_DOWN
537 wxEVT_NC_RIGHT_UP
= wxc
.wxEVT_NC_RIGHT_UP
538 wxEVT_NC_MOTION
= wxc
.wxEVT_NC_MOTION
539 wxEVT_NC_ENTER_WINDOW
= wxc
.wxEVT_NC_ENTER_WINDOW
540 wxEVT_NC_LEAVE_WINDOW
= wxc
.wxEVT_NC_LEAVE_WINDOW
541 wxEVT_NC_LEFT_DCLICK
= wxc
.wxEVT_NC_LEFT_DCLICK
542 wxEVT_NC_MIDDLE_DCLICK
= wxc
.wxEVT_NC_MIDDLE_DCLICK
543 wxEVT_NC_RIGHT_DCLICK
= wxc
.wxEVT_NC_RIGHT_DCLICK
544 wxEVT_CHAR
= wxc
.wxEVT_CHAR
545 wxEVT_SCROLL_TOP
= wxc
.wxEVT_SCROLL_TOP
546 wxEVT_SCROLL_BOTTOM
= wxc
.wxEVT_SCROLL_BOTTOM
547 wxEVT_SCROLL_LINEUP
= wxc
.wxEVT_SCROLL_LINEUP
548 wxEVT_SCROLL_LINEDOWN
= wxc
.wxEVT_SCROLL_LINEDOWN
549 wxEVT_SCROLL_PAGEUP
= wxc
.wxEVT_SCROLL_PAGEUP
550 wxEVT_SCROLL_PAGEDOWN
= wxc
.wxEVT_SCROLL_PAGEDOWN
551 wxEVT_SCROLL_THUMBTRACK
= wxc
.wxEVT_SCROLL_THUMBTRACK
552 wxEVT_SIZE
= wxc
.wxEVT_SIZE
553 wxEVT_MOVE
= wxc
.wxEVT_MOVE
554 wxEVT_CLOSE_WINDOW
= wxc
.wxEVT_CLOSE_WINDOW
555 wxEVT_END_SESSION
= wxc
.wxEVT_END_SESSION
556 wxEVT_QUERY_END_SESSION
= wxc
.wxEVT_QUERY_END_SESSION
557 wxEVT_ACTIVATE_APP
= wxc
.wxEVT_ACTIVATE_APP
558 wxEVT_POWER
= wxc
.wxEVT_POWER
559 wxEVT_CHAR_HOOK
= wxc
.wxEVT_CHAR_HOOK
560 wxEVT_KEY_UP
= wxc
.wxEVT_KEY_UP
561 wxEVT_ACTIVATE
= wxc
.wxEVT_ACTIVATE
562 wxEVT_CREATE
= wxc
.wxEVT_CREATE
563 wxEVT_DESTROY
= wxc
.wxEVT_DESTROY
564 wxEVT_SHOW
= wxc
.wxEVT_SHOW
565 wxEVT_ICONIZE
= wxc
.wxEVT_ICONIZE
566 wxEVT_MAXIMIZE
= wxc
.wxEVT_MAXIMIZE
567 wxEVT_MOUSE_CAPTURE_CHANGED
= wxc
.wxEVT_MOUSE_CAPTURE_CHANGED
568 wxEVT_PAINT
= wxc
.wxEVT_PAINT
569 wxEVT_ERASE_BACKGROUND
= wxc
.wxEVT_ERASE_BACKGROUND
570 wxEVT_NC_PAINT
= wxc
.wxEVT_NC_PAINT
571 wxEVT_PAINT_ICON
= wxc
.wxEVT_PAINT_ICON
572 wxEVT_MENU_CHAR
= wxc
.wxEVT_MENU_CHAR
573 wxEVT_MENU_INIT
= wxc
.wxEVT_MENU_INIT
574 wxEVT_MENU_HIGHLIGHT
= wxc
.wxEVT_MENU_HIGHLIGHT
575 wxEVT_POPUP_MENU_INIT
= wxc
.wxEVT_POPUP_MENU_INIT
576 wxEVT_CONTEXT_MENU
= wxc
.wxEVT_CONTEXT_MENU
577 wxEVT_SYS_COLOUR_CHANGED
= wxc
.wxEVT_SYS_COLOUR_CHANGED
578 wxEVT_SETTING_CHANGED
= wxc
.wxEVT_SETTING_CHANGED
579 wxEVT_QUERY_NEW_PALETTE
= wxc
.wxEVT_QUERY_NEW_PALETTE
580 wxEVT_PALETTE_CHANGED
= wxc
.wxEVT_PALETTE_CHANGED
581 wxEVT_JOY_BUTTON_DOWN
= wxc
.wxEVT_JOY_BUTTON_DOWN
582 wxEVT_JOY_BUTTON_UP
= wxc
.wxEVT_JOY_BUTTON_UP
583 wxEVT_JOY_MOVE
= wxc
.wxEVT_JOY_MOVE
584 wxEVT_JOY_ZMOVE
= wxc
.wxEVT_JOY_ZMOVE
585 wxEVT_DROP_FILES
= wxc
.wxEVT_DROP_FILES
586 wxEVT_DRAW_ITEM
= wxc
.wxEVT_DRAW_ITEM
587 wxEVT_MEASURE_ITEM
= wxc
.wxEVT_MEASURE_ITEM
588 wxEVT_COMPARE_ITEM
= wxc
.wxEVT_COMPARE_ITEM
589 wxEVT_INIT_DIALOG
= wxc
.wxEVT_INIT_DIALOG
590 wxEVT_IDLE
= wxc
.wxEVT_IDLE
591 wxEVT_UPDATE_UI
= wxc
.wxEVT_UPDATE_UI
592 wxEVT_COMMAND_LEFT_CLICK
= wxc
.wxEVT_COMMAND_LEFT_CLICK
593 wxEVT_COMMAND_LEFT_DCLICK
= wxc
.wxEVT_COMMAND_LEFT_DCLICK
594 wxEVT_COMMAND_RIGHT_CLICK
= wxc
.wxEVT_COMMAND_RIGHT_CLICK
595 wxEVT_COMMAND_RIGHT_DCLICK
= wxc
.wxEVT_COMMAND_RIGHT_DCLICK
596 wxEVT_COMMAND_SET_FOCUS
= wxc
.wxEVT_COMMAND_SET_FOCUS
597 wxEVT_COMMAND_KILL_FOCUS
= wxc
.wxEVT_COMMAND_KILL_FOCUS
598 wxEVT_COMMAND_ENTER
= wxc
.wxEVT_COMMAND_ENTER
599 wxEVT_COMMAND_TREE_BEGIN_DRAG
= wxc
.wxEVT_COMMAND_TREE_BEGIN_DRAG
600 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= wxc
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
601 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= wxc
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
602 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= wxc
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
603 wxEVT_COMMAND_TREE_DELETE_ITEM
= wxc
.wxEVT_COMMAND_TREE_DELETE_ITEM
604 wxEVT_COMMAND_TREE_GET_INFO
= wxc
.wxEVT_COMMAND_TREE_GET_INFO
605 wxEVT_COMMAND_TREE_SET_INFO
= wxc
.wxEVT_COMMAND_TREE_SET_INFO
606 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= wxc
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
607 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= wxc
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
608 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= wxc
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
609 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= wxc
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
610 wxEVT_COMMAND_TREE_SEL_CHANGED
= wxc
.wxEVT_COMMAND_TREE_SEL_CHANGED
611 wxEVT_COMMAND_TREE_SEL_CHANGING
= wxc
.wxEVT_COMMAND_TREE_SEL_CHANGING
612 wxEVT_COMMAND_TREE_KEY_DOWN
= wxc
.wxEVT_COMMAND_TREE_KEY_DOWN
613 wxEVT_COMMAND_LIST_BEGIN_DRAG
= wxc
.wxEVT_COMMAND_LIST_BEGIN_DRAG
614 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= wxc
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
615 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= wxc
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
616 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= wxc
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
617 wxEVT_COMMAND_LIST_DELETE_ITEM
= wxc
.wxEVT_COMMAND_LIST_DELETE_ITEM
618 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= wxc
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
619 wxEVT_COMMAND_LIST_GET_INFO
= wxc
.wxEVT_COMMAND_LIST_GET_INFO
620 wxEVT_COMMAND_LIST_SET_INFO
= wxc
.wxEVT_COMMAND_LIST_SET_INFO
621 wxEVT_COMMAND_LIST_ITEM_SELECTED
= wxc
.wxEVT_COMMAND_LIST_ITEM_SELECTED
622 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= wxc
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
623 wxEVT_COMMAND_LIST_KEY_DOWN
= wxc
.wxEVT_COMMAND_LIST_KEY_DOWN
624 wxEVT_COMMAND_LIST_INSERT_ITEM
= wxc
.wxEVT_COMMAND_LIST_INSERT_ITEM
625 wxEVT_COMMAND_LIST_COL_CLICK
= wxc
.wxEVT_COMMAND_LIST_COL_CLICK
626 wxEVT_COMMAND_TAB_SEL_CHANGED
= wxc
.wxEVT_COMMAND_TAB_SEL_CHANGED
627 wxEVT_COMMAND_TAB_SEL_CHANGING
= wxc
.wxEVT_COMMAND_TAB_SEL_CHANGING
628 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= wxc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
629 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= wxc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
630 __version__
= wxc
.__version
__
632 wxPyDefaultPosition
= wxPointPtr(wxc
.cvar
.wxPyDefaultPosition
)
633 wxPyDefaultSize
= wxSizePtr(wxc
.cvar
.wxPyDefaultSize
)
636 #-------------- USER INCLUDE -----------------------
638 #----------------------------------------------------------------------------
640 # Purpose: This file is appended to the shadow class file generated
641 # by SWIG. We add some unSWIGable things here.
647 # Copyright: (c) 1998 by Total Control Software
648 # Licence: wxWindows license
649 #----------------------------------------------------------------------------
653 #----------------------------------------------------------------------
654 # This gives this module's dictionary to the C++ extension code...
656 _wxSetDictionary(vars())
659 #----------------------------------------------------------------------
660 #----------------------------------------------------------------------
661 # Helper function to link python methods to wxWindows virtual
664 def _checkForCallback(obj
, name
, event
, theID
=-1):
665 try: cb
= getattr(obj
, name
)
667 else: obj
.Connect(theID
, -1, event
, cb
)
669 def _StdWindowCallbacks(win
):
670 _checkForCallback(win
, "OnChar", wxEVT_CHAR
)
671 _checkForCallback(win
, "OnSize", wxEVT_SIZE
)
672 _checkForCallback(win
, "OnEraseBackground", wxEVT_ERASE_BACKGROUND
)
673 _checkForCallback(win
, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED
)
674 _checkForCallback(win
, "OnInitDialog", wxEVT_INIT_DIALOG
)
675 _checkForCallback(win
, "OnIdle", wxEVT_IDLE
)
676 _checkForCallback(win
, "OnPaint", wxEVT_PAINT
)
678 def _StdFrameCallbacks(win
):
679 _StdWindowCallbacks(win
)
680 _checkForCallback(win
, "OnActivate", wxEVT_ACTIVATE
)
681 _checkForCallback(win
, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT
)
682 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
685 def _StdDialogCallbacks(win
):
686 _StdWindowCallbacks(win
)
687 _checkForCallback(win
, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_OK
)
688 _checkForCallback(win
, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_APPLY
)
689 _checkForCallback(win
, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_CANCEL
)
690 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
691 _checkForCallback(win
, "OnCharHook", wxEVT_CHAR_HOOK
)
694 def _StdOnScrollCallback(win
):
695 try: cb
= getattr(win
, "OnScroll")
697 else: EVT_SCROLL(win
, cb
)
701 #----------------------------------------------------------------------
702 #----------------------------------------------------------------------
703 # functions that look and act like the C++ Macros of the same name
707 def EVT_SIZE(win
, func
):
708 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
710 def EVT_MOVE(win
, func
):
711 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
713 def EVT_CLOSE(win
, func
):
714 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
716 def EVT_PAINT(win
, func
):
717 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
719 def EVT_ERASE_BACKGROUND(win
, func
):
720 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
722 def EVT_CHAR(win
, func
):
723 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
725 def EVT_CHAR_HOOK(win
, func
):
726 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
728 def EVT_MENU_HIGHLIGHT(win
, id, func
):
729 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
731 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
732 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
734 def EVT_SET_FOCUS(win
, func
):
735 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
737 def EVT_KILL_FOCUS(win
, func
):
738 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
740 def EVT_ACTIVATE(win
, func
):
741 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
743 def EVT_ACTIVATE_APP(win
, func
):
744 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
746 def EVT_END_SESSION(win
, func
):
747 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
749 def EVT_QUERY_END_SESSION(win
, func
):
750 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
752 def EVT_DROP_FILES(win
, func
):
753 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
755 def EVT_INIT_DIALOG(win
, func
):
756 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
758 def EVT_SYS_COLOUR_CHANGED(win
, func
):
759 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
761 def EVT_SHOW(win
, func
):
762 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
764 def EVT_MAXIMIZE(win
, func
):
765 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
767 def EVT_ICONIZE(win
, func
):
768 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
770 def EVT_NAVIGATION_KEY(win
, func
):
771 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
775 def EVT_LEFT_DOWN(win
, func
):
776 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
778 def EVT_LEFT_UP(win
, func
):
779 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
781 def EVT_MIDDLE_DOWN(win
, func
):
782 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
784 def EVT_MIDDLE_UP(win
, func
):
785 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
787 def EVT_RIGHT_DOWN(win
, func
):
788 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
790 def EVT_RIGHT_UP(win
, func
):
791 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
793 def EVT_MOTION(win
, func
):
794 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
796 def EVT_LEFT_DCLICK(win
, func
):
797 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
799 def EVT_MIDDLE_DCLICK(win
, func
):
800 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
802 def EVT_RIGHT_DCLICK(win
, func
):
803 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
805 def EVT_LEAVE_WINDOW(win
, func
):
806 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
808 def EVT_ENTER_WINDOW(win
, func
):
809 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
813 def EVT_MOUSE_EVENTS(win
, func
):
814 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
815 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
816 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
817 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
818 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
819 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
820 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
821 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
822 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
823 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
824 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
825 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
828 def EVT_COMMAND(win
, id, cmd
, func
):
829 win
.Connect(id, -1, cmd
, func
)
831 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
832 win
.Connect(id1
, id2
, cmd
, func
)
835 def EVT_SCROLL(win
, func
):
836 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
837 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
838 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
839 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
840 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
841 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
842 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
844 def EVT_SCROLL_TOP(win
, func
):
845 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
847 def EVT_SCROLL_BOTTOM(win
, func
):
848 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
850 def EVT_SCROLL_LINEUP(win
, func
):
851 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
853 def EVT_SCROLL_LINEDOWN(win
, func
):
854 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
856 def EVT_SCROLL_PAGEUP(win
, func
):
857 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
859 def EVT_SCROLL_PAGEDOWN(win
, func
):
860 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
862 def EVT_SCROLL_THUMBTRACK(win
, func
):
863 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
867 # Scrolling, with an id
868 def EVT_COMMAND_SCROLL(win
, id, func
):
869 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
870 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
871 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
872 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
873 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
874 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
875 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
877 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
878 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
880 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
881 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
883 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
884 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
886 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
887 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
889 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
890 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
892 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
893 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
895 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
896 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
899 # Convenience commands
900 def EVT_BUTTON(win
, id, func
):
901 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
903 def EVT_CHECKBOX(win
, id, func
):
904 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
906 def EVT_CHOICE(win
, id, func
):
907 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
909 def EVT_LISTBOX(win
, id, func
):
910 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
912 def EVT_LISTBOX_DCLICK(win
, id, func
):
913 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
915 def EVT_TEXT(win
, id, func
):
916 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
918 def EVT_TEXT_ENTER(win
, id, func
):
919 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
921 def EVT_MENU(win
, id, func
):
922 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
924 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
925 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
927 def EVT_SLIDER(win
, id, func
):
928 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
930 def EVT_RADIOBOX(win
, id, func
):
931 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
933 def EVT_RADIOBUTTON(win
, id, func
):
934 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
936 def EVT_VLBOX(win
, id, func
):
937 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
939 def EVT_COMBOBOX(win
, id, func
):
940 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
942 def EVT_TOOL(win
, id, func
):
943 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
945 def EVT_TOOL_RCLICKED(win
, id, func
):
946 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
948 def EVT_TOOL_ENTER(win
, id, func
):
949 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
951 def EVT_CHECKLISTBOX(win
, id, func
):
952 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
955 # Generic command events
957 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
958 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
960 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
961 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
963 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
964 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
966 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
967 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
969 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
970 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
972 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
973 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
975 def EVT_COMMAND_ENTER(win
, id, func
):
976 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
980 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
981 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
983 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
984 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
988 def EVT_TREE_BEGIN_DRAG(win
, id, func
):
989 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG
, func
)
991 def EVT_TREE_BEGIN_RDRAG(win
, id, func
):
992 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG
, func
)
994 def EVT_TREE_BEGIN_LABEL_EDIT(win
, id, func
):
995 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, func
)
997 def EVT_TREE_END_LABEL_EDIT(win
, id, func
):
998 win
.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT
, func
)
1000 def EVT_TREE_GET_INFO(win
, id, func
):
1001 win
.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO
, func
)
1003 def EVT_TREE_SET_INFO(win
, id, func
):
1004 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO
, func
)
1006 def EVT_TREE_ITEM_EXPANDED(win
, id, func
):
1007 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED
, func
)
1009 def EVT_TREE_ITEM_EXPANDING(win
, id, func
):
1010 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING
, func
)
1012 def EVT_TREE_ITEM_COLLAPSED(win
, id, func
):
1013 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, func
)
1015 def EVT_TREE_ITEM_COLLAPSING(win
, id, func
):
1016 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, func
)
1018 def EVT_TREE_SEL_CHANGED(win
, id, func
):
1019 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED
, func
)
1021 def EVT_TREE_SEL_CHANGING(win
, id, func
):
1022 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING
, func
)
1024 def EVT_TREE_KEY_DOWN(win
, id, func
):
1025 win
.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN
, func
)
1027 def EVT_TREE_DELETE_ITEM(win
, id, func
):
1028 win
.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM
, func
)
1032 def EVT_SPIN_UP(win
, id, func
):
1033 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1035 def EVT_SPIN_DOWN(win
, id, func
):
1036 win
.Connect(id, -1,wxEVT_SCROLL_LINEDOWN
, func
)
1038 def EVT_SPIN(win
, id, func
):
1039 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
1040 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
1041 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1042 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1043 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
1044 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
1045 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
1051 def EVT_TASKBAR_MOVE(win
, func
):
1052 win
.Connect(-1, -1, wxEVT_TASKBAR_MOVE
, func
)
1054 def EVT_TASKBAR_LEFT_DOWN(win
, func
):
1055 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN
, func
)
1057 def EVT_TASKBAR_LEFT_UP(win
, func
):
1058 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP
, func
)
1060 def EVT_TASKBAR_RIGHT_DOWN(win
, func
):
1061 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN
, func
)
1063 def EVT_TASKBAR_RIGHT_UP(win
, func
):
1064 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP
, func
)
1066 def EVT_TASKBAR_LEFT_DCLICK(win
, func
):
1067 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK
, func
)
1069 def EVT_TASKBAR_RIGHT_DCLICK(win
, func
):
1070 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK
, func
)
1074 def EVT_GRID_SELECT_CELL(win
, fn
):
1075 win
.Connect(-1, -1, wxEVT_GRID_SELECT_CELL
, fn
)
1077 def EVT_GRID_CREATE_CELL(win
, fn
):
1078 win
.Connect(-1, -1, wxEVT_GRID_CREATE_CELL
, fn
)
1080 def EVT_GRID_CHANGE_LABELS(win
, fn
):
1081 win
.Connect(-1, -1, wxEVT_GRID_CHANGE_LABELS
, fn
)
1083 def EVT_GRID_CHANGE_SEL_LABEL(win
, fn
):
1084 win
.Connect(-1, -1, wxEVT_GRID_CHANGE_SEL_LABEL
, fn
)
1086 def EVT_GRID_CELL_CHANGE(win
, fn
):
1087 win
.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE
, fn
)
1089 def EVT_GRID_CELL_LCLICK(win
, fn
):
1090 win
.Connect(-1, -1, wxEVT_GRID_CELL_LCLICK
, fn
)
1092 def EVT_GRID_CELL_RCLICK(win
, fn
):
1093 win
.Connect(-1, -1, wxEVT_GRID_CELL_RCLICK
, fn
)
1095 def EVT_GRID_LABEL_LCLICK(win
, fn
):
1096 win
.Connect(-1, -1, wxEVT_GRID_LABEL_LCLICK
, fn
)
1098 def EVT_GRID_LABEL_RCLICK(win
, fn
):
1099 win
.Connect(-1, -1, wxEVT_GRID_LABEL_RCLICK
, fn
)
1103 def EVT_SASH_DRAGGED(win
, id, func
):
1104 win
.Connect(id, -1, wxEVT_SASH_DRAGGED
, func
)
1106 def EVT_SASH_DRAGGED_RANGE(win
, id1
, id2
, func
):
1107 win
.Connect(id1
, id2
, wxEVT_SASH_DRAGGED
, func
)
1109 def EVT_QUERY_LAYOUT_INFO(win
, func
):
1110 win
.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO
, func
)
1112 def EVT_CALCULATE_LAYOUT(win
, func
):
1113 win
.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT
, func
)
1117 def EVT_LIST_BEGIN_DRAG(win
, id, func
):
1118 win
.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_DRAG
, func
)
1120 def EVT_LIST_BEGIN_RDRAG(win
, id, func
):
1121 win
.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_RDRAG
, func
)
1123 def EVT_LIST_BEGIN_LABEL_EDIT(win
, id, func
):
1124 win
.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, func
)
1126 def EVT_LIST_END_LABEL_EDIT(win
, id, func
):
1127 win
.Connect(id, -1, wxEVT_COMMAND_LIST_END_LABEL_EDIT
, func
)
1129 def EVT_LIST_DELETE_ITEM(win
, id, func
):
1130 win
.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ITEM
, func
)
1132 def EVT_LIST_DELETE_ALL_ITEMS(win
, id, func
):
1133 win
.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, func
)
1135 def EVT_LIST_GET_INFO(win
, id, func
):
1136 win
.Connect(id, -1, wxEVT_COMMAND_LIST_GET_INFO
, func
)
1138 def EVT_LIST_SET_INFO(win
, id, func
):
1139 win
.Connect(id, -1, wxEVT_COMMAND_LIST_SET_INFO
, func
)
1141 def EVT_LIST_ITEM_SELECTED(win
, id, func
):
1142 win
.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED
, func
)
1144 def EVT_LIST_ITEM_DESELECTED(win
, id, func
):
1145 win
.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED
, func
)
1147 def EVT_LIST_KEY_DOWN(win
, id, func
):
1148 win
.Connect(id, -1, wxEVT_COMMAND_LIST_KEY_DOWN
, func
)
1150 def EVT_LIST_INSERT_ITEM(win
, id, func
):
1151 win
.Connect(id, -1, wxEVT_COMMAND_LIST_INSERT_ITEM
, func
)
1153 def EVT_LIST_COL_CLICK(win
, id, func
):
1154 win
.Connect(id, -1, wxEVT_COMMAND_LIST_COL_CLICK
, func
)
1157 #----------------------------------------------------------------------
1159 class wxTimer(wxPyTimer
):
1161 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1162 # Notify(self) method.
1164 #----------------------------------------------------------------------
1165 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1166 # expect an object with the SWIG pointer as a 'this' member. This class
1167 # and instance fools the shadow into passing the NULL pointer.
1170 this
= 'NULL' # SWIG converts this to (void*)0
1175 #----------------------------------------------------------------------
1179 wxNamedColor
= wxNamedColour
1181 wxPyDefaultPosition
.Set(-1,-1)
1182 wxPyDefaultSize
.Set(-1,-1)
1184 # aliases so that C++ documentation applies:
1185 wxDefaultPosition
= wxPyDefaultPosition
1186 wxDefaultSize
= wxPyDefaultSize
1189 # This is to cover up a bug in SWIG. We are redefining
1190 # the shadow class that is generated for wxAcceleratorTable
1191 # because SWIG incorrectly uses "arg0.this"
1192 class wxAcceleratorTable(wxAcceleratorTablePtr
):
1193 def __init__(self
,arg0
) :
1194 self
.this
= miscc
.new_wxAcceleratorTable(arg0
)
1197 #----------------------------------------------------------------------
1199 ## class wxPyStdOutWindow(wxFrame):
1200 ## def __init__(self, title = "wxPython: stdout/stderr"):
1201 ## wxFrame.__init__(self, NULL, title)
1202 ## self.title = title
1203 ## self.text = wxTextWindow(self)
1204 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1205 ## self.SetSize(-1,-1,400,200)
1207 ## self.isShown = false
1209 ## def write(self, str): # with this method,
1210 ## if not self.isShown:
1212 ## self.isShown = true
1213 ## self.text.WriteText(str)
1215 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1217 ## self.isShown = false
1220 _defRedirect
= (wxPlatform
== '__WXMSW__')
1222 #----------------------------------------------------------------------
1223 # The main application class. Derive from this and implement an OnInit
1224 # method that creates a frame and then calls self.SetTopWindow(frame)
1226 class wxApp(wxPyApp
):
1227 error
= 'wxApp.error'
1229 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1230 wxPyApp
.__init
__(self
)
1231 self
.stdioWin
= None
1232 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1234 self
.RedirectStdio(filename
)
1236 # this initializes wxWindows and then calls our OnInit
1237 _wxStart(self
.OnInit
)
1246 def RedirectStdio(self
, filename
):
1248 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1250 raise self
.error
, 'wxPyStdOutWindow not yet implemented.'
1251 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1253 def RestoreStdio(self
):
1254 sys
.stdout
, sys
.stderr
= self
.saveStdio
1255 if self
.stdioWin
!= None:
1256 self
.stdioWin
.Show(false
)
1257 self
.stdioWin
.Destroy()
1258 self
.stdioWin
= None
1261 #----------------------------------------------------------------------------
1264 # Revision 1.8 1999/03/05 07:23:07 RD
1265 # Minor wxPython changes for wxWin 2.0
1267 # Revision 1.11 1999/02/20 09:02:55 RD
1268 # Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
1269 # window handle. If you can get the window handle into the python code,
1270 # it should just work... More news on this later.
1272 # Added wxImageList, wxToolTip.
1274 # Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
1275 # wxRegConfig class.
1277 # As usual, some bug fixes, tweaks, etc.
1279 # Revision 1.10 1999/02/01 00:10:39 RD
1281 # Added the missing EVT_LIST_ITEM_SELECTED and friends.
1283 # Revision 1.9 1999/01/30 07:30:09 RD
1285 # Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
1287 # Various cleanup, tweaks, minor additions, etc. to maintain
1288 # compatibility with the current wxWindows.
1290 # Revision 1.8 1999/01/29 21:13:42 HH
1291 # Added aliases for wxDefaultPosition and wxDefaultSize (from wxPy..) in _extras,
1292 # so that C++ documentation applies.
1294 # Revision 1.7 1998/11/25 08:45:21 RD
1296 # Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
1297 # Added events for wxGrid
1298 # Other various fixes and additions
1300 # Revision 1.6 1998/11/16 00:00:52 RD
1301 # Generic treectrl for wxPython/GTK compiles...
1303 # Revision 1.5 1998/10/20 07:38:02 RD
1306 # Revision 1.4 1998/10/20 06:43:54 RD
1307 # New wxTreeCtrl wrappers (untested)
1308 # some changes in helpers
1311 # Revision 1.3 1998/10/02 06:40:33 RD
1313 # Version 0.4 of wxPython for MSW.
1315 # Revision 1.2 1998/08/18 19:48:12 RD
1316 # more wxGTK compatibility things.
1318 # It builds now but there are serious runtime problems...
1320 # Revision 1.1 1998/08/09 08:25:49 RD