1 # This file was created automatically by SWIG.
16 from stattool
import *
18 from controls
import *
20 from controls2
import *
22 from windows2
import *
27 class wxPyAppPtr(wxEvtHandlerPtr
):
28 def __init__(self
,this
):
32 val
= wxc
.wxPyApp_GetAppName(self
.this
)
34 def GetClassName(self
):
35 val
= wxc
.wxPyApp_GetClassName(self
.this
)
37 def GetExitOnFrameDelete(self
):
38 val
= wxc
.wxPyApp_GetExitOnFrameDelete(self
.this
)
40 def GetPrintMode(self
):
41 val
= wxc
.wxPyApp_GetPrintMode(self
.this
)
43 def GetTopWindow(self
):
44 val
= wxc
.wxPyApp_GetTopWindow(self
.this
)
45 val
= wxWindowPtr(val
)
47 def GetVendorName(self
):
48 val
= wxc
.wxPyApp_GetVendorName(self
.this
)
51 val
= wxc
.wxPyApp_Dispatch(self
.this
)
53 def ExitMainLoop(self
):
54 val
= wxc
.wxPyApp_ExitMainLoop(self
.this
)
56 def Initialized(self
):
57 val
= wxc
.wxPyApp_Initialized(self
.this
)
60 val
= wxc
.wxPyApp_MainLoop(self
.this
)
63 val
= wxc
.wxPyApp_Pending(self
.this
)
65 def SetAppName(self
,arg0
):
66 val
= wxc
.wxPyApp_SetAppName(self
.this
,arg0
)
68 def SetClassName(self
,arg0
):
69 val
= wxc
.wxPyApp_SetClassName(self
.this
,arg0
)
71 def SetExitOnFrameDelete(self
,arg0
):
72 val
= wxc
.wxPyApp_SetExitOnFrameDelete(self
.this
,arg0
)
74 def SetPrintMode(self
,arg0
):
75 val
= wxc
.wxPyApp_SetPrintMode(self
.this
,arg0
)
77 def SetTopWindow(self
,arg0
):
78 val
= wxc
.wxPyApp_SetTopWindow(self
.this
,arg0
.this
)
80 def SetVendorName(self
,arg0
):
81 val
= wxc
.wxPyApp_SetVendorName(self
.this
,arg0
)
83 def AfterMainLoop(self
):
84 val
= wxc
.wxPyApp_AfterMainLoop(self
.this
)
87 return "<C wxPyApp instance>"
88 class wxPyApp(wxPyAppPtr
):
90 self
.this
= wxc
.new_wxPyApp()
98 #-------------- FUNCTION WRAPPERS ------------------
100 _wxStart
= wxc
._wxStart
102 _wxSetDictionary
= wxc
._wxSetDictionary
106 #-------------- VARIABLE WRAPPERS ------------------
108 wxMAJOR_VERSION
= wxc
.wxMAJOR_VERSION
109 wxMINOR_VERSION
= wxc
.wxMINOR_VERSION
110 wxRELEASE_NUMBER
= wxc
.wxRELEASE_NUMBER
111 NOT_FOUND
= wxc
.NOT_FOUND
112 wxVSCROLL
= wxc
.wxVSCROLL
113 wxHSCROLL
= wxc
.wxHSCROLL
114 wxCAPTION
= wxc
.wxCAPTION
115 wxDOUBLE_BORDER
= wxc
.wxDOUBLE_BORDER
116 wxSUNKEN_BORDER
= wxc
.wxSUNKEN_BORDER
117 wxRAISED_BORDER
= wxc
.wxRAISED_BORDER
118 wxBORDER
= wxc
.wxBORDER
119 wxSIMPLE_BORDER
= wxc
.wxSIMPLE_BORDER
120 wxSTATIC_BORDER
= wxc
.wxSTATIC_BORDER
121 wxTRANSPARENT_WINDOW
= wxc
.wxTRANSPARENT_WINDOW
122 wxNO_BORDER
= wxc
.wxNO_BORDER
123 wxUSER_COLOURS
= wxc
.wxUSER_COLOURS
124 wxNO_3D
= wxc
.wxNO_3D
125 wxTAB_TRAVERSAL
= wxc
.wxTAB_TRAVERSAL
126 wxHORIZONTAL
= wxc
.wxHORIZONTAL
127 wxVERTICAL
= wxc
.wxVERTICAL
129 wxCENTER_FRAME
= wxc
.wxCENTER_FRAME
130 wxSTAY_ON_TOP
= wxc
.wxSTAY_ON_TOP
131 wxICONIZE
= wxc
.wxICONIZE
132 wxMINIMIZE
= wxc
.wxMINIMIZE
133 wxMAXIMIZE
= wxc
.wxMAXIMIZE
134 wxTHICK_FRAME
= wxc
.wxTHICK_FRAME
135 wxSYSTEM_MENU
= wxc
.wxSYSTEM_MENU
136 wxMINIMIZE_BOX
= wxc
.wxMINIMIZE_BOX
137 wxMAXIMIZE_BOX
= wxc
.wxMAXIMIZE_BOX
138 wxTINY_CAPTION_HORIZ
= wxc
.wxTINY_CAPTION_HORIZ
139 wxTINY_CAPTION_VERT
= wxc
.wxTINY_CAPTION_VERT
140 wxRESIZE_BOX
= wxc
.wxRESIZE_BOX
141 wxRESIZE_BORDER
= wxc
.wxRESIZE_BORDER
142 wxDIALOG_MODAL
= wxc
.wxDIALOG_MODAL
143 wxDIALOG_MODELESS
= wxc
.wxDIALOG_MODELESS
144 wxDEFAULT_FRAME_STYLE
= wxc
.wxDEFAULT_FRAME_STYLE
145 wxDEFAULT_DIALOG_STYLE
= wxc
.wxDEFAULT_DIALOG_STYLE
146 wxFRAME_TOOL_WINDOW
= wxc
.wxFRAME_TOOL_WINDOW
147 wxRETAINED
= wxc
.wxRETAINED
148 wxBACKINGSTORE
= wxc
.wxBACKINGSTORE
149 wxTB_3DBUTTONS
= wxc
.wxTB_3DBUTTONS
150 wxTB_HORIZONTAL
= wxc
.wxTB_HORIZONTAL
151 wxTB_VERTICAL
= wxc
.wxTB_VERTICAL
152 wxTB_FLAT
= wxc
.wxTB_FLAT
153 wxCOLOURED
= wxc
.wxCOLOURED
154 wxFIXED_LENGTH
= wxc
.wxFIXED_LENGTH
155 wxALIGN_LEFT
= wxc
.wxALIGN_LEFT
156 wxALIGN_CENTER
= wxc
.wxALIGN_CENTER
157 wxALIGN_CENTRE
= wxc
.wxALIGN_CENTRE
158 wxALIGN_RIGHT
= wxc
.wxALIGN_RIGHT
159 wxLB_NEEDED_SB
= wxc
.wxLB_NEEDED_SB
160 wxLB_ALWAYS_SB
= wxc
.wxLB_ALWAYS_SB
161 wxLB_SORT
= wxc
.wxLB_SORT
162 wxLB_SINGLE
= wxc
.wxLB_SINGLE
163 wxLB_MULTIPLE
= wxc
.wxLB_MULTIPLE
164 wxLB_EXTENDED
= wxc
.wxLB_EXTENDED
165 wxLB_OWNERDRAW
= wxc
.wxLB_OWNERDRAW
166 wxLB_HSCROLL
= wxc
.wxLB_HSCROLL
167 wxPROCESS_ENTER
= wxc
.wxPROCESS_ENTER
168 wxPASSWORD
= wxc
.wxPASSWORD
169 wxTE_PROCESS_ENTER
= wxc
.wxTE_PROCESS_ENTER
170 wxTE_PASSWORD
= wxc
.wxTE_PASSWORD
171 wxTE_READONLY
= wxc
.wxTE_READONLY
172 wxTE_MULTILINE
= wxc
.wxTE_MULTILINE
173 wxCB_SIMPLE
= wxc
.wxCB_SIMPLE
174 wxCB_DROPDOWN
= wxc
.wxCB_DROPDOWN
175 wxCB_SORT
= wxc
.wxCB_SORT
176 wxCB_READONLY
= wxc
.wxCB_READONLY
177 wxRA_HORIZONTAL
= wxc
.wxRA_HORIZONTAL
178 wxRA_VERTICAL
= wxc
.wxRA_VERTICAL
179 wxRB_GROUP
= wxc
.wxRB_GROUP
180 wxGA_PROGRESSBAR
= wxc
.wxGA_PROGRESSBAR
181 wxGA_HORIZONTAL
= wxc
.wxGA_HORIZONTAL
182 wxGA_VERTICAL
= wxc
.wxGA_VERTICAL
183 wxSL_HORIZONTAL
= wxc
.wxSL_HORIZONTAL
184 wxSL_VERTICAL
= wxc
.wxSL_VERTICAL
185 wxSL_AUTOTICKS
= wxc
.wxSL_AUTOTICKS
186 wxSL_LABELS
= wxc
.wxSL_LABELS
187 wxSL_LEFT
= wxc
.wxSL_LEFT
188 wxSL_TOP
= wxc
.wxSL_TOP
189 wxSL_RIGHT
= wxc
.wxSL_RIGHT
190 wxSL_BOTTOM
= wxc
.wxSL_BOTTOM
191 wxSL_BOTH
= wxc
.wxSL_BOTH
192 wxSL_SELRANGE
= wxc
.wxSL_SELRANGE
193 wxSB_HORIZONTAL
= wxc
.wxSB_HORIZONTAL
194 wxSB_VERTICAL
= wxc
.wxSB_VERTICAL
195 wxBU_AUTODRAW
= wxc
.wxBU_AUTODRAW
196 wxBU_NOAUTODRAW
= wxc
.wxBU_NOAUTODRAW
197 wxTR_HAS_BUTTONS
= wxc
.wxTR_HAS_BUTTONS
198 wxTR_EDIT_LABELS
= wxc
.wxTR_EDIT_LABELS
199 wxTR_LINES_AT_ROOT
= wxc
.wxTR_LINES_AT_ROOT
200 wxLC_ICON
= wxc
.wxLC_ICON
201 wxLC_SMALL_ICON
= wxc
.wxLC_SMALL_ICON
202 wxLC_LIST
= wxc
.wxLC_LIST
203 wxLC_REPORT
= wxc
.wxLC_REPORT
204 wxLC_ALIGN_TOP
= wxc
.wxLC_ALIGN_TOP
205 wxLC_ALIGN_LEFT
= wxc
.wxLC_ALIGN_LEFT
206 wxLC_AUTOARRANGE
= wxc
.wxLC_AUTOARRANGE
207 wxLC_USER_TEXT
= wxc
.wxLC_USER_TEXT
208 wxLC_EDIT_LABELS
= wxc
.wxLC_EDIT_LABELS
209 wxLC_NO_HEADER
= wxc
.wxLC_NO_HEADER
210 wxLC_NO_SORT_HEADER
= wxc
.wxLC_NO_SORT_HEADER
211 wxLC_SINGLE_SEL
= wxc
.wxLC_SINGLE_SEL
212 wxLC_SORT_ASCENDING
= wxc
.wxLC_SORT_ASCENDING
213 wxLC_SORT_DESCENDING
= wxc
.wxLC_SORT_DESCENDING
214 wxLC_MASK_TYPE
= wxc
.wxLC_MASK_TYPE
215 wxLC_MASK_ALIGN
= wxc
.wxLC_MASK_ALIGN
216 wxLC_MASK_SORT
= wxc
.wxLC_MASK_SORT
217 wxSP_VERTICAL
= wxc
.wxSP_VERTICAL
218 wxSP_HORIZONTAL
= wxc
.wxSP_HORIZONTAL
219 wxSP_ARROW_KEYS
= wxc
.wxSP_ARROW_KEYS
220 wxSP_WRAP
= wxc
.wxSP_WRAP
221 wxSP_NOBORDER
= wxc
.wxSP_NOBORDER
222 wxSP_3D
= wxc
.wxSP_3D
223 wxSP_BORDER
= wxc
.wxSP_BORDER
224 wxTAB_MULTILINE
= wxc
.wxTAB_MULTILINE
225 wxTAB_RIGHTJUSTIFY
= wxc
.wxTAB_RIGHTJUSTIFY
226 wxTAB_FIXEDWIDTH
= wxc
.wxTAB_FIXEDWIDTH
227 wxTAB_OWNERDRAW
= wxc
.wxTAB_OWNERDRAW
228 wxFLOOD_SURFACE
= wxc
.wxFLOOD_SURFACE
229 wxFLOOD_BORDER
= wxc
.wxFLOOD_BORDER
230 wxODDEVEN_RULE
= wxc
.wxODDEVEN_RULE
231 wxWINDING_RULE
= wxc
.wxWINDING_RULE
232 wxTOOL_TOP
= wxc
.wxTOOL_TOP
233 wxTOOL_BOTTOM
= wxc
.wxTOOL_BOTTOM
234 wxTOOL_LEFT
= wxc
.wxTOOL_LEFT
235 wxTOOL_RIGHT
= wxc
.wxTOOL_RIGHT
237 wxYES_NO
= wxc
.wxYES_NO
238 wxCANCEL
= wxc
.wxCANCEL
241 wxICON_EXCLAMATION
= wxc
.wxICON_EXCLAMATION
242 wxICON_HAND
= wxc
.wxICON_HAND
243 wxICON_QUESTION
= wxc
.wxICON_QUESTION
244 wxICON_INFORMATION
= wxc
.wxICON_INFORMATION
245 wxICON_STOP
= wxc
.wxICON_STOP
246 wxICON_ASTERISK
= wxc
.wxICON_ASTERISK
247 wxICON_MASK
= wxc
.wxICON_MASK
248 wxCENTRE
= wxc
.wxCENTRE
249 wxCENTER
= wxc
.wxCENTER
250 wxSIZE_AUTO_WIDTH
= wxc
.wxSIZE_AUTO_WIDTH
251 wxSIZE_AUTO_HEIGHT
= wxc
.wxSIZE_AUTO_HEIGHT
252 wxSIZE_AUTO
= wxc
.wxSIZE_AUTO
253 wxSIZE_USE_EXISTING
= wxc
.wxSIZE_USE_EXISTING
254 wxSIZE_ALLOW_MINUS_ONE
= wxc
.wxSIZE_ALLOW_MINUS_ONE
255 wxDF_TEXT
= wxc
.wxDF_TEXT
256 wxDF_BITMAP
= wxc
.wxDF_BITMAP
257 wxDF_METAFILE
= wxc
.wxDF_METAFILE
258 wxDF_DIB
= wxc
.wxDF_DIB
259 wxDF_OEMTEXT
= wxc
.wxDF_OEMTEXT
260 wxDF_FILENAME
= wxc
.wxDF_FILENAME
261 wxPORTRAIT
= wxc
.wxPORTRAIT
262 wxLANDSCAPE
= wxc
.wxLANDSCAPE
263 wxID_OPEN
= wxc
.wxID_OPEN
264 wxID_CLOSE
= wxc
.wxID_CLOSE
265 wxID_NEW
= wxc
.wxID_NEW
266 wxID_SAVE
= wxc
.wxID_SAVE
267 wxID_SAVEAS
= wxc
.wxID_SAVEAS
268 wxID_REVERT
= wxc
.wxID_REVERT
269 wxID_EXIT
= wxc
.wxID_EXIT
270 wxID_UNDO
= wxc
.wxID_UNDO
271 wxID_REDO
= wxc
.wxID_REDO
272 wxID_HELP
= wxc
.wxID_HELP
273 wxID_PRINT
= wxc
.wxID_PRINT
274 wxID_PRINT_SETUP
= wxc
.wxID_PRINT_SETUP
275 wxID_PREVIEW
= wxc
.wxID_PREVIEW
276 wxID_ABOUT
= wxc
.wxID_ABOUT
277 wxID_HELP_CONTENTS
= wxc
.wxID_HELP_CONTENTS
278 wxID_HELP_COMMANDS
= wxc
.wxID_HELP_COMMANDS
279 wxID_HELP_PROCEDURES
= wxc
.wxID_HELP_PROCEDURES
280 wxID_HELP_CONTEXT
= wxc
.wxID_HELP_CONTEXT
281 wxID_CUT
= wxc
.wxID_CUT
282 wxID_COPY
= wxc
.wxID_COPY
283 wxID_PASTE
= wxc
.wxID_PASTE
284 wxID_CLEAR
= wxc
.wxID_CLEAR
285 wxID_FIND
= wxc
.wxID_FIND
286 wxID_FILE1
= wxc
.wxID_FILE1
287 wxID_FILE2
= wxc
.wxID_FILE2
288 wxID_FILE3
= wxc
.wxID_FILE3
289 wxID_FILE4
= wxc
.wxID_FILE4
290 wxID_FILE5
= wxc
.wxID_FILE5
291 wxID_FILE6
= wxc
.wxID_FILE6
292 wxID_FILE7
= wxc
.wxID_FILE7
293 wxID_FILE8
= wxc
.wxID_FILE8
294 wxID_FILE9
= wxc
.wxID_FILE9
295 wxID_OK
= wxc
.wxID_OK
296 wxID_CANCEL
= wxc
.wxID_CANCEL
297 wxID_APPLY
= wxc
.wxID_APPLY
298 wxID_YES
= wxc
.wxID_YES
299 wxID_NO
= wxc
.wxID_NO
300 wxBITMAP_TYPE_BMP
= wxc
.wxBITMAP_TYPE_BMP
301 wxBITMAP_TYPE_BMP_RESOURCE
= wxc
.wxBITMAP_TYPE_BMP_RESOURCE
302 wxBITMAP_TYPE_ICO
= wxc
.wxBITMAP_TYPE_ICO
303 wxBITMAP_TYPE_ICO_RESOURCE
= wxc
.wxBITMAP_TYPE_ICO_RESOURCE
304 wxBITMAP_TYPE_CUR
= wxc
.wxBITMAP_TYPE_CUR
305 wxBITMAP_TYPE_CUR_RESOURCE
= wxc
.wxBITMAP_TYPE_CUR_RESOURCE
306 wxBITMAP_TYPE_XBM
= wxc
.wxBITMAP_TYPE_XBM
307 wxBITMAP_TYPE_XBM_DATA
= wxc
.wxBITMAP_TYPE_XBM_DATA
308 wxBITMAP_TYPE_XPM
= wxc
.wxBITMAP_TYPE_XPM
309 wxBITMAP_TYPE_XPM_DATA
= wxc
.wxBITMAP_TYPE_XPM_DATA
310 wxBITMAP_TYPE_TIF
= wxc
.wxBITMAP_TYPE_TIF
311 wxBITMAP_TYPE_TIF_RESOURCE
= wxc
.wxBITMAP_TYPE_TIF_RESOURCE
312 wxBITMAP_TYPE_GIF
= wxc
.wxBITMAP_TYPE_GIF
313 wxBITMAP_TYPE_GIF_RESOURCE
= wxc
.wxBITMAP_TYPE_GIF_RESOURCE
314 wxBITMAP_TYPE_PNG
= wxc
.wxBITMAP_TYPE_PNG
315 wxBITMAP_TYPE_PNG_RESOURCE
= wxc
.wxBITMAP_TYPE_PNG_RESOURCE
316 wxBITMAP_TYPE_ANY
= wxc
.wxBITMAP_TYPE_ANY
317 wxBITMAP_TYPE_RESOURCE
= wxc
.wxBITMAP_TYPE_RESOURCE
320 wxHIDE_READONLY
= wxc
.wxHIDE_READONLY
321 wxOVERWRITE_PROMPT
= wxc
.wxOVERWRITE_PROMPT
322 wxACCEL_ALT
= wxc
.wxACCEL_ALT
323 wxACCEL_CTRL
= wxc
.wxACCEL_CTRL
324 wxACCEL_SHIFT
= wxc
.wxACCEL_SHIFT
325 ERR_PARAM
= wxc
.ERR_PARAM
326 ERR_NODATA
= wxc
.ERR_NODATA
327 ERR_CANCEL
= wxc
.ERR_CANCEL
328 ERR_SUCCESS
= wxc
.ERR_SUCCESS
329 wxDEFAULT
= wxc
.wxDEFAULT
330 wxDECORATIVE
= wxc
.wxDECORATIVE
331 wxROMAN
= wxc
.wxROMAN
332 wxSCRIPT
= wxc
.wxSCRIPT
333 wxSWISS
= wxc
.wxSWISS
334 wxMODERN
= wxc
.wxMODERN
335 wxTELETYPE
= wxc
.wxTELETYPE
336 wxVARIABLE
= wxc
.wxVARIABLE
337 wxFIXED
= wxc
.wxFIXED
338 wxNORMAL
= wxc
.wxNORMAL
339 wxLIGHT
= wxc
.wxLIGHT
341 wxITALIC
= wxc
.wxITALIC
342 wxSLANT
= wxc
.wxSLANT
343 wxSOLID
= wxc
.wxSOLID
345 wxLONG_DASH
= wxc
.wxLONG_DASH
346 wxSHORT_DASH
= wxc
.wxSHORT_DASH
347 wxDOT_DASH
= wxc
.wxDOT_DASH
348 wxUSER_DASH
= wxc
.wxUSER_DASH
349 wxTRANSPARENT
= wxc
.wxTRANSPARENT
350 wxSTIPPLE
= wxc
.wxSTIPPLE
351 wxBDIAGONAL_HATCH
= wxc
.wxBDIAGONAL_HATCH
352 wxCROSSDIAG_HATCH
= wxc
.wxCROSSDIAG_HATCH
353 wxFDIAGONAL_HATCH
= wxc
.wxFDIAGONAL_HATCH
354 wxCROSS_HATCH
= wxc
.wxCROSS_HATCH
355 wxHORIZONTAL_HATCH
= wxc
.wxHORIZONTAL_HATCH
356 wxVERTICAL_HATCH
= wxc
.wxVERTICAL_HATCH
357 wxJOIN_BEVEL
= wxc
.wxJOIN_BEVEL
358 wxJOIN_MITER
= wxc
.wxJOIN_MITER
359 wxJOIN_ROUND
= wxc
.wxJOIN_ROUND
360 wxCAP_ROUND
= wxc
.wxCAP_ROUND
361 wxCAP_PROJECTING
= wxc
.wxCAP_PROJECTING
362 wxCAP_BUTT
= wxc
.wxCAP_BUTT
363 wxCLEAR
= wxc
.wxCLEAR
365 wxINVERT
= wxc
.wxINVERT
366 wxOR_REVERSE
= wxc
.wxOR_REVERSE
367 wxAND_REVERSE
= wxc
.wxAND_REVERSE
370 wxAND_INVERT
= wxc
.wxAND_INVERT
371 wxNO_OP
= wxc
.wxNO_OP
373 wxEQUIV
= wxc
.wxEQUIV
374 wxSRC_INVERT
= wxc
.wxSRC_INVERT
375 wxOR_INVERT
= wxc
.wxOR_INVERT
379 wxSRC_OR
= wxc
.wxSRC_OR
380 wxSRC_AND
= wxc
.wxSRC_AND
381 WXK_BACK
= wxc
.WXK_BACK
382 WXK_TAB
= wxc
.WXK_TAB
383 WXK_RETURN
= wxc
.WXK_RETURN
384 WXK_ESCAPE
= wxc
.WXK_ESCAPE
385 WXK_SPACE
= wxc
.WXK_SPACE
386 WXK_DELETE
= wxc
.WXK_DELETE
387 WXK_START
= wxc
.WXK_START
388 WXK_LBUTTON
= wxc
.WXK_LBUTTON
389 WXK_RBUTTON
= wxc
.WXK_RBUTTON
390 WXK_CANCEL
= wxc
.WXK_CANCEL
391 WXK_MBUTTON
= wxc
.WXK_MBUTTON
392 WXK_CLEAR
= wxc
.WXK_CLEAR
393 WXK_SHIFT
= wxc
.WXK_SHIFT
394 WXK_CONTROL
= wxc
.WXK_CONTROL
395 WXK_MENU
= wxc
.WXK_MENU
396 WXK_PAUSE
= wxc
.WXK_PAUSE
397 WXK_CAPITAL
= wxc
.WXK_CAPITAL
398 WXK_PRIOR
= wxc
.WXK_PRIOR
399 WXK_NEXT
= wxc
.WXK_NEXT
400 WXK_END
= wxc
.WXK_END
401 WXK_HOME
= wxc
.WXK_HOME
402 WXK_LEFT
= wxc
.WXK_LEFT
404 WXK_RIGHT
= wxc
.WXK_RIGHT
405 WXK_DOWN
= wxc
.WXK_DOWN
406 WXK_SELECT
= wxc
.WXK_SELECT
407 WXK_PRINT
= wxc
.WXK_PRINT
408 WXK_EXECUTE
= wxc
.WXK_EXECUTE
409 WXK_SNAPSHOT
= wxc
.WXK_SNAPSHOT
410 WXK_INSERT
= wxc
.WXK_INSERT
411 WXK_HELP
= wxc
.WXK_HELP
412 WXK_NUMPAD0
= wxc
.WXK_NUMPAD0
413 WXK_NUMPAD1
= wxc
.WXK_NUMPAD1
414 WXK_NUMPAD2
= wxc
.WXK_NUMPAD2
415 WXK_NUMPAD3
= wxc
.WXK_NUMPAD3
416 WXK_NUMPAD4
= wxc
.WXK_NUMPAD4
417 WXK_NUMPAD5
= wxc
.WXK_NUMPAD5
418 WXK_NUMPAD6
= wxc
.WXK_NUMPAD6
419 WXK_NUMPAD7
= wxc
.WXK_NUMPAD7
420 WXK_NUMPAD8
= wxc
.WXK_NUMPAD8
421 WXK_NUMPAD9
= wxc
.WXK_NUMPAD9
422 WXK_MULTIPLY
= wxc
.WXK_MULTIPLY
423 WXK_ADD
= wxc
.WXK_ADD
424 WXK_SEPARATOR
= wxc
.WXK_SEPARATOR
425 WXK_SUBTRACT
= wxc
.WXK_SUBTRACT
426 WXK_DECIMAL
= wxc
.WXK_DECIMAL
427 WXK_DIVIDE
= wxc
.WXK_DIVIDE
437 WXK_F10
= wxc
.WXK_F10
438 WXK_F11
= wxc
.WXK_F11
439 WXK_F12
= wxc
.WXK_F12
440 WXK_F13
= wxc
.WXK_F13
441 WXK_F14
= wxc
.WXK_F14
442 WXK_F15
= wxc
.WXK_F15
443 WXK_F16
= wxc
.WXK_F16
444 WXK_F17
= wxc
.WXK_F17
445 WXK_F18
= wxc
.WXK_F18
446 WXK_F19
= wxc
.WXK_F19
447 WXK_F20
= wxc
.WXK_F20
448 WXK_F21
= wxc
.WXK_F21
449 WXK_F22
= wxc
.WXK_F22
450 WXK_F23
= wxc
.WXK_F23
451 WXK_F24
= wxc
.WXK_F24
452 WXK_NUMLOCK
= wxc
.WXK_NUMLOCK
453 WXK_SCROLL
= wxc
.WXK_SCROLL
454 WXK_PAGEUP
= wxc
.WXK_PAGEUP
455 WXK_PAGEDOWN
= wxc
.WXK_PAGEDOWN
456 wxCURSOR_NONE
= wxc
.wxCURSOR_NONE
457 wxCURSOR_ARROW
= wxc
.wxCURSOR_ARROW
458 wxCURSOR_BULLSEYE
= wxc
.wxCURSOR_BULLSEYE
459 wxCURSOR_CHAR
= wxc
.wxCURSOR_CHAR
460 wxCURSOR_CROSS
= wxc
.wxCURSOR_CROSS
461 wxCURSOR_HAND
= wxc
.wxCURSOR_HAND
462 wxCURSOR_IBEAM
= wxc
.wxCURSOR_IBEAM
463 wxCURSOR_LEFT_BUTTON
= wxc
.wxCURSOR_LEFT_BUTTON
464 wxCURSOR_MAGNIFIER
= wxc
.wxCURSOR_MAGNIFIER
465 wxCURSOR_MIDDLE_BUTTON
= wxc
.wxCURSOR_MIDDLE_BUTTON
466 wxCURSOR_NO_ENTRY
= wxc
.wxCURSOR_NO_ENTRY
467 wxCURSOR_PAINT_BRUSH
= wxc
.wxCURSOR_PAINT_BRUSH
468 wxCURSOR_PENCIL
= wxc
.wxCURSOR_PENCIL
469 wxCURSOR_POINT_LEFT
= wxc
.wxCURSOR_POINT_LEFT
470 wxCURSOR_POINT_RIGHT
= wxc
.wxCURSOR_POINT_RIGHT
471 wxCURSOR_QUESTION_ARROW
= wxc
.wxCURSOR_QUESTION_ARROW
472 wxCURSOR_RIGHT_BUTTON
= wxc
.wxCURSOR_RIGHT_BUTTON
473 wxCURSOR_SIZENESW
= wxc
.wxCURSOR_SIZENESW
474 wxCURSOR_SIZENS
= wxc
.wxCURSOR_SIZENS
475 wxCURSOR_SIZENWSE
= wxc
.wxCURSOR_SIZENWSE
476 wxCURSOR_SIZEWE
= wxc
.wxCURSOR_SIZEWE
477 wxCURSOR_SIZING
= wxc
.wxCURSOR_SIZING
478 wxCURSOR_SPRAYCAN
= wxc
.wxCURSOR_SPRAYCAN
479 wxCURSOR_WAIT
= wxc
.wxCURSOR_WAIT
480 wxCURSOR_WATCH
= wxc
.wxCURSOR_WATCH
481 wxCURSOR_BLANK
= wxc
.wxCURSOR_BLANK
486 wxEVT_NULL
= wxc
.wxEVT_NULL
487 wxEVT_FIRST
= wxc
.wxEVT_FIRST
488 wxEVT_COMMAND_BUTTON_CLICKED
= wxc
.wxEVT_COMMAND_BUTTON_CLICKED
489 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxc
.wxEVT_COMMAND_CHECKBOX_CLICKED
490 wxEVT_COMMAND_CHOICE_SELECTED
= wxc
.wxEVT_COMMAND_CHOICE_SELECTED
491 wxEVT_COMMAND_LISTBOX_SELECTED
= wxc
.wxEVT_COMMAND_LISTBOX_SELECTED
492 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
493 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
494 wxEVT_COMMAND_TEXT_UPDATED
= wxc
.wxEVT_COMMAND_TEXT_UPDATED
495 wxEVT_COMMAND_TEXT_ENTER
= wxc
.wxEVT_COMMAND_TEXT_ENTER
496 wxEVT_COMMAND_MENU_SELECTED
= wxc
.wxEVT_COMMAND_MENU_SELECTED
497 wxEVT_COMMAND_SLIDER_UPDATED
= wxc
.wxEVT_COMMAND_SLIDER_UPDATED
498 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBOX_SELECTED
499 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
500 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
501 wxEVT_COMMAND_VLBOX_SELECTED
= wxc
.wxEVT_COMMAND_VLBOX_SELECTED
502 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxc
.wxEVT_COMMAND_COMBOBOX_SELECTED
503 wxEVT_COMMAND_TOOL_CLICKED
= wxc
.wxEVT_COMMAND_TOOL_CLICKED
504 wxEVT_COMMAND_TOOL_RCLICKED
= wxc
.wxEVT_COMMAND_TOOL_RCLICKED
505 wxEVT_COMMAND_TOOL_ENTER
= wxc
.wxEVT_COMMAND_TOOL_ENTER
506 wxEVT_SET_FOCUS
= wxc
.wxEVT_SET_FOCUS
507 wxEVT_KILL_FOCUS
= wxc
.wxEVT_KILL_FOCUS
508 wxEVT_LEFT_DOWN
= wxc
.wxEVT_LEFT_DOWN
509 wxEVT_LEFT_UP
= wxc
.wxEVT_LEFT_UP
510 wxEVT_MIDDLE_DOWN
= wxc
.wxEVT_MIDDLE_DOWN
511 wxEVT_MIDDLE_UP
= wxc
.wxEVT_MIDDLE_UP
512 wxEVT_RIGHT_DOWN
= wxc
.wxEVT_RIGHT_DOWN
513 wxEVT_RIGHT_UP
= wxc
.wxEVT_RIGHT_UP
514 wxEVT_MOTION
= wxc
.wxEVT_MOTION
515 wxEVT_ENTER_WINDOW
= wxc
.wxEVT_ENTER_WINDOW
516 wxEVT_LEAVE_WINDOW
= wxc
.wxEVT_LEAVE_WINDOW
517 wxEVT_LEFT_DCLICK
= wxc
.wxEVT_LEFT_DCLICK
518 wxEVT_MIDDLE_DCLICK
= wxc
.wxEVT_MIDDLE_DCLICK
519 wxEVT_RIGHT_DCLICK
= wxc
.wxEVT_RIGHT_DCLICK
520 wxEVT_NC_LEFT_DOWN
= wxc
.wxEVT_NC_LEFT_DOWN
521 wxEVT_NC_LEFT_UP
= wxc
.wxEVT_NC_LEFT_UP
522 wxEVT_NC_MIDDLE_DOWN
= wxc
.wxEVT_NC_MIDDLE_DOWN
523 wxEVT_NC_MIDDLE_UP
= wxc
.wxEVT_NC_MIDDLE_UP
524 wxEVT_NC_RIGHT_DOWN
= wxc
.wxEVT_NC_RIGHT_DOWN
525 wxEVT_NC_RIGHT_UP
= wxc
.wxEVT_NC_RIGHT_UP
526 wxEVT_NC_MOTION
= wxc
.wxEVT_NC_MOTION
527 wxEVT_NC_ENTER_WINDOW
= wxc
.wxEVT_NC_ENTER_WINDOW
528 wxEVT_NC_LEAVE_WINDOW
= wxc
.wxEVT_NC_LEAVE_WINDOW
529 wxEVT_NC_LEFT_DCLICK
= wxc
.wxEVT_NC_LEFT_DCLICK
530 wxEVT_NC_MIDDLE_DCLICK
= wxc
.wxEVT_NC_MIDDLE_DCLICK
531 wxEVT_NC_RIGHT_DCLICK
= wxc
.wxEVT_NC_RIGHT_DCLICK
532 wxEVT_CHAR
= wxc
.wxEVT_CHAR
533 wxEVT_SCROLL_TOP
= wxc
.wxEVT_SCROLL_TOP
534 wxEVT_SCROLL_BOTTOM
= wxc
.wxEVT_SCROLL_BOTTOM
535 wxEVT_SCROLL_LINEUP
= wxc
.wxEVT_SCROLL_LINEUP
536 wxEVT_SCROLL_LINEDOWN
= wxc
.wxEVT_SCROLL_LINEDOWN
537 wxEVT_SCROLL_PAGEUP
= wxc
.wxEVT_SCROLL_PAGEUP
538 wxEVT_SCROLL_PAGEDOWN
= wxc
.wxEVT_SCROLL_PAGEDOWN
539 wxEVT_SCROLL_THUMBTRACK
= wxc
.wxEVT_SCROLL_THUMBTRACK
540 wxEVT_SIZE
= wxc
.wxEVT_SIZE
541 wxEVT_MOVE
= wxc
.wxEVT_MOVE
542 wxEVT_CLOSE_WINDOW
= wxc
.wxEVT_CLOSE_WINDOW
543 wxEVT_END_SESSION
= wxc
.wxEVT_END_SESSION
544 wxEVT_QUERY_END_SESSION
= wxc
.wxEVT_QUERY_END_SESSION
545 wxEVT_ACTIVATE_APP
= wxc
.wxEVT_ACTIVATE_APP
546 wxEVT_POWER
= wxc
.wxEVT_POWER
547 wxEVT_CHAR_HOOK
= wxc
.wxEVT_CHAR_HOOK
548 wxEVT_KEY_UP
= wxc
.wxEVT_KEY_UP
549 wxEVT_ACTIVATE
= wxc
.wxEVT_ACTIVATE
550 wxEVT_CREATE
= wxc
.wxEVT_CREATE
551 wxEVT_DESTROY
= wxc
.wxEVT_DESTROY
552 wxEVT_SHOW
= wxc
.wxEVT_SHOW
553 wxEVT_ICONIZE
= wxc
.wxEVT_ICONIZE
554 wxEVT_MAXIMIZE
= wxc
.wxEVT_MAXIMIZE
555 wxEVT_MOUSE_CAPTURE_CHANGED
= wxc
.wxEVT_MOUSE_CAPTURE_CHANGED
556 wxEVT_PAINT
= wxc
.wxEVT_PAINT
557 wxEVT_ERASE_BACKGROUND
= wxc
.wxEVT_ERASE_BACKGROUND
558 wxEVT_NC_PAINT
= wxc
.wxEVT_NC_PAINT
559 wxEVT_PAINT_ICON
= wxc
.wxEVT_PAINT_ICON
560 wxEVT_MENU_CHAR
= wxc
.wxEVT_MENU_CHAR
561 wxEVT_MENU_INIT
= wxc
.wxEVT_MENU_INIT
562 wxEVT_MENU_HIGHLIGHT
= wxc
.wxEVT_MENU_HIGHLIGHT
563 wxEVT_POPUP_MENU_INIT
= wxc
.wxEVT_POPUP_MENU_INIT
564 wxEVT_CONTEXT_MENU
= wxc
.wxEVT_CONTEXT_MENU
565 wxEVT_SYS_COLOUR_CHANGED
= wxc
.wxEVT_SYS_COLOUR_CHANGED
566 wxEVT_SETTING_CHANGED
= wxc
.wxEVT_SETTING_CHANGED
567 wxEVT_QUERY_NEW_PALETTE
= wxc
.wxEVT_QUERY_NEW_PALETTE
568 wxEVT_PALETTE_CHANGED
= wxc
.wxEVT_PALETTE_CHANGED
569 wxEVT_JOY_BUTTON_DOWN
= wxc
.wxEVT_JOY_BUTTON_DOWN
570 wxEVT_JOY_BUTTON_UP
= wxc
.wxEVT_JOY_BUTTON_UP
571 wxEVT_JOY_MOVE
= wxc
.wxEVT_JOY_MOVE
572 wxEVT_JOY_ZMOVE
= wxc
.wxEVT_JOY_ZMOVE
573 wxEVT_DROP_FILES
= wxc
.wxEVT_DROP_FILES
574 wxEVT_DRAW_ITEM
= wxc
.wxEVT_DRAW_ITEM
575 wxEVT_MEASURE_ITEM
= wxc
.wxEVT_MEASURE_ITEM
576 wxEVT_COMPARE_ITEM
= wxc
.wxEVT_COMPARE_ITEM
577 wxEVT_INIT_DIALOG
= wxc
.wxEVT_INIT_DIALOG
578 wxEVT_IDLE
= wxc
.wxEVT_IDLE
579 wxEVT_UPDATE_UI
= wxc
.wxEVT_UPDATE_UI
580 wxEVT_COMMAND_LEFT_CLICK
= wxc
.wxEVT_COMMAND_LEFT_CLICK
581 wxEVT_COMMAND_LEFT_DCLICK
= wxc
.wxEVT_COMMAND_LEFT_DCLICK
582 wxEVT_COMMAND_RIGHT_CLICK
= wxc
.wxEVT_COMMAND_RIGHT_CLICK
583 wxEVT_COMMAND_RIGHT_DCLICK
= wxc
.wxEVT_COMMAND_RIGHT_DCLICK
584 wxEVT_COMMAND_SET_FOCUS
= wxc
.wxEVT_COMMAND_SET_FOCUS
585 wxEVT_COMMAND_KILL_FOCUS
= wxc
.wxEVT_COMMAND_KILL_FOCUS
586 wxEVT_COMMAND_ENTER
= wxc
.wxEVT_COMMAND_ENTER
587 wxEVT_COMMAND_TREE_BEGIN_DRAG
= wxc
.wxEVT_COMMAND_TREE_BEGIN_DRAG
588 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= wxc
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
589 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= wxc
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
590 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= wxc
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
591 wxEVT_COMMAND_TREE_DELETE_ITEM
= wxc
.wxEVT_COMMAND_TREE_DELETE_ITEM
592 wxEVT_COMMAND_TREE_GET_INFO
= wxc
.wxEVT_COMMAND_TREE_GET_INFO
593 wxEVT_COMMAND_TREE_SET_INFO
= wxc
.wxEVT_COMMAND_TREE_SET_INFO
594 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= wxc
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
595 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= wxc
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
596 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= wxc
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
597 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= wxc
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
598 wxEVT_COMMAND_TREE_SEL_CHANGED
= wxc
.wxEVT_COMMAND_TREE_SEL_CHANGED
599 wxEVT_COMMAND_TREE_SEL_CHANGING
= wxc
.wxEVT_COMMAND_TREE_SEL_CHANGING
600 wxEVT_COMMAND_TREE_KEY_DOWN
= wxc
.wxEVT_COMMAND_TREE_KEY_DOWN
601 wxEVT_COMMAND_LIST_BEGIN_DRAG
= wxc
.wxEVT_COMMAND_LIST_BEGIN_DRAG
602 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= wxc
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
603 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= wxc
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
604 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= wxc
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
605 wxEVT_COMMAND_LIST_DELETE_ITEM
= wxc
.wxEVT_COMMAND_LIST_DELETE_ITEM
606 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= wxc
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
607 wxEVT_COMMAND_LIST_GET_INFO
= wxc
.wxEVT_COMMAND_LIST_GET_INFO
608 wxEVT_COMMAND_LIST_SET_INFO
= wxc
.wxEVT_COMMAND_LIST_SET_INFO
609 wxEVT_COMMAND_LIST_ITEM_SELECTED
= wxc
.wxEVT_COMMAND_LIST_ITEM_SELECTED
610 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= wxc
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
611 wxEVT_COMMAND_LIST_KEY_DOWN
= wxc
.wxEVT_COMMAND_LIST_KEY_DOWN
612 wxEVT_COMMAND_LIST_INSERT_ITEM
= wxc
.wxEVT_COMMAND_LIST_INSERT_ITEM
613 wxEVT_COMMAND_LIST_COL_CLICK
= wxc
.wxEVT_COMMAND_LIST_COL_CLICK
614 wxEVT_COMMAND_TAB_SEL_CHANGED
= wxc
.wxEVT_COMMAND_TAB_SEL_CHANGED
615 wxEVT_COMMAND_TAB_SEL_CHANGING
= wxc
.wxEVT_COMMAND_TAB_SEL_CHANGING
616 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= wxc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
617 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= wxc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
618 __version__
= wxc
.__version
__
620 wxPyDefaultPosition
= wxPointPtr(wxc
.cvar
.wxPyDefaultPosition
)
621 wxPyDefaultSize
= wxSizePtr(wxc
.cvar
.wxPyDefaultSize
)
624 #-------------- USER INCLUDE -----------------------
626 #----------------------------------------------------------------------------
628 # Purpose: This file is appended to the shadow class file generated
629 # by SWIG. We add some unSWIGable things here.
635 # Copyright: (c) 1998 by Total Control Software
636 # Licence: wxWindows license
637 #----------------------------------------------------------------------------
641 #----------------------------------------------------------------------
642 # This gives this module's dictionary to the C++ extension code...
644 _wxSetDictionary(vars())
647 #----------------------------------------------------------------------
648 #----------------------------------------------------------------------
649 # Helper function to link python methods to wxWindows virtual
652 def _checkForCallback(obj
, name
, event
, theID
=-1):
653 try: cb
= getattr(obj
, name
)
655 else: obj
.Connect(theID
, -1, event
, cb
)
657 def _StdWindowCallbacks(win
):
658 _checkForCallback(win
, "OnChar", wxEVT_CHAR
)
659 _checkForCallback(win
, "OnSize", wxEVT_SIZE
)
660 _checkForCallback(win
, "OnEraseBackground", wxEVT_ERASE_BACKGROUND
)
661 _checkForCallback(win
, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED
)
662 _checkForCallback(win
, "OnInitDialog", wxEVT_INIT_DIALOG
)
663 _checkForCallback(win
, "OnIdle", wxEVT_IDLE
)
664 _checkForCallback(win
, "OnPaint", wxEVT_PAINT
)
666 def _StdFrameCallbacks(win
):
667 _StdWindowCallbacks(win
)
668 _checkForCallback(win
, "OnActivate", wxEVT_ACTIVATE
)
669 _checkForCallback(win
, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT
)
670 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
673 def _StdDialogCallbacks(win
):
674 _StdWindowCallbacks(win
)
675 _checkForCallback(win
, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_OK
)
676 _checkForCallback(win
, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_APPLY
)
677 _checkForCallback(win
, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_CANCEL
)
678 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
679 _checkForCallback(win
, "OnCharHook", wxEVT_CHAR_HOOK
)
682 def _StdOnScrollCallback(win
):
683 try: cb
= getattr(win
, "OnScroll")
685 else: EVT_SCROLL(win
, cb
)
689 #----------------------------------------------------------------------
690 #----------------------------------------------------------------------
691 # functions that look and act like the C++ Macros of the same name
695 def EVT_SIZE(win
, func
):
696 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
698 def EVT_MOVE(win
, func
):
699 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
701 def EVT_CLOSE(win
, func
):
702 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
704 def EVT_PAINT(win
, func
):
705 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
707 def EVT_ERASE_BACKGROUND(win
, func
):
708 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
710 def EVT_CHAR(win
, func
):
711 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
713 def EVT_CHAR_HOOK(win
, func
):
714 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
716 def EVT_MENU_HIGHLIGHT(win
, id, func
):
717 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
719 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
720 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
722 def EVT_SET_FOCUS(win
, func
):
723 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
725 def EVT_KILL_FOCUS(win
, func
):
726 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
728 def EVT_ACTIVATE(win
, func
):
729 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
731 def EVT_ACTIVATE_APP(win
, func
):
732 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
734 def EVT_END_SESSION(win
, func
):
735 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
737 def EVT_QUERY_END_SESSION(win
, func
):
738 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
740 def EVT_DROP_FILES(win
, func
):
741 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
743 def EVT_INIT_DIALOG(win
, func
):
744 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
746 def EVT_SYS_COLOUR_CHANGED(win
, func
):
747 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
749 def EVT_SHOW(win
, func
):
750 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
752 def EVT_MAXIMIZE(win
, func
):
753 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
755 def EVT_ICONIZE(win
, func
):
756 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
758 def EVT_NAVIGATION_KEY(win
, func
):
759 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
763 def EVT_LEFT_DOWN(win
, func
):
764 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
766 def EVT_LEFT_UP(win
, func
):
767 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
769 def EVT_MIDDLE_DOWN(win
, func
):
770 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
772 def EVT_MIDDLE_UP(win
, func
):
773 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
775 def EVT_RIGHT_DOWN(win
, func
):
776 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
778 def EVT_RIGHT_UP(win
, func
):
779 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
781 def EVT_MOTION(win
, func
):
782 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
784 def EVT_LEFT_DCLICK(win
, func
):
785 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
787 def EVT_MIDDLE_DCLICK(win
, func
):
788 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
790 def EVT_RIGHT_DCLICK(win
, func
):
791 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
793 def EVT_LEAVE_WINDOW(win
, func
):
794 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
796 def EVT_ENTER_WINDOW(win
, func
):
797 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
801 def EVT_MOUSE_EVENTS(win
, func
):
802 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
803 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
804 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
805 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
806 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
807 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
808 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
809 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
810 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
811 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
812 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
813 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
816 def EVT_COMMAND(win
, id, cmd
, func
):
817 win
.Connect(id, -1, cmd
, func
)
819 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
820 win
.Connect(id1
, id2
, cmd
, func
)
823 def EVT_SCROLL(win
, func
):
824 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
825 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
826 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
827 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
828 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
829 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
830 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
832 def EVT_SCROLL_TOP(win
, func
):
833 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
835 def EVT_SCROLL_BOTTOM(win
, func
):
836 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
838 def EVT_SCROLL_LINEUP(win
, func
):
839 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
841 def EVT_SCROLL_LINEDOWN(win
, func
):
842 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
844 def EVT_SCROLL_PAGEUP(win
, func
):
845 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
847 def EVT_SCROLL_PAGEDOWN(win
, func
):
848 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
850 def EVT_SCROLL_THUMBTRACK(win
, func
):
851 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
855 # Scrolling, with an id
856 def EVT_COMMAND_SCROLL(win
, id, func
):
857 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
858 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
859 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
860 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
861 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
862 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
863 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
865 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
866 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
868 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
869 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
871 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
872 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
874 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
875 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
877 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
878 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
880 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
881 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
883 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
884 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
887 # Convenience commands
888 def EVT_BUTTON(win
, id, func
):
889 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
891 def EVT_CHECKBOX(win
, id, func
):
892 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
894 def EVT_CHOICE(win
, id, func
):
895 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
897 def EVT_LISTBOX(win
, id, func
):
898 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
900 def EVT_LISTBOX_DCLICK(win
, id, func
):
901 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
903 def EVT_TEXT(win
, id, func
):
904 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
906 def EVT_TEXT_ENTER(win
, id, func
):
907 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
909 def EVT_MENU(win
, id, func
):
910 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
912 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
913 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
915 def EVT_SLIDER(win
, id, func
):
916 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
918 def EVT_RADIOBOX(win
, id, func
):
919 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
921 def EVT_RADIOBUTTON(win
, id, func
):
922 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
924 def EVT_VLBOX(win
, id, func
):
925 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
927 def EVT_COMBOBOX(win
, id, func
):
928 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
930 def EVT_TOOL(win
, id, func
):
931 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
933 def EVT_TOOL_RCLICKED(win
, id, func
):
934 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
936 def EVT_TOOL_ENTER(win
, id, func
):
937 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
939 def EVT_CHECKLISTBOX(win
, id, func
):
940 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
943 # Generic command events
945 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
946 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
948 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
949 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
951 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
952 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
954 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
955 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
957 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
958 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
960 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
961 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
963 def EVT_COMMAND_ENTER(win
, id, func
):
964 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
968 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
969 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
971 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
972 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
976 def EVT_TREE_BEGIN_DRAG(win
, id, func
):
977 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG
, func
)
979 def EVT_TREE_BEGIN_RDRAG(win
, id, func
):
980 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG
, func
)
982 def EVT_TREE_BEGIN_LABEL_EDIT(win
, id, func
):
983 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, func
)
985 def EVT_TREE_END_LABEL_EDIT(win
, id, func
):
986 win
.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT
, func
)
988 def EVT_TREE_GET_INFO(win
, id, func
):
989 win
.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO
, func
)
991 def EVT_TREE_SET_INFO(win
, id, func
):
992 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO
, func
)
994 def EVT_TREE_ITEM_EXPANDED(win
, id, func
):
995 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED
, func
)
997 def EVT_TREE_ITEM_EXPANDING(win
, id, func
):
998 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING
, func
)
1000 def EVT_TREE_ITEM_COLLAPSED(win
, id, func
):
1001 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, func
)
1003 def EVT_TREE_ITEM_COLLAPSING(win
, id, func
):
1004 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, func
)
1006 def EVT_TREE_SEL_CHANGED(win
, id, func
):
1007 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED
, func
)
1009 def EVT_TREE_SEL_CHANGING(win
, id, func
):
1010 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING
, func
)
1012 def EVT_TREE_KEY_DOWN(win
, id, func
):
1013 win
.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN
, func
)
1015 def EVT_TREE_DELETE_ITEM(win
, id, func
):
1016 win
.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM
, func
)
1020 def EVT_SPIN_UP(win
, id, func
):
1021 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1023 def EVT_SPIN_DOWN(win
, id, func
):
1024 win
.Connect(id, -1,wxEVT_SCROLL_LINEDOWN
, func
)
1026 def EVT_SPIN(win
, id, func
):
1027 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
1028 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
1029 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1030 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1031 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
1032 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
1033 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
1039 def EVT_TASKBAR_MOVE(win
, func
):
1040 win
.Connect(-1, -1, wxEVT_TASKBAR_MOVE
, func
)
1042 def EVT_TASKBAR_LEFT_DOWN(win
, func
):
1043 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN
, func
)
1045 def EVT_TASKBAR_LEFT_UP(win
, func
):
1046 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP
, func
)
1048 def EVT_TASKBAR_RIGHT_DOWN(win
, func
):
1049 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN
, func
)
1051 def EVT_TASKBAR_RIGHT_UP(win
, func
):
1052 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP
, func
)
1054 def EVT_TASKBAR_LEFT_DCLICK(win
, func
):
1055 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK
, func
)
1057 def EVT_TASKBAR_RIGHT_DCLICK(win
, func
):
1058 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK
, func
)
1062 def EVT_GRID_SELECT_CELL(win
, fn
):
1063 win
.Connect(-1, -1, wxEVT_GRID_SELECT_CELL
, fn
)
1065 def EVT_GRID_CREATE_CELL(win
, fn
):
1066 win
.Connect(-1, -1, wxEVT_GRID_CREATE_CELL
, fn
)
1068 def EVT_GRID_CHANGE_LABELS(win
, fn
):
1069 win
.Connect(-1, -1, wxEVT_GRID_CHANGE_LABELS
, fn
)
1071 def EVT_GRID_CHANGE_SEL_LABEL(win
, fn
):
1072 win
.Connect(-1, -1, wxEVT_GRID_CHANGE_SEL_LABEL
, fn
)
1074 def EVT_GRID_CELL_CHANGE(win
, fn
):
1075 win
.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE
, fn
)
1077 def EVT_GRID_CELL_LCLICK(win
, fn
):
1078 win
.Connect(-1, -1, wxEVT_GRID_CELL_LCLICK
, fn
)
1080 def EVT_GRID_CELL_RCLICK(win
, fn
):
1081 win
.Connect(-1, -1, wxEVT_GRID_CELL_RCLICK
, fn
)
1083 def EVT_GRID_LABEL_LCLICK(win
, fn
):
1084 win
.Connect(-1, -1, wxEVT_GRID_LABEL_LCLICK
, fn
)
1086 def EVT_GRID_LABEL_RCLICK(win
, fn
):
1087 win
.Connect(-1, -1, wxEVT_GRID_LABEL_RCLICK
, fn
)
1092 #----------------------------------------------------------------------
1094 class wxTimer(wxPyTimer
):
1096 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1097 # Notify(self) method.
1099 #----------------------------------------------------------------------
1100 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1101 # expect an object with the SWIG pointer as a 'this' member. This class
1102 # and instance fools the shadow into passing the NULL pointer.
1105 this
= 'NULL' # SWIG converts this to (void*)0
1110 #----------------------------------------------------------------------
1114 wxNamedColor
= wxNamedColour
1116 wxPyDefaultPosition
.Set(-1,-1)
1117 wxPyDefaultSize
.Set(-1,-1)
1119 #----------------------------------------------------------------------
1121 ## class wxPyStdOutWindow(wxFrame):
1122 ## def __init__(self, title = "wxPython: stdout/stderr"):
1123 ## wxFrame.__init__(self, NULL, title)
1124 ## self.title = title
1125 ## self.text = wxTextWindow(self)
1126 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1127 ## self.SetSize(-1,-1,400,200)
1129 ## self.isShown = false
1131 ## def write(self, str): # with this method,
1132 ## if not self.isShown:
1134 ## self.isShown = true
1135 ## self.text.WriteText(str)
1137 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1139 ## self.isShown = false
1142 _defRedirect
= (wxPlatform
== '__WXMSW__')
1144 #----------------------------------------------------------------------
1145 # The main application class. Derive from this and implement an OnInit
1146 # method that creates a frame and then calls self.SetTopWindow(frame)
1148 class wxApp(wxPyApp
):
1149 error
= 'wxApp.error'
1151 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1152 wxPyApp
.__init
__(self
)
1153 self
.stdioWin
= None
1154 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1156 self
.RedirectStdio(filename
)
1158 # this initializes wxWindows and then calls our OnInit
1159 _wxStart(self
.OnInit
)
1168 def RedirectStdio(self
, filename
):
1170 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1172 raise self
.error
, 'wxPyStdOutWindow not yet implemented.'
1173 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1175 def RestoreStdio(self
):
1176 sys
.stdout
, sys
.stderr
= self
.saveStdio
1177 if self
.stdioWin
!= None:
1178 self
.stdioWin
.Show(false
)
1179 self
.stdioWin
.Destroy()
1180 self
.stdioWin
= None
1183 #----------------------------------------------------------------------------
1186 # Revision 1.2 1998/12/16 22:12:22 RD
1187 # Tweaks needed to be able to build wxPython with wxGTK.
1189 # Revision 1.7 1998/11/25 08:45:21 RD
1191 # Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
1192 # Added events for wxGrid
1193 # Other various fixes and additions
1195 # Revision 1.6 1998/11/16 00:00:52 RD
1196 # Generic treectrl for wxPython/GTK compiles...
1198 # Revision 1.5 1998/10/20 07:38:02 RD
1201 # Revision 1.4 1998/10/20 06:43:54 RD
1202 # New wxTreeCtrl wrappers (untested)
1203 # some changes in helpers
1206 # Revision 1.3 1998/10/02 06:40:33 RD
1208 # Version 0.4 of wxPython for MSW.
1210 # Revision 1.2 1998/08/18 19:48:12 RD
1211 # more wxGTK compatibility things.
1213 # It builds now but there are serious runtime problems...
1215 # Revision 1.1 1998/08/09 08:25:49 RD