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 wxRB_GROUP
= wxc
.wxRB_GROUP
189 wxGA_PROGRESSBAR
= wxc
.wxGA_PROGRESSBAR
190 wxGA_HORIZONTAL
= wxc
.wxGA_HORIZONTAL
191 wxGA_VERTICAL
= wxc
.wxGA_VERTICAL
192 wxSL_HORIZONTAL
= wxc
.wxSL_HORIZONTAL
193 wxSL_VERTICAL
= wxc
.wxSL_VERTICAL
194 wxSL_AUTOTICKS
= wxc
.wxSL_AUTOTICKS
195 wxSL_LABELS
= wxc
.wxSL_LABELS
196 wxSL_LEFT
= wxc
.wxSL_LEFT
197 wxSL_TOP
= wxc
.wxSL_TOP
198 wxSL_RIGHT
= wxc
.wxSL_RIGHT
199 wxSL_BOTTOM
= wxc
.wxSL_BOTTOM
200 wxSL_BOTH
= wxc
.wxSL_BOTH
201 wxSL_SELRANGE
= wxc
.wxSL_SELRANGE
202 wxSB_HORIZONTAL
= wxc
.wxSB_HORIZONTAL
203 wxSB_VERTICAL
= wxc
.wxSB_VERTICAL
204 wxBU_AUTODRAW
= wxc
.wxBU_AUTODRAW
205 wxBU_NOAUTODRAW
= wxc
.wxBU_NOAUTODRAW
206 wxTR_HAS_BUTTONS
= wxc
.wxTR_HAS_BUTTONS
207 wxTR_EDIT_LABELS
= wxc
.wxTR_EDIT_LABELS
208 wxTR_LINES_AT_ROOT
= wxc
.wxTR_LINES_AT_ROOT
209 wxLC_ICON
= wxc
.wxLC_ICON
210 wxLC_SMALL_ICON
= wxc
.wxLC_SMALL_ICON
211 wxLC_LIST
= wxc
.wxLC_LIST
212 wxLC_REPORT
= wxc
.wxLC_REPORT
213 wxLC_ALIGN_TOP
= wxc
.wxLC_ALIGN_TOP
214 wxLC_ALIGN_LEFT
= wxc
.wxLC_ALIGN_LEFT
215 wxLC_AUTOARRANGE
= wxc
.wxLC_AUTOARRANGE
216 wxLC_USER_TEXT
= wxc
.wxLC_USER_TEXT
217 wxLC_EDIT_LABELS
= wxc
.wxLC_EDIT_LABELS
218 wxLC_NO_HEADER
= wxc
.wxLC_NO_HEADER
219 wxLC_NO_SORT_HEADER
= wxc
.wxLC_NO_SORT_HEADER
220 wxLC_SINGLE_SEL
= wxc
.wxLC_SINGLE_SEL
221 wxLC_SORT_ASCENDING
= wxc
.wxLC_SORT_ASCENDING
222 wxLC_SORT_DESCENDING
= wxc
.wxLC_SORT_DESCENDING
223 wxLC_MASK_TYPE
= wxc
.wxLC_MASK_TYPE
224 wxLC_MASK_ALIGN
= wxc
.wxLC_MASK_ALIGN
225 wxLC_MASK_SORT
= wxc
.wxLC_MASK_SORT
226 wxSP_VERTICAL
= wxc
.wxSP_VERTICAL
227 wxSP_HORIZONTAL
= wxc
.wxSP_HORIZONTAL
228 wxSP_ARROW_KEYS
= wxc
.wxSP_ARROW_KEYS
229 wxSP_WRAP
= wxc
.wxSP_WRAP
230 wxSP_NOBORDER
= wxc
.wxSP_NOBORDER
231 wxSP_3D
= wxc
.wxSP_3D
232 wxSP_BORDER
= wxc
.wxSP_BORDER
233 wxTAB_MULTILINE
= wxc
.wxTAB_MULTILINE
234 wxTAB_RIGHTJUSTIFY
= wxc
.wxTAB_RIGHTJUSTIFY
235 wxTAB_FIXEDWIDTH
= wxc
.wxTAB_FIXEDWIDTH
236 wxTAB_OWNERDRAW
= wxc
.wxTAB_OWNERDRAW
237 wxFLOOD_SURFACE
= wxc
.wxFLOOD_SURFACE
238 wxFLOOD_BORDER
= wxc
.wxFLOOD_BORDER
239 wxODDEVEN_RULE
= wxc
.wxODDEVEN_RULE
240 wxWINDING_RULE
= wxc
.wxWINDING_RULE
241 wxTOOL_TOP
= wxc
.wxTOOL_TOP
242 wxTOOL_BOTTOM
= wxc
.wxTOOL_BOTTOM
243 wxTOOL_LEFT
= wxc
.wxTOOL_LEFT
244 wxTOOL_RIGHT
= wxc
.wxTOOL_RIGHT
246 wxYES_NO
= wxc
.wxYES_NO
247 wxCANCEL
= wxc
.wxCANCEL
250 wxICON_EXCLAMATION
= wxc
.wxICON_EXCLAMATION
251 wxICON_HAND
= wxc
.wxICON_HAND
252 wxICON_QUESTION
= wxc
.wxICON_QUESTION
253 wxICON_INFORMATION
= wxc
.wxICON_INFORMATION
254 wxICON_STOP
= wxc
.wxICON_STOP
255 wxICON_ASTERISK
= wxc
.wxICON_ASTERISK
256 wxICON_MASK
= wxc
.wxICON_MASK
257 wxCENTRE
= wxc
.wxCENTRE
258 wxCENTER
= wxc
.wxCENTER
259 wxSIZE_AUTO_WIDTH
= wxc
.wxSIZE_AUTO_WIDTH
260 wxSIZE_AUTO_HEIGHT
= wxc
.wxSIZE_AUTO_HEIGHT
261 wxSIZE_AUTO
= wxc
.wxSIZE_AUTO
262 wxSIZE_USE_EXISTING
= wxc
.wxSIZE_USE_EXISTING
263 wxSIZE_ALLOW_MINUS_ONE
= wxc
.wxSIZE_ALLOW_MINUS_ONE
264 wxDF_TEXT
= wxc
.wxDF_TEXT
265 wxDF_BITMAP
= wxc
.wxDF_BITMAP
266 wxDF_METAFILE
= wxc
.wxDF_METAFILE
267 wxDF_DIB
= wxc
.wxDF_DIB
268 wxDF_OEMTEXT
= wxc
.wxDF_OEMTEXT
269 wxDF_FILENAME
= wxc
.wxDF_FILENAME
270 wxPORTRAIT
= wxc
.wxPORTRAIT
271 wxLANDSCAPE
= wxc
.wxLANDSCAPE
272 wxID_OPEN
= wxc
.wxID_OPEN
273 wxID_CLOSE
= wxc
.wxID_CLOSE
274 wxID_NEW
= wxc
.wxID_NEW
275 wxID_SAVE
= wxc
.wxID_SAVE
276 wxID_SAVEAS
= wxc
.wxID_SAVEAS
277 wxID_REVERT
= wxc
.wxID_REVERT
278 wxID_EXIT
= wxc
.wxID_EXIT
279 wxID_UNDO
= wxc
.wxID_UNDO
280 wxID_REDO
= wxc
.wxID_REDO
281 wxID_HELP
= wxc
.wxID_HELP
282 wxID_PRINT
= wxc
.wxID_PRINT
283 wxID_PRINT_SETUP
= wxc
.wxID_PRINT_SETUP
284 wxID_PREVIEW
= wxc
.wxID_PREVIEW
285 wxID_ABOUT
= wxc
.wxID_ABOUT
286 wxID_HELP_CONTENTS
= wxc
.wxID_HELP_CONTENTS
287 wxID_HELP_COMMANDS
= wxc
.wxID_HELP_COMMANDS
288 wxID_HELP_PROCEDURES
= wxc
.wxID_HELP_PROCEDURES
289 wxID_HELP_CONTEXT
= wxc
.wxID_HELP_CONTEXT
290 wxID_CUT
= wxc
.wxID_CUT
291 wxID_COPY
= wxc
.wxID_COPY
292 wxID_PASTE
= wxc
.wxID_PASTE
293 wxID_CLEAR
= wxc
.wxID_CLEAR
294 wxID_FIND
= wxc
.wxID_FIND
295 wxID_FILE1
= wxc
.wxID_FILE1
296 wxID_FILE2
= wxc
.wxID_FILE2
297 wxID_FILE3
= wxc
.wxID_FILE3
298 wxID_FILE4
= wxc
.wxID_FILE4
299 wxID_FILE5
= wxc
.wxID_FILE5
300 wxID_FILE6
= wxc
.wxID_FILE6
301 wxID_FILE7
= wxc
.wxID_FILE7
302 wxID_FILE8
= wxc
.wxID_FILE8
303 wxID_FILE9
= wxc
.wxID_FILE9
304 wxID_OK
= wxc
.wxID_OK
305 wxID_CANCEL
= wxc
.wxID_CANCEL
306 wxID_APPLY
= wxc
.wxID_APPLY
307 wxID_YES
= wxc
.wxID_YES
308 wxID_NO
= wxc
.wxID_NO
309 wxBITMAP_TYPE_BMP
= wxc
.wxBITMAP_TYPE_BMP
310 wxBITMAP_TYPE_BMP_RESOURCE
= wxc
.wxBITMAP_TYPE_BMP_RESOURCE
311 wxBITMAP_TYPE_ICO
= wxc
.wxBITMAP_TYPE_ICO
312 wxBITMAP_TYPE_ICO_RESOURCE
= wxc
.wxBITMAP_TYPE_ICO_RESOURCE
313 wxBITMAP_TYPE_CUR
= wxc
.wxBITMAP_TYPE_CUR
314 wxBITMAP_TYPE_CUR_RESOURCE
= wxc
.wxBITMAP_TYPE_CUR_RESOURCE
315 wxBITMAP_TYPE_XBM
= wxc
.wxBITMAP_TYPE_XBM
316 wxBITMAP_TYPE_XBM_DATA
= wxc
.wxBITMAP_TYPE_XBM_DATA
317 wxBITMAP_TYPE_XPM
= wxc
.wxBITMAP_TYPE_XPM
318 wxBITMAP_TYPE_XPM_DATA
= wxc
.wxBITMAP_TYPE_XPM_DATA
319 wxBITMAP_TYPE_TIF
= wxc
.wxBITMAP_TYPE_TIF
320 wxBITMAP_TYPE_TIF_RESOURCE
= wxc
.wxBITMAP_TYPE_TIF_RESOURCE
321 wxBITMAP_TYPE_GIF
= wxc
.wxBITMAP_TYPE_GIF
322 wxBITMAP_TYPE_GIF_RESOURCE
= wxc
.wxBITMAP_TYPE_GIF_RESOURCE
323 wxBITMAP_TYPE_PNG
= wxc
.wxBITMAP_TYPE_PNG
324 wxBITMAP_TYPE_PNG_RESOURCE
= wxc
.wxBITMAP_TYPE_PNG_RESOURCE
325 wxBITMAP_TYPE_ANY
= wxc
.wxBITMAP_TYPE_ANY
326 wxBITMAP_TYPE_RESOURCE
= wxc
.wxBITMAP_TYPE_RESOURCE
329 wxHIDE_READONLY
= wxc
.wxHIDE_READONLY
330 wxOVERWRITE_PROMPT
= wxc
.wxOVERWRITE_PROMPT
331 wxACCEL_ALT
= wxc
.wxACCEL_ALT
332 wxACCEL_CTRL
= wxc
.wxACCEL_CTRL
333 wxACCEL_SHIFT
= wxc
.wxACCEL_SHIFT
334 ERR_PARAM
= wxc
.ERR_PARAM
335 ERR_NODATA
= wxc
.ERR_NODATA
336 ERR_CANCEL
= wxc
.ERR_CANCEL
337 ERR_SUCCESS
= wxc
.ERR_SUCCESS
338 wxDEFAULT
= wxc
.wxDEFAULT
339 wxDECORATIVE
= wxc
.wxDECORATIVE
340 wxROMAN
= wxc
.wxROMAN
341 wxSCRIPT
= wxc
.wxSCRIPT
342 wxSWISS
= wxc
.wxSWISS
343 wxMODERN
= wxc
.wxMODERN
344 wxTELETYPE
= wxc
.wxTELETYPE
345 wxVARIABLE
= wxc
.wxVARIABLE
346 wxFIXED
= wxc
.wxFIXED
347 wxNORMAL
= wxc
.wxNORMAL
348 wxLIGHT
= wxc
.wxLIGHT
350 wxITALIC
= wxc
.wxITALIC
351 wxSLANT
= wxc
.wxSLANT
352 wxSOLID
= wxc
.wxSOLID
354 wxLONG_DASH
= wxc
.wxLONG_DASH
355 wxSHORT_DASH
= wxc
.wxSHORT_DASH
356 wxDOT_DASH
= wxc
.wxDOT_DASH
357 wxUSER_DASH
= wxc
.wxUSER_DASH
358 wxTRANSPARENT
= wxc
.wxTRANSPARENT
359 wxSTIPPLE
= wxc
.wxSTIPPLE
360 wxBDIAGONAL_HATCH
= wxc
.wxBDIAGONAL_HATCH
361 wxCROSSDIAG_HATCH
= wxc
.wxCROSSDIAG_HATCH
362 wxFDIAGONAL_HATCH
= wxc
.wxFDIAGONAL_HATCH
363 wxCROSS_HATCH
= wxc
.wxCROSS_HATCH
364 wxHORIZONTAL_HATCH
= wxc
.wxHORIZONTAL_HATCH
365 wxVERTICAL_HATCH
= wxc
.wxVERTICAL_HATCH
366 wxJOIN_BEVEL
= wxc
.wxJOIN_BEVEL
367 wxJOIN_MITER
= wxc
.wxJOIN_MITER
368 wxJOIN_ROUND
= wxc
.wxJOIN_ROUND
369 wxCAP_ROUND
= wxc
.wxCAP_ROUND
370 wxCAP_PROJECTING
= wxc
.wxCAP_PROJECTING
371 wxCAP_BUTT
= wxc
.wxCAP_BUTT
372 wxCLEAR
= wxc
.wxCLEAR
374 wxINVERT
= wxc
.wxINVERT
375 wxOR_REVERSE
= wxc
.wxOR_REVERSE
376 wxAND_REVERSE
= wxc
.wxAND_REVERSE
379 wxAND_INVERT
= wxc
.wxAND_INVERT
380 wxNO_OP
= wxc
.wxNO_OP
382 wxEQUIV
= wxc
.wxEQUIV
383 wxSRC_INVERT
= wxc
.wxSRC_INVERT
384 wxOR_INVERT
= wxc
.wxOR_INVERT
388 wxSRC_OR
= wxc
.wxSRC_OR
389 wxSRC_AND
= wxc
.wxSRC_AND
390 WXK_BACK
= wxc
.WXK_BACK
391 WXK_TAB
= wxc
.WXK_TAB
392 WXK_RETURN
= wxc
.WXK_RETURN
393 WXK_ESCAPE
= wxc
.WXK_ESCAPE
394 WXK_SPACE
= wxc
.WXK_SPACE
395 WXK_DELETE
= wxc
.WXK_DELETE
396 WXK_START
= wxc
.WXK_START
397 WXK_LBUTTON
= wxc
.WXK_LBUTTON
398 WXK_RBUTTON
= wxc
.WXK_RBUTTON
399 WXK_CANCEL
= wxc
.WXK_CANCEL
400 WXK_MBUTTON
= wxc
.WXK_MBUTTON
401 WXK_CLEAR
= wxc
.WXK_CLEAR
402 WXK_SHIFT
= wxc
.WXK_SHIFT
403 WXK_CONTROL
= wxc
.WXK_CONTROL
404 WXK_MENU
= wxc
.WXK_MENU
405 WXK_PAUSE
= wxc
.WXK_PAUSE
406 WXK_CAPITAL
= wxc
.WXK_CAPITAL
407 WXK_PRIOR
= wxc
.WXK_PRIOR
408 WXK_NEXT
= wxc
.WXK_NEXT
409 WXK_END
= wxc
.WXK_END
410 WXK_HOME
= wxc
.WXK_HOME
411 WXK_LEFT
= wxc
.WXK_LEFT
413 WXK_RIGHT
= wxc
.WXK_RIGHT
414 WXK_DOWN
= wxc
.WXK_DOWN
415 WXK_SELECT
= wxc
.WXK_SELECT
416 WXK_PRINT
= wxc
.WXK_PRINT
417 WXK_EXECUTE
= wxc
.WXK_EXECUTE
418 WXK_SNAPSHOT
= wxc
.WXK_SNAPSHOT
419 WXK_INSERT
= wxc
.WXK_INSERT
420 WXK_HELP
= wxc
.WXK_HELP
421 WXK_NUMPAD0
= wxc
.WXK_NUMPAD0
422 WXK_NUMPAD1
= wxc
.WXK_NUMPAD1
423 WXK_NUMPAD2
= wxc
.WXK_NUMPAD2
424 WXK_NUMPAD3
= wxc
.WXK_NUMPAD3
425 WXK_NUMPAD4
= wxc
.WXK_NUMPAD4
426 WXK_NUMPAD5
= wxc
.WXK_NUMPAD5
427 WXK_NUMPAD6
= wxc
.WXK_NUMPAD6
428 WXK_NUMPAD7
= wxc
.WXK_NUMPAD7
429 WXK_NUMPAD8
= wxc
.WXK_NUMPAD8
430 WXK_NUMPAD9
= wxc
.WXK_NUMPAD9
431 WXK_MULTIPLY
= wxc
.WXK_MULTIPLY
432 WXK_ADD
= wxc
.WXK_ADD
433 WXK_SEPARATOR
= wxc
.WXK_SEPARATOR
434 WXK_SUBTRACT
= wxc
.WXK_SUBTRACT
435 WXK_DECIMAL
= wxc
.WXK_DECIMAL
436 WXK_DIVIDE
= wxc
.WXK_DIVIDE
446 WXK_F10
= wxc
.WXK_F10
447 WXK_F11
= wxc
.WXK_F11
448 WXK_F12
= wxc
.WXK_F12
449 WXK_F13
= wxc
.WXK_F13
450 WXK_F14
= wxc
.WXK_F14
451 WXK_F15
= wxc
.WXK_F15
452 WXK_F16
= wxc
.WXK_F16
453 WXK_F17
= wxc
.WXK_F17
454 WXK_F18
= wxc
.WXK_F18
455 WXK_F19
= wxc
.WXK_F19
456 WXK_F20
= wxc
.WXK_F20
457 WXK_F21
= wxc
.WXK_F21
458 WXK_F22
= wxc
.WXK_F22
459 WXK_F23
= wxc
.WXK_F23
460 WXK_F24
= wxc
.WXK_F24
461 WXK_NUMLOCK
= wxc
.WXK_NUMLOCK
462 WXK_SCROLL
= wxc
.WXK_SCROLL
463 WXK_PAGEUP
= wxc
.WXK_PAGEUP
464 WXK_PAGEDOWN
= wxc
.WXK_PAGEDOWN
465 wxCURSOR_NONE
= wxc
.wxCURSOR_NONE
466 wxCURSOR_ARROW
= wxc
.wxCURSOR_ARROW
467 wxCURSOR_BULLSEYE
= wxc
.wxCURSOR_BULLSEYE
468 wxCURSOR_CHAR
= wxc
.wxCURSOR_CHAR
469 wxCURSOR_CROSS
= wxc
.wxCURSOR_CROSS
470 wxCURSOR_HAND
= wxc
.wxCURSOR_HAND
471 wxCURSOR_IBEAM
= wxc
.wxCURSOR_IBEAM
472 wxCURSOR_LEFT_BUTTON
= wxc
.wxCURSOR_LEFT_BUTTON
473 wxCURSOR_MAGNIFIER
= wxc
.wxCURSOR_MAGNIFIER
474 wxCURSOR_MIDDLE_BUTTON
= wxc
.wxCURSOR_MIDDLE_BUTTON
475 wxCURSOR_NO_ENTRY
= wxc
.wxCURSOR_NO_ENTRY
476 wxCURSOR_PAINT_BRUSH
= wxc
.wxCURSOR_PAINT_BRUSH
477 wxCURSOR_PENCIL
= wxc
.wxCURSOR_PENCIL
478 wxCURSOR_POINT_LEFT
= wxc
.wxCURSOR_POINT_LEFT
479 wxCURSOR_POINT_RIGHT
= wxc
.wxCURSOR_POINT_RIGHT
480 wxCURSOR_QUESTION_ARROW
= wxc
.wxCURSOR_QUESTION_ARROW
481 wxCURSOR_RIGHT_BUTTON
= wxc
.wxCURSOR_RIGHT_BUTTON
482 wxCURSOR_SIZENESW
= wxc
.wxCURSOR_SIZENESW
483 wxCURSOR_SIZENS
= wxc
.wxCURSOR_SIZENS
484 wxCURSOR_SIZENWSE
= wxc
.wxCURSOR_SIZENWSE
485 wxCURSOR_SIZEWE
= wxc
.wxCURSOR_SIZEWE
486 wxCURSOR_SIZING
= wxc
.wxCURSOR_SIZING
487 wxCURSOR_SPRAYCAN
= wxc
.wxCURSOR_SPRAYCAN
488 wxCURSOR_WAIT
= wxc
.wxCURSOR_WAIT
489 wxCURSOR_WATCH
= wxc
.wxCURSOR_WATCH
490 wxCURSOR_BLANK
= wxc
.wxCURSOR_BLANK
495 wxVERSION_STRING
= wxc
.wxVERSION_STRING
496 wxEVT_NULL
= wxc
.wxEVT_NULL
497 wxEVT_FIRST
= wxc
.wxEVT_FIRST
498 wxEVT_COMMAND_BUTTON_CLICKED
= wxc
.wxEVT_COMMAND_BUTTON_CLICKED
499 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxc
.wxEVT_COMMAND_CHECKBOX_CLICKED
500 wxEVT_COMMAND_CHOICE_SELECTED
= wxc
.wxEVT_COMMAND_CHOICE_SELECTED
501 wxEVT_COMMAND_LISTBOX_SELECTED
= wxc
.wxEVT_COMMAND_LISTBOX_SELECTED
502 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
503 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
504 wxEVT_COMMAND_TEXT_UPDATED
= wxc
.wxEVT_COMMAND_TEXT_UPDATED
505 wxEVT_COMMAND_TEXT_ENTER
= wxc
.wxEVT_COMMAND_TEXT_ENTER
506 wxEVT_COMMAND_MENU_SELECTED
= wxc
.wxEVT_COMMAND_MENU_SELECTED
507 wxEVT_COMMAND_SLIDER_UPDATED
= wxc
.wxEVT_COMMAND_SLIDER_UPDATED
508 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBOX_SELECTED
509 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
510 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
511 wxEVT_COMMAND_VLBOX_SELECTED
= wxc
.wxEVT_COMMAND_VLBOX_SELECTED
512 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxc
.wxEVT_COMMAND_COMBOBOX_SELECTED
513 wxEVT_COMMAND_TOOL_CLICKED
= wxc
.wxEVT_COMMAND_TOOL_CLICKED
514 wxEVT_COMMAND_TOOL_RCLICKED
= wxc
.wxEVT_COMMAND_TOOL_RCLICKED
515 wxEVT_COMMAND_TOOL_ENTER
= wxc
.wxEVT_COMMAND_TOOL_ENTER
516 wxEVT_SET_FOCUS
= wxc
.wxEVT_SET_FOCUS
517 wxEVT_KILL_FOCUS
= wxc
.wxEVT_KILL_FOCUS
518 wxEVT_LEFT_DOWN
= wxc
.wxEVT_LEFT_DOWN
519 wxEVT_LEFT_UP
= wxc
.wxEVT_LEFT_UP
520 wxEVT_MIDDLE_DOWN
= wxc
.wxEVT_MIDDLE_DOWN
521 wxEVT_MIDDLE_UP
= wxc
.wxEVT_MIDDLE_UP
522 wxEVT_RIGHT_DOWN
= wxc
.wxEVT_RIGHT_DOWN
523 wxEVT_RIGHT_UP
= wxc
.wxEVT_RIGHT_UP
524 wxEVT_MOTION
= wxc
.wxEVT_MOTION
525 wxEVT_ENTER_WINDOW
= wxc
.wxEVT_ENTER_WINDOW
526 wxEVT_LEAVE_WINDOW
= wxc
.wxEVT_LEAVE_WINDOW
527 wxEVT_LEFT_DCLICK
= wxc
.wxEVT_LEFT_DCLICK
528 wxEVT_MIDDLE_DCLICK
= wxc
.wxEVT_MIDDLE_DCLICK
529 wxEVT_RIGHT_DCLICK
= wxc
.wxEVT_RIGHT_DCLICK
530 wxEVT_NC_LEFT_DOWN
= wxc
.wxEVT_NC_LEFT_DOWN
531 wxEVT_NC_LEFT_UP
= wxc
.wxEVT_NC_LEFT_UP
532 wxEVT_NC_MIDDLE_DOWN
= wxc
.wxEVT_NC_MIDDLE_DOWN
533 wxEVT_NC_MIDDLE_UP
= wxc
.wxEVT_NC_MIDDLE_UP
534 wxEVT_NC_RIGHT_DOWN
= wxc
.wxEVT_NC_RIGHT_DOWN
535 wxEVT_NC_RIGHT_UP
= wxc
.wxEVT_NC_RIGHT_UP
536 wxEVT_NC_MOTION
= wxc
.wxEVT_NC_MOTION
537 wxEVT_NC_ENTER_WINDOW
= wxc
.wxEVT_NC_ENTER_WINDOW
538 wxEVT_NC_LEAVE_WINDOW
= wxc
.wxEVT_NC_LEAVE_WINDOW
539 wxEVT_NC_LEFT_DCLICK
= wxc
.wxEVT_NC_LEFT_DCLICK
540 wxEVT_NC_MIDDLE_DCLICK
= wxc
.wxEVT_NC_MIDDLE_DCLICK
541 wxEVT_NC_RIGHT_DCLICK
= wxc
.wxEVT_NC_RIGHT_DCLICK
542 wxEVT_CHAR
= wxc
.wxEVT_CHAR
543 wxEVT_SCROLL_TOP
= wxc
.wxEVT_SCROLL_TOP
544 wxEVT_SCROLL_BOTTOM
= wxc
.wxEVT_SCROLL_BOTTOM
545 wxEVT_SCROLL_LINEUP
= wxc
.wxEVT_SCROLL_LINEUP
546 wxEVT_SCROLL_LINEDOWN
= wxc
.wxEVT_SCROLL_LINEDOWN
547 wxEVT_SCROLL_PAGEUP
= wxc
.wxEVT_SCROLL_PAGEUP
548 wxEVT_SCROLL_PAGEDOWN
= wxc
.wxEVT_SCROLL_PAGEDOWN
549 wxEVT_SCROLL_THUMBTRACK
= wxc
.wxEVT_SCROLL_THUMBTRACK
550 wxEVT_SIZE
= wxc
.wxEVT_SIZE
551 wxEVT_MOVE
= wxc
.wxEVT_MOVE
552 wxEVT_CLOSE_WINDOW
= wxc
.wxEVT_CLOSE_WINDOW
553 wxEVT_END_SESSION
= wxc
.wxEVT_END_SESSION
554 wxEVT_QUERY_END_SESSION
= wxc
.wxEVT_QUERY_END_SESSION
555 wxEVT_ACTIVATE_APP
= wxc
.wxEVT_ACTIVATE_APP
556 wxEVT_POWER
= wxc
.wxEVT_POWER
557 wxEVT_CHAR_HOOK
= wxc
.wxEVT_CHAR_HOOK
558 wxEVT_KEY_UP
= wxc
.wxEVT_KEY_UP
559 wxEVT_ACTIVATE
= wxc
.wxEVT_ACTIVATE
560 wxEVT_CREATE
= wxc
.wxEVT_CREATE
561 wxEVT_DESTROY
= wxc
.wxEVT_DESTROY
562 wxEVT_SHOW
= wxc
.wxEVT_SHOW
563 wxEVT_ICONIZE
= wxc
.wxEVT_ICONIZE
564 wxEVT_MAXIMIZE
= wxc
.wxEVT_MAXIMIZE
565 wxEVT_MOUSE_CAPTURE_CHANGED
= wxc
.wxEVT_MOUSE_CAPTURE_CHANGED
566 wxEVT_PAINT
= wxc
.wxEVT_PAINT
567 wxEVT_ERASE_BACKGROUND
= wxc
.wxEVT_ERASE_BACKGROUND
568 wxEVT_NC_PAINT
= wxc
.wxEVT_NC_PAINT
569 wxEVT_PAINT_ICON
= wxc
.wxEVT_PAINT_ICON
570 wxEVT_MENU_CHAR
= wxc
.wxEVT_MENU_CHAR
571 wxEVT_MENU_INIT
= wxc
.wxEVT_MENU_INIT
572 wxEVT_MENU_HIGHLIGHT
= wxc
.wxEVT_MENU_HIGHLIGHT
573 wxEVT_POPUP_MENU_INIT
= wxc
.wxEVT_POPUP_MENU_INIT
574 wxEVT_CONTEXT_MENU
= wxc
.wxEVT_CONTEXT_MENU
575 wxEVT_SYS_COLOUR_CHANGED
= wxc
.wxEVT_SYS_COLOUR_CHANGED
576 wxEVT_SETTING_CHANGED
= wxc
.wxEVT_SETTING_CHANGED
577 wxEVT_QUERY_NEW_PALETTE
= wxc
.wxEVT_QUERY_NEW_PALETTE
578 wxEVT_PALETTE_CHANGED
= wxc
.wxEVT_PALETTE_CHANGED
579 wxEVT_JOY_BUTTON_DOWN
= wxc
.wxEVT_JOY_BUTTON_DOWN
580 wxEVT_JOY_BUTTON_UP
= wxc
.wxEVT_JOY_BUTTON_UP
581 wxEVT_JOY_MOVE
= wxc
.wxEVT_JOY_MOVE
582 wxEVT_JOY_ZMOVE
= wxc
.wxEVT_JOY_ZMOVE
583 wxEVT_DROP_FILES
= wxc
.wxEVT_DROP_FILES
584 wxEVT_DRAW_ITEM
= wxc
.wxEVT_DRAW_ITEM
585 wxEVT_MEASURE_ITEM
= wxc
.wxEVT_MEASURE_ITEM
586 wxEVT_COMPARE_ITEM
= wxc
.wxEVT_COMPARE_ITEM
587 wxEVT_INIT_DIALOG
= wxc
.wxEVT_INIT_DIALOG
588 wxEVT_IDLE
= wxc
.wxEVT_IDLE
589 wxEVT_UPDATE_UI
= wxc
.wxEVT_UPDATE_UI
590 wxEVT_COMMAND_LEFT_CLICK
= wxc
.wxEVT_COMMAND_LEFT_CLICK
591 wxEVT_COMMAND_LEFT_DCLICK
= wxc
.wxEVT_COMMAND_LEFT_DCLICK
592 wxEVT_COMMAND_RIGHT_CLICK
= wxc
.wxEVT_COMMAND_RIGHT_CLICK
593 wxEVT_COMMAND_RIGHT_DCLICK
= wxc
.wxEVT_COMMAND_RIGHT_DCLICK
594 wxEVT_COMMAND_SET_FOCUS
= wxc
.wxEVT_COMMAND_SET_FOCUS
595 wxEVT_COMMAND_KILL_FOCUS
= wxc
.wxEVT_COMMAND_KILL_FOCUS
596 wxEVT_COMMAND_ENTER
= wxc
.wxEVT_COMMAND_ENTER
597 wxEVT_COMMAND_TREE_BEGIN_DRAG
= wxc
.wxEVT_COMMAND_TREE_BEGIN_DRAG
598 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= wxc
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
599 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= wxc
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
600 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= wxc
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
601 wxEVT_COMMAND_TREE_DELETE_ITEM
= wxc
.wxEVT_COMMAND_TREE_DELETE_ITEM
602 wxEVT_COMMAND_TREE_GET_INFO
= wxc
.wxEVT_COMMAND_TREE_GET_INFO
603 wxEVT_COMMAND_TREE_SET_INFO
= wxc
.wxEVT_COMMAND_TREE_SET_INFO
604 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= wxc
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
605 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= wxc
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
606 wxEVT_COMMAND_TREE_ITEM_COLLAPSED
= wxc
.wxEVT_COMMAND_TREE_ITEM_COLLAPSED
607 wxEVT_COMMAND_TREE_ITEM_COLLAPSING
= wxc
.wxEVT_COMMAND_TREE_ITEM_COLLAPSING
608 wxEVT_COMMAND_TREE_SEL_CHANGED
= wxc
.wxEVT_COMMAND_TREE_SEL_CHANGED
609 wxEVT_COMMAND_TREE_SEL_CHANGING
= wxc
.wxEVT_COMMAND_TREE_SEL_CHANGING
610 wxEVT_COMMAND_TREE_KEY_DOWN
= wxc
.wxEVT_COMMAND_TREE_KEY_DOWN
611 wxEVT_COMMAND_LIST_BEGIN_DRAG
= wxc
.wxEVT_COMMAND_LIST_BEGIN_DRAG
612 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= wxc
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
613 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= wxc
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
614 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= wxc
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
615 wxEVT_COMMAND_LIST_DELETE_ITEM
= wxc
.wxEVT_COMMAND_LIST_DELETE_ITEM
616 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= wxc
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
617 wxEVT_COMMAND_LIST_GET_INFO
= wxc
.wxEVT_COMMAND_LIST_GET_INFO
618 wxEVT_COMMAND_LIST_SET_INFO
= wxc
.wxEVT_COMMAND_LIST_SET_INFO
619 wxEVT_COMMAND_LIST_ITEM_SELECTED
= wxc
.wxEVT_COMMAND_LIST_ITEM_SELECTED
620 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= wxc
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
621 wxEVT_COMMAND_LIST_KEY_DOWN
= wxc
.wxEVT_COMMAND_LIST_KEY_DOWN
622 wxEVT_COMMAND_LIST_INSERT_ITEM
= wxc
.wxEVT_COMMAND_LIST_INSERT_ITEM
623 wxEVT_COMMAND_LIST_COL_CLICK
= wxc
.wxEVT_COMMAND_LIST_COL_CLICK
624 wxEVT_COMMAND_TAB_SEL_CHANGED
= wxc
.wxEVT_COMMAND_TAB_SEL_CHANGED
625 wxEVT_COMMAND_TAB_SEL_CHANGING
= wxc
.wxEVT_COMMAND_TAB_SEL_CHANGING
626 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= wxc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
627 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= wxc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
628 __version__
= wxc
.__version
__
630 wxPyDefaultPosition
= wxPointPtr(wxc
.cvar
.wxPyDefaultPosition
)
631 wxPyDefaultSize
= wxSizePtr(wxc
.cvar
.wxPyDefaultSize
)
634 #-------------- USER INCLUDE -----------------------
636 #----------------------------------------------------------------------------
638 # Purpose: This file is appended to the shadow class file generated
639 # by SWIG. We add some unSWIGable things here.
645 # Copyright: (c) 1998 by Total Control Software
646 # Licence: wxWindows license
647 #----------------------------------------------------------------------------
651 #----------------------------------------------------------------------
652 # This gives this module's dictionary to the C++ extension code...
654 _wxSetDictionary(vars())
657 #----------------------------------------------------------------------
658 #----------------------------------------------------------------------
659 # Helper function to link python methods to wxWindows virtual
662 def _checkForCallback(obj
, name
, event
, theID
=-1):
663 try: cb
= getattr(obj
, name
)
665 else: obj
.Connect(theID
, -1, event
, cb
)
667 def _StdWindowCallbacks(win
):
668 _checkForCallback(win
, "OnChar", wxEVT_CHAR
)
669 _checkForCallback(win
, "OnSize", wxEVT_SIZE
)
670 _checkForCallback(win
, "OnEraseBackground", wxEVT_ERASE_BACKGROUND
)
671 _checkForCallback(win
, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED
)
672 _checkForCallback(win
, "OnInitDialog", wxEVT_INIT_DIALOG
)
673 _checkForCallback(win
, "OnIdle", wxEVT_IDLE
)
674 _checkForCallback(win
, "OnPaint", wxEVT_PAINT
)
676 def _StdFrameCallbacks(win
):
677 _StdWindowCallbacks(win
)
678 _checkForCallback(win
, "OnActivate", wxEVT_ACTIVATE
)
679 _checkForCallback(win
, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT
)
680 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
683 def _StdDialogCallbacks(win
):
684 _StdWindowCallbacks(win
)
685 _checkForCallback(win
, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_OK
)
686 _checkForCallback(win
, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_APPLY
)
687 _checkForCallback(win
, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_CANCEL
)
688 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
689 _checkForCallback(win
, "OnCharHook", wxEVT_CHAR_HOOK
)
692 def _StdOnScrollCallback(win
):
693 try: cb
= getattr(win
, "OnScroll")
695 else: EVT_SCROLL(win
, cb
)
699 #----------------------------------------------------------------------
700 #----------------------------------------------------------------------
701 # functions that look and act like the C++ Macros of the same name
705 def EVT_SIZE(win
, func
):
706 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
708 def EVT_MOVE(win
, func
):
709 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
711 def EVT_CLOSE(win
, func
):
712 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
714 def EVT_PAINT(win
, func
):
715 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
717 def EVT_ERASE_BACKGROUND(win
, func
):
718 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
720 def EVT_CHAR(win
, func
):
721 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
723 def EVT_CHAR_HOOK(win
, func
):
724 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
726 def EVT_MENU_HIGHLIGHT(win
, id, func
):
727 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
729 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
730 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
732 def EVT_SET_FOCUS(win
, func
):
733 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
735 def EVT_KILL_FOCUS(win
, func
):
736 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
738 def EVT_ACTIVATE(win
, func
):
739 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
741 def EVT_ACTIVATE_APP(win
, func
):
742 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
744 def EVT_END_SESSION(win
, func
):
745 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
747 def EVT_QUERY_END_SESSION(win
, func
):
748 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
750 def EVT_DROP_FILES(win
, func
):
751 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
753 def EVT_INIT_DIALOG(win
, func
):
754 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
756 def EVT_SYS_COLOUR_CHANGED(win
, func
):
757 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
759 def EVT_SHOW(win
, func
):
760 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
762 def EVT_MAXIMIZE(win
, func
):
763 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
765 def EVT_ICONIZE(win
, func
):
766 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
768 def EVT_NAVIGATION_KEY(win
, func
):
769 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
773 def EVT_LEFT_DOWN(win
, func
):
774 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
776 def EVT_LEFT_UP(win
, func
):
777 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
779 def EVT_MIDDLE_DOWN(win
, func
):
780 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
782 def EVT_MIDDLE_UP(win
, func
):
783 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
785 def EVT_RIGHT_DOWN(win
, func
):
786 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
788 def EVT_RIGHT_UP(win
, func
):
789 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
791 def EVT_MOTION(win
, func
):
792 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
794 def EVT_LEFT_DCLICK(win
, func
):
795 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
797 def EVT_MIDDLE_DCLICK(win
, func
):
798 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
800 def EVT_RIGHT_DCLICK(win
, func
):
801 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
803 def EVT_LEAVE_WINDOW(win
, func
):
804 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
806 def EVT_ENTER_WINDOW(win
, func
):
807 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
811 def EVT_MOUSE_EVENTS(win
, func
):
812 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
813 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
814 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
815 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
816 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
817 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
818 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
819 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
820 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
821 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
822 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
823 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
826 def EVT_COMMAND(win
, id, cmd
, func
):
827 win
.Connect(id, -1, cmd
, func
)
829 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
830 win
.Connect(id1
, id2
, cmd
, func
)
833 def EVT_SCROLL(win
, func
):
834 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
835 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
836 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
837 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
838 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
839 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
840 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
842 def EVT_SCROLL_TOP(win
, func
):
843 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
845 def EVT_SCROLL_BOTTOM(win
, func
):
846 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
848 def EVT_SCROLL_LINEUP(win
, func
):
849 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
851 def EVT_SCROLL_LINEDOWN(win
, func
):
852 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
854 def EVT_SCROLL_PAGEUP(win
, func
):
855 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
857 def EVT_SCROLL_PAGEDOWN(win
, func
):
858 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
860 def EVT_SCROLL_THUMBTRACK(win
, func
):
861 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
865 # Scrolling, with an id
866 def EVT_COMMAND_SCROLL(win
, id, func
):
867 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
868 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
869 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
870 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
871 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
872 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
873 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
875 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
876 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
878 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
879 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
881 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
882 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
884 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
885 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
887 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
888 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
890 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
891 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
893 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
894 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
897 # Convenience commands
898 def EVT_BUTTON(win
, id, func
):
899 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
901 def EVT_CHECKBOX(win
, id, func
):
902 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
904 def EVT_CHOICE(win
, id, func
):
905 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
907 def EVT_LISTBOX(win
, id, func
):
908 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
910 def EVT_LISTBOX_DCLICK(win
, id, func
):
911 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
913 def EVT_TEXT(win
, id, func
):
914 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
916 def EVT_TEXT_ENTER(win
, id, func
):
917 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
919 def EVT_MENU(win
, id, func
):
920 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
922 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
923 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
925 def EVT_SLIDER(win
, id, func
):
926 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
928 def EVT_RADIOBOX(win
, id, func
):
929 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
931 def EVT_RADIOBUTTON(win
, id, func
):
932 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
934 def EVT_VLBOX(win
, id, func
):
935 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
937 def EVT_COMBOBOX(win
, id, func
):
938 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
940 def EVT_TOOL(win
, id, func
):
941 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
943 def EVT_TOOL_RCLICKED(win
, id, func
):
944 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
946 def EVT_TOOL_ENTER(win
, id, func
):
947 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
949 def EVT_CHECKLISTBOX(win
, id, func
):
950 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
953 # Generic command events
955 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
956 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
958 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
959 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
961 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
962 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
964 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
965 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
967 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
968 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
970 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
971 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
973 def EVT_COMMAND_ENTER(win
, id, func
):
974 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
978 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
979 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
981 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
982 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
986 def EVT_TREE_BEGIN_DRAG(win
, id, func
):
987 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG
, func
)
989 def EVT_TREE_BEGIN_RDRAG(win
, id, func
):
990 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG
, func
)
992 def EVT_TREE_BEGIN_LABEL_EDIT(win
, id, func
):
993 win
.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
, func
)
995 def EVT_TREE_END_LABEL_EDIT(win
, id, func
):
996 win
.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT
, func
)
998 def EVT_TREE_GET_INFO(win
, id, func
):
999 win
.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO
, func
)
1001 def EVT_TREE_SET_INFO(win
, id, func
):
1002 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO
, func
)
1004 def EVT_TREE_ITEM_EXPANDED(win
, id, func
):
1005 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED
, func
)
1007 def EVT_TREE_ITEM_EXPANDING(win
, id, func
):
1008 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING
, func
)
1010 def EVT_TREE_ITEM_COLLAPSED(win
, id, func
):
1011 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED
, func
)
1013 def EVT_TREE_ITEM_COLLAPSING(win
, id, func
):
1014 win
.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING
, func
)
1016 def EVT_TREE_SEL_CHANGED(win
, id, func
):
1017 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED
, func
)
1019 def EVT_TREE_SEL_CHANGING(win
, id, func
):
1020 win
.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING
, func
)
1022 def EVT_TREE_KEY_DOWN(win
, id, func
):
1023 win
.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN
, func
)
1025 def EVT_TREE_DELETE_ITEM(win
, id, func
):
1026 win
.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM
, func
)
1030 def EVT_SPIN_UP(win
, id, func
):
1031 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1033 def EVT_SPIN_DOWN(win
, id, func
):
1034 win
.Connect(id, -1,wxEVT_SCROLL_LINEDOWN
, func
)
1036 def EVT_SPIN(win
, id, func
):
1037 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
1038 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
1039 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
1040 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
1041 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
1042 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
1043 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
1049 def EVT_TASKBAR_MOVE(win
, func
):
1050 win
.Connect(-1, -1, wxEVT_TASKBAR_MOVE
, func
)
1052 def EVT_TASKBAR_LEFT_DOWN(win
, func
):
1053 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN
, func
)
1055 def EVT_TASKBAR_LEFT_UP(win
, func
):
1056 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP
, func
)
1058 def EVT_TASKBAR_RIGHT_DOWN(win
, func
):
1059 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN
, func
)
1061 def EVT_TASKBAR_RIGHT_UP(win
, func
):
1062 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP
, func
)
1064 def EVT_TASKBAR_LEFT_DCLICK(win
, func
):
1065 win
.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK
, func
)
1067 def EVT_TASKBAR_RIGHT_DCLICK(win
, func
):
1068 win
.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK
, func
)
1072 def EVT_GRID_SELECT_CELL(win
, fn
):
1073 win
.Connect(-1, -1, wxEVT_GRID_SELECT_CELL
, fn
)
1075 def EVT_GRID_CREATE_CELL(win
, fn
):
1076 win
.Connect(-1, -1, wxEVT_GRID_CREATE_CELL
, fn
)
1078 def EVT_GRID_CHANGE_LABELS(win
, fn
):
1079 win
.Connect(-1, -1, wxEVT_GRID_CHANGE_LABELS
, fn
)
1081 def EVT_GRID_CHANGE_SEL_LABEL(win
, fn
):
1082 win
.Connect(-1, -1, wxEVT_GRID_CHANGE_SEL_LABEL
, fn
)
1084 def EVT_GRID_CELL_CHANGE(win
, fn
):
1085 win
.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE
, fn
)
1087 def EVT_GRID_CELL_LCLICK(win
, fn
):
1088 win
.Connect(-1, -1, wxEVT_GRID_CELL_LCLICK
, fn
)
1090 def EVT_GRID_CELL_RCLICK(win
, fn
):
1091 win
.Connect(-1, -1, wxEVT_GRID_CELL_RCLICK
, fn
)
1093 def EVT_GRID_LABEL_LCLICK(win
, fn
):
1094 win
.Connect(-1, -1, wxEVT_GRID_LABEL_LCLICK
, fn
)
1096 def EVT_GRID_LABEL_RCLICK(win
, fn
):
1097 win
.Connect(-1, -1, wxEVT_GRID_LABEL_RCLICK
, fn
)
1101 def EVT_SASH_DRAGGED(win
, id, func
):
1102 win
.Connect(id, -1, wxEVT_SASH_DRAGGED
, func
)
1104 def EVT_SASH_DRAGGED_RANGE(win
, id1
, id2
, func
):
1105 win
.Connect(id1
, id2
, wxEVT_SASH_DRAGGED
, func
)
1107 def EVT_QUERY_LAYOUT_INFO(win
, func
):
1108 win
.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO
, func
)
1110 def EVT_CALCULATE_LAYOUT(win
, func
):
1111 win
.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT
, func
)
1115 def EVT_LIST_BEGIN_DRAG(win
, id, func
):
1116 win
.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_DRAG
, func
)
1118 def EVT_LIST_BEGIN_RDRAG(win
, id, func
):
1119 win
.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_RDRAG
, func
)
1121 def EVT_LIST_BEGIN_LABEL_EDIT(win
, id, func
):
1122 win
.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
, func
)
1124 def EVT_LIST_END_LABEL_EDIT(win
, id, func
):
1125 win
.Connect(id, -1, wxEVT_COMMAND_LIST_END_LABEL_EDIT
, func
)
1127 def EVT_LIST_DELETE_ITEM(win
, id, func
):
1128 win
.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ITEM
, func
)
1130 def EVT_LIST_DELETE_ALL_ITEMS(win
, id, func
):
1131 win
.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
, func
)
1133 def EVT_LIST_GET_INFO(win
, id, func
):
1134 win
.Connect(id, -1, wxEVT_COMMAND_LIST_GET_INFO
, func
)
1136 def EVT_LIST_SET_INFO(win
, id, func
):
1137 win
.Connect(id, -1, wxEVT_COMMAND_LIST_SET_INFO
, func
)
1139 def EVT_LIST_ITEM_SELECTED(win
, id, func
):
1140 win
.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED
, func
)
1142 def EVT_LIST_ITEM_DESELECTED(win
, id, func
):
1143 win
.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED
, func
)
1145 def EVT_LIST_KEY_DOWN(win
, id, func
):
1146 win
.Connect(id, -1, wxEVT_COMMAND_LIST_KEY_DOWN
, func
)
1148 def EVT_LIST_INSERT_ITEM(win
, id, func
):
1149 win
.Connect(id, -1, wxEVT_COMMAND_LIST_INSERT_ITEM
, func
)
1151 def EVT_LIST_COL_CLICK(win
, id, func
):
1152 win
.Connect(id, -1, wxEVT_COMMAND_LIST_COL_CLICK
, func
)
1155 #----------------------------------------------------------------------
1157 class wxTimer(wxPyTimer
):
1159 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1160 # Notify(self) method.
1162 #----------------------------------------------------------------------
1163 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1164 # expect an object with the SWIG pointer as a 'this' member. This class
1165 # and instance fools the shadow into passing the NULL pointer.
1168 this
= 'NULL' # SWIG converts this to (void*)0
1173 #----------------------------------------------------------------------
1177 wxNamedColor
= wxNamedColour
1179 wxPyDefaultPosition
.Set(-1,-1)
1180 wxPyDefaultSize
.Set(-1,-1)
1182 # aliases so that C++ documentation applies:
1183 wxDefaultPosition
= wxPyDefaultPosition
1184 wxDefaultSize
= wxPyDefaultSize
1187 # This is to cover up a bug in SWIG. We are redefining
1188 # the shadow class that is generated for wxAcceleratorTable
1189 # because SWIG incorrectly uses "arg0.this"
1190 class wxAcceleratorTable(wxAcceleratorTablePtr
):
1191 def __init__(self
,arg0
) :
1192 self
.this
= miscc
.new_wxAcceleratorTable(arg0
)
1195 #----------------------------------------------------------------------
1197 ## class wxPyStdOutWindow(wxFrame):
1198 ## def __init__(self, title = "wxPython: stdout/stderr"):
1199 ## wxFrame.__init__(self, NULL, title)
1200 ## self.title = title
1201 ## self.text = wxTextWindow(self)
1202 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1203 ## self.SetSize(-1,-1,400,200)
1205 ## self.isShown = false
1207 ## def write(self, str): # with this method,
1208 ## if not self.isShown:
1210 ## self.isShown = true
1211 ## self.text.WriteText(str)
1213 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1215 ## self.isShown = false
1218 _defRedirect
= (wxPlatform
== '__WXMSW__')
1220 #----------------------------------------------------------------------
1221 # The main application class. Derive from this and implement an OnInit
1222 # method that creates a frame and then calls self.SetTopWindow(frame)
1224 class wxApp(wxPyApp
):
1225 error
= 'wxApp.error'
1227 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1228 wxPyApp
.__init
__(self
)
1229 self
.stdioWin
= None
1230 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1232 self
.RedirectStdio(filename
)
1234 # this initializes wxWindows and then calls our OnInit
1235 _wxStart(self
.OnInit
)
1244 def RedirectStdio(self
, filename
):
1246 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1248 raise self
.error
, 'wxPyStdOutWindow not yet implemented.'
1249 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1251 def RestoreStdio(self
):
1252 sys
.stdout
, sys
.stderr
= self
.saveStdio
1253 if self
.stdioWin
!= None:
1254 self
.stdioWin
.Show(false
)
1255 self
.stdioWin
.Destroy()
1256 self
.stdioWin
= None
1259 #----------------------------------------------------------------------------
1262 # Revision 1.6 1999/02/20 09:11:32 RD
1263 # Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
1264 # window handle. If you can get the window handle into the python code,
1265 # it should just work... More news on this later.
1267 # Added wxImageList, wxToolTip.
1269 # Re-enabled wxConfig.DeleteAll() since it is reportedly fixed for the
1270 # wxRegConfig class.
1272 # As usual, some bug fixes, tweaks, etc.
1274 # Revision 1.10 1999/02/01 00:10:39 RD
1276 # Added the missing EVT_LIST_ITEM_SELECTED and friends.
1278 # Revision 1.9 1999/01/30 07:30:09 RD
1280 # Added wxSashWindow, wxSashEvent, wxLayoutAlgorithm, etc.
1282 # Various cleanup, tweaks, minor additions, etc. to maintain
1283 # compatibility with the current wxWindows.
1285 # Revision 1.8 1999/01/29 21:13:42 HH
1286 # Added aliases for wxDefaultPosition and wxDefaultSize (from wxPy..) in _extras,
1287 # so that C++ documentation applies.
1289 # Revision 1.7 1998/11/25 08:45:21 RD
1291 # Added wxPalette, wxRegion, wxRegionIterator, wxTaskbarIcon
1292 # Added events for wxGrid
1293 # Other various fixes and additions
1295 # Revision 1.6 1998/11/16 00:00:52 RD
1296 # Generic treectrl for wxPython/GTK compiles...
1298 # Revision 1.5 1998/10/20 07:38:02 RD
1301 # Revision 1.4 1998/10/20 06:43:54 RD
1302 # New wxTreeCtrl wrappers (untested)
1303 # some changes in helpers
1306 # Revision 1.3 1998/10/02 06:40:33 RD
1308 # Version 0.4 of wxPython for MSW.
1310 # Revision 1.2 1998/08/18 19:48:12 RD
1311 # more wxGTK compatibility things.
1313 # It builds now but there are serious runtime problems...
1315 # Revision 1.1 1998/08/09 08:25:49 RD