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
)
28 def GetClassName(self
):
29 val
= wxpc
.wxPyApp_GetClassName(self
.this
)
31 def GetExitOnFrameDelete(self
):
32 val
= wxpc
.wxPyApp_GetExitOnFrameDelete(self
.this
)
34 def GetPrintMode(self
):
35 val
= wxpc
.wxPyApp_GetPrintMode(self
.this
)
37 def GetTopWindow(self
):
38 val
= wxpc
.wxPyApp_GetTopWindow(self
.this
)
39 val
= wxWindowPtr(val
)
41 def GetVendorName(self
):
42 val
= wxpc
.wxPyApp_GetVendorName(self
.this
)
45 val
= wxpc
.wxPyApp_Dispatch(self
.this
)
47 def ExitMainLoop(self
):
48 val
= wxpc
.wxPyApp_ExitMainLoop(self
.this
)
50 def Initialized(self
):
51 val
= wxpc
.wxPyApp_Initialized(self
.this
)
54 val
= wxpc
.wxPyApp_MainLoop(self
.this
)
57 val
= wxpc
.wxPyApp_Pending(self
.this
)
59 def SetAppName(self
,arg0
):
60 val
= wxpc
.wxPyApp_SetAppName(self
.this
,arg0
)
62 def SetClassName(self
,arg0
):
63 val
= wxpc
.wxPyApp_SetClassName(self
.this
,arg0
)
65 def SetExitOnFrameDelete(self
,arg0
):
66 val
= wxpc
.wxPyApp_SetExitOnFrameDelete(self
.this
,arg0
)
68 def SetPrintMode(self
,arg0
):
69 val
= wxpc
.wxPyApp_SetPrintMode(self
.this
,arg0
)
71 def SetTopWindow(self
,arg0
):
72 val
= wxpc
.wxPyApp_SetTopWindow(self
.this
,arg0
.this
)
74 def SetVendorName(self
,arg0
):
75 val
= wxpc
.wxPyApp_SetVendorName(self
.this
,arg0
)
77 def AfterMainLoop(self
):
78 val
= wxpc
.wxPyApp_AfterMainLoop(self
.this
)
81 return "<C wxPyApp instance>"
82 class wxPyApp(wxPyAppPtr
):
84 self
.this
= wxpc
.new_wxPyApp()
92 #-------------- FUNCTION WRAPPERS ------------------
94 _wxStart
= wxpc
._wxStart
96 _wxSetDictionary
= wxpc
._wxSetDictionary
100 #-------------- VARIABLE WRAPPERS ------------------
102 wxMAJOR_VERSION
= wxpc
.wxMAJOR_VERSION
103 wxMINOR_VERSION
= wxpc
.wxMINOR_VERSION
104 wxRELEASE_NUMBER
= wxpc
.wxRELEASE_NUMBER
105 NOT_FOUND
= wxpc
.NOT_FOUND
106 wxVSCROLL
= wxpc
.wxVSCROLL
107 wxHSCROLL
= wxpc
.wxHSCROLL
108 wxCAPTION
= wxpc
.wxCAPTION
109 wxDOUBLE_BORDER
= wxpc
.wxDOUBLE_BORDER
110 wxSUNKEN_BORDER
= wxpc
.wxSUNKEN_BORDER
111 wxRAISED_BORDER
= wxpc
.wxRAISED_BORDER
112 wxBORDER
= wxpc
.wxBORDER
113 wxSIMPLE_BORDER
= wxpc
.wxSIMPLE_BORDER
114 wxSTATIC_BORDER
= wxpc
.wxSTATIC_BORDER
115 wxTRANSPARENT_WINDOW
= wxpc
.wxTRANSPARENT_WINDOW
116 wxNO_BORDER
= wxpc
.wxNO_BORDER
117 wxUSER_COLOURS
= wxpc
.wxUSER_COLOURS
118 wxNO_3D
= wxpc
.wxNO_3D
119 wxTAB_TRAVERSAL
= wxpc
.wxTAB_TRAVERSAL
120 wxHORIZONTAL
= wxpc
.wxHORIZONTAL
121 wxVERTICAL
= wxpc
.wxVERTICAL
123 wxCENTER_FRAME
= wxpc
.wxCENTER_FRAME
124 wxSTAY_ON_TOP
= wxpc
.wxSTAY_ON_TOP
125 wxICONIZE
= wxpc
.wxICONIZE
126 wxMINIMIZE
= wxpc
.wxMINIMIZE
127 wxMAXIMIZE
= wxpc
.wxMAXIMIZE
128 wxTHICK_FRAME
= wxpc
.wxTHICK_FRAME
129 wxSYSTEM_MENU
= wxpc
.wxSYSTEM_MENU
130 wxMINIMIZE_BOX
= wxpc
.wxMINIMIZE_BOX
131 wxMAXIMIZE_BOX
= wxpc
.wxMAXIMIZE_BOX
132 wxTINY_CAPTION_HORIZ
= wxpc
.wxTINY_CAPTION_HORIZ
133 wxTINY_CAPTION_VERT
= wxpc
.wxTINY_CAPTION_VERT
134 wxRESIZE_BOX
= wxpc
.wxRESIZE_BOX
135 wxRESIZE_BORDER
= wxpc
.wxRESIZE_BORDER
136 wxDIALOG_MODAL
= wxpc
.wxDIALOG_MODAL
137 wxDIALOG_MODELESS
= wxpc
.wxDIALOG_MODELESS
138 wxDEFAULT_FRAME_STYLE
= wxpc
.wxDEFAULT_FRAME_STYLE
139 wxDEFAULT_DIALOG_STYLE
= wxpc
.wxDEFAULT_DIALOG_STYLE
140 wxRETAINED
= wxpc
.wxRETAINED
141 wxBACKINGSTORE
= wxpc
.wxBACKINGSTORE
142 wxTB_3DBUTTONS
= wxpc
.wxTB_3DBUTTONS
143 wxTB_HORIZONTAL
= wxpc
.wxTB_HORIZONTAL
144 wxTB_VERTICAL
= wxpc
.wxTB_VERTICAL
145 wxCOLOURED
= wxpc
.wxCOLOURED
146 wxFIXED_LENGTH
= wxpc
.wxFIXED_LENGTH
147 wxALIGN_LEFT
= wxpc
.wxALIGN_LEFT
148 wxALIGN_CENTER
= wxpc
.wxALIGN_CENTER
149 wxALIGN_CENTRE
= wxpc
.wxALIGN_CENTRE
150 wxALIGN_RIGHT
= wxpc
.wxALIGN_RIGHT
151 wxLB_NEEDED_SB
= wxpc
.wxLB_NEEDED_SB
152 wxLB_ALWAYS_SB
= wxpc
.wxLB_ALWAYS_SB
153 wxLB_SORT
= wxpc
.wxLB_SORT
154 wxLB_SINGLE
= wxpc
.wxLB_SINGLE
155 wxLB_MULTIPLE
= wxpc
.wxLB_MULTIPLE
156 wxLB_EXTENDED
= wxpc
.wxLB_EXTENDED
157 wxLB_OWNERDRAW
= wxpc
.wxLB_OWNERDRAW
158 wxLB_HSCROLL
= wxpc
.wxLB_HSCROLL
159 wxPROCESS_ENTER
= wxpc
.wxPROCESS_ENTER
160 wxPASSWORD
= wxpc
.wxPASSWORD
161 wxTE_PROCESS_ENTER
= wxpc
.wxTE_PROCESS_ENTER
162 wxTE_PASSWORD
= wxpc
.wxTE_PASSWORD
163 wxTE_READONLY
= wxpc
.wxTE_READONLY
164 wxTE_MULTILINE
= wxpc
.wxTE_MULTILINE
165 wxCB_SIMPLE
= wxpc
.wxCB_SIMPLE
166 wxCB_DROPDOWN
= wxpc
.wxCB_DROPDOWN
167 wxCB_SORT
= wxpc
.wxCB_SORT
168 wxCB_READONLY
= wxpc
.wxCB_READONLY
169 wxRA_HORIZONTAL
= wxpc
.wxRA_HORIZONTAL
170 wxRA_VERTICAL
= wxpc
.wxRA_VERTICAL
171 wxRB_GROUP
= wxpc
.wxRB_GROUP
172 wxGA_PROGRESSBAR
= wxpc
.wxGA_PROGRESSBAR
173 wxGA_HORIZONTAL
= wxpc
.wxGA_HORIZONTAL
174 wxGA_VERTICAL
= wxpc
.wxGA_VERTICAL
175 wxSL_HORIZONTAL
= wxpc
.wxSL_HORIZONTAL
176 wxSL_VERTICAL
= wxpc
.wxSL_VERTICAL
177 wxSL_AUTOTICKS
= wxpc
.wxSL_AUTOTICKS
178 wxSL_LABELS
= wxpc
.wxSL_LABELS
179 wxSL_LEFT
= wxpc
.wxSL_LEFT
180 wxSL_TOP
= wxpc
.wxSL_TOP
181 wxSL_RIGHT
= wxpc
.wxSL_RIGHT
182 wxSL_BOTTOM
= wxpc
.wxSL_BOTTOM
183 wxSL_BOTH
= wxpc
.wxSL_BOTH
184 wxSL_SELRANGE
= wxpc
.wxSL_SELRANGE
185 wxSB_HORIZONTAL
= wxpc
.wxSB_HORIZONTAL
186 wxSB_VERTICAL
= wxpc
.wxSB_VERTICAL
187 wxBU_AUTODRAW
= wxpc
.wxBU_AUTODRAW
188 wxBU_NOAUTODRAW
= wxpc
.wxBU_NOAUTODRAW
189 wxTR_HAS_BUTTONS
= wxpc
.wxTR_HAS_BUTTONS
190 wxTR_EDIT_LABELS
= wxpc
.wxTR_EDIT_LABELS
191 wxLC_ICON
= wxpc
.wxLC_ICON
192 wxLC_SMALL_ICON
= wxpc
.wxLC_SMALL_ICON
193 wxLC_LIST
= wxpc
.wxLC_LIST
194 wxLC_REPORT
= wxpc
.wxLC_REPORT
195 wxLC_ALIGN_TOP
= wxpc
.wxLC_ALIGN_TOP
196 wxLC_ALIGN_LEFT
= wxpc
.wxLC_ALIGN_LEFT
197 wxLC_AUTOARRANGE
= wxpc
.wxLC_AUTOARRANGE
198 wxLC_USER_TEXT
= wxpc
.wxLC_USER_TEXT
199 wxLC_EDIT_LABELS
= wxpc
.wxLC_EDIT_LABELS
200 wxLC_NO_HEADER
= wxpc
.wxLC_NO_HEADER
201 wxLC_NO_SORT_HEADER
= wxpc
.wxLC_NO_SORT_HEADER
202 wxLC_SINGLE_SEL
= wxpc
.wxLC_SINGLE_SEL
203 wxLC_SORT_ASCENDING
= wxpc
.wxLC_SORT_ASCENDING
204 wxLC_SORT_DESCENDING
= wxpc
.wxLC_SORT_DESCENDING
205 wxLC_MASK_TYPE
= wxpc
.wxLC_MASK_TYPE
206 wxLC_MASK_ALIGN
= wxpc
.wxLC_MASK_ALIGN
207 wxLC_MASK_SORT
= wxpc
.wxLC_MASK_SORT
208 wxSP_VERTICAL
= wxpc
.wxSP_VERTICAL
209 wxSP_HORIZONTAL
= wxpc
.wxSP_HORIZONTAL
210 wxSP_ARROW_KEYS
= wxpc
.wxSP_ARROW_KEYS
211 wxSP_WRAP
= wxpc
.wxSP_WRAP
212 wxSP_NOBORDER
= wxpc
.wxSP_NOBORDER
213 wxSP_3D
= wxpc
.wxSP_3D
214 wxSP_BORDER
= wxpc
.wxSP_BORDER
215 wxTAB_MULTILINE
= wxpc
.wxTAB_MULTILINE
216 wxTAB_RIGHTJUSTIFY
= wxpc
.wxTAB_RIGHTJUSTIFY
217 wxTAB_FIXEDWIDTH
= wxpc
.wxTAB_FIXEDWIDTH
218 wxTAB_OWNERDRAW
= wxpc
.wxTAB_OWNERDRAW
219 wxFLOOD_SURFACE
= wxpc
.wxFLOOD_SURFACE
220 wxFLOOD_BORDER
= wxpc
.wxFLOOD_BORDER
221 wxODDEVEN_RULE
= wxpc
.wxODDEVEN_RULE
222 wxWINDING_RULE
= wxpc
.wxWINDING_RULE
223 wxTOOL_TOP
= wxpc
.wxTOOL_TOP
224 wxTOOL_BOTTOM
= wxpc
.wxTOOL_BOTTOM
225 wxTOOL_LEFT
= wxpc
.wxTOOL_LEFT
226 wxTOOL_RIGHT
= wxpc
.wxTOOL_RIGHT
228 wxYES_NO
= wxpc
.wxYES_NO
229 wxCANCEL
= wxpc
.wxCANCEL
232 wxICON_EXCLAMATION
= wxpc
.wxICON_EXCLAMATION
233 wxICON_HAND
= wxpc
.wxICON_HAND
234 wxICON_QUESTION
= wxpc
.wxICON_QUESTION
235 wxICON_INFORMATION
= wxpc
.wxICON_INFORMATION
236 wxICON_STOP
= wxpc
.wxICON_STOP
237 wxICON_ASTERISK
= wxpc
.wxICON_ASTERISK
238 wxICON_MASK
= wxpc
.wxICON_MASK
239 wxCENTRE
= wxpc
.wxCENTRE
240 wxCENTER
= wxpc
.wxCENTER
241 wxSIZE_AUTO_WIDTH
= wxpc
.wxSIZE_AUTO_WIDTH
242 wxSIZE_AUTO_HEIGHT
= wxpc
.wxSIZE_AUTO_HEIGHT
243 wxSIZE_AUTO
= wxpc
.wxSIZE_AUTO
244 wxSIZE_USE_EXISTING
= wxpc
.wxSIZE_USE_EXISTING
245 wxSIZE_ALLOW_MINUS_ONE
= wxpc
.wxSIZE_ALLOW_MINUS_ONE
246 wxDF_TEXT
= wxpc
.wxDF_TEXT
247 wxDF_BITMAP
= wxpc
.wxDF_BITMAP
248 wxDF_METAFILE
= wxpc
.wxDF_METAFILE
249 wxDF_DIB
= wxpc
.wxDF_DIB
250 wxDF_OEMTEXT
= wxpc
.wxDF_OEMTEXT
251 wxDF_FILENAME
= wxpc
.wxDF_FILENAME
252 wxPORTRAIT
= wxpc
.wxPORTRAIT
253 wxLANDSCAPE
= wxpc
.wxLANDSCAPE
254 wxID_OPEN
= wxpc
.wxID_OPEN
255 wxID_CLOSE
= wxpc
.wxID_CLOSE
256 wxID_NEW
= wxpc
.wxID_NEW
257 wxID_SAVE
= wxpc
.wxID_SAVE
258 wxID_SAVEAS
= wxpc
.wxID_SAVEAS
259 wxID_REVERT
= wxpc
.wxID_REVERT
260 wxID_EXIT
= wxpc
.wxID_EXIT
261 wxID_UNDO
= wxpc
.wxID_UNDO
262 wxID_REDO
= wxpc
.wxID_REDO
263 wxID_HELP
= wxpc
.wxID_HELP
264 wxID_PRINT
= wxpc
.wxID_PRINT
265 wxID_PRINT_SETUP
= wxpc
.wxID_PRINT_SETUP
266 wxID_PREVIEW
= wxpc
.wxID_PREVIEW
267 wxID_ABOUT
= wxpc
.wxID_ABOUT
268 wxID_HELP_CONTENTS
= wxpc
.wxID_HELP_CONTENTS
269 wxID_HELP_COMMANDS
= wxpc
.wxID_HELP_COMMANDS
270 wxID_HELP_PROCEDURES
= wxpc
.wxID_HELP_PROCEDURES
271 wxID_HELP_CONTEXT
= wxpc
.wxID_HELP_CONTEXT
272 wxID_CUT
= wxpc
.wxID_CUT
273 wxID_COPY
= wxpc
.wxID_COPY
274 wxID_PASTE
= wxpc
.wxID_PASTE
275 wxID_CLEAR
= wxpc
.wxID_CLEAR
276 wxID_FIND
= wxpc
.wxID_FIND
277 wxID_FILE1
= wxpc
.wxID_FILE1
278 wxID_FILE2
= wxpc
.wxID_FILE2
279 wxID_FILE3
= wxpc
.wxID_FILE3
280 wxID_FILE4
= wxpc
.wxID_FILE4
281 wxID_FILE5
= wxpc
.wxID_FILE5
282 wxID_FILE6
= wxpc
.wxID_FILE6
283 wxID_FILE7
= wxpc
.wxID_FILE7
284 wxID_FILE8
= wxpc
.wxID_FILE8
285 wxID_FILE9
= wxpc
.wxID_FILE9
286 wxID_OK
= wxpc
.wxID_OK
287 wxID_CANCEL
= wxpc
.wxID_CANCEL
288 wxID_APPLY
= wxpc
.wxID_APPLY
289 wxID_YES
= wxpc
.wxID_YES
290 wxID_NO
= wxpc
.wxID_NO
291 wxBITMAP_TYPE_BMP
= wxpc
.wxBITMAP_TYPE_BMP
292 wxBITMAP_TYPE_BMP_RESOURCE
= wxpc
.wxBITMAP_TYPE_BMP_RESOURCE
293 wxBITMAP_TYPE_ICO
= wxpc
.wxBITMAP_TYPE_ICO
294 wxBITMAP_TYPE_ICO_RESOURCE
= wxpc
.wxBITMAP_TYPE_ICO_RESOURCE
295 wxBITMAP_TYPE_CUR
= wxpc
.wxBITMAP_TYPE_CUR
296 wxBITMAP_TYPE_CUR_RESOURCE
= wxpc
.wxBITMAP_TYPE_CUR_RESOURCE
297 wxBITMAP_TYPE_XBM
= wxpc
.wxBITMAP_TYPE_XBM
298 wxBITMAP_TYPE_XBM_DATA
= wxpc
.wxBITMAP_TYPE_XBM_DATA
299 wxBITMAP_TYPE_XPM
= wxpc
.wxBITMAP_TYPE_XPM
300 wxBITMAP_TYPE_XPM_DATA
= wxpc
.wxBITMAP_TYPE_XPM_DATA
301 wxBITMAP_TYPE_TIF
= wxpc
.wxBITMAP_TYPE_TIF
302 wxBITMAP_TYPE_TIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_TIF_RESOURCE
303 wxBITMAP_TYPE_GIF
= wxpc
.wxBITMAP_TYPE_GIF
304 wxBITMAP_TYPE_GIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_GIF_RESOURCE
305 wxBITMAP_TYPE_PNG
= wxpc
.wxBITMAP_TYPE_PNG
306 wxBITMAP_TYPE_PNG_RESOURCE
= wxpc
.wxBITMAP_TYPE_PNG_RESOURCE
307 wxBITMAP_TYPE_ANY
= wxpc
.wxBITMAP_TYPE_ANY
308 wxBITMAP_TYPE_RESOURCE
= wxpc
.wxBITMAP_TYPE_RESOURCE
311 wxHIDE_READONLY
= wxpc
.wxHIDE_READONLY
312 wxOVERWRITE_PROMPT
= wxpc
.wxOVERWRITE_PROMPT
313 ERR_PARAM
= wxpc
.ERR_PARAM
314 ERR_NODATA
= wxpc
.ERR_NODATA
315 ERR_CANCEL
= wxpc
.ERR_CANCEL
316 ERR_SUCCESS
= wxpc
.ERR_SUCCESS
317 wxDEFAULT
= wxpc
.wxDEFAULT
318 wxDECORATIVE
= wxpc
.wxDECORATIVE
319 wxROMAN
= wxpc
.wxROMAN
320 wxSCRIPT
= wxpc
.wxSCRIPT
321 wxSWISS
= wxpc
.wxSWISS
322 wxMODERN
= wxpc
.wxMODERN
323 wxTELETYPE
= wxpc
.wxTELETYPE
324 wxVARIABLE
= wxpc
.wxVARIABLE
325 wxFIXED
= wxpc
.wxFIXED
326 wxNORMAL
= wxpc
.wxNORMAL
327 wxLIGHT
= wxpc
.wxLIGHT
329 wxITALIC
= wxpc
.wxITALIC
330 wxSLANT
= wxpc
.wxSLANT
331 wxSOLID
= wxpc
.wxSOLID
333 wxLONG_DASH
= wxpc
.wxLONG_DASH
334 wxSHORT_DASH
= wxpc
.wxSHORT_DASH
335 wxDOT_DASH
= wxpc
.wxDOT_DASH
336 wxUSER_DASH
= wxpc
.wxUSER_DASH
337 wxTRANSPARENT
= wxpc
.wxTRANSPARENT
338 wxSTIPPLE
= wxpc
.wxSTIPPLE
339 wxBDIAGONAL_HATCH
= wxpc
.wxBDIAGONAL_HATCH
340 wxCROSSDIAG_HATCH
= wxpc
.wxCROSSDIAG_HATCH
341 wxFDIAGONAL_HATCH
= wxpc
.wxFDIAGONAL_HATCH
342 wxCROSS_HATCH
= wxpc
.wxCROSS_HATCH
343 wxHORIZONTAL_HATCH
= wxpc
.wxHORIZONTAL_HATCH
344 wxVERTICAL_HATCH
= wxpc
.wxVERTICAL_HATCH
345 wxJOIN_BEVEL
= wxpc
.wxJOIN_BEVEL
346 wxJOIN_MITER
= wxpc
.wxJOIN_MITER
347 wxJOIN_ROUND
= wxpc
.wxJOIN_ROUND
348 wxCAP_ROUND
= wxpc
.wxCAP_ROUND
349 wxCAP_PROJECTING
= wxpc
.wxCAP_PROJECTING
350 wxCAP_BUTT
= wxpc
.wxCAP_BUTT
351 wxCLEAR
= wxpc
.wxCLEAR
353 wxINVERT
= wxpc
.wxINVERT
354 wxOR_REVERSE
= wxpc
.wxOR_REVERSE
355 wxAND_REVERSE
= wxpc
.wxAND_REVERSE
358 wxAND_INVERT
= wxpc
.wxAND_INVERT
359 wxNO_OP
= wxpc
.wxNO_OP
361 wxEQUIV
= wxpc
.wxEQUIV
362 wxSRC_INVERT
= wxpc
.wxSRC_INVERT
363 wxOR_INVERT
= wxpc
.wxOR_INVERT
367 wxSRC_OR
= wxpc
.wxSRC_OR
368 wxSRC_AND
= wxpc
.wxSRC_AND
369 WXK_BACK
= wxpc
.WXK_BACK
370 WXK_TAB
= wxpc
.WXK_TAB
371 WXK_RETURN
= wxpc
.WXK_RETURN
372 WXK_ESCAPE
= wxpc
.WXK_ESCAPE
373 WXK_SPACE
= wxpc
.WXK_SPACE
374 WXK_DELETE
= wxpc
.WXK_DELETE
375 WXK_START
= wxpc
.WXK_START
376 WXK_LBUTTON
= wxpc
.WXK_LBUTTON
377 WXK_RBUTTON
= wxpc
.WXK_RBUTTON
378 WXK_CANCEL
= wxpc
.WXK_CANCEL
379 WXK_MBUTTON
= wxpc
.WXK_MBUTTON
380 WXK_CLEAR
= wxpc
.WXK_CLEAR
381 WXK_SHIFT
= wxpc
.WXK_SHIFT
382 WXK_CONTROL
= wxpc
.WXK_CONTROL
383 WXK_MENU
= wxpc
.WXK_MENU
384 WXK_PAUSE
= wxpc
.WXK_PAUSE
385 WXK_CAPITAL
= wxpc
.WXK_CAPITAL
386 WXK_PRIOR
= wxpc
.WXK_PRIOR
387 WXK_NEXT
= wxpc
.WXK_NEXT
388 WXK_END
= wxpc
.WXK_END
389 WXK_HOME
= wxpc
.WXK_HOME
390 WXK_LEFT
= wxpc
.WXK_LEFT
392 WXK_RIGHT
= wxpc
.WXK_RIGHT
393 WXK_DOWN
= wxpc
.WXK_DOWN
394 WXK_SELECT
= wxpc
.WXK_SELECT
395 WXK_PRINT
= wxpc
.WXK_PRINT
396 WXK_EXECUTE
= wxpc
.WXK_EXECUTE
397 WXK_SNAPSHOT
= wxpc
.WXK_SNAPSHOT
398 WXK_INSERT
= wxpc
.WXK_INSERT
399 WXK_HELP
= wxpc
.WXK_HELP
400 WXK_NUMPAD0
= wxpc
.WXK_NUMPAD0
401 WXK_NUMPAD1
= wxpc
.WXK_NUMPAD1
402 WXK_NUMPAD2
= wxpc
.WXK_NUMPAD2
403 WXK_NUMPAD3
= wxpc
.WXK_NUMPAD3
404 WXK_NUMPAD4
= wxpc
.WXK_NUMPAD4
405 WXK_NUMPAD5
= wxpc
.WXK_NUMPAD5
406 WXK_NUMPAD6
= wxpc
.WXK_NUMPAD6
407 WXK_NUMPAD7
= wxpc
.WXK_NUMPAD7
408 WXK_NUMPAD8
= wxpc
.WXK_NUMPAD8
409 WXK_NUMPAD9
= wxpc
.WXK_NUMPAD9
410 WXK_MULTIPLY
= wxpc
.WXK_MULTIPLY
411 WXK_ADD
= wxpc
.WXK_ADD
412 WXK_SEPARATOR
= wxpc
.WXK_SEPARATOR
413 WXK_SUBTRACT
= wxpc
.WXK_SUBTRACT
414 WXK_DECIMAL
= wxpc
.WXK_DECIMAL
415 WXK_DIVIDE
= wxpc
.WXK_DIVIDE
425 WXK_F10
= wxpc
.WXK_F10
426 WXK_F11
= wxpc
.WXK_F11
427 WXK_F12
= wxpc
.WXK_F12
428 WXK_F13
= wxpc
.WXK_F13
429 WXK_F14
= wxpc
.WXK_F14
430 WXK_F15
= wxpc
.WXK_F15
431 WXK_F16
= wxpc
.WXK_F16
432 WXK_F17
= wxpc
.WXK_F17
433 WXK_F18
= wxpc
.WXK_F18
434 WXK_F19
= wxpc
.WXK_F19
435 WXK_F20
= wxpc
.WXK_F20
436 WXK_F21
= wxpc
.WXK_F21
437 WXK_F22
= wxpc
.WXK_F22
438 WXK_F23
= wxpc
.WXK_F23
439 WXK_F24
= wxpc
.WXK_F24
440 WXK_NUMLOCK
= wxpc
.WXK_NUMLOCK
441 WXK_SCROLL
= wxpc
.WXK_SCROLL
442 WXK_PAGEUP
= wxpc
.WXK_PAGEUP
443 WXK_PAGEDOWN
= wxpc
.WXK_PAGEDOWN
444 wxCURSOR_ARROW
= wxpc
.wxCURSOR_ARROW
445 wxCURSOR_BULLSEYE
= wxpc
.wxCURSOR_BULLSEYE
446 wxCURSOR_CHAR
= wxpc
.wxCURSOR_CHAR
447 wxCURSOR_CROSS
= wxpc
.wxCURSOR_CROSS
448 wxCURSOR_HAND
= wxpc
.wxCURSOR_HAND
449 wxCURSOR_IBEAM
= wxpc
.wxCURSOR_IBEAM
450 wxCURSOR_LEFT_BUTTON
= wxpc
.wxCURSOR_LEFT_BUTTON
451 wxCURSOR_MAGNIFIER
= wxpc
.wxCURSOR_MAGNIFIER
452 wxCURSOR_MIDDLE_BUTTON
= wxpc
.wxCURSOR_MIDDLE_BUTTON
453 wxCURSOR_NO_ENTRY
= wxpc
.wxCURSOR_NO_ENTRY
454 wxCURSOR_PAINT_BRUSH
= wxpc
.wxCURSOR_PAINT_BRUSH
455 wxCURSOR_PENCIL
= wxpc
.wxCURSOR_PENCIL
456 wxCURSOR_POINT_LEFT
= wxpc
.wxCURSOR_POINT_LEFT
457 wxCURSOR_POINT_RIGHT
= wxpc
.wxCURSOR_POINT_RIGHT
458 wxCURSOR_QUESTION_ARROW
= wxpc
.wxCURSOR_QUESTION_ARROW
459 wxCURSOR_RIGHT_BUTTON
= wxpc
.wxCURSOR_RIGHT_BUTTON
460 wxCURSOR_SIZENESW
= wxpc
.wxCURSOR_SIZENESW
461 wxCURSOR_SIZENS
= wxpc
.wxCURSOR_SIZENS
462 wxCURSOR_SIZENWSE
= wxpc
.wxCURSOR_SIZENWSE
463 wxCURSOR_SIZEWE
= wxpc
.wxCURSOR_SIZEWE
464 wxCURSOR_SIZING
= wxpc
.wxCURSOR_SIZING
465 wxCURSOR_SPRAYCAN
= wxpc
.wxCURSOR_SPRAYCAN
466 wxCURSOR_WAIT
= wxpc
.wxCURSOR_WAIT
467 wxCURSOR_WATCH
= wxpc
.wxCURSOR_WATCH
468 wxCURSOR_BLANK
= wxpc
.wxCURSOR_BLANK
473 wxEVT_NULL
= wxpc
.wxEVT_NULL
474 wxEVT_FIRST
= wxpc
.wxEVT_FIRST
475 wxEVT_COMMAND_BUTTON_CLICKED
= wxpc
.wxEVT_COMMAND_BUTTON_CLICKED
476 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxpc
.wxEVT_COMMAND_CHECKBOX_CLICKED
477 wxEVT_COMMAND_CHOICE_SELECTED
= wxpc
.wxEVT_COMMAND_CHOICE_SELECTED
478 wxEVT_COMMAND_LISTBOX_SELECTED
= wxpc
.wxEVT_COMMAND_LISTBOX_SELECTED
479 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxpc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
480 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxpc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
481 wxEVT_COMMAND_TEXT_UPDATED
= wxpc
.wxEVT_COMMAND_TEXT_UPDATED
482 wxEVT_COMMAND_TEXT_ENTER
= wxpc
.wxEVT_COMMAND_TEXT_ENTER
483 wxEVT_COMMAND_MENU_SELECTED
= wxpc
.wxEVT_COMMAND_MENU_SELECTED
484 wxEVT_COMMAND_SLIDER_UPDATED
= wxpc
.wxEVT_COMMAND_SLIDER_UPDATED
485 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBOX_SELECTED
486 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
487 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxpc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
488 wxEVT_COMMAND_VLBOX_SELECTED
= wxpc
.wxEVT_COMMAND_VLBOX_SELECTED
489 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_COMBOBOX_SELECTED
490 wxEVT_COMMAND_TOOL_CLICKED
= wxpc
.wxEVT_COMMAND_TOOL_CLICKED
491 wxEVT_COMMAND_TOOL_RCLICKED
= wxpc
.wxEVT_COMMAND_TOOL_RCLICKED
492 wxEVT_COMMAND_TOOL_ENTER
= wxpc
.wxEVT_COMMAND_TOOL_ENTER
493 wxEVT_SET_FOCUS
= wxpc
.wxEVT_SET_FOCUS
494 wxEVT_KILL_FOCUS
= wxpc
.wxEVT_KILL_FOCUS
495 wxEVT_LEFT_DOWN
= wxpc
.wxEVT_LEFT_DOWN
496 wxEVT_LEFT_UP
= wxpc
.wxEVT_LEFT_UP
497 wxEVT_MIDDLE_DOWN
= wxpc
.wxEVT_MIDDLE_DOWN
498 wxEVT_MIDDLE_UP
= wxpc
.wxEVT_MIDDLE_UP
499 wxEVT_RIGHT_DOWN
= wxpc
.wxEVT_RIGHT_DOWN
500 wxEVT_RIGHT_UP
= wxpc
.wxEVT_RIGHT_UP
501 wxEVT_MOTION
= wxpc
.wxEVT_MOTION
502 wxEVT_ENTER_WINDOW
= wxpc
.wxEVT_ENTER_WINDOW
503 wxEVT_LEAVE_WINDOW
= wxpc
.wxEVT_LEAVE_WINDOW
504 wxEVT_LEFT_DCLICK
= wxpc
.wxEVT_LEFT_DCLICK
505 wxEVT_MIDDLE_DCLICK
= wxpc
.wxEVT_MIDDLE_DCLICK
506 wxEVT_RIGHT_DCLICK
= wxpc
.wxEVT_RIGHT_DCLICK
507 wxEVT_NC_LEFT_DOWN
= wxpc
.wxEVT_NC_LEFT_DOWN
508 wxEVT_NC_LEFT_UP
= wxpc
.wxEVT_NC_LEFT_UP
509 wxEVT_NC_MIDDLE_DOWN
= wxpc
.wxEVT_NC_MIDDLE_DOWN
510 wxEVT_NC_MIDDLE_UP
= wxpc
.wxEVT_NC_MIDDLE_UP
511 wxEVT_NC_RIGHT_DOWN
= wxpc
.wxEVT_NC_RIGHT_DOWN
512 wxEVT_NC_RIGHT_UP
= wxpc
.wxEVT_NC_RIGHT_UP
513 wxEVT_NC_MOTION
= wxpc
.wxEVT_NC_MOTION
514 wxEVT_NC_ENTER_WINDOW
= wxpc
.wxEVT_NC_ENTER_WINDOW
515 wxEVT_NC_LEAVE_WINDOW
= wxpc
.wxEVT_NC_LEAVE_WINDOW
516 wxEVT_NC_LEFT_DCLICK
= wxpc
.wxEVT_NC_LEFT_DCLICK
517 wxEVT_NC_MIDDLE_DCLICK
= wxpc
.wxEVT_NC_MIDDLE_DCLICK
518 wxEVT_NC_RIGHT_DCLICK
= wxpc
.wxEVT_NC_RIGHT_DCLICK
519 wxEVT_CHAR
= wxpc
.wxEVT_CHAR
520 wxEVT_SCROLL_TOP
= wxpc
.wxEVT_SCROLL_TOP
521 wxEVT_SCROLL_BOTTOM
= wxpc
.wxEVT_SCROLL_BOTTOM
522 wxEVT_SCROLL_LINEUP
= wxpc
.wxEVT_SCROLL_LINEUP
523 wxEVT_SCROLL_LINEDOWN
= wxpc
.wxEVT_SCROLL_LINEDOWN
524 wxEVT_SCROLL_PAGEUP
= wxpc
.wxEVT_SCROLL_PAGEUP
525 wxEVT_SCROLL_PAGEDOWN
= wxpc
.wxEVT_SCROLL_PAGEDOWN
526 wxEVT_SCROLL_THUMBTRACK
= wxpc
.wxEVT_SCROLL_THUMBTRACK
527 wxEVT_SIZE
= wxpc
.wxEVT_SIZE
528 wxEVT_MOVE
= wxpc
.wxEVT_MOVE
529 wxEVT_CLOSE_WINDOW
= wxpc
.wxEVT_CLOSE_WINDOW
530 wxEVT_END_SESSION
= wxpc
.wxEVT_END_SESSION
531 wxEVT_QUERY_END_SESSION
= wxpc
.wxEVT_QUERY_END_SESSION
532 wxEVT_ACTIVATE_APP
= wxpc
.wxEVT_ACTIVATE_APP
533 wxEVT_POWER
= wxpc
.wxEVT_POWER
534 wxEVT_CHAR_HOOK
= wxpc
.wxEVT_CHAR_HOOK
535 wxEVT_KEY_UP
= wxpc
.wxEVT_KEY_UP
536 wxEVT_ACTIVATE
= wxpc
.wxEVT_ACTIVATE
537 wxEVT_CREATE
= wxpc
.wxEVT_CREATE
538 wxEVT_DESTROY
= wxpc
.wxEVT_DESTROY
539 wxEVT_SHOW
= wxpc
.wxEVT_SHOW
540 wxEVT_ICONIZE
= wxpc
.wxEVT_ICONIZE
541 wxEVT_MAXIMIZE
= wxpc
.wxEVT_MAXIMIZE
542 wxEVT_MOUSE_CAPTURE_CHANGED
= wxpc
.wxEVT_MOUSE_CAPTURE_CHANGED
543 wxEVT_PAINT
= wxpc
.wxEVT_PAINT
544 wxEVT_ERASE_BACKGROUND
= wxpc
.wxEVT_ERASE_BACKGROUND
545 wxEVT_NC_PAINT
= wxpc
.wxEVT_NC_PAINT
546 wxEVT_PAINT_ICON
= wxpc
.wxEVT_PAINT_ICON
547 wxEVT_MENU_CHAR
= wxpc
.wxEVT_MENU_CHAR
548 wxEVT_MENU_INIT
= wxpc
.wxEVT_MENU_INIT
549 wxEVT_MENU_HIGHLIGHT
= wxpc
.wxEVT_MENU_HIGHLIGHT
550 wxEVT_POPUP_MENU_INIT
= wxpc
.wxEVT_POPUP_MENU_INIT
551 wxEVT_CONTEXT_MENU
= wxpc
.wxEVT_CONTEXT_MENU
552 wxEVT_SYS_COLOUR_CHANGED
= wxpc
.wxEVT_SYS_COLOUR_CHANGED
553 wxEVT_SETTING_CHANGED
= wxpc
.wxEVT_SETTING_CHANGED
554 wxEVT_QUERY_NEW_PALETTE
= wxpc
.wxEVT_QUERY_NEW_PALETTE
555 wxEVT_PALETTE_CHANGED
= wxpc
.wxEVT_PALETTE_CHANGED
556 wxEVT_JOY_BUTTON_DOWN
= wxpc
.wxEVT_JOY_BUTTON_DOWN
557 wxEVT_JOY_BUTTON_UP
= wxpc
.wxEVT_JOY_BUTTON_UP
558 wxEVT_JOY_MOVE
= wxpc
.wxEVT_JOY_MOVE
559 wxEVT_JOY_ZMOVE
= wxpc
.wxEVT_JOY_ZMOVE
560 wxEVT_DROP_FILES
= wxpc
.wxEVT_DROP_FILES
561 wxEVT_DRAW_ITEM
= wxpc
.wxEVT_DRAW_ITEM
562 wxEVT_MEASURE_ITEM
= wxpc
.wxEVT_MEASURE_ITEM
563 wxEVT_COMPARE_ITEM
= wxpc
.wxEVT_COMPARE_ITEM
564 wxEVT_INIT_DIALOG
= wxpc
.wxEVT_INIT_DIALOG
565 wxEVT_IDLE
= wxpc
.wxEVT_IDLE
566 wxEVT_UPDATE_UI
= wxpc
.wxEVT_UPDATE_UI
567 wxEVT_COMMAND_LEFT_CLICK
= wxpc
.wxEVT_COMMAND_LEFT_CLICK
568 wxEVT_COMMAND_LEFT_DCLICK
= wxpc
.wxEVT_COMMAND_LEFT_DCLICK
569 wxEVT_COMMAND_RIGHT_CLICK
= wxpc
.wxEVT_COMMAND_RIGHT_CLICK
570 wxEVT_COMMAND_RIGHT_DCLICK
= wxpc
.wxEVT_COMMAND_RIGHT_DCLICK
571 wxEVT_COMMAND_SET_FOCUS
= wxpc
.wxEVT_COMMAND_SET_FOCUS
572 wxEVT_COMMAND_KILL_FOCUS
= wxpc
.wxEVT_COMMAND_KILL_FOCUS
573 wxEVT_COMMAND_ENTER
= wxpc
.wxEVT_COMMAND_ENTER
574 wxEVT_COMMAND_TREE_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_DRAG
575 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
576 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
577 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
578 wxEVT_COMMAND_TREE_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_TREE_DELETE_ITEM
579 wxEVT_COMMAND_TREE_GET_INFO
= wxpc
.wxEVT_COMMAND_TREE_GET_INFO
580 wxEVT_COMMAND_TREE_SET_INFO
= wxpc
.wxEVT_COMMAND_TREE_SET_INFO
581 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
582 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
583 wxEVT_COMMAND_TREE_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGED
584 wxEVT_COMMAND_TREE_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGING
585 wxEVT_COMMAND_TREE_KEY_DOWN
= wxpc
.wxEVT_COMMAND_TREE_KEY_DOWN
586 wxEVT_COMMAND_LIST_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_DRAG
587 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
588 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
589 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
590 wxEVT_COMMAND_LIST_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ITEM
591 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
592 wxEVT_COMMAND_LIST_GET_INFO
= wxpc
.wxEVT_COMMAND_LIST_GET_INFO
593 wxEVT_COMMAND_LIST_SET_INFO
= wxpc
.wxEVT_COMMAND_LIST_SET_INFO
594 wxEVT_COMMAND_LIST_ITEM_SELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_SELECTED
595 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
596 wxEVT_COMMAND_LIST_KEY_DOWN
= wxpc
.wxEVT_COMMAND_LIST_KEY_DOWN
597 wxEVT_COMMAND_LIST_INSERT_ITEM
= wxpc
.wxEVT_COMMAND_LIST_INSERT_ITEM
598 wxEVT_COMMAND_LIST_COL_CLICK
= wxpc
.wxEVT_COMMAND_LIST_COL_CLICK
599 wxEVT_COMMAND_TAB_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGED
600 wxEVT_COMMAND_TAB_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGING
601 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
602 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
603 __version__
= wxpc
.__version
__
605 wxPyDefaultPosition
= wxPointPtr(wxpc
.cvar
.wxPyDefaultPosition
)
606 wxPyDefaultSize
= wxSizePtr(wxpc
.cvar
.wxPyDefaultSize
)
609 #-------------- USER INCLUDE -----------------------
611 #----------------------------------------------------------------------------
613 # Purpose: This file is appended to the shadow class file generated
614 # by SWIG. We add some unSWIGable things here.
620 # Copyright: (c) 1998 by Total Control Software
621 # Licence: wxWindows license
622 #----------------------------------------------------------------------------
626 #----------------------------------------------------------------------
627 # This gives this module's dictionary to the C++ extension code...
629 _wxSetDictionary(vars())
632 #----------------------------------------------------------------------
633 #----------------------------------------------------------------------
634 # Helper function to link python methods to wxWindows virtual
637 def _checkForCallback(obj
, name
, event
, theID
=-1):
638 try: cb
= getattr(obj
, name
)
640 else: obj
.Connect(theID
, -1, event
, cb
)
642 def _StdWindowCallbacks(win
):
643 _checkForCallback(win
, "OnChar", wxEVT_CHAR
)
644 _checkForCallback(win
, "OnSize", wxEVT_SIZE
)
645 _checkForCallback(win
, "OnEraseBackground", wxEVT_ERASE_BACKGROUND
)
646 _checkForCallback(win
, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED
)
647 _checkForCallback(win
, "OnInitDialog", wxEVT_INIT_DIALOG
)
648 _checkForCallback(win
, "OnIdle", wxEVT_IDLE
)
649 _checkForCallback(win
, "OnPaint", wxEVT_PAINT
)
651 def _StdFrameCallbacks(win
):
652 _StdWindowCallbacks(win
)
653 _checkForCallback(win
, "OnActivate", wxEVT_ACTIVATE
)
654 _checkForCallback(win
, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT
)
655 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
658 def _StdOnScrollCallback(win
):
659 try: cb
= getattr(win
, "OnScroll")
661 else: EVT_SCROLL(win
, cb
)
665 #----------------------------------------------------------------------
666 #----------------------------------------------------------------------
667 # functions that look and act like the C++ Macros of the same name
671 def EVT_SIZE(win
, func
):
672 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
674 def EVT_MOVE(win
, func
):
675 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
677 def EVT_CLOSE(win
, func
):
678 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
680 def EVT_PAINT(win
, func
):
681 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
683 def EVT_ERASE_BACKGROUND(win
, func
):
684 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
686 def EVT_CHAR(win
, func
):
687 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
689 def EVT_CHAR_HOOK(win
, func
):
690 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
692 def EVT_MENU_HIGHLIGHT(win
, id, func
):
693 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
695 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
696 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
698 def EVT_SET_FOCUS(win
, func
):
699 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
701 def EVT_KILL_FOCUS(win
, func
):
702 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
704 def EVT_ACTIVATE(win
, func
):
705 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
707 def EVT_ACTIVATE_APP(win
, func
):
708 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
710 def EVT_END_SESSION(win
, func
):
711 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
713 def EVT_QUERY_END_SESSION(win
, func
):
714 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
716 def EVT_DROP_FILES(win
, func
):
717 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
719 def EVT_INIT_DIALOG(win
, func
):
720 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
722 def EVT_SYS_COLOUR_CHANGED(win
, func
):
723 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
725 def EVT_SHOW(win
, func
):
726 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
728 def EVT_MAXIMIZE(win
, func
):
729 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
731 def EVT_ICONIZE(win
, func
):
732 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
734 def EVT_NAVIGATION_KEY(win
, func
):
735 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
739 def EVT_LEFT_DOWN(win
, func
):
740 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
742 def EVT_LEFT_UP(win
, func
):
743 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
745 def EVT_MIDDLE_DOWN(win
, func
):
746 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
748 def EVT_MIDDLE_UP(win
, func
):
749 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
751 def EVT_RIGHT_DOWN(win
, func
):
752 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
754 def EVT_RIGHT_UP(win
, func
):
755 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
757 def EVT_MOTION(win
, func
):
758 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
760 def EVT_LEFT_DCLICK(win
, func
):
761 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
763 def EVT_MIDDLE_DCLICK(win
, func
):
764 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
766 def EVT_RIGHT_DCLICK(win
, func
):
767 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
769 def EVT_LEAVE_WINDOW(win
, func
):
770 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
772 def EVT_ENTER_WINDOW(win
, func
):
773 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
777 def EVT_MOUSE_EVENTS(win
, func
):
778 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
779 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
780 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
781 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
782 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
783 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
784 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
785 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
786 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
787 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
788 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
789 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
792 def EVT_COMMAND(win
, id, cmd
, func
):
793 win
.Connect(id, -1, cmd
, func
)
795 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
796 win
.Connect(id1
, id2
, cmd
, func
)
799 def EVT_SCROLL(win
, func
):
800 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
801 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
802 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
803 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
804 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
805 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
806 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
808 def EVT_SCROLL_TOP(win
, func
):
809 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
811 def EVT_SCROLL_BOTTOM(win
, func
):
812 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
814 def EVT_SCROLL_LINEUP(win
, func
):
815 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
817 def EVT_SCROLL_LINEDOWN(win
, func
):
818 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
820 def EVT_SCROLL_PAGEUP(win
, func
):
821 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
823 def EVT_SCROLL_PAGEDOWN(win
, func
):
824 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
826 def EVT_SCROLL_THUMBTRACK(win
, func
):
827 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
831 # Scrolling, with an id
832 def EVT_COMMAND_SCROLL(win
, id, func
):
833 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
834 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
835 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
836 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
837 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
838 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
839 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
841 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
842 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
844 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
845 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
847 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
848 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
850 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
851 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
853 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
854 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
856 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
857 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
859 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
860 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
863 # Convenience commands
864 def EVT_BUTTON(win
, id, func
):
865 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
867 def EVT_CHECKBOX(win
, id, func
):
868 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
870 def EVT_CHOICE(win
, id, func
):
871 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
873 def EVT_LISTBOX(win
, id, func
):
874 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
876 def EVT_LISTBOX_DCLICK(win
, id, func
):
877 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
879 def EVT_TEXT(win
, id, func
):
880 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
882 def EVT_TEXT_ENTER(win
, id, func
):
883 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
885 def EVT_MENU(win
, id, func
):
886 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
888 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
889 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
891 def EVT_SLIDER(win
, id, func
):
892 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
894 def EVT_RADIOBOX(win
, id, func
):
895 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
897 def EVT_RADIOBUTTON(win
, id, func
):
898 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
900 def EVT_VLBOX(win
, id, func
):
901 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
903 def EVT_COMBOBOX(win
, id, func
):
904 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
906 def EVT_TOOL(win
, id, func
):
907 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
909 def EVT_TOOL_RCLICKED(win
, id, func
):
910 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
912 def EVT_TOOL_ENTER(win
, id, func
):
913 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
915 def EVT_CHECKLISTBOX(win
, id, func
):
916 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
919 # Generic command events
921 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
922 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
924 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
925 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
927 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
928 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
930 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
931 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
933 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
934 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
936 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
937 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
939 def EVT_COMMAND_ENTER(win
, id, func
):
940 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
944 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
945 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
947 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
948 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
952 #----------------------------------------------------------------------
953 #----------------------------------------------------------------------
954 # We need to add to the shadow classes a bit to facilitate callbacks via
955 # virtual functions. These classes replace the shadows generated by SWIG.
957 class wxWindow(wxWindowPtr
):
958 def __init__(self
,arg0
,arg1
,*args
) :
959 argl
= map(None,args
)
960 try: argl
[0] = argl
[0].this
962 try: argl
[1] = argl
[1].this
965 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
967 _StdWindowCallbacks(self
)
970 class wxFrame(wxFramePtr
):
971 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
972 argl
= map(None,args
)
973 try: argl
[0] = argl
[0].this
975 try: argl
[1] = argl
[1].this
978 self
.this
= apply(windowsc
.new_wxFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
980 _StdFrameCallbacks(self
)
983 if wxPlatform
== '__WXMSW__':
984 class wxMiniFrame(wxMiniFramePtr
):
985 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
986 argl
= map(None,args
)
987 try: argl
[0] = argl
[0].this
989 try: argl
[1] = argl
[1].this
992 self
.this
= apply(windowsc
.new_wxMiniFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
994 _StdFrameCallbacks(self
)
997 class wxPanel(wxPanelPtr
):
998 def __init__(self
,arg0
,arg1
,*args
) :
999 argl
= map(None,args
)
1000 try: argl
[0] = argl
[0].this
1002 try: argl
[1] = argl
[1].this
1005 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
1007 _StdWindowCallbacks(self
)
1010 class wxDialog(wxDialogPtr
):
1011 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1012 argl
= map(None,args
)
1013 try: argl
[0] = argl
[0].this
1015 try: argl
[1] = argl
[1].this
1018 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
1020 _StdWindowCallbacks(self
)
1021 _checkForCallback(self
, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_OK
)
1022 _checkForCallback(self
, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_APPLY
)
1023 _checkForCallback(self
, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED
, wxID_CANCEL
)
1024 _checkForCallback(self
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
1025 _checkForCallback(self
, "OnCharHook", wxEVT_CHAR_HOOK
)
1028 class wxScrolledWindow(wxScrolledWindowPtr
):
1029 def __init__(self
,arg0
,*args
) :
1030 argl
= map(None,args
)
1031 try: argl
[1] = argl
[1].this
1033 try: argl
[2] = argl
[2].this
1036 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
1038 _StdWindowCallbacks(self
)
1039 _StdOnScrollCallback(self
)
1043 class wxMDIParentFrame(wxMDIParentFramePtr
):
1044 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1045 argl
= map(None,args
)
1046 try: argl
[0] = argl
[0].this
1048 try: argl
[1] = argl
[1].this
1051 self
.this
= apply(mdic
.new_wxMDIParentFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1053 _StdFrameCallbacks(self
)
1056 class wxMDIChildFrame(wxMDIChildFramePtr
):
1057 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1058 argl
= map(None,args
)
1059 try: argl
[0] = argl
[0].this
1061 try: argl
[1] = argl
[1].this
1064 self
.this
= apply(mdic
.new_wxMDIChildFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
1066 _StdFrameCallbacks(self
)
1069 class wxMDIClientWindow(wxMDIClientWindowPtr
):
1070 def __init__(self
,arg0
,*args
) :
1071 self
.this
= apply(mdic
.new_wxMDIClientWindow
,(arg0
.this
,)+args
)
1073 _StdWindowCallbacks(self
)
1074 _StdOnScrollCallback(self
)
1078 class wxControl(wxControlPtr
):
1079 def __init__(self
,this
):
1081 _StdWindowCallbacks(self
)
1083 class wxButton(wxButtonPtr
):
1084 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1085 argl
= map(None,args
)
1086 try: argl
[0] = argl
[0].this
1088 try: argl
[1] = argl
[1].this
1091 self
.this
= apply(controlsc
.new_wxButton
,(arg0
.this
,arg1
,arg2
,)+args
)
1093 _StdWindowCallbacks(self
)
1095 class wxBitmapButton(wxBitmapButtonPtr
):
1096 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1097 argl
= map(None,args
)
1098 try: argl
[0] = argl
[0].this
1100 try: argl
[1] = argl
[1].this
1103 self
.this
= apply(controlsc
.new_wxBitmapButton
,(arg0
.this
,arg1
,arg2
.this
,)+args
)
1105 _StdWindowCallbacks(self
)
1107 class wxCheckBox(wxCheckBoxPtr
):
1108 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1109 argl
= map(None,args
)
1110 try: argl
[0] = argl
[0].this
1112 try: argl
[1] = argl
[1].this
1115 self
.this
= apply(controlsc
.new_wxCheckBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1117 _StdWindowCallbacks(self
)
1121 class wxChoice(wxChoicePtr
):
1122 def __init__(self
,arg0
,arg1
,*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_wxChoice
,(arg0
.this
,arg1
,)+args
)
1131 _StdWindowCallbacks(self
)
1133 class wxComboBox(wxComboBoxPtr
):
1134 def __init__(self
,arg0
,arg1
,*args
) :
1135 argl
= map(None,args
)
1136 try: argl
[1] = argl
[1].this
1138 try: argl
[2] = argl
[2].this
1141 self
.this
= apply(controlsc
.new_wxComboBox
,(arg0
.this
,arg1
,)+args
)
1143 _StdWindowCallbacks(self
)
1145 class wxGauge(wxGaugePtr
):
1146 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1147 argl
= map(None,args
)
1148 try: argl
[0] = argl
[0].this
1150 try: argl
[1] = argl
[1].this
1153 self
.this
= apply(controlsc
.new_wxGauge
,(arg0
.this
,arg1
,arg2
,)+args
)
1155 _StdWindowCallbacks(self
)
1157 class wxStaticBox(wxStaticBoxPtr
):
1158 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1159 argl
= map(None,args
)
1160 try: argl
[0] = argl
[0].this
1162 try: argl
[1] = argl
[1].this
1165 self
.this
= apply(controlsc
.new_wxStaticBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1167 _StdWindowCallbacks(self
)
1169 class wxStaticText(wxStaticTextPtr
):
1170 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1171 argl
= map(None,args
)
1172 try: argl
[0] = argl
[0].this
1174 try: argl
[1] = argl
[1].this
1177 self
.this
= apply(controlsc
.new_wxStaticText
,(arg0
.this
,arg1
,arg2
,)+args
)
1179 _StdWindowCallbacks(self
)
1181 class wxListBox(wxListBoxPtr
):
1182 def __init__(self
,arg0
,arg1
,*args
) :
1183 argl
= map(None,args
)
1184 try: argl
[0] = argl
[0].this
1186 try: argl
[1] = argl
[1].this
1189 self
.this
= apply(controlsc
.new_wxListBox
,(arg0
.this
,arg1
,)+args
)
1191 _StdWindowCallbacks(self
)
1193 class wxTextCtrl(wxTextCtrlPtr
):
1194 def __init__(self
,arg0
,arg1
,*args
) :
1195 argl
= map(None,args
)
1196 try: argl
[1] = argl
[1].this
1198 try: argl
[2] = argl
[2].this
1201 self
.this
= apply(controlsc
.new_wxTextCtrl
,(arg0
.this
,arg1
,)+args
)
1203 _StdWindowCallbacks(self
)
1205 class wxScrollBar(wxScrollBarPtr
):
1206 def __init__(self
,arg0
,*args
) :
1207 argl
= map(None,args
)
1208 try: argl
[1] = argl
[1].this
1210 try: argl
[2] = argl
[2].this
1213 self
.this
= apply(controlsc
.new_wxScrollBar
,(arg0
.this
,)+args
)
1215 _StdWindowCallbacks(self
)
1217 if wxPlatform
== '__WXMSW__':
1218 class wxSpinButton(wxSpinButtonPtr
):
1219 def __init__(self
,arg0
,*args
) :
1220 argl
= map(None,args
)
1221 try: argl
[1] = argl
[1].this
1223 try: argl
[2] = argl
[2].this
1226 self
.this
= apply(controlsc
.new_wxSpinButton
,(arg0
.this
,)+args
)
1228 _StdWindowCallbacks(self
)
1230 class wxStaticBitmap(wxStaticBitmapPtr
):
1231 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1232 argl
= map(None,args
)
1233 try: argl
[0] = argl
[0].this
1235 try: argl
[1] = argl
[1].this
1238 self
.this
= apply(controlsc
.new_wxStaticBitmap
,(arg0
.this
,arg1
,arg2
.this
,)+args
)
1240 _StdWindowCallbacks(self
)
1242 class wxRadioBox(wxRadioBoxPtr
):
1243 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1244 argl
= map(None,args
)
1245 try: argl
[0] = argl
[0].this
1247 try: argl
[1] = argl
[1].this
1250 self
.this
= apply(controlsc
.new_wxRadioBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1252 _StdWindowCallbacks(self
)
1254 class wxRadioButton(wxRadioButtonPtr
):
1255 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1256 argl
= map(None,args
)
1257 try: argl
[0] = argl
[0].this
1259 try: argl
[1] = argl
[1].this
1262 self
.this
= apply(controlsc
.new_wxRadioButton
,(arg0
.this
,arg1
,arg2
,)+args
)
1264 _StdWindowCallbacks(self
)
1266 class wxSlider(wxSliderPtr
):
1267 def __init__(self
,arg0
,arg1
,arg2
,arg3
,arg4
,*args
) :
1268 argl
= map(None,args
)
1269 try: argl
[0] = argl
[0].this
1271 try: argl
[1] = argl
[1].this
1274 self
.this
= apply(controlsc
.new_wxSlider
,(arg0
.this
,arg1
,arg2
,arg3
,arg4
,)+args
)
1276 _StdWindowCallbacks(self
)
1283 class wxTimer(wxPyTimer
):
1285 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1286 # Notify(self) method.
1288 #----------------------------------------------------------------------
1289 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1290 # expect an object with the SWIG pointer as a 'this' member. This class
1291 # and instance fools the shadow into passing the NULL pointer.
1294 this
= 'NULL' # SWIG converts this to (void*)0
1299 #----------------------------------------------------------------------
1303 wxNamedColor
= wxNamedColour
1305 wxPyDefaultPosition
.Set(-1,-1)
1306 wxPyDefaultSize
.Set(-1,-1)
1308 #----------------------------------------------------------------------
1310 ## class wxPyStdOutWindow(wxFrame):
1311 ## def __init__(self, title = "wxPython: stdout/stderr"):
1312 ## wxFrame.__init__(self, NULL, title)
1313 ## self.title = title
1314 ## self.text = wxTextWindow(self)
1315 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1316 ## self.SetSize(-1,-1,400,200)
1318 ## self.isShown = false
1320 ## def write(self, str): # with this method,
1321 ## if not self.isShown:
1323 ## self.isShown = true
1324 ## self.text.WriteText(str)
1326 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1328 ## self.isShown = false
1331 _defRedirect
= (wxPlatform
== '__WXMSW__')
1333 #----------------------------------------------------------------------
1334 # The main application class. Derive from this and implement an OnInit
1335 # method that creates a frame and then calls self.SetTopWindow(frame)
1337 class wxApp(wxPyApp
):
1338 error
= 'wxApp.error'
1340 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1341 wxPyApp
.__init
__(self
)
1342 self
.stdioWin
= None
1343 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1345 self
.RedirectStdio(filename
)
1347 # this initializes wxWindows and then calls our OnInit
1348 _wxStart(self
.OnInit
)
1357 def RedirectStdio(self
, filename
):
1359 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1361 raise self
.error
, 'wxPyStdOutWindow not yet implemented.'
1362 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1364 def RestoreStdio(self
):
1365 sys
.stdout
, sys
.stderr
= self
.saveStdio
1366 if self
.stdioWin
!= None:
1367 self
.stdioWin
.Show(false
)
1368 self
.stdioWin
.Destroy()
1369 self
.stdioWin
= None
1372 #----------------------------------------------------------------------------
1375 # Revision 1.4 1998/08/27 21:59:31 RD
1376 # Some chicken-and-egg problems solved for wxPython on wxGTK
1378 # Revision 1.2 1998/08/18 19:48:12 RD
1379 # more wxGTK compatibility things.
1381 # It builds now but there are serious runtime problems...
1383 # Revision 1.1 1998/08/09 08:25:49 RD