1 # This file was created automatically by SWIG.
14 from controls
import *
16 from controls2
import *
18 from windows2
import *
21 class wxPyAppPtr(wxEvtHandlerPtr
):
22 def __init__(self
,this
):
26 val
= wxpc
.wxPyApp_GetAppName(self
.this
)
29 val
= wxpc
.wxPyApp_GetAuto3D(self
.this
)
31 def GetClassName(self
):
32 val
= wxpc
.wxPyApp_GetClassName(self
.this
)
34 def GetExitOnFrameDelete(self
):
35 val
= wxpc
.wxPyApp_GetExitOnFrameDelete(self
.this
)
37 def GetPrintMode(self
):
38 val
= wxpc
.wxPyApp_GetPrintMode(self
.this
)
40 def GetTopWindow(self
):
41 val
= wxpc
.wxPyApp_GetTopWindow(self
.this
)
42 val
= wxWindowPtr(val
)
44 def GetVendorName(self
):
45 val
= wxpc
.wxPyApp_GetVendorName(self
.this
)
48 val
= wxpc
.wxPyApp_Dispatch(self
.this
)
50 def ExitMainLoop(self
):
51 val
= wxpc
.wxPyApp_ExitMainLoop(self
.this
)
53 def Initialized(self
):
54 val
= wxpc
.wxPyApp_Initialized(self
.this
)
57 val
= wxpc
.wxPyApp_MainLoop(self
.this
)
60 val
= wxpc
.wxPyApp_Pending(self
.this
)
62 def SetAppName(self
,arg0
):
63 val
= wxpc
.wxPyApp_SetAppName(self
.this
,arg0
)
65 def SetAuto3D(self
,arg0
):
66 val
= wxpc
.wxPyApp_SetAuto3D(self
.this
,arg0
)
68 def SetClassName(self
,arg0
):
69 val
= wxpc
.wxPyApp_SetClassName(self
.this
,arg0
)
71 def SetExitOnFrameDelete(self
,arg0
):
72 val
= wxpc
.wxPyApp_SetExitOnFrameDelete(self
.this
,arg0
)
74 def SetPrintMode(self
,arg0
):
75 val
= wxpc
.wxPyApp_SetPrintMode(self
.this
,arg0
)
77 def SetTopWindow(self
,arg0
):
78 val
= wxpc
.wxPyApp_SetTopWindow(self
.this
,arg0
.this
)
80 def SetVendorName(self
,arg0
):
81 val
= wxpc
.wxPyApp_SetVendorName(self
.this
,arg0
)
83 def AfterMainLoop(self
):
84 val
= wxpc
.wxPyApp_AfterMainLoop(self
.this
)
87 return "<C wxPyApp instance>"
88 class wxPyApp(wxPyAppPtr
):
90 self
.this
= wxpc
.new_wxPyApp()
98 #-------------- FUNCTION WRAPPERS ------------------
100 _wxStart
= wxpc
._wxStart
102 _wxSetDictionary
= wxpc
._wxSetDictionary
106 #-------------- VARIABLE WRAPPERS ------------------
108 wxMAJOR_VERSION
= wxpc
.wxMAJOR_VERSION
109 wxMINOR_VERSION
= wxpc
.wxMINOR_VERSION
110 wxRELEASE_NUMBER
= wxpc
.wxRELEASE_NUMBER
111 UNKNOWN
= wxpc
.UNKNOWN
112 NOT_FOUND
= wxpc
.NOT_FOUND
113 wxVSCROLL
= wxpc
.wxVSCROLL
114 wxHSCROLL
= wxpc
.wxHSCROLL
115 wxCAPTION
= wxpc
.wxCAPTION
116 wxDOUBLE_BORDER
= wxpc
.wxDOUBLE_BORDER
117 wxSUNKEN_BORDER
= wxpc
.wxSUNKEN_BORDER
118 wxRAISED_BORDER
= wxpc
.wxRAISED_BORDER
119 wxBORDER
= wxpc
.wxBORDER
120 wxSIMPLE_BORDER
= wxpc
.wxSIMPLE_BORDER
121 wxSTATIC_BORDER
= wxpc
.wxSTATIC_BORDER
122 wxTRANSPARENT_WINDOW
= wxpc
.wxTRANSPARENT_WINDOW
123 wxNO_BORDER
= wxpc
.wxNO_BORDER
124 wxUSER_COLOURS
= wxpc
.wxUSER_COLOURS
125 wxNO_3D
= wxpc
.wxNO_3D
126 wxTAB_TRAVERSAL
= wxpc
.wxTAB_TRAVERSAL
127 wxHORIZONTAL
= wxpc
.wxHORIZONTAL
128 wxVERTICAL
= wxpc
.wxVERTICAL
130 wxCENTER_FRAME
= wxpc
.wxCENTER_FRAME
131 wxSTAY_ON_TOP
= wxpc
.wxSTAY_ON_TOP
132 wxICONIZE
= wxpc
.wxICONIZE
133 wxMINIMIZE
= wxpc
.wxMINIMIZE
134 wxMAXIMIZE
= wxpc
.wxMAXIMIZE
135 wxTHICK_FRAME
= wxpc
.wxTHICK_FRAME
136 wxSYSTEM_MENU
= wxpc
.wxSYSTEM_MENU
137 wxMINIMIZE_BOX
= wxpc
.wxMINIMIZE_BOX
138 wxMAXIMIZE_BOX
= wxpc
.wxMAXIMIZE_BOX
139 wxTINY_CAPTION_HORIZ
= wxpc
.wxTINY_CAPTION_HORIZ
140 wxTINY_CAPTION_VERT
= wxpc
.wxTINY_CAPTION_VERT
141 wxRESIZE_BOX
= wxpc
.wxRESIZE_BOX
142 wxRESIZE_BORDER
= wxpc
.wxRESIZE_BORDER
143 wxDIALOG_MODAL
= wxpc
.wxDIALOG_MODAL
144 wxDIALOG_MODELESS
= wxpc
.wxDIALOG_MODELESS
145 wxDEFAULT_FRAME_STYLE
= wxpc
.wxDEFAULT_FRAME_STYLE
146 wxDEFAULT_DIALOG_STYLE
= wxpc
.wxDEFAULT_DIALOG_STYLE
147 wxRETAINED
= wxpc
.wxRETAINED
148 wxBACKINGSTORE
= wxpc
.wxBACKINGSTORE
149 wxTB_3DBUTTONS
= wxpc
.wxTB_3DBUTTONS
150 wxTB_HORIZONTAL
= wxpc
.wxTB_HORIZONTAL
151 wxTB_VERTICAL
= wxpc
.wxTB_VERTICAL
152 wxCOLOURED
= wxpc
.wxCOLOURED
153 wxFIXED_LENGTH
= wxpc
.wxFIXED_LENGTH
154 wxALIGN_LEFT
= wxpc
.wxALIGN_LEFT
155 wxALIGN_CENTER
= wxpc
.wxALIGN_CENTER
156 wxALIGN_CENTRE
= wxpc
.wxALIGN_CENTRE
157 wxALIGN_RIGHT
= wxpc
.wxALIGN_RIGHT
158 wxSB_MASK
= wxpc
.wxSB_MASK
159 wxNEEDED_SB
= wxpc
.wxNEEDED_SB
160 wxALWAYS_SB
= wxpc
.wxALWAYS_SB
161 wxLB_NEEDED_SB
= wxpc
.wxLB_NEEDED_SB
162 wxLB_ALWAYS_SB
= wxpc
.wxLB_ALWAYS_SB
163 wxLB_SORT
= wxpc
.wxLB_SORT
164 wxLB_SINGLE
= wxpc
.wxLB_SINGLE
165 wxLB_MULTIPLE
= wxpc
.wxLB_MULTIPLE
166 wxLB_EXTENDED
= wxpc
.wxLB_EXTENDED
167 wxLB_OWNERDRAW
= wxpc
.wxLB_OWNERDRAW
168 wxLB_HSCROLL
= wxpc
.wxLB_HSCROLL
169 wxPROCESS_ENTER
= wxpc
.wxPROCESS_ENTER
170 wxPASSWORD
= wxpc
.wxPASSWORD
171 wxTE_PROCESS_ENTER
= wxpc
.wxTE_PROCESS_ENTER
172 wxTE_PASSWORD
= wxpc
.wxTE_PASSWORD
173 wxTE_READONLY
= wxpc
.wxTE_READONLY
174 wxTE_MULTILINE
= wxpc
.wxTE_MULTILINE
175 wxREADONLY
= wxpc
.wxREADONLY
176 wxEDITABLE
= wxpc
.wxEDITABLE
177 wxCB_SIMPLE
= wxpc
.wxCB_SIMPLE
178 wxCB_DROPDOWN
= wxpc
.wxCB_DROPDOWN
179 wxCB_SORT
= wxpc
.wxCB_SORT
180 wxCB_READONLY
= wxpc
.wxCB_READONLY
181 wxRA_HORIZONTAL
= wxpc
.wxRA_HORIZONTAL
182 wxRA_VERTICAL
= wxpc
.wxRA_VERTICAL
183 wxRB_GROUP
= wxpc
.wxRB_GROUP
184 wxGA_PROGRESSBAR
= wxpc
.wxGA_PROGRESSBAR
185 wxGA_HORIZONTAL
= wxpc
.wxGA_HORIZONTAL
186 wxGA_VERTICAL
= wxpc
.wxGA_VERTICAL
187 wxSL_HORIZONTAL
= wxpc
.wxSL_HORIZONTAL
188 wxSL_VERTICAL
= wxpc
.wxSL_VERTICAL
189 wxSL_AUTOTICKS
= wxpc
.wxSL_AUTOTICKS
190 wxSL_LABELS
= wxpc
.wxSL_LABELS
191 wxSL_LEFT
= wxpc
.wxSL_LEFT
192 wxSL_TOP
= wxpc
.wxSL_TOP
193 wxSL_RIGHT
= wxpc
.wxSL_RIGHT
194 wxSL_BOTTOM
= wxpc
.wxSL_BOTTOM
195 wxSL_BOTH
= wxpc
.wxSL_BOTH
196 wxSL_SELRANGE
= wxpc
.wxSL_SELRANGE
197 wxSB_HORIZONTAL
= wxpc
.wxSB_HORIZONTAL
198 wxSB_VERTICAL
= wxpc
.wxSB_VERTICAL
199 wxBU_AUTODRAW
= wxpc
.wxBU_AUTODRAW
200 wxBU_NOAUTODRAW
= wxpc
.wxBU_NOAUTODRAW
201 wxTR_HAS_BUTTONS
= wxpc
.wxTR_HAS_BUTTONS
202 wxTR_EDIT_LABELS
= wxpc
.wxTR_EDIT_LABELS
203 wxLC_ICON
= wxpc
.wxLC_ICON
204 wxLC_SMALL_ICON
= wxpc
.wxLC_SMALL_ICON
205 wxLC_LIST
= wxpc
.wxLC_LIST
206 wxLC_REPORT
= wxpc
.wxLC_REPORT
207 wxLC_ALIGN_TOP
= wxpc
.wxLC_ALIGN_TOP
208 wxLC_ALIGN_LEFT
= wxpc
.wxLC_ALIGN_LEFT
209 wxLC_AUTOARRANGE
= wxpc
.wxLC_AUTOARRANGE
210 wxLC_USER_TEXT
= wxpc
.wxLC_USER_TEXT
211 wxLC_EDIT_LABELS
= wxpc
.wxLC_EDIT_LABELS
212 wxLC_NO_HEADER
= wxpc
.wxLC_NO_HEADER
213 wxLC_NO_SORT_HEADER
= wxpc
.wxLC_NO_SORT_HEADER
214 wxLC_SINGLE_SEL
= wxpc
.wxLC_SINGLE_SEL
215 wxLC_SORT_ASCENDING
= wxpc
.wxLC_SORT_ASCENDING
216 wxLC_SORT_DESCENDING
= wxpc
.wxLC_SORT_DESCENDING
217 wxLC_MASK_TYPE
= wxpc
.wxLC_MASK_TYPE
218 wxLC_MASK_ALIGN
= wxpc
.wxLC_MASK_ALIGN
219 wxLC_MASK_SORT
= wxpc
.wxLC_MASK_SORT
220 wxSP_VERTICAL
= wxpc
.wxSP_VERTICAL
221 wxSP_HORIZONTAL
= wxpc
.wxSP_HORIZONTAL
222 wxSP_ARROW_KEYS
= wxpc
.wxSP_ARROW_KEYS
223 wxSP_WRAP
= wxpc
.wxSP_WRAP
224 wxSP_NOBORDER
= wxpc
.wxSP_NOBORDER
225 wxSP_3D
= wxpc
.wxSP_3D
226 wxSP_BORDER
= wxpc
.wxSP_BORDER
227 wxTAB_MULTILINE
= wxpc
.wxTAB_MULTILINE
228 wxTAB_RIGHTJUSTIFY
= wxpc
.wxTAB_RIGHTJUSTIFY
229 wxTAB_FIXEDWIDTH
= wxpc
.wxTAB_FIXEDWIDTH
230 wxTAB_OWNERDRAW
= wxpc
.wxTAB_OWNERDRAW
231 wxFLOOD_SURFACE
= wxpc
.wxFLOOD_SURFACE
232 wxFLOOD_BORDER
= wxpc
.wxFLOOD_BORDER
233 wxODDEVEN_RULE
= wxpc
.wxODDEVEN_RULE
234 wxWINDING_RULE
= wxpc
.wxWINDING_RULE
235 wxTOOL_TOP
= wxpc
.wxTOOL_TOP
236 wxTOOL_BOTTOM
= wxpc
.wxTOOL_BOTTOM
237 wxTOOL_LEFT
= wxpc
.wxTOOL_LEFT
238 wxTOOL_RIGHT
= wxpc
.wxTOOL_RIGHT
240 wxYES_NO
= wxpc
.wxYES_NO
241 wxCANCEL
= wxpc
.wxCANCEL
244 wxICON_EXCLAMATION
= wxpc
.wxICON_EXCLAMATION
245 wxICON_HAND
= wxpc
.wxICON_HAND
246 wxICON_QUESTION
= wxpc
.wxICON_QUESTION
247 wxICON_INFORMATION
= wxpc
.wxICON_INFORMATION
248 wxICON_STOP
= wxpc
.wxICON_STOP
249 wxICON_ASTERISK
= wxpc
.wxICON_ASTERISK
250 wxICON_MASK
= wxpc
.wxICON_MASK
251 wxCENTRE
= wxpc
.wxCENTRE
252 wxCENTER
= wxpc
.wxCENTER
253 wxSIZE_AUTO_WIDTH
= wxpc
.wxSIZE_AUTO_WIDTH
254 wxSIZE_AUTO_HEIGHT
= wxpc
.wxSIZE_AUTO_HEIGHT
255 wxSIZE_AUTO
= wxpc
.wxSIZE_AUTO
256 wxSIZE_USE_EXISTING
= wxpc
.wxSIZE_USE_EXISTING
257 wxSIZE_ALLOW_MINUS_ONE
= wxpc
.wxSIZE_ALLOW_MINUS_ONE
258 wxDF_TEXT
= wxpc
.wxDF_TEXT
259 wxDF_BITMAP
= wxpc
.wxDF_BITMAP
260 wxDF_METAFILE
= wxpc
.wxDF_METAFILE
261 wxDF_DIB
= wxpc
.wxDF_DIB
262 wxDF_OEMTEXT
= wxpc
.wxDF_OEMTEXT
263 wxDF_FILENAME
= wxpc
.wxDF_FILENAME
264 wxPORTRAIT
= wxpc
.wxPORTRAIT
265 wxLANDSCAPE
= wxpc
.wxLANDSCAPE
266 wxID_OPEN
= wxpc
.wxID_OPEN
267 wxID_CLOSE
= wxpc
.wxID_CLOSE
268 wxID_NEW
= wxpc
.wxID_NEW
269 wxID_SAVE
= wxpc
.wxID_SAVE
270 wxID_SAVEAS
= wxpc
.wxID_SAVEAS
271 wxID_REVERT
= wxpc
.wxID_REVERT
272 wxID_EXIT
= wxpc
.wxID_EXIT
273 wxID_UNDO
= wxpc
.wxID_UNDO
274 wxID_REDO
= wxpc
.wxID_REDO
275 wxID_HELP
= wxpc
.wxID_HELP
276 wxID_PRINT
= wxpc
.wxID_PRINT
277 wxID_PRINT_SETUP
= wxpc
.wxID_PRINT_SETUP
278 wxID_PREVIEW
= wxpc
.wxID_PREVIEW
279 wxID_ABOUT
= wxpc
.wxID_ABOUT
280 wxID_HELP_CONTENTS
= wxpc
.wxID_HELP_CONTENTS
281 wxID_HELP_COMMANDS
= wxpc
.wxID_HELP_COMMANDS
282 wxID_HELP_PROCEDURES
= wxpc
.wxID_HELP_PROCEDURES
283 wxID_HELP_CONTEXT
= wxpc
.wxID_HELP_CONTEXT
284 wxID_CUT
= wxpc
.wxID_CUT
285 wxID_COPY
= wxpc
.wxID_COPY
286 wxID_PASTE
= wxpc
.wxID_PASTE
287 wxID_CLEAR
= wxpc
.wxID_CLEAR
288 wxID_FIND
= wxpc
.wxID_FIND
289 wxID_FILE1
= wxpc
.wxID_FILE1
290 wxID_FILE2
= wxpc
.wxID_FILE2
291 wxID_FILE3
= wxpc
.wxID_FILE3
292 wxID_FILE4
= wxpc
.wxID_FILE4
293 wxID_FILE5
= wxpc
.wxID_FILE5
294 wxID_FILE6
= wxpc
.wxID_FILE6
295 wxID_FILE7
= wxpc
.wxID_FILE7
296 wxID_FILE8
= wxpc
.wxID_FILE8
297 wxID_FILE9
= wxpc
.wxID_FILE9
298 wxID_OK
= wxpc
.wxID_OK
299 wxID_CANCEL
= wxpc
.wxID_CANCEL
300 wxID_APPLY
= wxpc
.wxID_APPLY
301 wxID_YES
= wxpc
.wxID_YES
302 wxID_NO
= wxpc
.wxID_NO
303 wxBITMAP_TYPE_BMP
= wxpc
.wxBITMAP_TYPE_BMP
304 wxBITMAP_TYPE_BMP_RESOURCE
= wxpc
.wxBITMAP_TYPE_BMP_RESOURCE
305 wxBITMAP_TYPE_ICO
= wxpc
.wxBITMAP_TYPE_ICO
306 wxBITMAP_TYPE_ICO_RESOURCE
= wxpc
.wxBITMAP_TYPE_ICO_RESOURCE
307 wxBITMAP_TYPE_CUR
= wxpc
.wxBITMAP_TYPE_CUR
308 wxBITMAP_TYPE_CUR_RESOURCE
= wxpc
.wxBITMAP_TYPE_CUR_RESOURCE
309 wxBITMAP_TYPE_XBM
= wxpc
.wxBITMAP_TYPE_XBM
310 wxBITMAP_TYPE_XBM_DATA
= wxpc
.wxBITMAP_TYPE_XBM_DATA
311 wxBITMAP_TYPE_XPM
= wxpc
.wxBITMAP_TYPE_XPM
312 wxBITMAP_TYPE_XPM_DATA
= wxpc
.wxBITMAP_TYPE_XPM_DATA
313 wxBITMAP_TYPE_TIF
= wxpc
.wxBITMAP_TYPE_TIF
314 wxBITMAP_TYPE_TIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_TIF_RESOURCE
315 wxBITMAP_TYPE_GIF
= wxpc
.wxBITMAP_TYPE_GIF
316 wxBITMAP_TYPE_GIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_GIF_RESOURCE
317 wxBITMAP_TYPE_PNG
= wxpc
.wxBITMAP_TYPE_PNG
318 wxBITMAP_TYPE_PNG_RESOURCE
= wxpc
.wxBITMAP_TYPE_PNG_RESOURCE
319 wxBITMAP_TYPE_ANY
= wxpc
.wxBITMAP_TYPE_ANY
320 wxBITMAP_TYPE_RESOURCE
= wxpc
.wxBITMAP_TYPE_RESOURCE
323 wxHIDE_READONLY
= wxpc
.wxHIDE_READONLY
324 wxOVERWRITE_PROMPT
= wxpc
.wxOVERWRITE_PROMPT
325 wxACCEL_ALT
= wxpc
.wxACCEL_ALT
326 wxACCEL_CTRL
= wxpc
.wxACCEL_CTRL
327 wxACCEL_SHIFT
= wxpc
.wxACCEL_SHIFT
328 ERR_PARAM
= wxpc
.ERR_PARAM
329 ERR_NODATA
= wxpc
.ERR_NODATA
330 ERR_CANCEL
= wxpc
.ERR_CANCEL
331 ERR_SUCCESS
= wxpc
.ERR_SUCCESS
332 wxDEFAULT
= wxpc
.wxDEFAULT
333 wxDECORATIVE
= wxpc
.wxDECORATIVE
334 wxROMAN
= wxpc
.wxROMAN
335 wxSCRIPT
= wxpc
.wxSCRIPT
336 wxSWISS
= wxpc
.wxSWISS
337 wxMODERN
= wxpc
.wxMODERN
338 wxTELETYPE
= wxpc
.wxTELETYPE
339 wxVARIABLE
= wxpc
.wxVARIABLE
340 wxFIXED
= wxpc
.wxFIXED
341 wxNORMAL
= wxpc
.wxNORMAL
342 wxLIGHT
= wxpc
.wxLIGHT
344 wxITALIC
= wxpc
.wxITALIC
345 wxSLANT
= wxpc
.wxSLANT
346 wxSOLID
= wxpc
.wxSOLID
348 wxLONG_DASH
= wxpc
.wxLONG_DASH
349 wxSHORT_DASH
= wxpc
.wxSHORT_DASH
350 wxDOT_DASH
= wxpc
.wxDOT_DASH
351 wxUSER_DASH
= wxpc
.wxUSER_DASH
352 wxTRANSPARENT
= wxpc
.wxTRANSPARENT
353 wxSTIPPLE
= wxpc
.wxSTIPPLE
354 wxBDIAGONAL_HATCH
= wxpc
.wxBDIAGONAL_HATCH
355 wxCROSSDIAG_HATCH
= wxpc
.wxCROSSDIAG_HATCH
356 wxFDIAGONAL_HATCH
= wxpc
.wxFDIAGONAL_HATCH
357 wxCROSS_HATCH
= wxpc
.wxCROSS_HATCH
358 wxHORIZONTAL_HATCH
= wxpc
.wxHORIZONTAL_HATCH
359 wxVERTICAL_HATCH
= wxpc
.wxVERTICAL_HATCH
360 wxJOIN_BEVEL
= wxpc
.wxJOIN_BEVEL
361 wxJOIN_MITER
= wxpc
.wxJOIN_MITER
362 wxJOIN_ROUND
= wxpc
.wxJOIN_ROUND
363 wxCAP_ROUND
= wxpc
.wxCAP_ROUND
364 wxCAP_PROJECTING
= wxpc
.wxCAP_PROJECTING
365 wxCAP_BUTT
= wxpc
.wxCAP_BUTT
366 wxCLEAR
= wxpc
.wxCLEAR
368 wxINVERT
= wxpc
.wxINVERT
369 wxOR_REVERSE
= wxpc
.wxOR_REVERSE
370 wxAND_REVERSE
= wxpc
.wxAND_REVERSE
373 wxAND_INVERT
= wxpc
.wxAND_INVERT
374 wxNO_OP
= wxpc
.wxNO_OP
376 wxEQUIV
= wxpc
.wxEQUIV
377 wxSRC_INVERT
= wxpc
.wxSRC_INVERT
378 wxOR_INVERT
= wxpc
.wxOR_INVERT
382 wxSRC_OR
= wxpc
.wxSRC_OR
383 wxSRC_AND
= wxpc
.wxSRC_AND
384 WXK_BACK
= wxpc
.WXK_BACK
385 WXK_TAB
= wxpc
.WXK_TAB
386 WXK_RETURN
= wxpc
.WXK_RETURN
387 WXK_ESCAPE
= wxpc
.WXK_ESCAPE
388 WXK_SPACE
= wxpc
.WXK_SPACE
389 WXK_DELETE
= wxpc
.WXK_DELETE
390 WXK_START
= wxpc
.WXK_START
391 WXK_LBUTTON
= wxpc
.WXK_LBUTTON
392 WXK_RBUTTON
= wxpc
.WXK_RBUTTON
393 WXK_CANCEL
= wxpc
.WXK_CANCEL
394 WXK_MBUTTON
= wxpc
.WXK_MBUTTON
395 WXK_CLEAR
= wxpc
.WXK_CLEAR
396 WXK_SHIFT
= wxpc
.WXK_SHIFT
397 WXK_CONTROL
= wxpc
.WXK_CONTROL
398 WXK_MENU
= wxpc
.WXK_MENU
399 WXK_PAUSE
= wxpc
.WXK_PAUSE
400 WXK_CAPITAL
= wxpc
.WXK_CAPITAL
401 WXK_PRIOR
= wxpc
.WXK_PRIOR
402 WXK_NEXT
= wxpc
.WXK_NEXT
403 WXK_END
= wxpc
.WXK_END
404 WXK_HOME
= wxpc
.WXK_HOME
405 WXK_LEFT
= wxpc
.WXK_LEFT
407 WXK_RIGHT
= wxpc
.WXK_RIGHT
408 WXK_DOWN
= wxpc
.WXK_DOWN
409 WXK_SELECT
= wxpc
.WXK_SELECT
410 WXK_PRINT
= wxpc
.WXK_PRINT
411 WXK_EXECUTE
= wxpc
.WXK_EXECUTE
412 WXK_SNAPSHOT
= wxpc
.WXK_SNAPSHOT
413 WXK_INSERT
= wxpc
.WXK_INSERT
414 WXK_HELP
= wxpc
.WXK_HELP
415 WXK_NUMPAD0
= wxpc
.WXK_NUMPAD0
416 WXK_NUMPAD1
= wxpc
.WXK_NUMPAD1
417 WXK_NUMPAD2
= wxpc
.WXK_NUMPAD2
418 WXK_NUMPAD3
= wxpc
.WXK_NUMPAD3
419 WXK_NUMPAD4
= wxpc
.WXK_NUMPAD4
420 WXK_NUMPAD5
= wxpc
.WXK_NUMPAD5
421 WXK_NUMPAD6
= wxpc
.WXK_NUMPAD6
422 WXK_NUMPAD7
= wxpc
.WXK_NUMPAD7
423 WXK_NUMPAD8
= wxpc
.WXK_NUMPAD8
424 WXK_NUMPAD9
= wxpc
.WXK_NUMPAD9
425 WXK_MULTIPLY
= wxpc
.WXK_MULTIPLY
426 WXK_ADD
= wxpc
.WXK_ADD
427 WXK_SEPARATOR
= wxpc
.WXK_SEPARATOR
428 WXK_SUBTRACT
= wxpc
.WXK_SUBTRACT
429 WXK_DECIMAL
= wxpc
.WXK_DECIMAL
430 WXK_DIVIDE
= wxpc
.WXK_DIVIDE
440 WXK_F10
= wxpc
.WXK_F10
441 WXK_F11
= wxpc
.WXK_F11
442 WXK_F12
= wxpc
.WXK_F12
443 WXK_F13
= wxpc
.WXK_F13
444 WXK_F14
= wxpc
.WXK_F14
445 WXK_F15
= wxpc
.WXK_F15
446 WXK_F16
= wxpc
.WXK_F16
447 WXK_F17
= wxpc
.WXK_F17
448 WXK_F18
= wxpc
.WXK_F18
449 WXK_F19
= wxpc
.WXK_F19
450 WXK_F20
= wxpc
.WXK_F20
451 WXK_F21
= wxpc
.WXK_F21
452 WXK_F22
= wxpc
.WXK_F22
453 WXK_F23
= wxpc
.WXK_F23
454 WXK_F24
= wxpc
.WXK_F24
455 WXK_NUMLOCK
= wxpc
.WXK_NUMLOCK
456 WXK_SCROLL
= wxpc
.WXK_SCROLL
457 WXK_PAGEUP
= wxpc
.WXK_PAGEUP
458 WXK_PAGEDOWN
= wxpc
.WXK_PAGEDOWN
459 wxCURSOR_ARROW
= wxpc
.wxCURSOR_ARROW
460 wxCURSOR_BULLSEYE
= wxpc
.wxCURSOR_BULLSEYE
461 wxCURSOR_CHAR
= wxpc
.wxCURSOR_CHAR
462 wxCURSOR_CROSS
= wxpc
.wxCURSOR_CROSS
463 wxCURSOR_HAND
= wxpc
.wxCURSOR_HAND
464 wxCURSOR_IBEAM
= wxpc
.wxCURSOR_IBEAM
465 wxCURSOR_LEFT_BUTTON
= wxpc
.wxCURSOR_LEFT_BUTTON
466 wxCURSOR_MAGNIFIER
= wxpc
.wxCURSOR_MAGNIFIER
467 wxCURSOR_MIDDLE_BUTTON
= wxpc
.wxCURSOR_MIDDLE_BUTTON
468 wxCURSOR_NO_ENTRY
= wxpc
.wxCURSOR_NO_ENTRY
469 wxCURSOR_PAINT_BRUSH
= wxpc
.wxCURSOR_PAINT_BRUSH
470 wxCURSOR_PENCIL
= wxpc
.wxCURSOR_PENCIL
471 wxCURSOR_POINT_LEFT
= wxpc
.wxCURSOR_POINT_LEFT
472 wxCURSOR_POINT_RIGHT
= wxpc
.wxCURSOR_POINT_RIGHT
473 wxCURSOR_QUESTION_ARROW
= wxpc
.wxCURSOR_QUESTION_ARROW
474 wxCURSOR_RIGHT_BUTTON
= wxpc
.wxCURSOR_RIGHT_BUTTON
475 wxCURSOR_SIZENESW
= wxpc
.wxCURSOR_SIZENESW
476 wxCURSOR_SIZENS
= wxpc
.wxCURSOR_SIZENS
477 wxCURSOR_SIZENWSE
= wxpc
.wxCURSOR_SIZENWSE
478 wxCURSOR_SIZEWE
= wxpc
.wxCURSOR_SIZEWE
479 wxCURSOR_SIZING
= wxpc
.wxCURSOR_SIZING
480 wxCURSOR_SPRAYCAN
= wxpc
.wxCURSOR_SPRAYCAN
481 wxCURSOR_WAIT
= wxpc
.wxCURSOR_WAIT
482 wxCURSOR_WATCH
= wxpc
.wxCURSOR_WATCH
483 wxCURSOR_BLANK
= wxpc
.wxCURSOR_BLANK
488 wxEVT_NULL
= wxpc
.wxEVT_NULL
489 wxEVT_FIRST
= wxpc
.wxEVT_FIRST
490 wxEVT_COMMAND_BUTTON_CLICKED
= wxpc
.wxEVT_COMMAND_BUTTON_CLICKED
491 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxpc
.wxEVT_COMMAND_CHECKBOX_CLICKED
492 wxEVT_COMMAND_CHOICE_SELECTED
= wxpc
.wxEVT_COMMAND_CHOICE_SELECTED
493 wxEVT_COMMAND_LISTBOX_SELECTED
= wxpc
.wxEVT_COMMAND_LISTBOX_SELECTED
494 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxpc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
495 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxpc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
496 wxEVT_COMMAND_TEXT_UPDATED
= wxpc
.wxEVT_COMMAND_TEXT_UPDATED
497 wxEVT_COMMAND_TEXT_ENTER
= wxpc
.wxEVT_COMMAND_TEXT_ENTER
498 wxEVT_COMMAND_MENU_SELECTED
= wxpc
.wxEVT_COMMAND_MENU_SELECTED
499 wxEVT_COMMAND_SLIDER_UPDATED
= wxpc
.wxEVT_COMMAND_SLIDER_UPDATED
500 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBOX_SELECTED
501 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
502 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxpc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
503 wxEVT_COMMAND_VLBOX_SELECTED
= wxpc
.wxEVT_COMMAND_VLBOX_SELECTED
504 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_COMBOBOX_SELECTED
505 wxEVT_COMMAND_TOOL_CLICKED
= wxpc
.wxEVT_COMMAND_TOOL_CLICKED
506 wxEVT_COMMAND_TOOL_RCLICKED
= wxpc
.wxEVT_COMMAND_TOOL_RCLICKED
507 wxEVT_COMMAND_TOOL_ENTER
= wxpc
.wxEVT_COMMAND_TOOL_ENTER
508 wxEVT_SET_FOCUS
= wxpc
.wxEVT_SET_FOCUS
509 wxEVT_KILL_FOCUS
= wxpc
.wxEVT_KILL_FOCUS
510 wxEVT_LEFT_DOWN
= wxpc
.wxEVT_LEFT_DOWN
511 wxEVT_LEFT_UP
= wxpc
.wxEVT_LEFT_UP
512 wxEVT_MIDDLE_DOWN
= wxpc
.wxEVT_MIDDLE_DOWN
513 wxEVT_MIDDLE_UP
= wxpc
.wxEVT_MIDDLE_UP
514 wxEVT_RIGHT_DOWN
= wxpc
.wxEVT_RIGHT_DOWN
515 wxEVT_RIGHT_UP
= wxpc
.wxEVT_RIGHT_UP
516 wxEVT_MOTION
= wxpc
.wxEVT_MOTION
517 wxEVT_ENTER_WINDOW
= wxpc
.wxEVT_ENTER_WINDOW
518 wxEVT_LEAVE_WINDOW
= wxpc
.wxEVT_LEAVE_WINDOW
519 wxEVT_LEFT_DCLICK
= wxpc
.wxEVT_LEFT_DCLICK
520 wxEVT_MIDDLE_DCLICK
= wxpc
.wxEVT_MIDDLE_DCLICK
521 wxEVT_RIGHT_DCLICK
= wxpc
.wxEVT_RIGHT_DCLICK
522 wxEVT_NC_LEFT_DOWN
= wxpc
.wxEVT_NC_LEFT_DOWN
523 wxEVT_NC_LEFT_UP
= wxpc
.wxEVT_NC_LEFT_UP
524 wxEVT_NC_MIDDLE_DOWN
= wxpc
.wxEVT_NC_MIDDLE_DOWN
525 wxEVT_NC_MIDDLE_UP
= wxpc
.wxEVT_NC_MIDDLE_UP
526 wxEVT_NC_RIGHT_DOWN
= wxpc
.wxEVT_NC_RIGHT_DOWN
527 wxEVT_NC_RIGHT_UP
= wxpc
.wxEVT_NC_RIGHT_UP
528 wxEVT_NC_MOTION
= wxpc
.wxEVT_NC_MOTION
529 wxEVT_NC_ENTER_WINDOW
= wxpc
.wxEVT_NC_ENTER_WINDOW
530 wxEVT_NC_LEAVE_WINDOW
= wxpc
.wxEVT_NC_LEAVE_WINDOW
531 wxEVT_NC_LEFT_DCLICK
= wxpc
.wxEVT_NC_LEFT_DCLICK
532 wxEVT_NC_MIDDLE_DCLICK
= wxpc
.wxEVT_NC_MIDDLE_DCLICK
533 wxEVT_NC_RIGHT_DCLICK
= wxpc
.wxEVT_NC_RIGHT_DCLICK
534 wxEVT_CHAR
= wxpc
.wxEVT_CHAR
535 wxEVT_SCROLL_TOP
= wxpc
.wxEVT_SCROLL_TOP
536 wxEVT_SCROLL_BOTTOM
= wxpc
.wxEVT_SCROLL_BOTTOM
537 wxEVT_SCROLL_LINEUP
= wxpc
.wxEVT_SCROLL_LINEUP
538 wxEVT_SCROLL_LINEDOWN
= wxpc
.wxEVT_SCROLL_LINEDOWN
539 wxEVT_SCROLL_PAGEUP
= wxpc
.wxEVT_SCROLL_PAGEUP
540 wxEVT_SCROLL_PAGEDOWN
= wxpc
.wxEVT_SCROLL_PAGEDOWN
541 wxEVT_SCROLL_THUMBTRACK
= wxpc
.wxEVT_SCROLL_THUMBTRACK
542 wxEVT_SIZE
= wxpc
.wxEVT_SIZE
543 wxEVT_MOVE
= wxpc
.wxEVT_MOVE
544 wxEVT_CLOSE_WINDOW
= wxpc
.wxEVT_CLOSE_WINDOW
545 wxEVT_END_SESSION
= wxpc
.wxEVT_END_SESSION
546 wxEVT_QUERY_END_SESSION
= wxpc
.wxEVT_QUERY_END_SESSION
547 wxEVT_ACTIVATE_APP
= wxpc
.wxEVT_ACTIVATE_APP
548 wxEVT_POWER
= wxpc
.wxEVT_POWER
549 wxEVT_CHAR_HOOK
= wxpc
.wxEVT_CHAR_HOOK
550 wxEVT_KEY_UP
= wxpc
.wxEVT_KEY_UP
551 wxEVT_ACTIVATE
= wxpc
.wxEVT_ACTIVATE
552 wxEVT_CREATE
= wxpc
.wxEVT_CREATE
553 wxEVT_DESTROY
= wxpc
.wxEVT_DESTROY
554 wxEVT_SHOW
= wxpc
.wxEVT_SHOW
555 wxEVT_ICONIZE
= wxpc
.wxEVT_ICONIZE
556 wxEVT_MAXIMIZE
= wxpc
.wxEVT_MAXIMIZE
557 wxEVT_MOUSE_CAPTURE_CHANGED
= wxpc
.wxEVT_MOUSE_CAPTURE_CHANGED
558 wxEVT_PAINT
= wxpc
.wxEVT_PAINT
559 wxEVT_ERASE_BACKGROUND
= wxpc
.wxEVT_ERASE_BACKGROUND
560 wxEVT_NC_PAINT
= wxpc
.wxEVT_NC_PAINT
561 wxEVT_PAINT_ICON
= wxpc
.wxEVT_PAINT_ICON
562 wxEVT_MENU_CHAR
= wxpc
.wxEVT_MENU_CHAR
563 wxEVT_MENU_INIT
= wxpc
.wxEVT_MENU_INIT
564 wxEVT_MENU_HIGHLIGHT
= wxpc
.wxEVT_MENU_HIGHLIGHT
565 wxEVT_POPUP_MENU_INIT
= wxpc
.wxEVT_POPUP_MENU_INIT
566 wxEVT_CONTEXT_MENU
= wxpc
.wxEVT_CONTEXT_MENU
567 wxEVT_SYS_COLOUR_CHANGED
= wxpc
.wxEVT_SYS_COLOUR_CHANGED
568 wxEVT_SETTING_CHANGED
= wxpc
.wxEVT_SETTING_CHANGED
569 wxEVT_QUERY_NEW_PALETTE
= wxpc
.wxEVT_QUERY_NEW_PALETTE
570 wxEVT_PALETTE_CHANGED
= wxpc
.wxEVT_PALETTE_CHANGED
571 wxEVT_JOY_BUTTON_DOWN
= wxpc
.wxEVT_JOY_BUTTON_DOWN
572 wxEVT_JOY_BUTTON_UP
= wxpc
.wxEVT_JOY_BUTTON_UP
573 wxEVT_JOY_MOVE
= wxpc
.wxEVT_JOY_MOVE
574 wxEVT_JOY_ZMOVE
= wxpc
.wxEVT_JOY_ZMOVE
575 wxEVT_DROP_FILES
= wxpc
.wxEVT_DROP_FILES
576 wxEVT_DRAW_ITEM
= wxpc
.wxEVT_DRAW_ITEM
577 wxEVT_MEASURE_ITEM
= wxpc
.wxEVT_MEASURE_ITEM
578 wxEVT_COMPARE_ITEM
= wxpc
.wxEVT_COMPARE_ITEM
579 wxEVT_INIT_DIALOG
= wxpc
.wxEVT_INIT_DIALOG
580 wxEVT_IDLE
= wxpc
.wxEVT_IDLE
581 wxEVT_UPDATE_UI
= wxpc
.wxEVT_UPDATE_UI
582 wxEVT_COMMAND_LEFT_CLICK
= wxpc
.wxEVT_COMMAND_LEFT_CLICK
583 wxEVT_COMMAND_LEFT_DCLICK
= wxpc
.wxEVT_COMMAND_LEFT_DCLICK
584 wxEVT_COMMAND_RIGHT_CLICK
= wxpc
.wxEVT_COMMAND_RIGHT_CLICK
585 wxEVT_COMMAND_RIGHT_DCLICK
= wxpc
.wxEVT_COMMAND_RIGHT_DCLICK
586 wxEVT_COMMAND_SET_FOCUS
= wxpc
.wxEVT_COMMAND_SET_FOCUS
587 wxEVT_COMMAND_KILL_FOCUS
= wxpc
.wxEVT_COMMAND_KILL_FOCUS
588 wxEVT_COMMAND_ENTER
= wxpc
.wxEVT_COMMAND_ENTER
589 wxEVT_COMMAND_TREE_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_DRAG
590 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
591 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
592 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
593 wxEVT_COMMAND_TREE_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_TREE_DELETE_ITEM
594 wxEVT_COMMAND_TREE_GET_INFO
= wxpc
.wxEVT_COMMAND_TREE_GET_INFO
595 wxEVT_COMMAND_TREE_SET_INFO
= wxpc
.wxEVT_COMMAND_TREE_SET_INFO
596 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
597 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
598 wxEVT_COMMAND_TREE_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGED
599 wxEVT_COMMAND_TREE_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGING
600 wxEVT_COMMAND_TREE_KEY_DOWN
= wxpc
.wxEVT_COMMAND_TREE_KEY_DOWN
601 wxEVT_COMMAND_LIST_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_DRAG
602 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
603 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
604 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
605 wxEVT_COMMAND_LIST_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ITEM
606 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
607 wxEVT_COMMAND_LIST_GET_INFO
= wxpc
.wxEVT_COMMAND_LIST_GET_INFO
608 wxEVT_COMMAND_LIST_SET_INFO
= wxpc
.wxEVT_COMMAND_LIST_SET_INFO
609 wxEVT_COMMAND_LIST_ITEM_SELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_SELECTED
610 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
611 wxEVT_COMMAND_LIST_KEY_DOWN
= wxpc
.wxEVT_COMMAND_LIST_KEY_DOWN
612 wxEVT_COMMAND_LIST_INSERT_ITEM
= wxpc
.wxEVT_COMMAND_LIST_INSERT_ITEM
613 wxEVT_COMMAND_LIST_COL_CLICK
= wxpc
.wxEVT_COMMAND_LIST_COL_CLICK
614 wxEVT_COMMAND_TAB_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGED
615 wxEVT_COMMAND_TAB_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGING
616 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
617 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
618 __version__
= wxpc
.__version
__
620 wxPyDefaultPosition
= wxPointPtr(wxpc
.cvar
.wxPyDefaultPosition
)
621 wxPyDefaultSize
= wxSizePtr(wxpc
.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 _StdOnScrollCallback(win
):
674 try: cb
= getattr(win
, "OnScroll")
676 else: EVT_SCROLL(win
, cb
)
680 #----------------------------------------------------------------------
681 #----------------------------------------------------------------------
682 # functions that look and act like the C++ Macros of the same name
686 def EVT_SIZE(win
, func
):
687 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
689 def EVT_MOVE(win
, func
):
690 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
692 def EVT_CLOSE(win
, func
):
693 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
695 def EVT_PAINT(win
, func
):
696 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
698 def EVT_ERASE_BACKGROUND(win
, func
):
699 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
701 def EVT_CHAR(win
, func
):
702 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
704 def EVT_CHAR_HOOK(win
, func
):
705 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
707 def EVT_MENU_HIGHLIGHT(win
, id, func
):
708 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
710 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
711 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
713 def EVT_SET_FOCUS(win
, func
):
714 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
716 def EVT_KILL_FOCUS(win
, func
):
717 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
719 def EVT_ACTIVATE(win
, func
):
720 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
722 def EVT_ACTIVATE_APP(win
, func
):
723 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
725 def EVT_END_SESSION(win
, func
):
726 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
728 def EVT_QUERY_END_SESSION(win
, func
):
729 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
731 def EVT_DROP_FILES(win
, func
):
732 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
734 def EVT_INIT_DIALOG(win
, func
):
735 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
737 def EVT_SYS_COLOUR_CHANGED(win
, func
):
738 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
740 def EVT_SHOW(win
, func
):
741 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
743 def EVT_MAXIMIZE(win
, func
):
744 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
746 def EVT_ICONIZE(win
, func
):
747 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
749 def EVT_NAVIGATION_KEY(win
, func
):
750 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
754 def EVT_LEFT_DOWN(win
, func
):
755 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
757 def EVT_LEFT_UP(win
, func
):
758 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
760 def EVT_MIDDLE_DOWN(win
, func
):
761 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
763 def EVT_MIDDLE_UP(win
, func
):
764 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
766 def EVT_RIGHT_DOWN(win
, func
):
767 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
769 def EVT_RIGHT_UP(win
, func
):
770 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
772 def EVT_MOTION(win
, func
):
773 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
775 def EVT_LEFT_DCLICK(win
, func
):
776 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
778 def EVT_MIDDLE_DCLICK(win
, func
):
779 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
781 def EVT_RIGHT_DCLICK(win
, func
):
782 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
784 def EVT_LEAVE_WINDOW(win
, func
):
785 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
787 def EVT_ENTER_WINDOW(win
, func
):
788 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
792 def EVT_MOUSE_EVENTS(win
, func
):
793 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
794 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
795 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
796 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
797 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
798 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
799 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
800 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
801 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
802 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
803 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
804 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
807 def EVT_COMMAND(win
, id, cmd
, func
):
808 win
.Connect(id, -1, cmd
, func
)
810 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
811 win
.Connect(id1
, id2
, cmd
, func
)
814 def EVT_SCROLL(win
, func
):
815 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
816 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
817 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
818 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
819 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
820 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
821 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
823 def EVT_SCROLL_TOP(win
, func
):
824 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
826 def EVT_SCROLL_BOTTOM(win
, func
):
827 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
829 def EVT_SCROLL_LINEUP(win
, func
):
830 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
832 def EVT_SCROLL_LINEDOWN(win
, func
):
833 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
835 def EVT_SCROLL_PAGEUP(win
, func
):
836 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
838 def EVT_SCROLL_PAGEDOWN(win
, func
):
839 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
841 def EVT_SCROLL_THUMBTRACK(win
, func
):
842 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
846 # Scrolling, with an id
847 def EVT_COMMAND_SCROLL(win
, id, func
):
848 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
849 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
850 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
851 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
852 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
853 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
854 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
856 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
857 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
859 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
860 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
862 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
863 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
865 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
866 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
868 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
869 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
871 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
872 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
874 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
875 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
878 # Convenience commands
879 def EVT_BUTTON(win
, id, func
):
880 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
882 def EVT_CHECKBOX(win
, id, func
):
883 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
885 def EVT_CHOICE(win
, id, func
):
886 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
888 def EVT_LISTBOX(win
, id, func
):
889 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
891 def EVT_LISTBOX_DCLICK(win
, id, func
):
892 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
894 def EVT_TEXT(win
, id, func
):
895 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
897 def EVT_TEXT_ENTER(win
, id, func
):
898 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
900 def EVT_MENU(win
, id, func
):
901 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
903 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
904 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
906 def EVT_SLIDER(win
, id, func
):
907 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
909 def EVT_RADIOBOX(win
, id, func
):
910 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
912 def EVT_RADIOBUTTON(win
, id, func
):
913 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
915 def EVT_VLBOX(win
, id, func
):
916 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
918 def EVT_COMBOBOX(win
, id, func
):
919 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
921 def EVT_TOOL(win
, id, func
):
922 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
924 def EVT_TOOL_RCLICKED(win
, id, func
):
925 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
927 def EVT_TOOL_ENTER(win
, id, func
):
928 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
930 def EVT_CHECKLISTBOX(win
, id, func
):
931 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
934 # Generic command events
936 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
937 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
939 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
940 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
942 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
943 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
945 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
946 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
948 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
949 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
951 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
952 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
954 def EVT_COMMAND_ENTER(win
, id, func
):
955 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
959 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
960 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
962 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
963 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
967 #----------------------------------------------------------------------
968 #----------------------------------------------------------------------
969 # We need to add to the shadow classes a bit to facilitate callbacks via
970 # virtual functions. These classes replace the shadows generated by SWIG.
972 class wxWindow(wxWindowPtr
):
973 def __init__(self
,arg0
,arg1
,*args
) :
974 argl
= map(None,args
)
975 try: argl
[0] = argl
[0].this
977 try: argl
[1] = argl
[1].this
980 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
982 _StdWindowCallbacks(self
)
985 class wxFrame(wxFramePtr
):
986 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
987 argl
= map(None,args
)
988 try: argl
[0] = argl
[0].this
990 try: argl
[1] = argl
[1].this
993 self
.this
= apply(windowsc
.new_wxFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
995 _StdFrameCallbacks(self
)
998 class wxMiniFrame(wxMiniFramePtr
):
999 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1000 argl
= map(None,args
)
1001 try: argl
[0] = argl
[0].this
1003 try: argl
[1] = argl
[1].this
1006 self
.this
= apply(windowsc
.new_wxMiniFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1008 _StdFrameCallbacks(self
)
1011 class wxPanel(wxPanelPtr
):
1012 def __init__(self
,arg0
,arg1
,*args
) :
1013 argl
= map(None,args
)
1014 try: argl
[0] = argl
[0].this
1016 try: argl
[1] = argl
[1].this
1019 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
1021 _StdWindowCallbacks(self
)
1024 class wxDialog(wxDialogPtr
):
1025 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1026 argl
= map(None,args
)
1027 try: argl
[0] = argl
[0].this
1029 try: argl
[1] = argl
[1].this
1032 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
1034 _StdWindowCallbacks(self
)
1035 _checkForCallback(self
, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_OK
)
1036 _checkForCallback(self
, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_APPLY
)
1037 _checkForCallback(self
, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_CANCEL
)
1038 _checkForCallback(self
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
1039 _checkForCallback(self
, "OnCharHook", wxEVT_CHAR_HOOK
)
1042 class wxScrolledWindow(wxScrolledWindowPtr
):
1043 def __init__(self
,arg0
,*args
) :
1044 argl
= map(None,args
)
1045 try: argl
[1] = argl
[1].this
1047 try: argl
[2] = argl
[2].this
1050 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
1052 _StdWindowCallbacks(self
)
1053 _StdOnScrollCallback(self
)
1057 class wxMDIParentFrame(wxMDIParentFramePtr
):
1058 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1059 argl
= map(None,args
)
1060 try: argl
[0] = argl
[0].this
1062 try: argl
[1] = argl
[1].this
1065 self
.this
= apply(mdic
.new_wxMDIParentFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1067 _StdFrameCallbacks(self
)
1070 class wxMDIChildFrame(wxMDIChildFramePtr
):
1071 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1072 argl
= map(None,args
)
1073 try: argl
[0] = argl
[0].this
1075 try: argl
[1] = argl
[1].this
1078 self
.this
= apply(mdic
.new_wxMDIChildFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1080 _StdFrameCallbacks(self
)
1083 class wxMDIClientWindow(wxMDIClientWindowPtr
):
1084 def __init__(self
,arg0
,*args
) :
1085 self
.this
= apply(mdic
.new_wxMDIClientWindow
,(arg0
.this
,)+args
)
1087 _StdWindowCallbacks(self
)
1088 _StdOnScrollCallback(self
)
1092 class wxControl(wxControlPtr
):
1093 def __init__(self
,this
):
1095 _StdWindowCallbacks(self
)
1097 class wxButton(wxButtonPtr
):
1098 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1099 argl
= map(None,args
)
1100 try: argl
[0] = argl
[0].this
1102 try: argl
[1] = argl
[1].this
1105 self
.this
= apply(controlsc
.new_wxButton
,(arg0
.this
,arg1
,arg2
,)+args
)
1107 _StdWindowCallbacks(self
)
1109 class wxBitmapButton(wxBitmapButtonPtr
):
1110 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1111 argl
= map(None,args
)
1112 try: argl
[0] = argl
[0].this
1114 try: argl
[1] = argl
[1].this
1117 self
.this
= apply(controlsc
.new_wxBitmapButton
,(arg0
.this
,arg1
,arg2
.this
,)+args
)
1119 _StdWindowCallbacks(self
)
1121 class wxCheckBox(wxCheckBoxPtr
):
1122 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1123 argl
= map(None,args
)
1124 try: argl
[0] = argl
[0].this
1126 try: argl
[1] = argl
[1].this
1129 self
.this
= apply(controlsc
.new_wxCheckBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1131 _StdWindowCallbacks(self
)
1135 class wxChoice(wxChoicePtr
):
1136 def __init__(self
,arg0
,arg1
,*args
) :
1137 argl
= map(None,args
)
1138 try: argl
[0] = argl
[0].this
1140 try: argl
[1] = argl
[1].this
1143 self
.this
= apply(controlsc
.new_wxChoice
,(arg0
.this
,arg1
,)+args
)
1145 _StdWindowCallbacks(self
)
1147 class wxComboBox(wxComboBoxPtr
):
1148 def __init__(self
,arg0
,arg1
,*args
) :
1149 argl
= map(None,args
)
1150 try: argl
[1] = argl
[1].this
1152 try: argl
[2] = argl
[2].this
1155 self
.this
= apply(controlsc
.new_wxComboBox
,(arg0
.this
,arg1
,)+args
)
1157 _StdWindowCallbacks(self
)
1159 class wxGauge(wxGaugePtr
):
1160 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1161 argl
= map(None,args
)
1162 try: argl
[0] = argl
[0].this
1164 try: argl
[1] = argl
[1].this
1167 self
.this
= apply(controlsc
.new_wxGauge
,(arg0
.this
,arg1
,arg2
,)+args
)
1169 _StdWindowCallbacks(self
)
1171 class wxStaticBox(wxStaticBoxPtr
):
1172 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1173 argl
= map(None,args
)
1174 try: argl
[0] = argl
[0].this
1176 try: argl
[1] = argl
[1].this
1179 self
.this
= apply(controlsc
.new_wxStaticBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1181 _StdWindowCallbacks(self
)
1183 class wxStaticText(wxStaticTextPtr
):
1184 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1185 argl
= map(None,args
)
1186 try: argl
[0] = argl
[0].this
1188 try: argl
[1] = argl
[1].this
1191 self
.this
= apply(controlsc
.new_wxStaticText
,(arg0
.this
,arg1
,arg2
,)+args
)
1193 _StdWindowCallbacks(self
)
1195 class wxListBox(wxListBoxPtr
):
1196 def __init__(self
,arg0
,arg1
,*args
) :
1197 argl
= map(None,args
)
1198 try: argl
[0] = argl
[0].this
1200 try: argl
[1] = argl
[1].this
1203 self
.this
= apply(controlsc
.new_wxListBox
,(arg0
.this
,arg1
,)+args
)
1205 _StdWindowCallbacks(self
)
1207 class wxTextCtrl(wxTextCtrlPtr
):
1208 def __init__(self
,arg0
,arg1
,*args
) :
1209 argl
= map(None,args
)
1210 try: argl
[1] = argl
[1].this
1212 try: argl
[2] = argl
[2].this
1215 self
.this
= apply(controlsc
.new_wxTextCtrl
,(arg0
.this
,arg1
,)+args
)
1217 _StdWindowCallbacks(self
)
1219 class wxScrollBar(wxScrollBarPtr
):
1220 def __init__(self
,arg0
,*args
) :
1221 argl
= map(None,args
)
1222 try: argl
[1] = argl
[1].this
1224 try: argl
[2] = argl
[2].this
1227 self
.this
= apply(controlsc
.new_wxScrollBar
,(arg0
.this
,)+args
)
1229 _StdWindowCallbacks(self
)
1231 class wxSpinButton(wxSpinButtonPtr
):
1232 def __init__(self
,arg0
,*args
) :
1233 argl
= map(None,args
)
1234 try: argl
[1] = argl
[1].this
1236 try: argl
[2] = argl
[2].this
1239 self
.this
= apply(controlsc
.new_wxSpinButton
,(arg0
.this
,)+args
)
1241 _StdWindowCallbacks(self
)
1243 class wxStaticBitmap(wxStaticBitmapPtr
):
1244 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1245 argl
= map(None,args
)
1246 try: argl
[0] = argl
[0].this
1248 try: argl
[1] = argl
[1].this
1251 self
.this
= apply(controlsc
.new_wxStaticBitmap
,(arg0
.this
,arg1
,arg2
.this
,)+args
)
1253 _StdWindowCallbacks(self
)
1255 class wxRadioBox(wxRadioBoxPtr
):
1256 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1257 argl
= map(None,args
)
1258 try: argl
[0] = argl
[0].this
1260 try: argl
[1] = argl
[1].this
1263 self
.this
= apply(controlsc
.new_wxRadioBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1265 _StdWindowCallbacks(self
)
1267 class wxRadioButton(wxRadioButtonPtr
):
1268 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1269 argl
= map(None,args
)
1270 try: argl
[0] = argl
[0].this
1272 try: argl
[1] = argl
[1].this
1275 self
.this
= apply(controlsc
.new_wxRadioButton
,(arg0
.this
,arg1
,arg2
,)+args
)
1277 _StdWindowCallbacks(self
)
1279 class wxSlider(wxSliderPtr
):
1280 def __init__(self
,arg0
,arg1
,arg2
,arg3
,arg4
,*args
) :
1281 argl
= map(None,args
)
1282 try: argl
[0] = argl
[0].this
1284 try: argl
[1] = argl
[1].this
1287 self
.this
= apply(controlsc
.new_wxSlider
,(arg0
.this
,arg1
,arg2
,arg3
,arg4
,)+args
)
1289 _StdWindowCallbacks(self
)
1296 class wxTimer(wxPyTimer
):
1298 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1299 # Notify(self) method.
1301 #----------------------------------------------------------------------
1302 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1303 # expect an object with the SWIG pointer as a 'this' member. This class
1304 # and instance fools the shadow into passing the NULL pointer.
1307 this
= 'NULL' # SWIG converts this to (void*)0
1312 #----------------------------------------------------------------------
1316 wxNamedColor
= wxNamedColour
1318 wxPyDefaultPosition
.Set(-1,-1)
1319 wxPyDefaultSize
.Set(-1,-1)
1321 #----------------------------------------------------------------------
1323 ## class wxPyStdOutWindow(wxFrame):
1324 ## def __init__(self, title = "wxPython: stdout/stderr"):
1325 ## wxFrame.__init__(self, NULL, title)
1326 ## self.title = title
1327 ## self.text = wxTextWindow(self)
1328 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1329 ## self.SetSize(-1,-1,400,200)
1331 ## self.isShown = false
1333 ## def write(self, str): # with this method,
1334 ## if not self.isShown:
1336 ## self.isShown = true
1337 ## self.text.WriteText(str)
1339 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1341 ## self.isShown = false
1344 _defRedirect
= (wxPlatform
== '__WIN32__')
1346 #----------------------------------------------------------------------
1347 # The main application class. Derive from this and implement an OnInit
1348 # method that creates a frame and then calls self.SetTopWindow(frame)
1350 class wxApp(wxPyApp
):
1351 error
= 'wxApp.error'
1353 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1354 wxPyApp
.__init
__(self
)
1355 self
.stdioWin
= None
1356 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1358 self
.RedirectStdio(filename
)
1360 # this initializes wxWindows and then calls our OnInit
1361 _wxStart(self
.OnInit
)
1370 def RedirectStdio(self
, filename
):
1372 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1374 raise self
.error
, 'wxPyStdOutWindow not yet implemented.'
1375 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1377 def RestoreStdio(self
):
1378 sys
.stdout
, sys
.stderr
= self
.saveStdio
1379 if self
.stdioWin
!= None:
1380 self
.stdioWin
.Show(false
)
1381 self
.stdioWin
.Destroy()
1382 self
.stdioWin
= None
1385 #----------------------------------------------------------------------------
1388 # Revision 1.1 1998/08/09 08:25:53 RD