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 wxLB_NEEDED_SB
= wxpc
.wxLB_NEEDED_SB
159 wxLB_ALWAYS_SB
= wxpc
.wxLB_ALWAYS_SB
160 wxLB_SORT
= wxpc
.wxLB_SORT
161 wxLB_SINGLE
= wxpc
.wxLB_SINGLE
162 wxLB_MULTIPLE
= wxpc
.wxLB_MULTIPLE
163 wxLB_EXTENDED
= wxpc
.wxLB_EXTENDED
164 wxLB_OWNERDRAW
= wxpc
.wxLB_OWNERDRAW
165 wxLB_HSCROLL
= wxpc
.wxLB_HSCROLL
166 wxPROCESS_ENTER
= wxpc
.wxPROCESS_ENTER
167 wxPASSWORD
= wxpc
.wxPASSWORD
168 wxTE_PROCESS_ENTER
= wxpc
.wxTE_PROCESS_ENTER
169 wxTE_PASSWORD
= wxpc
.wxTE_PASSWORD
170 wxTE_READONLY
= wxpc
.wxTE_READONLY
171 wxTE_MULTILINE
= wxpc
.wxTE_MULTILINE
172 wxCB_SIMPLE
= wxpc
.wxCB_SIMPLE
173 wxCB_DROPDOWN
= wxpc
.wxCB_DROPDOWN
174 wxCB_SORT
= wxpc
.wxCB_SORT
175 wxCB_READONLY
= wxpc
.wxCB_READONLY
176 wxRA_HORIZONTAL
= wxpc
.wxRA_HORIZONTAL
177 wxRA_VERTICAL
= wxpc
.wxRA_VERTICAL
178 wxRB_GROUP
= wxpc
.wxRB_GROUP
179 wxGA_PROGRESSBAR
= wxpc
.wxGA_PROGRESSBAR
180 wxGA_HORIZONTAL
= wxpc
.wxGA_HORIZONTAL
181 wxGA_VERTICAL
= wxpc
.wxGA_VERTICAL
182 wxSL_HORIZONTAL
= wxpc
.wxSL_HORIZONTAL
183 wxSL_VERTICAL
= wxpc
.wxSL_VERTICAL
184 wxSL_AUTOTICKS
= wxpc
.wxSL_AUTOTICKS
185 wxSL_LABELS
= wxpc
.wxSL_LABELS
186 wxSL_LEFT
= wxpc
.wxSL_LEFT
187 wxSL_TOP
= wxpc
.wxSL_TOP
188 wxSL_RIGHT
= wxpc
.wxSL_RIGHT
189 wxSL_BOTTOM
= wxpc
.wxSL_BOTTOM
190 wxSL_BOTH
= wxpc
.wxSL_BOTH
191 wxSL_SELRANGE
= wxpc
.wxSL_SELRANGE
192 wxSB_HORIZONTAL
= wxpc
.wxSB_HORIZONTAL
193 wxSB_VERTICAL
= wxpc
.wxSB_VERTICAL
194 wxBU_AUTODRAW
= wxpc
.wxBU_AUTODRAW
195 wxBU_NOAUTODRAW
= wxpc
.wxBU_NOAUTODRAW
196 wxTR_HAS_BUTTONS
= wxpc
.wxTR_HAS_BUTTONS
197 wxTR_EDIT_LABELS
= wxpc
.wxTR_EDIT_LABELS
198 wxLC_ICON
= wxpc
.wxLC_ICON
199 wxLC_SMALL_ICON
= wxpc
.wxLC_SMALL_ICON
200 wxLC_LIST
= wxpc
.wxLC_LIST
201 wxLC_REPORT
= wxpc
.wxLC_REPORT
202 wxLC_ALIGN_TOP
= wxpc
.wxLC_ALIGN_TOP
203 wxLC_ALIGN_LEFT
= wxpc
.wxLC_ALIGN_LEFT
204 wxLC_AUTOARRANGE
= wxpc
.wxLC_AUTOARRANGE
205 wxLC_USER_TEXT
= wxpc
.wxLC_USER_TEXT
206 wxLC_EDIT_LABELS
= wxpc
.wxLC_EDIT_LABELS
207 wxLC_NO_HEADER
= wxpc
.wxLC_NO_HEADER
208 wxLC_NO_SORT_HEADER
= wxpc
.wxLC_NO_SORT_HEADER
209 wxLC_SINGLE_SEL
= wxpc
.wxLC_SINGLE_SEL
210 wxLC_SORT_ASCENDING
= wxpc
.wxLC_SORT_ASCENDING
211 wxLC_SORT_DESCENDING
= wxpc
.wxLC_SORT_DESCENDING
212 wxLC_MASK_TYPE
= wxpc
.wxLC_MASK_TYPE
213 wxLC_MASK_ALIGN
= wxpc
.wxLC_MASK_ALIGN
214 wxLC_MASK_SORT
= wxpc
.wxLC_MASK_SORT
215 wxSP_VERTICAL
= wxpc
.wxSP_VERTICAL
216 wxSP_HORIZONTAL
= wxpc
.wxSP_HORIZONTAL
217 wxSP_ARROW_KEYS
= wxpc
.wxSP_ARROW_KEYS
218 wxSP_WRAP
= wxpc
.wxSP_WRAP
219 wxSP_NOBORDER
= wxpc
.wxSP_NOBORDER
220 wxSP_3D
= wxpc
.wxSP_3D
221 wxSP_BORDER
= wxpc
.wxSP_BORDER
222 wxTAB_MULTILINE
= wxpc
.wxTAB_MULTILINE
223 wxTAB_RIGHTJUSTIFY
= wxpc
.wxTAB_RIGHTJUSTIFY
224 wxTAB_FIXEDWIDTH
= wxpc
.wxTAB_FIXEDWIDTH
225 wxTAB_OWNERDRAW
= wxpc
.wxTAB_OWNERDRAW
226 wxFLOOD_SURFACE
= wxpc
.wxFLOOD_SURFACE
227 wxFLOOD_BORDER
= wxpc
.wxFLOOD_BORDER
228 wxODDEVEN_RULE
= wxpc
.wxODDEVEN_RULE
229 wxWINDING_RULE
= wxpc
.wxWINDING_RULE
230 wxTOOL_TOP
= wxpc
.wxTOOL_TOP
231 wxTOOL_BOTTOM
= wxpc
.wxTOOL_BOTTOM
232 wxTOOL_LEFT
= wxpc
.wxTOOL_LEFT
233 wxTOOL_RIGHT
= wxpc
.wxTOOL_RIGHT
235 wxYES_NO
= wxpc
.wxYES_NO
236 wxCANCEL
= wxpc
.wxCANCEL
239 wxICON_EXCLAMATION
= wxpc
.wxICON_EXCLAMATION
240 wxICON_HAND
= wxpc
.wxICON_HAND
241 wxICON_QUESTION
= wxpc
.wxICON_QUESTION
242 wxICON_INFORMATION
= wxpc
.wxICON_INFORMATION
243 wxICON_STOP
= wxpc
.wxICON_STOP
244 wxICON_ASTERISK
= wxpc
.wxICON_ASTERISK
245 wxICON_MASK
= wxpc
.wxICON_MASK
246 wxCENTRE
= wxpc
.wxCENTRE
247 wxCENTER
= wxpc
.wxCENTER
248 wxSIZE_AUTO_WIDTH
= wxpc
.wxSIZE_AUTO_WIDTH
249 wxSIZE_AUTO_HEIGHT
= wxpc
.wxSIZE_AUTO_HEIGHT
250 wxSIZE_AUTO
= wxpc
.wxSIZE_AUTO
251 wxSIZE_USE_EXISTING
= wxpc
.wxSIZE_USE_EXISTING
252 wxSIZE_ALLOW_MINUS_ONE
= wxpc
.wxSIZE_ALLOW_MINUS_ONE
253 wxDF_TEXT
= wxpc
.wxDF_TEXT
254 wxDF_BITMAP
= wxpc
.wxDF_BITMAP
255 wxDF_METAFILE
= wxpc
.wxDF_METAFILE
256 wxDF_DIB
= wxpc
.wxDF_DIB
257 wxDF_OEMTEXT
= wxpc
.wxDF_OEMTEXT
258 wxDF_FILENAME
= wxpc
.wxDF_FILENAME
259 wxPORTRAIT
= wxpc
.wxPORTRAIT
260 wxLANDSCAPE
= wxpc
.wxLANDSCAPE
261 wxID_OPEN
= wxpc
.wxID_OPEN
262 wxID_CLOSE
= wxpc
.wxID_CLOSE
263 wxID_NEW
= wxpc
.wxID_NEW
264 wxID_SAVE
= wxpc
.wxID_SAVE
265 wxID_SAVEAS
= wxpc
.wxID_SAVEAS
266 wxID_REVERT
= wxpc
.wxID_REVERT
267 wxID_EXIT
= wxpc
.wxID_EXIT
268 wxID_UNDO
= wxpc
.wxID_UNDO
269 wxID_REDO
= wxpc
.wxID_REDO
270 wxID_HELP
= wxpc
.wxID_HELP
271 wxID_PRINT
= wxpc
.wxID_PRINT
272 wxID_PRINT_SETUP
= wxpc
.wxID_PRINT_SETUP
273 wxID_PREVIEW
= wxpc
.wxID_PREVIEW
274 wxID_ABOUT
= wxpc
.wxID_ABOUT
275 wxID_HELP_CONTENTS
= wxpc
.wxID_HELP_CONTENTS
276 wxID_HELP_COMMANDS
= wxpc
.wxID_HELP_COMMANDS
277 wxID_HELP_PROCEDURES
= wxpc
.wxID_HELP_PROCEDURES
278 wxID_HELP_CONTEXT
= wxpc
.wxID_HELP_CONTEXT
279 wxID_CUT
= wxpc
.wxID_CUT
280 wxID_COPY
= wxpc
.wxID_COPY
281 wxID_PASTE
= wxpc
.wxID_PASTE
282 wxID_CLEAR
= wxpc
.wxID_CLEAR
283 wxID_FIND
= wxpc
.wxID_FIND
284 wxID_FILE1
= wxpc
.wxID_FILE1
285 wxID_FILE2
= wxpc
.wxID_FILE2
286 wxID_FILE3
= wxpc
.wxID_FILE3
287 wxID_FILE4
= wxpc
.wxID_FILE4
288 wxID_FILE5
= wxpc
.wxID_FILE5
289 wxID_FILE6
= wxpc
.wxID_FILE6
290 wxID_FILE7
= wxpc
.wxID_FILE7
291 wxID_FILE8
= wxpc
.wxID_FILE8
292 wxID_FILE9
= wxpc
.wxID_FILE9
293 wxID_OK
= wxpc
.wxID_OK
294 wxID_CANCEL
= wxpc
.wxID_CANCEL
295 wxID_APPLY
= wxpc
.wxID_APPLY
296 wxID_YES
= wxpc
.wxID_YES
297 wxID_NO
= wxpc
.wxID_NO
298 wxBITMAP_TYPE_BMP
= wxpc
.wxBITMAP_TYPE_BMP
299 wxBITMAP_TYPE_BMP_RESOURCE
= wxpc
.wxBITMAP_TYPE_BMP_RESOURCE
300 wxBITMAP_TYPE_ICO
= wxpc
.wxBITMAP_TYPE_ICO
301 wxBITMAP_TYPE_ICO_RESOURCE
= wxpc
.wxBITMAP_TYPE_ICO_RESOURCE
302 wxBITMAP_TYPE_CUR
= wxpc
.wxBITMAP_TYPE_CUR
303 wxBITMAP_TYPE_CUR_RESOURCE
= wxpc
.wxBITMAP_TYPE_CUR_RESOURCE
304 wxBITMAP_TYPE_XBM
= wxpc
.wxBITMAP_TYPE_XBM
305 wxBITMAP_TYPE_XBM_DATA
= wxpc
.wxBITMAP_TYPE_XBM_DATA
306 wxBITMAP_TYPE_XPM
= wxpc
.wxBITMAP_TYPE_XPM
307 wxBITMAP_TYPE_XPM_DATA
= wxpc
.wxBITMAP_TYPE_XPM_DATA
308 wxBITMAP_TYPE_TIF
= wxpc
.wxBITMAP_TYPE_TIF
309 wxBITMAP_TYPE_TIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_TIF_RESOURCE
310 wxBITMAP_TYPE_GIF
= wxpc
.wxBITMAP_TYPE_GIF
311 wxBITMAP_TYPE_GIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_GIF_RESOURCE
312 wxBITMAP_TYPE_PNG
= wxpc
.wxBITMAP_TYPE_PNG
313 wxBITMAP_TYPE_PNG_RESOURCE
= wxpc
.wxBITMAP_TYPE_PNG_RESOURCE
314 wxBITMAP_TYPE_ANY
= wxpc
.wxBITMAP_TYPE_ANY
315 wxBITMAP_TYPE_RESOURCE
= wxpc
.wxBITMAP_TYPE_RESOURCE
318 wxHIDE_READONLY
= wxpc
.wxHIDE_READONLY
319 wxOVERWRITE_PROMPT
= wxpc
.wxOVERWRITE_PROMPT
320 wxACCEL_ALT
= wxpc
.wxACCEL_ALT
321 wxACCEL_CTRL
= wxpc
.wxACCEL_CTRL
322 wxACCEL_SHIFT
= wxpc
.wxACCEL_SHIFT
323 ERR_PARAM
= wxpc
.ERR_PARAM
324 ERR_NODATA
= wxpc
.ERR_NODATA
325 ERR_CANCEL
= wxpc
.ERR_CANCEL
326 ERR_SUCCESS
= wxpc
.ERR_SUCCESS
327 wxDEFAULT
= wxpc
.wxDEFAULT
328 wxDECORATIVE
= wxpc
.wxDECORATIVE
329 wxROMAN
= wxpc
.wxROMAN
330 wxSCRIPT
= wxpc
.wxSCRIPT
331 wxSWISS
= wxpc
.wxSWISS
332 wxMODERN
= wxpc
.wxMODERN
333 wxTELETYPE
= wxpc
.wxTELETYPE
334 wxVARIABLE
= wxpc
.wxVARIABLE
335 wxFIXED
= wxpc
.wxFIXED
336 wxNORMAL
= wxpc
.wxNORMAL
337 wxLIGHT
= wxpc
.wxLIGHT
339 wxITALIC
= wxpc
.wxITALIC
340 wxSLANT
= wxpc
.wxSLANT
341 wxSOLID
= wxpc
.wxSOLID
343 wxLONG_DASH
= wxpc
.wxLONG_DASH
344 wxSHORT_DASH
= wxpc
.wxSHORT_DASH
345 wxDOT_DASH
= wxpc
.wxDOT_DASH
346 wxUSER_DASH
= wxpc
.wxUSER_DASH
347 wxTRANSPARENT
= wxpc
.wxTRANSPARENT
348 wxSTIPPLE
= wxpc
.wxSTIPPLE
349 wxBDIAGONAL_HATCH
= wxpc
.wxBDIAGONAL_HATCH
350 wxCROSSDIAG_HATCH
= wxpc
.wxCROSSDIAG_HATCH
351 wxFDIAGONAL_HATCH
= wxpc
.wxFDIAGONAL_HATCH
352 wxCROSS_HATCH
= wxpc
.wxCROSS_HATCH
353 wxHORIZONTAL_HATCH
= wxpc
.wxHORIZONTAL_HATCH
354 wxVERTICAL_HATCH
= wxpc
.wxVERTICAL_HATCH
355 wxJOIN_BEVEL
= wxpc
.wxJOIN_BEVEL
356 wxJOIN_MITER
= wxpc
.wxJOIN_MITER
357 wxJOIN_ROUND
= wxpc
.wxJOIN_ROUND
358 wxCAP_ROUND
= wxpc
.wxCAP_ROUND
359 wxCAP_PROJECTING
= wxpc
.wxCAP_PROJECTING
360 wxCAP_BUTT
= wxpc
.wxCAP_BUTT
361 wxCLEAR
= wxpc
.wxCLEAR
363 wxINVERT
= wxpc
.wxINVERT
364 wxOR_REVERSE
= wxpc
.wxOR_REVERSE
365 wxAND_REVERSE
= wxpc
.wxAND_REVERSE
368 wxAND_INVERT
= wxpc
.wxAND_INVERT
369 wxNO_OP
= wxpc
.wxNO_OP
371 wxEQUIV
= wxpc
.wxEQUIV
372 wxSRC_INVERT
= wxpc
.wxSRC_INVERT
373 wxOR_INVERT
= wxpc
.wxOR_INVERT
377 wxSRC_OR
= wxpc
.wxSRC_OR
378 wxSRC_AND
= wxpc
.wxSRC_AND
379 WXK_BACK
= wxpc
.WXK_BACK
380 WXK_TAB
= wxpc
.WXK_TAB
381 WXK_RETURN
= wxpc
.WXK_RETURN
382 WXK_ESCAPE
= wxpc
.WXK_ESCAPE
383 WXK_SPACE
= wxpc
.WXK_SPACE
384 WXK_DELETE
= wxpc
.WXK_DELETE
385 WXK_START
= wxpc
.WXK_START
386 WXK_LBUTTON
= wxpc
.WXK_LBUTTON
387 WXK_RBUTTON
= wxpc
.WXK_RBUTTON
388 WXK_CANCEL
= wxpc
.WXK_CANCEL
389 WXK_MBUTTON
= wxpc
.WXK_MBUTTON
390 WXK_CLEAR
= wxpc
.WXK_CLEAR
391 WXK_SHIFT
= wxpc
.WXK_SHIFT
392 WXK_CONTROL
= wxpc
.WXK_CONTROL
393 WXK_MENU
= wxpc
.WXK_MENU
394 WXK_PAUSE
= wxpc
.WXK_PAUSE
395 WXK_CAPITAL
= wxpc
.WXK_CAPITAL
396 WXK_PRIOR
= wxpc
.WXK_PRIOR
397 WXK_NEXT
= wxpc
.WXK_NEXT
398 WXK_END
= wxpc
.WXK_END
399 WXK_HOME
= wxpc
.WXK_HOME
400 WXK_LEFT
= wxpc
.WXK_LEFT
402 WXK_RIGHT
= wxpc
.WXK_RIGHT
403 WXK_DOWN
= wxpc
.WXK_DOWN
404 WXK_SELECT
= wxpc
.WXK_SELECT
405 WXK_PRINT
= wxpc
.WXK_PRINT
406 WXK_EXECUTE
= wxpc
.WXK_EXECUTE
407 WXK_SNAPSHOT
= wxpc
.WXK_SNAPSHOT
408 WXK_INSERT
= wxpc
.WXK_INSERT
409 WXK_HELP
= wxpc
.WXK_HELP
410 WXK_NUMPAD0
= wxpc
.WXK_NUMPAD0
411 WXK_NUMPAD1
= wxpc
.WXK_NUMPAD1
412 WXK_NUMPAD2
= wxpc
.WXK_NUMPAD2
413 WXK_NUMPAD3
= wxpc
.WXK_NUMPAD3
414 WXK_NUMPAD4
= wxpc
.WXK_NUMPAD4
415 WXK_NUMPAD5
= wxpc
.WXK_NUMPAD5
416 WXK_NUMPAD6
= wxpc
.WXK_NUMPAD6
417 WXK_NUMPAD7
= wxpc
.WXK_NUMPAD7
418 WXK_NUMPAD8
= wxpc
.WXK_NUMPAD8
419 WXK_NUMPAD9
= wxpc
.WXK_NUMPAD9
420 WXK_MULTIPLY
= wxpc
.WXK_MULTIPLY
421 WXK_ADD
= wxpc
.WXK_ADD
422 WXK_SEPARATOR
= wxpc
.WXK_SEPARATOR
423 WXK_SUBTRACT
= wxpc
.WXK_SUBTRACT
424 WXK_DECIMAL
= wxpc
.WXK_DECIMAL
425 WXK_DIVIDE
= wxpc
.WXK_DIVIDE
435 WXK_F10
= wxpc
.WXK_F10
436 WXK_F11
= wxpc
.WXK_F11
437 WXK_F12
= wxpc
.WXK_F12
438 WXK_F13
= wxpc
.WXK_F13
439 WXK_F14
= wxpc
.WXK_F14
440 WXK_F15
= wxpc
.WXK_F15
441 WXK_F16
= wxpc
.WXK_F16
442 WXK_F17
= wxpc
.WXK_F17
443 WXK_F18
= wxpc
.WXK_F18
444 WXK_F19
= wxpc
.WXK_F19
445 WXK_F20
= wxpc
.WXK_F20
446 WXK_F21
= wxpc
.WXK_F21
447 WXK_F22
= wxpc
.WXK_F22
448 WXK_F23
= wxpc
.WXK_F23
449 WXK_F24
= wxpc
.WXK_F24
450 WXK_NUMLOCK
= wxpc
.WXK_NUMLOCK
451 WXK_SCROLL
= wxpc
.WXK_SCROLL
452 WXK_PAGEUP
= wxpc
.WXK_PAGEUP
453 WXK_PAGEDOWN
= wxpc
.WXK_PAGEDOWN
454 wxCURSOR_ARROW
= wxpc
.wxCURSOR_ARROW
455 wxCURSOR_BULLSEYE
= wxpc
.wxCURSOR_BULLSEYE
456 wxCURSOR_CHAR
= wxpc
.wxCURSOR_CHAR
457 wxCURSOR_CROSS
= wxpc
.wxCURSOR_CROSS
458 wxCURSOR_HAND
= wxpc
.wxCURSOR_HAND
459 wxCURSOR_IBEAM
= wxpc
.wxCURSOR_IBEAM
460 wxCURSOR_LEFT_BUTTON
= wxpc
.wxCURSOR_LEFT_BUTTON
461 wxCURSOR_MAGNIFIER
= wxpc
.wxCURSOR_MAGNIFIER
462 wxCURSOR_MIDDLE_BUTTON
= wxpc
.wxCURSOR_MIDDLE_BUTTON
463 wxCURSOR_NO_ENTRY
= wxpc
.wxCURSOR_NO_ENTRY
464 wxCURSOR_PAINT_BRUSH
= wxpc
.wxCURSOR_PAINT_BRUSH
465 wxCURSOR_PENCIL
= wxpc
.wxCURSOR_PENCIL
466 wxCURSOR_POINT_LEFT
= wxpc
.wxCURSOR_POINT_LEFT
467 wxCURSOR_POINT_RIGHT
= wxpc
.wxCURSOR_POINT_RIGHT
468 wxCURSOR_QUESTION_ARROW
= wxpc
.wxCURSOR_QUESTION_ARROW
469 wxCURSOR_RIGHT_BUTTON
= wxpc
.wxCURSOR_RIGHT_BUTTON
470 wxCURSOR_SIZENESW
= wxpc
.wxCURSOR_SIZENESW
471 wxCURSOR_SIZENS
= wxpc
.wxCURSOR_SIZENS
472 wxCURSOR_SIZENWSE
= wxpc
.wxCURSOR_SIZENWSE
473 wxCURSOR_SIZEWE
= wxpc
.wxCURSOR_SIZEWE
474 wxCURSOR_SIZING
= wxpc
.wxCURSOR_SIZING
475 wxCURSOR_SPRAYCAN
= wxpc
.wxCURSOR_SPRAYCAN
476 wxCURSOR_WAIT
= wxpc
.wxCURSOR_WAIT
477 wxCURSOR_WATCH
= wxpc
.wxCURSOR_WATCH
478 wxCURSOR_BLANK
= wxpc
.wxCURSOR_BLANK
483 wxEVT_NULL
= wxpc
.wxEVT_NULL
484 wxEVT_FIRST
= wxpc
.wxEVT_FIRST
485 wxEVT_COMMAND_BUTTON_CLICKED
= wxpc
.wxEVT_COMMAND_BUTTON_CLICKED
486 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxpc
.wxEVT_COMMAND_CHECKBOX_CLICKED
487 wxEVT_COMMAND_CHOICE_SELECTED
= wxpc
.wxEVT_COMMAND_CHOICE_SELECTED
488 wxEVT_COMMAND_LISTBOX_SELECTED
= wxpc
.wxEVT_COMMAND_LISTBOX_SELECTED
489 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxpc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
490 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxpc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
491 wxEVT_COMMAND_TEXT_UPDATED
= wxpc
.wxEVT_COMMAND_TEXT_UPDATED
492 wxEVT_COMMAND_TEXT_ENTER
= wxpc
.wxEVT_COMMAND_TEXT_ENTER
493 wxEVT_COMMAND_MENU_SELECTED
= wxpc
.wxEVT_COMMAND_MENU_SELECTED
494 wxEVT_COMMAND_SLIDER_UPDATED
= wxpc
.wxEVT_COMMAND_SLIDER_UPDATED
495 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBOX_SELECTED
496 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
497 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxpc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
498 wxEVT_COMMAND_VLBOX_SELECTED
= wxpc
.wxEVT_COMMAND_VLBOX_SELECTED
499 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_COMBOBOX_SELECTED
500 wxEVT_COMMAND_TOOL_CLICKED
= wxpc
.wxEVT_COMMAND_TOOL_CLICKED
501 wxEVT_COMMAND_TOOL_RCLICKED
= wxpc
.wxEVT_COMMAND_TOOL_RCLICKED
502 wxEVT_COMMAND_TOOL_ENTER
= wxpc
.wxEVT_COMMAND_TOOL_ENTER
503 wxEVT_SET_FOCUS
= wxpc
.wxEVT_SET_FOCUS
504 wxEVT_KILL_FOCUS
= wxpc
.wxEVT_KILL_FOCUS
505 wxEVT_LEFT_DOWN
= wxpc
.wxEVT_LEFT_DOWN
506 wxEVT_LEFT_UP
= wxpc
.wxEVT_LEFT_UP
507 wxEVT_MIDDLE_DOWN
= wxpc
.wxEVT_MIDDLE_DOWN
508 wxEVT_MIDDLE_UP
= wxpc
.wxEVT_MIDDLE_UP
509 wxEVT_RIGHT_DOWN
= wxpc
.wxEVT_RIGHT_DOWN
510 wxEVT_RIGHT_UP
= wxpc
.wxEVT_RIGHT_UP
511 wxEVT_MOTION
= wxpc
.wxEVT_MOTION
512 wxEVT_ENTER_WINDOW
= wxpc
.wxEVT_ENTER_WINDOW
513 wxEVT_LEAVE_WINDOW
= wxpc
.wxEVT_LEAVE_WINDOW
514 wxEVT_LEFT_DCLICK
= wxpc
.wxEVT_LEFT_DCLICK
515 wxEVT_MIDDLE_DCLICK
= wxpc
.wxEVT_MIDDLE_DCLICK
516 wxEVT_RIGHT_DCLICK
= wxpc
.wxEVT_RIGHT_DCLICK
517 wxEVT_NC_LEFT_DOWN
= wxpc
.wxEVT_NC_LEFT_DOWN
518 wxEVT_NC_LEFT_UP
= wxpc
.wxEVT_NC_LEFT_UP
519 wxEVT_NC_MIDDLE_DOWN
= wxpc
.wxEVT_NC_MIDDLE_DOWN
520 wxEVT_NC_MIDDLE_UP
= wxpc
.wxEVT_NC_MIDDLE_UP
521 wxEVT_NC_RIGHT_DOWN
= wxpc
.wxEVT_NC_RIGHT_DOWN
522 wxEVT_NC_RIGHT_UP
= wxpc
.wxEVT_NC_RIGHT_UP
523 wxEVT_NC_MOTION
= wxpc
.wxEVT_NC_MOTION
524 wxEVT_NC_ENTER_WINDOW
= wxpc
.wxEVT_NC_ENTER_WINDOW
525 wxEVT_NC_LEAVE_WINDOW
= wxpc
.wxEVT_NC_LEAVE_WINDOW
526 wxEVT_NC_LEFT_DCLICK
= wxpc
.wxEVT_NC_LEFT_DCLICK
527 wxEVT_NC_MIDDLE_DCLICK
= wxpc
.wxEVT_NC_MIDDLE_DCLICK
528 wxEVT_NC_RIGHT_DCLICK
= wxpc
.wxEVT_NC_RIGHT_DCLICK
529 wxEVT_CHAR
= wxpc
.wxEVT_CHAR
530 wxEVT_SCROLL_TOP
= wxpc
.wxEVT_SCROLL_TOP
531 wxEVT_SCROLL_BOTTOM
= wxpc
.wxEVT_SCROLL_BOTTOM
532 wxEVT_SCROLL_LINEUP
= wxpc
.wxEVT_SCROLL_LINEUP
533 wxEVT_SCROLL_LINEDOWN
= wxpc
.wxEVT_SCROLL_LINEDOWN
534 wxEVT_SCROLL_PAGEUP
= wxpc
.wxEVT_SCROLL_PAGEUP
535 wxEVT_SCROLL_PAGEDOWN
= wxpc
.wxEVT_SCROLL_PAGEDOWN
536 wxEVT_SCROLL_THUMBTRACK
= wxpc
.wxEVT_SCROLL_THUMBTRACK
537 wxEVT_SIZE
= wxpc
.wxEVT_SIZE
538 wxEVT_MOVE
= wxpc
.wxEVT_MOVE
539 wxEVT_CLOSE_WINDOW
= wxpc
.wxEVT_CLOSE_WINDOW
540 wxEVT_END_SESSION
= wxpc
.wxEVT_END_SESSION
541 wxEVT_QUERY_END_SESSION
= wxpc
.wxEVT_QUERY_END_SESSION
542 wxEVT_ACTIVATE_APP
= wxpc
.wxEVT_ACTIVATE_APP
543 wxEVT_POWER
= wxpc
.wxEVT_POWER
544 wxEVT_CHAR_HOOK
= wxpc
.wxEVT_CHAR_HOOK
545 wxEVT_KEY_UP
= wxpc
.wxEVT_KEY_UP
546 wxEVT_ACTIVATE
= wxpc
.wxEVT_ACTIVATE
547 wxEVT_CREATE
= wxpc
.wxEVT_CREATE
548 wxEVT_DESTROY
= wxpc
.wxEVT_DESTROY
549 wxEVT_SHOW
= wxpc
.wxEVT_SHOW
550 wxEVT_ICONIZE
= wxpc
.wxEVT_ICONIZE
551 wxEVT_MAXIMIZE
= wxpc
.wxEVT_MAXIMIZE
552 wxEVT_MOUSE_CAPTURE_CHANGED
= wxpc
.wxEVT_MOUSE_CAPTURE_CHANGED
553 wxEVT_PAINT
= wxpc
.wxEVT_PAINT
554 wxEVT_ERASE_BACKGROUND
= wxpc
.wxEVT_ERASE_BACKGROUND
555 wxEVT_NC_PAINT
= wxpc
.wxEVT_NC_PAINT
556 wxEVT_PAINT_ICON
= wxpc
.wxEVT_PAINT_ICON
557 wxEVT_MENU_CHAR
= wxpc
.wxEVT_MENU_CHAR
558 wxEVT_MENU_INIT
= wxpc
.wxEVT_MENU_INIT
559 wxEVT_MENU_HIGHLIGHT
= wxpc
.wxEVT_MENU_HIGHLIGHT
560 wxEVT_POPUP_MENU_INIT
= wxpc
.wxEVT_POPUP_MENU_INIT
561 wxEVT_CONTEXT_MENU
= wxpc
.wxEVT_CONTEXT_MENU
562 wxEVT_SYS_COLOUR_CHANGED
= wxpc
.wxEVT_SYS_COLOUR_CHANGED
563 wxEVT_SETTING_CHANGED
= wxpc
.wxEVT_SETTING_CHANGED
564 wxEVT_QUERY_NEW_PALETTE
= wxpc
.wxEVT_QUERY_NEW_PALETTE
565 wxEVT_PALETTE_CHANGED
= wxpc
.wxEVT_PALETTE_CHANGED
566 wxEVT_JOY_BUTTON_DOWN
= wxpc
.wxEVT_JOY_BUTTON_DOWN
567 wxEVT_JOY_BUTTON_UP
= wxpc
.wxEVT_JOY_BUTTON_UP
568 wxEVT_JOY_MOVE
= wxpc
.wxEVT_JOY_MOVE
569 wxEVT_JOY_ZMOVE
= wxpc
.wxEVT_JOY_ZMOVE
570 wxEVT_DROP_FILES
= wxpc
.wxEVT_DROP_FILES
571 wxEVT_DRAW_ITEM
= wxpc
.wxEVT_DRAW_ITEM
572 wxEVT_MEASURE_ITEM
= wxpc
.wxEVT_MEASURE_ITEM
573 wxEVT_COMPARE_ITEM
= wxpc
.wxEVT_COMPARE_ITEM
574 wxEVT_INIT_DIALOG
= wxpc
.wxEVT_INIT_DIALOG
575 wxEVT_IDLE
= wxpc
.wxEVT_IDLE
576 wxEVT_UPDATE_UI
= wxpc
.wxEVT_UPDATE_UI
577 wxEVT_COMMAND_LEFT_CLICK
= wxpc
.wxEVT_COMMAND_LEFT_CLICK
578 wxEVT_COMMAND_LEFT_DCLICK
= wxpc
.wxEVT_COMMAND_LEFT_DCLICK
579 wxEVT_COMMAND_RIGHT_CLICK
= wxpc
.wxEVT_COMMAND_RIGHT_CLICK
580 wxEVT_COMMAND_RIGHT_DCLICK
= wxpc
.wxEVT_COMMAND_RIGHT_DCLICK
581 wxEVT_COMMAND_SET_FOCUS
= wxpc
.wxEVT_COMMAND_SET_FOCUS
582 wxEVT_COMMAND_KILL_FOCUS
= wxpc
.wxEVT_COMMAND_KILL_FOCUS
583 wxEVT_COMMAND_ENTER
= wxpc
.wxEVT_COMMAND_ENTER
584 wxEVT_COMMAND_TREE_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_DRAG
585 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
586 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
587 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
588 wxEVT_COMMAND_TREE_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_TREE_DELETE_ITEM
589 wxEVT_COMMAND_TREE_GET_INFO
= wxpc
.wxEVT_COMMAND_TREE_GET_INFO
590 wxEVT_COMMAND_TREE_SET_INFO
= wxpc
.wxEVT_COMMAND_TREE_SET_INFO
591 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
592 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
593 wxEVT_COMMAND_TREE_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGED
594 wxEVT_COMMAND_TREE_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGING
595 wxEVT_COMMAND_TREE_KEY_DOWN
= wxpc
.wxEVT_COMMAND_TREE_KEY_DOWN
596 wxEVT_COMMAND_LIST_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_DRAG
597 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
598 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
599 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
600 wxEVT_COMMAND_LIST_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ITEM
601 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
602 wxEVT_COMMAND_LIST_GET_INFO
= wxpc
.wxEVT_COMMAND_LIST_GET_INFO
603 wxEVT_COMMAND_LIST_SET_INFO
= wxpc
.wxEVT_COMMAND_LIST_SET_INFO
604 wxEVT_COMMAND_LIST_ITEM_SELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_SELECTED
605 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
606 wxEVT_COMMAND_LIST_KEY_DOWN
= wxpc
.wxEVT_COMMAND_LIST_KEY_DOWN
607 wxEVT_COMMAND_LIST_INSERT_ITEM
= wxpc
.wxEVT_COMMAND_LIST_INSERT_ITEM
608 wxEVT_COMMAND_LIST_COL_CLICK
= wxpc
.wxEVT_COMMAND_LIST_COL_CLICK
609 wxEVT_COMMAND_TAB_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGED
610 wxEVT_COMMAND_TAB_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGING
611 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
612 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
613 __version__
= wxpc
.__version
__
615 wxPyDefaultPosition
= wxPointPtr(wxpc
.cvar
.wxPyDefaultPosition
)
616 wxPyDefaultSize
= wxSizePtr(wxpc
.cvar
.wxPyDefaultSize
)
619 #-------------- USER INCLUDE -----------------------
621 #----------------------------------------------------------------------------
623 # Purpose: This file is appended to the shadow class file generated
624 # by SWIG. We add some unSWIGable things here.
630 # Copyright: (c) 1998 by Total Control Software
631 # Licence: wxWindows license
632 #----------------------------------------------------------------------------
636 #----------------------------------------------------------------------
637 # This gives this module's dictionary to the C++ extension code...
639 _wxSetDictionary(vars())
642 #----------------------------------------------------------------------
643 #----------------------------------------------------------------------
644 # Helper function to link python methods to wxWindows virtual
647 def _checkForCallback(obj
, name
, event
, theID
=-1):
648 try: cb
= getattr(obj
, name
)
650 else: obj
.Connect(theID
, -1, event
, cb
)
652 def _StdWindowCallbacks(win
):
653 _checkForCallback(win
, "OnChar", wxEVT_CHAR
)
654 _checkForCallback(win
, "OnSize", wxEVT_SIZE
)
655 _checkForCallback(win
, "OnEraseBackground", wxEVT_ERASE_BACKGROUND
)
656 _checkForCallback(win
, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED
)
657 _checkForCallback(win
, "OnInitDialog", wxEVT_INIT_DIALOG
)
658 _checkForCallback(win
, "OnIdle", wxEVT_IDLE
)
659 _checkForCallback(win
, "OnPaint", wxEVT_PAINT
)
661 def _StdFrameCallbacks(win
):
662 _StdWindowCallbacks(win
)
663 _checkForCallback(win
, "OnActivate", wxEVT_ACTIVATE
)
664 _checkForCallback(win
, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT
)
665 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
668 def _StdOnScrollCallback(win
):
669 try: cb
= getattr(win
, "OnScroll")
671 else: EVT_SCROLL(win
, cb
)
675 #----------------------------------------------------------------------
676 #----------------------------------------------------------------------
677 # functions that look and act like the C++ Macros of the same name
681 def EVT_SIZE(win
, func
):
682 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
684 def EVT_MOVE(win
, func
):
685 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
687 def EVT_CLOSE(win
, func
):
688 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
690 def EVT_PAINT(win
, func
):
691 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
693 def EVT_ERASE_BACKGROUND(win
, func
):
694 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
696 def EVT_CHAR(win
, func
):
697 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
699 def EVT_CHAR_HOOK(win
, func
):
700 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
702 def EVT_MENU_HIGHLIGHT(win
, id, func
):
703 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
705 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
706 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
708 def EVT_SET_FOCUS(win
, func
):
709 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
711 def EVT_KILL_FOCUS(win
, func
):
712 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
714 def EVT_ACTIVATE(win
, func
):
715 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
717 def EVT_ACTIVATE_APP(win
, func
):
718 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
720 def EVT_END_SESSION(win
, func
):
721 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
723 def EVT_QUERY_END_SESSION(win
, func
):
724 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
726 def EVT_DROP_FILES(win
, func
):
727 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
729 def EVT_INIT_DIALOG(win
, func
):
730 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
732 def EVT_SYS_COLOUR_CHANGED(win
, func
):
733 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
735 def EVT_SHOW(win
, func
):
736 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
738 def EVT_MAXIMIZE(win
, func
):
739 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
741 def EVT_ICONIZE(win
, func
):
742 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
744 def EVT_NAVIGATION_KEY(win
, func
):
745 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
749 def EVT_LEFT_DOWN(win
, func
):
750 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
752 def EVT_LEFT_UP(win
, func
):
753 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
755 def EVT_MIDDLE_DOWN(win
, func
):
756 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
758 def EVT_MIDDLE_UP(win
, func
):
759 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
761 def EVT_RIGHT_DOWN(win
, func
):
762 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
764 def EVT_RIGHT_UP(win
, func
):
765 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
767 def EVT_MOTION(win
, func
):
768 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
770 def EVT_LEFT_DCLICK(win
, func
):
771 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
773 def EVT_MIDDLE_DCLICK(win
, func
):
774 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
776 def EVT_RIGHT_DCLICK(win
, func
):
777 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
779 def EVT_LEAVE_WINDOW(win
, func
):
780 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
782 def EVT_ENTER_WINDOW(win
, func
):
783 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
787 def EVT_MOUSE_EVENTS(win
, func
):
788 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
789 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
790 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
791 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
792 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
793 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
794 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
795 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
796 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
797 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
798 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
799 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
802 def EVT_COMMAND(win
, id, cmd
, func
):
803 win
.Connect(id, -1, cmd
, func
)
805 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
806 win
.Connect(id1
, id2
, cmd
, func
)
809 def EVT_SCROLL(win
, func
):
810 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
811 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
812 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
813 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
814 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
815 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
816 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
818 def EVT_SCROLL_TOP(win
, func
):
819 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
821 def EVT_SCROLL_BOTTOM(win
, func
):
822 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
824 def EVT_SCROLL_LINEUP(win
, func
):
825 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
827 def EVT_SCROLL_LINEDOWN(win
, func
):
828 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
830 def EVT_SCROLL_PAGEUP(win
, func
):
831 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
833 def EVT_SCROLL_PAGEDOWN(win
, func
):
834 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
836 def EVT_SCROLL_THUMBTRACK(win
, func
):
837 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
841 # Scrolling, with an id
842 def EVT_COMMAND_SCROLL(win
, id, func
):
843 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
844 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
845 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
846 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
847 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
848 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
849 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
851 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
852 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
854 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
855 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
857 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
858 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
860 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
861 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
863 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
864 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
866 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
867 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
869 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
870 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
873 # Convenience commands
874 def EVT_BUTTON(win
, id, func
):
875 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
877 def EVT_CHECKBOX(win
, id, func
):
878 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
880 def EVT_CHOICE(win
, id, func
):
881 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
883 def EVT_LISTBOX(win
, id, func
):
884 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
886 def EVT_LISTBOX_DCLICK(win
, id, func
):
887 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
889 def EVT_TEXT(win
, id, func
):
890 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
892 def EVT_TEXT_ENTER(win
, id, func
):
893 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
895 def EVT_MENU(win
, id, func
):
896 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
898 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
899 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
901 def EVT_SLIDER(win
, id, func
):
902 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
904 def EVT_RADIOBOX(win
, id, func
):
905 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
907 def EVT_RADIOBUTTON(win
, id, func
):
908 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
910 def EVT_VLBOX(win
, id, func
):
911 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
913 def EVT_COMBOBOX(win
, id, func
):
914 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
916 def EVT_TOOL(win
, id, func
):
917 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
919 def EVT_TOOL_RCLICKED(win
, id, func
):
920 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
922 def EVT_TOOL_ENTER(win
, id, func
):
923 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
925 def EVT_CHECKLISTBOX(win
, id, func
):
926 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
929 # Generic command events
931 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
932 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
934 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
935 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
937 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
938 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
940 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
941 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
943 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
944 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
946 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
947 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
949 def EVT_COMMAND_ENTER(win
, id, func
):
950 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
954 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
955 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
957 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
958 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
962 #----------------------------------------------------------------------
963 #----------------------------------------------------------------------
964 # We need to add to the shadow classes a bit to facilitate callbacks via
965 # virtual functions. These classes replace the shadows generated by SWIG.
967 class wxWindow(wxWindowPtr
):
968 def __init__(self
,arg0
,arg1
,*args
) :
969 argl
= map(None,args
)
970 try: argl
[0] = argl
[0].this
972 try: argl
[1] = argl
[1].this
975 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
977 _StdWindowCallbacks(self
)
980 class wxFrame(wxFramePtr
):
981 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
982 argl
= map(None,args
)
983 try: argl
[0] = argl
[0].this
985 try: argl
[1] = argl
[1].this
988 self
.this
= apply(windowsc
.new_wxFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
990 _StdFrameCallbacks(self
)
993 class wxMiniFrame(wxMiniFramePtr
):
994 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
995 argl
= map(None,args
)
996 try: argl
[0] = argl
[0].this
998 try: argl
[1] = argl
[1].this
1001 self
.this
= apply(windowsc
.new_wxMiniFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1003 _StdFrameCallbacks(self
)
1006 class wxPanel(wxPanelPtr
):
1007 def __init__(self
,arg0
,arg1
,*args
) :
1008 argl
= map(None,args
)
1009 try: argl
[0] = argl
[0].this
1011 try: argl
[1] = argl
[1].this
1014 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
1016 _StdWindowCallbacks(self
)
1019 class wxDialog(wxDialogPtr
):
1020 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1021 argl
= map(None,args
)
1022 try: argl
[0] = argl
[0].this
1024 try: argl
[1] = argl
[1].this
1027 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
1029 _StdWindowCallbacks(self
)
1030 _checkForCallback(self
, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_OK
)
1031 _checkForCallback(self
, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_APPLY
)
1032 _checkForCallback(self
, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_CANCEL
)
1033 _checkForCallback(self
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
1034 _checkForCallback(self
, "OnCharHook", wxEVT_CHAR_HOOK
)
1037 class wxScrolledWindow(wxScrolledWindowPtr
):
1038 def __init__(self
,arg0
,*args
) :
1039 argl
= map(None,args
)
1040 try: argl
[1] = argl
[1].this
1042 try: argl
[2] = argl
[2].this
1045 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
1047 _StdWindowCallbacks(self
)
1048 _StdOnScrollCallback(self
)
1052 class wxMDIParentFrame(wxMDIParentFramePtr
):
1053 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1054 argl
= map(None,args
)
1055 try: argl
[0] = argl
[0].this
1057 try: argl
[1] = argl
[1].this
1060 self
.this
= apply(mdic
.new_wxMDIParentFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1062 _StdFrameCallbacks(self
)
1065 class wxMDIChildFrame(wxMDIChildFramePtr
):
1066 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1067 argl
= map(None,args
)
1068 try: argl
[0] = argl
[0].this
1070 try: argl
[1] = argl
[1].this
1073 self
.this
= apply(mdic
.new_wxMDIChildFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1075 _StdFrameCallbacks(self
)
1078 class wxMDIClientWindow(wxMDIClientWindowPtr
):
1079 def __init__(self
,arg0
,*args
) :
1080 self
.this
= apply(mdic
.new_wxMDIClientWindow
,(arg0
.this
,)+args
)
1082 _StdWindowCallbacks(self
)
1083 _StdOnScrollCallback(self
)
1087 class wxControl(wxControlPtr
):
1088 def __init__(self
,this
):
1090 _StdWindowCallbacks(self
)
1092 class wxButton(wxButtonPtr
):
1093 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1094 argl
= map(None,args
)
1095 try: argl
[0] = argl
[0].this
1097 try: argl
[1] = argl
[1].this
1100 self
.this
= apply(controlsc
.new_wxButton
,(arg0
.this
,arg1
,arg2
,)+args
)
1102 _StdWindowCallbacks(self
)
1104 class wxBitmapButton(wxBitmapButtonPtr
):
1105 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1106 argl
= map(None,args
)
1107 try: argl
[0] = argl
[0].this
1109 try: argl
[1] = argl
[1].this
1112 self
.this
= apply(controlsc
.new_wxBitmapButton
,(arg0
.this
,arg1
,arg2
.this
,)+args
)
1114 _StdWindowCallbacks(self
)
1116 class wxCheckBox(wxCheckBoxPtr
):
1117 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1118 argl
= map(None,args
)
1119 try: argl
[0] = argl
[0].this
1121 try: argl
[1] = argl
[1].this
1124 self
.this
= apply(controlsc
.new_wxCheckBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1126 _StdWindowCallbacks(self
)
1130 class wxChoice(wxChoicePtr
):
1131 def __init__(self
,arg0
,arg1
,*args
) :
1132 argl
= map(None,args
)
1133 try: argl
[0] = argl
[0].this
1135 try: argl
[1] = argl
[1].this
1138 self
.this
= apply(controlsc
.new_wxChoice
,(arg0
.this
,arg1
,)+args
)
1140 _StdWindowCallbacks(self
)
1142 class wxComboBox(wxComboBoxPtr
):
1143 def __init__(self
,arg0
,arg1
,*args
) :
1144 argl
= map(None,args
)
1145 try: argl
[1] = argl
[1].this
1147 try: argl
[2] = argl
[2].this
1150 self
.this
= apply(controlsc
.new_wxComboBox
,(arg0
.this
,arg1
,)+args
)
1152 _StdWindowCallbacks(self
)
1154 class wxGauge(wxGaugePtr
):
1155 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1156 argl
= map(None,args
)
1157 try: argl
[0] = argl
[0].this
1159 try: argl
[1] = argl
[1].this
1162 self
.this
= apply(controlsc
.new_wxGauge
,(arg0
.this
,arg1
,arg2
,)+args
)
1164 _StdWindowCallbacks(self
)
1166 class wxStaticBox(wxStaticBoxPtr
):
1167 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1168 argl
= map(None,args
)
1169 try: argl
[0] = argl
[0].this
1171 try: argl
[1] = argl
[1].this
1174 self
.this
= apply(controlsc
.new_wxStaticBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1176 _StdWindowCallbacks(self
)
1178 class wxStaticText(wxStaticTextPtr
):
1179 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1180 argl
= map(None,args
)
1181 try: argl
[0] = argl
[0].this
1183 try: argl
[1] = argl
[1].this
1186 self
.this
= apply(controlsc
.new_wxStaticText
,(arg0
.this
,arg1
,arg2
,)+args
)
1188 _StdWindowCallbacks(self
)
1190 class wxListBox(wxListBoxPtr
):
1191 def __init__(self
,arg0
,arg1
,*args
) :
1192 argl
= map(None,args
)
1193 try: argl
[0] = argl
[0].this
1195 try: argl
[1] = argl
[1].this
1198 self
.this
= apply(controlsc
.new_wxListBox
,(arg0
.this
,arg1
,)+args
)
1200 _StdWindowCallbacks(self
)
1202 class wxTextCtrl(wxTextCtrlPtr
):
1203 def __init__(self
,arg0
,arg1
,*args
) :
1204 argl
= map(None,args
)
1205 try: argl
[1] = argl
[1].this
1207 try: argl
[2] = argl
[2].this
1210 self
.this
= apply(controlsc
.new_wxTextCtrl
,(arg0
.this
,arg1
,)+args
)
1212 _StdWindowCallbacks(self
)
1214 class wxScrollBar(wxScrollBarPtr
):
1215 def __init__(self
,arg0
,*args
) :
1216 argl
= map(None,args
)
1217 try: argl
[1] = argl
[1].this
1219 try: argl
[2] = argl
[2].this
1222 self
.this
= apply(controlsc
.new_wxScrollBar
,(arg0
.this
,)+args
)
1224 _StdWindowCallbacks(self
)
1226 class wxSpinButton(wxSpinButtonPtr
):
1227 def __init__(self
,arg0
,*args
) :
1228 argl
= map(None,args
)
1229 try: argl
[1] = argl
[1].this
1231 try: argl
[2] = argl
[2].this
1234 self
.this
= apply(controlsc
.new_wxSpinButton
,(arg0
.this
,)+args
)
1236 _StdWindowCallbacks(self
)
1238 class wxStaticBitmap(wxStaticBitmapPtr
):
1239 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1240 argl
= map(None,args
)
1241 try: argl
[0] = argl
[0].this
1243 try: argl
[1] = argl
[1].this
1246 self
.this
= apply(controlsc
.new_wxStaticBitmap
,(arg0
.this
,arg1
,arg2
.this
,)+args
)
1248 _StdWindowCallbacks(self
)
1250 class wxRadioBox(wxRadioBoxPtr
):
1251 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1252 argl
= map(None,args
)
1253 try: argl
[0] = argl
[0].this
1255 try: argl
[1] = argl
[1].this
1258 self
.this
= apply(controlsc
.new_wxRadioBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1260 _StdWindowCallbacks(self
)
1262 class wxRadioButton(wxRadioButtonPtr
):
1263 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1264 argl
= map(None,args
)
1265 try: argl
[0] = argl
[0].this
1267 try: argl
[1] = argl
[1].this
1270 self
.this
= apply(controlsc
.new_wxRadioButton
,(arg0
.this
,arg1
,arg2
,)+args
)
1272 _StdWindowCallbacks(self
)
1274 class wxSlider(wxSliderPtr
):
1275 def __init__(self
,arg0
,arg1
,arg2
,arg3
,arg4
,*args
) :
1276 argl
= map(None,args
)
1277 try: argl
[0] = argl
[0].this
1279 try: argl
[1] = argl
[1].this
1282 self
.this
= apply(controlsc
.new_wxSlider
,(arg0
.this
,arg1
,arg2
,arg3
,arg4
,)+args
)
1284 _StdWindowCallbacks(self
)
1291 class wxTimer(wxPyTimer
):
1293 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1294 # Notify(self) method.
1296 #----------------------------------------------------------------------
1297 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1298 # expect an object with the SWIG pointer as a 'this' member. This class
1299 # and instance fools the shadow into passing the NULL pointer.
1302 this
= 'NULL' # SWIG converts this to (void*)0
1307 #----------------------------------------------------------------------
1311 wxNamedColor
= wxNamedColour
1313 wxPyDefaultPosition
.Set(-1,-1)
1314 wxPyDefaultSize
.Set(-1,-1)
1316 #----------------------------------------------------------------------
1318 ## class wxPyStdOutWindow(wxFrame):
1319 ## def __init__(self, title = "wxPython: stdout/stderr"):
1320 ## wxFrame.__init__(self, NULL, title)
1321 ## self.title = title
1322 ## self.text = wxTextWindow(self)
1323 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1324 ## self.SetSize(-1,-1,400,200)
1326 ## self.isShown = false
1328 ## def write(self, str): # with this method,
1329 ## if not self.isShown:
1331 ## self.isShown = true
1332 ## self.text.WriteText(str)
1334 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1336 ## self.isShown = false
1339 _defRedirect
= (wxPlatform
== '__WIN32__')
1341 #----------------------------------------------------------------------
1342 # The main application class. Derive from this and implement an OnInit
1343 # method that creates a frame and then calls self.SetTopWindow(frame)
1345 class wxApp(wxPyApp
):
1346 error
= 'wxApp.error'
1348 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1349 wxPyApp
.__init
__(self
)
1350 self
.stdioWin
= None
1351 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1353 self
.RedirectStdio(filename
)
1355 # this initializes wxWindows and then calls our OnInit
1356 _wxStart(self
.OnInit
)
1365 def RedirectStdio(self
, filename
):
1367 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1369 raise self
.error
, 'wxPyStdOutWindow not yet implemented.'
1370 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1372 def RestoreStdio(self
):
1373 sys
.stdout
, sys
.stderr
= self
.saveStdio
1374 if self
.stdioWin
!= None:
1375 self
.stdioWin
.Show(false
)
1376 self
.stdioWin
.Destroy()
1377 self
.stdioWin
= None
1380 #----------------------------------------------------------------------------
1383 # Revision 1.4 1998/08/15 07:36:54 RD
1384 # - Moved the header in the .i files out of the code that gets put into
1385 # the .cpp files. It caused CVS conflicts because of the RCS ID being
1386 # different each time.
1388 # - A few minor fixes.
1390 # Revision 1.1 1998/08/09 08:25:49 RD