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 UNKNOWN
= wxpc
.UNKNOWN
106 NOT_FOUND
= wxpc
.NOT_FOUND
107 wxVSCROLL
= wxpc
.wxVSCROLL
108 wxHSCROLL
= wxpc
.wxHSCROLL
109 wxCAPTION
= wxpc
.wxCAPTION
110 wxDOUBLE_BORDER
= wxpc
.wxDOUBLE_BORDER
111 wxSUNKEN_BORDER
= wxpc
.wxSUNKEN_BORDER
112 wxRAISED_BORDER
= wxpc
.wxRAISED_BORDER
113 wxBORDER
= wxpc
.wxBORDER
114 wxSIMPLE_BORDER
= wxpc
.wxSIMPLE_BORDER
115 wxSTATIC_BORDER
= wxpc
.wxSTATIC_BORDER
116 wxTRANSPARENT_WINDOW
= wxpc
.wxTRANSPARENT_WINDOW
117 wxNO_BORDER
= wxpc
.wxNO_BORDER
118 wxUSER_COLOURS
= wxpc
.wxUSER_COLOURS
119 wxNO_3D
= wxpc
.wxNO_3D
120 wxTAB_TRAVERSAL
= wxpc
.wxTAB_TRAVERSAL
121 wxHORIZONTAL
= wxpc
.wxHORIZONTAL
122 wxVERTICAL
= wxpc
.wxVERTICAL
124 wxCENTER_FRAME
= wxpc
.wxCENTER_FRAME
125 wxSTAY_ON_TOP
= wxpc
.wxSTAY_ON_TOP
126 wxICONIZE
= wxpc
.wxICONIZE
127 wxMINIMIZE
= wxpc
.wxMINIMIZE
128 wxMAXIMIZE
= wxpc
.wxMAXIMIZE
129 wxTHICK_FRAME
= wxpc
.wxTHICK_FRAME
130 wxSYSTEM_MENU
= wxpc
.wxSYSTEM_MENU
131 wxMINIMIZE_BOX
= wxpc
.wxMINIMIZE_BOX
132 wxMAXIMIZE_BOX
= wxpc
.wxMAXIMIZE_BOX
133 wxTINY_CAPTION_HORIZ
= wxpc
.wxTINY_CAPTION_HORIZ
134 wxTINY_CAPTION_VERT
= wxpc
.wxTINY_CAPTION_VERT
135 wxRESIZE_BOX
= wxpc
.wxRESIZE_BOX
136 wxRESIZE_BORDER
= wxpc
.wxRESIZE_BORDER
137 wxDIALOG_MODAL
= wxpc
.wxDIALOG_MODAL
138 wxDIALOG_MODELESS
= wxpc
.wxDIALOG_MODELESS
139 wxDEFAULT_FRAME_STYLE
= wxpc
.wxDEFAULT_FRAME_STYLE
140 wxDEFAULT_DIALOG_STYLE
= wxpc
.wxDEFAULT_DIALOG_STYLE
141 wxRETAINED
= wxpc
.wxRETAINED
142 wxBACKINGSTORE
= wxpc
.wxBACKINGSTORE
143 wxTB_3DBUTTONS
= wxpc
.wxTB_3DBUTTONS
144 wxTB_HORIZONTAL
= wxpc
.wxTB_HORIZONTAL
145 wxTB_VERTICAL
= wxpc
.wxTB_VERTICAL
146 wxCOLOURED
= wxpc
.wxCOLOURED
147 wxFIXED_LENGTH
= wxpc
.wxFIXED_LENGTH
148 wxALIGN_LEFT
= wxpc
.wxALIGN_LEFT
149 wxALIGN_CENTER
= wxpc
.wxALIGN_CENTER
150 wxALIGN_CENTRE
= wxpc
.wxALIGN_CENTRE
151 wxALIGN_RIGHT
= wxpc
.wxALIGN_RIGHT
152 wxLB_NEEDED_SB
= wxpc
.wxLB_NEEDED_SB
153 wxLB_ALWAYS_SB
= wxpc
.wxLB_ALWAYS_SB
154 wxLB_SORT
= wxpc
.wxLB_SORT
155 wxLB_SINGLE
= wxpc
.wxLB_SINGLE
156 wxLB_MULTIPLE
= wxpc
.wxLB_MULTIPLE
157 wxLB_EXTENDED
= wxpc
.wxLB_EXTENDED
158 wxLB_OWNERDRAW
= wxpc
.wxLB_OWNERDRAW
159 wxLB_HSCROLL
= wxpc
.wxLB_HSCROLL
160 wxPROCESS_ENTER
= wxpc
.wxPROCESS_ENTER
161 wxPASSWORD
= wxpc
.wxPASSWORD
162 wxTE_PROCESS_ENTER
= wxpc
.wxTE_PROCESS_ENTER
163 wxTE_PASSWORD
= wxpc
.wxTE_PASSWORD
164 wxTE_READONLY
= wxpc
.wxTE_READONLY
165 wxTE_MULTILINE
= wxpc
.wxTE_MULTILINE
166 wxCB_SIMPLE
= wxpc
.wxCB_SIMPLE
167 wxCB_DROPDOWN
= wxpc
.wxCB_DROPDOWN
168 wxCB_SORT
= wxpc
.wxCB_SORT
169 wxCB_READONLY
= wxpc
.wxCB_READONLY
170 wxRA_HORIZONTAL
= wxpc
.wxRA_HORIZONTAL
171 wxRA_VERTICAL
= wxpc
.wxRA_VERTICAL
172 wxRB_GROUP
= wxpc
.wxRB_GROUP
173 wxGA_PROGRESSBAR
= wxpc
.wxGA_PROGRESSBAR
174 wxGA_HORIZONTAL
= wxpc
.wxGA_HORIZONTAL
175 wxGA_VERTICAL
= wxpc
.wxGA_VERTICAL
176 wxSL_HORIZONTAL
= wxpc
.wxSL_HORIZONTAL
177 wxSL_VERTICAL
= wxpc
.wxSL_VERTICAL
178 wxSL_AUTOTICKS
= wxpc
.wxSL_AUTOTICKS
179 wxSL_LABELS
= wxpc
.wxSL_LABELS
180 wxSL_LEFT
= wxpc
.wxSL_LEFT
181 wxSL_TOP
= wxpc
.wxSL_TOP
182 wxSL_RIGHT
= wxpc
.wxSL_RIGHT
183 wxSL_BOTTOM
= wxpc
.wxSL_BOTTOM
184 wxSL_BOTH
= wxpc
.wxSL_BOTH
185 wxSL_SELRANGE
= wxpc
.wxSL_SELRANGE
186 wxSB_HORIZONTAL
= wxpc
.wxSB_HORIZONTAL
187 wxSB_VERTICAL
= wxpc
.wxSB_VERTICAL
188 wxBU_AUTODRAW
= wxpc
.wxBU_AUTODRAW
189 wxBU_NOAUTODRAW
= wxpc
.wxBU_NOAUTODRAW
190 wxTR_HAS_BUTTONS
= wxpc
.wxTR_HAS_BUTTONS
191 wxTR_EDIT_LABELS
= wxpc
.wxTR_EDIT_LABELS
192 wxLC_ICON
= wxpc
.wxLC_ICON
193 wxLC_SMALL_ICON
= wxpc
.wxLC_SMALL_ICON
194 wxLC_LIST
= wxpc
.wxLC_LIST
195 wxLC_REPORT
= wxpc
.wxLC_REPORT
196 wxLC_ALIGN_TOP
= wxpc
.wxLC_ALIGN_TOP
197 wxLC_ALIGN_LEFT
= wxpc
.wxLC_ALIGN_LEFT
198 wxLC_AUTOARRANGE
= wxpc
.wxLC_AUTOARRANGE
199 wxLC_USER_TEXT
= wxpc
.wxLC_USER_TEXT
200 wxLC_EDIT_LABELS
= wxpc
.wxLC_EDIT_LABELS
201 wxLC_NO_HEADER
= wxpc
.wxLC_NO_HEADER
202 wxLC_NO_SORT_HEADER
= wxpc
.wxLC_NO_SORT_HEADER
203 wxLC_SINGLE_SEL
= wxpc
.wxLC_SINGLE_SEL
204 wxLC_SORT_ASCENDING
= wxpc
.wxLC_SORT_ASCENDING
205 wxLC_SORT_DESCENDING
= wxpc
.wxLC_SORT_DESCENDING
206 wxLC_MASK_TYPE
= wxpc
.wxLC_MASK_TYPE
207 wxLC_MASK_ALIGN
= wxpc
.wxLC_MASK_ALIGN
208 wxLC_MASK_SORT
= wxpc
.wxLC_MASK_SORT
209 wxSP_VERTICAL
= wxpc
.wxSP_VERTICAL
210 wxSP_HORIZONTAL
= wxpc
.wxSP_HORIZONTAL
211 wxSP_ARROW_KEYS
= wxpc
.wxSP_ARROW_KEYS
212 wxSP_WRAP
= wxpc
.wxSP_WRAP
213 wxSP_NOBORDER
= wxpc
.wxSP_NOBORDER
214 wxSP_3D
= wxpc
.wxSP_3D
215 wxSP_BORDER
= wxpc
.wxSP_BORDER
216 wxTAB_MULTILINE
= wxpc
.wxTAB_MULTILINE
217 wxTAB_RIGHTJUSTIFY
= wxpc
.wxTAB_RIGHTJUSTIFY
218 wxTAB_FIXEDWIDTH
= wxpc
.wxTAB_FIXEDWIDTH
219 wxTAB_OWNERDRAW
= wxpc
.wxTAB_OWNERDRAW
220 wxFLOOD_SURFACE
= wxpc
.wxFLOOD_SURFACE
221 wxFLOOD_BORDER
= wxpc
.wxFLOOD_BORDER
222 wxODDEVEN_RULE
= wxpc
.wxODDEVEN_RULE
223 wxWINDING_RULE
= wxpc
.wxWINDING_RULE
224 wxTOOL_TOP
= wxpc
.wxTOOL_TOP
225 wxTOOL_BOTTOM
= wxpc
.wxTOOL_BOTTOM
226 wxTOOL_LEFT
= wxpc
.wxTOOL_LEFT
227 wxTOOL_RIGHT
= wxpc
.wxTOOL_RIGHT
229 wxYES_NO
= wxpc
.wxYES_NO
230 wxCANCEL
= wxpc
.wxCANCEL
233 wxICON_EXCLAMATION
= wxpc
.wxICON_EXCLAMATION
234 wxICON_HAND
= wxpc
.wxICON_HAND
235 wxICON_QUESTION
= wxpc
.wxICON_QUESTION
236 wxICON_INFORMATION
= wxpc
.wxICON_INFORMATION
237 wxICON_STOP
= wxpc
.wxICON_STOP
238 wxICON_ASTERISK
= wxpc
.wxICON_ASTERISK
239 wxICON_MASK
= wxpc
.wxICON_MASK
240 wxCENTRE
= wxpc
.wxCENTRE
241 wxCENTER
= wxpc
.wxCENTER
242 wxSIZE_AUTO_WIDTH
= wxpc
.wxSIZE_AUTO_WIDTH
243 wxSIZE_AUTO_HEIGHT
= wxpc
.wxSIZE_AUTO_HEIGHT
244 wxSIZE_AUTO
= wxpc
.wxSIZE_AUTO
245 wxSIZE_USE_EXISTING
= wxpc
.wxSIZE_USE_EXISTING
246 wxSIZE_ALLOW_MINUS_ONE
= wxpc
.wxSIZE_ALLOW_MINUS_ONE
247 wxDF_TEXT
= wxpc
.wxDF_TEXT
248 wxDF_BITMAP
= wxpc
.wxDF_BITMAP
249 wxDF_METAFILE
= wxpc
.wxDF_METAFILE
250 wxDF_DIB
= wxpc
.wxDF_DIB
251 wxDF_OEMTEXT
= wxpc
.wxDF_OEMTEXT
252 wxDF_FILENAME
= wxpc
.wxDF_FILENAME
253 wxPORTRAIT
= wxpc
.wxPORTRAIT
254 wxLANDSCAPE
= wxpc
.wxLANDSCAPE
255 wxID_OPEN
= wxpc
.wxID_OPEN
256 wxID_CLOSE
= wxpc
.wxID_CLOSE
257 wxID_NEW
= wxpc
.wxID_NEW
258 wxID_SAVE
= wxpc
.wxID_SAVE
259 wxID_SAVEAS
= wxpc
.wxID_SAVEAS
260 wxID_REVERT
= wxpc
.wxID_REVERT
261 wxID_EXIT
= wxpc
.wxID_EXIT
262 wxID_UNDO
= wxpc
.wxID_UNDO
263 wxID_REDO
= wxpc
.wxID_REDO
264 wxID_HELP
= wxpc
.wxID_HELP
265 wxID_PRINT
= wxpc
.wxID_PRINT
266 wxID_PRINT_SETUP
= wxpc
.wxID_PRINT_SETUP
267 wxID_PREVIEW
= wxpc
.wxID_PREVIEW
268 wxID_ABOUT
= wxpc
.wxID_ABOUT
269 wxID_HELP_CONTENTS
= wxpc
.wxID_HELP_CONTENTS
270 wxID_HELP_COMMANDS
= wxpc
.wxID_HELP_COMMANDS
271 wxID_HELP_PROCEDURES
= wxpc
.wxID_HELP_PROCEDURES
272 wxID_HELP_CONTEXT
= wxpc
.wxID_HELP_CONTEXT
273 wxID_CUT
= wxpc
.wxID_CUT
274 wxID_COPY
= wxpc
.wxID_COPY
275 wxID_PASTE
= wxpc
.wxID_PASTE
276 wxID_CLEAR
= wxpc
.wxID_CLEAR
277 wxID_FIND
= wxpc
.wxID_FIND
278 wxID_FILE1
= wxpc
.wxID_FILE1
279 wxID_FILE2
= wxpc
.wxID_FILE2
280 wxID_FILE3
= wxpc
.wxID_FILE3
281 wxID_FILE4
= wxpc
.wxID_FILE4
282 wxID_FILE5
= wxpc
.wxID_FILE5
283 wxID_FILE6
= wxpc
.wxID_FILE6
284 wxID_FILE7
= wxpc
.wxID_FILE7
285 wxID_FILE8
= wxpc
.wxID_FILE8
286 wxID_FILE9
= wxpc
.wxID_FILE9
287 wxID_OK
= wxpc
.wxID_OK
288 wxID_CANCEL
= wxpc
.wxID_CANCEL
289 wxID_APPLY
= wxpc
.wxID_APPLY
290 wxID_YES
= wxpc
.wxID_YES
291 wxID_NO
= wxpc
.wxID_NO
292 wxBITMAP_TYPE_BMP
= wxpc
.wxBITMAP_TYPE_BMP
293 wxBITMAP_TYPE_BMP_RESOURCE
= wxpc
.wxBITMAP_TYPE_BMP_RESOURCE
294 wxBITMAP_TYPE_ICO
= wxpc
.wxBITMAP_TYPE_ICO
295 wxBITMAP_TYPE_ICO_RESOURCE
= wxpc
.wxBITMAP_TYPE_ICO_RESOURCE
296 wxBITMAP_TYPE_CUR
= wxpc
.wxBITMAP_TYPE_CUR
297 wxBITMAP_TYPE_CUR_RESOURCE
= wxpc
.wxBITMAP_TYPE_CUR_RESOURCE
298 wxBITMAP_TYPE_XBM
= wxpc
.wxBITMAP_TYPE_XBM
299 wxBITMAP_TYPE_XBM_DATA
= wxpc
.wxBITMAP_TYPE_XBM_DATA
300 wxBITMAP_TYPE_XPM
= wxpc
.wxBITMAP_TYPE_XPM
301 wxBITMAP_TYPE_XPM_DATA
= wxpc
.wxBITMAP_TYPE_XPM_DATA
302 wxBITMAP_TYPE_TIF
= wxpc
.wxBITMAP_TYPE_TIF
303 wxBITMAP_TYPE_TIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_TIF_RESOURCE
304 wxBITMAP_TYPE_GIF
= wxpc
.wxBITMAP_TYPE_GIF
305 wxBITMAP_TYPE_GIF_RESOURCE
= wxpc
.wxBITMAP_TYPE_GIF_RESOURCE
306 wxBITMAP_TYPE_PNG
= wxpc
.wxBITMAP_TYPE_PNG
307 wxBITMAP_TYPE_PNG_RESOURCE
= wxpc
.wxBITMAP_TYPE_PNG_RESOURCE
308 wxBITMAP_TYPE_ANY
= wxpc
.wxBITMAP_TYPE_ANY
309 wxBITMAP_TYPE_RESOURCE
= wxpc
.wxBITMAP_TYPE_RESOURCE
312 wxHIDE_READONLY
= wxpc
.wxHIDE_READONLY
313 wxOVERWRITE_PROMPT
= wxpc
.wxOVERWRITE_PROMPT
314 ERR_PARAM
= wxpc
.ERR_PARAM
315 ERR_NODATA
= wxpc
.ERR_NODATA
316 ERR_CANCEL
= wxpc
.ERR_CANCEL
317 ERR_SUCCESS
= wxpc
.ERR_SUCCESS
318 wxDEFAULT
= wxpc
.wxDEFAULT
319 wxDECORATIVE
= wxpc
.wxDECORATIVE
320 wxROMAN
= wxpc
.wxROMAN
321 wxSCRIPT
= wxpc
.wxSCRIPT
322 wxSWISS
= wxpc
.wxSWISS
323 wxMODERN
= wxpc
.wxMODERN
324 wxTELETYPE
= wxpc
.wxTELETYPE
325 wxVARIABLE
= wxpc
.wxVARIABLE
326 wxFIXED
= wxpc
.wxFIXED
327 wxNORMAL
= wxpc
.wxNORMAL
328 wxLIGHT
= wxpc
.wxLIGHT
330 wxITALIC
= wxpc
.wxITALIC
331 wxSLANT
= wxpc
.wxSLANT
332 wxSOLID
= wxpc
.wxSOLID
334 wxLONG_DASH
= wxpc
.wxLONG_DASH
335 wxSHORT_DASH
= wxpc
.wxSHORT_DASH
336 wxDOT_DASH
= wxpc
.wxDOT_DASH
337 wxUSER_DASH
= wxpc
.wxUSER_DASH
338 wxTRANSPARENT
= wxpc
.wxTRANSPARENT
339 wxSTIPPLE
= wxpc
.wxSTIPPLE
340 wxBDIAGONAL_HATCH
= wxpc
.wxBDIAGONAL_HATCH
341 wxCROSSDIAG_HATCH
= wxpc
.wxCROSSDIAG_HATCH
342 wxFDIAGONAL_HATCH
= wxpc
.wxFDIAGONAL_HATCH
343 wxCROSS_HATCH
= wxpc
.wxCROSS_HATCH
344 wxHORIZONTAL_HATCH
= wxpc
.wxHORIZONTAL_HATCH
345 wxVERTICAL_HATCH
= wxpc
.wxVERTICAL_HATCH
346 wxJOIN_BEVEL
= wxpc
.wxJOIN_BEVEL
347 wxJOIN_MITER
= wxpc
.wxJOIN_MITER
348 wxJOIN_ROUND
= wxpc
.wxJOIN_ROUND
349 wxCAP_ROUND
= wxpc
.wxCAP_ROUND
350 wxCAP_PROJECTING
= wxpc
.wxCAP_PROJECTING
351 wxCAP_BUTT
= wxpc
.wxCAP_BUTT
352 wxCLEAR
= wxpc
.wxCLEAR
354 wxINVERT
= wxpc
.wxINVERT
355 wxOR_REVERSE
= wxpc
.wxOR_REVERSE
356 wxAND_REVERSE
= wxpc
.wxAND_REVERSE
359 wxAND_INVERT
= wxpc
.wxAND_INVERT
360 wxNO_OP
= wxpc
.wxNO_OP
362 wxEQUIV
= wxpc
.wxEQUIV
363 wxSRC_INVERT
= wxpc
.wxSRC_INVERT
364 wxOR_INVERT
= wxpc
.wxOR_INVERT
368 wxSRC_OR
= wxpc
.wxSRC_OR
369 wxSRC_AND
= wxpc
.wxSRC_AND
370 WXK_BACK
= wxpc
.WXK_BACK
371 WXK_TAB
= wxpc
.WXK_TAB
372 WXK_RETURN
= wxpc
.WXK_RETURN
373 WXK_ESCAPE
= wxpc
.WXK_ESCAPE
374 WXK_SPACE
= wxpc
.WXK_SPACE
375 WXK_DELETE
= wxpc
.WXK_DELETE
376 WXK_START
= wxpc
.WXK_START
377 WXK_LBUTTON
= wxpc
.WXK_LBUTTON
378 WXK_RBUTTON
= wxpc
.WXK_RBUTTON
379 WXK_CANCEL
= wxpc
.WXK_CANCEL
380 WXK_MBUTTON
= wxpc
.WXK_MBUTTON
381 WXK_CLEAR
= wxpc
.WXK_CLEAR
382 WXK_SHIFT
= wxpc
.WXK_SHIFT
383 WXK_CONTROL
= wxpc
.WXK_CONTROL
384 WXK_MENU
= wxpc
.WXK_MENU
385 WXK_PAUSE
= wxpc
.WXK_PAUSE
386 WXK_CAPITAL
= wxpc
.WXK_CAPITAL
387 WXK_PRIOR
= wxpc
.WXK_PRIOR
388 WXK_NEXT
= wxpc
.WXK_NEXT
389 WXK_END
= wxpc
.WXK_END
390 WXK_HOME
= wxpc
.WXK_HOME
391 WXK_LEFT
= wxpc
.WXK_LEFT
393 WXK_RIGHT
= wxpc
.WXK_RIGHT
394 WXK_DOWN
= wxpc
.WXK_DOWN
395 WXK_SELECT
= wxpc
.WXK_SELECT
396 WXK_PRINT
= wxpc
.WXK_PRINT
397 WXK_EXECUTE
= wxpc
.WXK_EXECUTE
398 WXK_SNAPSHOT
= wxpc
.WXK_SNAPSHOT
399 WXK_INSERT
= wxpc
.WXK_INSERT
400 WXK_HELP
= wxpc
.WXK_HELP
401 WXK_NUMPAD0
= wxpc
.WXK_NUMPAD0
402 WXK_NUMPAD1
= wxpc
.WXK_NUMPAD1
403 WXK_NUMPAD2
= wxpc
.WXK_NUMPAD2
404 WXK_NUMPAD3
= wxpc
.WXK_NUMPAD3
405 WXK_NUMPAD4
= wxpc
.WXK_NUMPAD4
406 WXK_NUMPAD5
= wxpc
.WXK_NUMPAD5
407 WXK_NUMPAD6
= wxpc
.WXK_NUMPAD6
408 WXK_NUMPAD7
= wxpc
.WXK_NUMPAD7
409 WXK_NUMPAD8
= wxpc
.WXK_NUMPAD8
410 WXK_NUMPAD9
= wxpc
.WXK_NUMPAD9
411 WXK_MULTIPLY
= wxpc
.WXK_MULTIPLY
412 WXK_ADD
= wxpc
.WXK_ADD
413 WXK_SEPARATOR
= wxpc
.WXK_SEPARATOR
414 WXK_SUBTRACT
= wxpc
.WXK_SUBTRACT
415 WXK_DECIMAL
= wxpc
.WXK_DECIMAL
416 WXK_DIVIDE
= wxpc
.WXK_DIVIDE
426 WXK_F10
= wxpc
.WXK_F10
427 WXK_F11
= wxpc
.WXK_F11
428 WXK_F12
= wxpc
.WXK_F12
429 WXK_F13
= wxpc
.WXK_F13
430 WXK_F14
= wxpc
.WXK_F14
431 WXK_F15
= wxpc
.WXK_F15
432 WXK_F16
= wxpc
.WXK_F16
433 WXK_F17
= wxpc
.WXK_F17
434 WXK_F18
= wxpc
.WXK_F18
435 WXK_F19
= wxpc
.WXK_F19
436 WXK_F20
= wxpc
.WXK_F20
437 WXK_F21
= wxpc
.WXK_F21
438 WXK_F22
= wxpc
.WXK_F22
439 WXK_F23
= wxpc
.WXK_F23
440 WXK_F24
= wxpc
.WXK_F24
441 WXK_NUMLOCK
= wxpc
.WXK_NUMLOCK
442 WXK_SCROLL
= wxpc
.WXK_SCROLL
443 WXK_PAGEUP
= wxpc
.WXK_PAGEUP
444 WXK_PAGEDOWN
= wxpc
.WXK_PAGEDOWN
445 wxCURSOR_ARROW
= wxpc
.wxCURSOR_ARROW
446 wxCURSOR_BULLSEYE
= wxpc
.wxCURSOR_BULLSEYE
447 wxCURSOR_CHAR
= wxpc
.wxCURSOR_CHAR
448 wxCURSOR_CROSS
= wxpc
.wxCURSOR_CROSS
449 wxCURSOR_HAND
= wxpc
.wxCURSOR_HAND
450 wxCURSOR_IBEAM
= wxpc
.wxCURSOR_IBEAM
451 wxCURSOR_LEFT_BUTTON
= wxpc
.wxCURSOR_LEFT_BUTTON
452 wxCURSOR_MAGNIFIER
= wxpc
.wxCURSOR_MAGNIFIER
453 wxCURSOR_MIDDLE_BUTTON
= wxpc
.wxCURSOR_MIDDLE_BUTTON
454 wxCURSOR_NO_ENTRY
= wxpc
.wxCURSOR_NO_ENTRY
455 wxCURSOR_PAINT_BRUSH
= wxpc
.wxCURSOR_PAINT_BRUSH
456 wxCURSOR_PENCIL
= wxpc
.wxCURSOR_PENCIL
457 wxCURSOR_POINT_LEFT
= wxpc
.wxCURSOR_POINT_LEFT
458 wxCURSOR_POINT_RIGHT
= wxpc
.wxCURSOR_POINT_RIGHT
459 wxCURSOR_QUESTION_ARROW
= wxpc
.wxCURSOR_QUESTION_ARROW
460 wxCURSOR_RIGHT_BUTTON
= wxpc
.wxCURSOR_RIGHT_BUTTON
461 wxCURSOR_SIZENESW
= wxpc
.wxCURSOR_SIZENESW
462 wxCURSOR_SIZENS
= wxpc
.wxCURSOR_SIZENS
463 wxCURSOR_SIZENWSE
= wxpc
.wxCURSOR_SIZENWSE
464 wxCURSOR_SIZEWE
= wxpc
.wxCURSOR_SIZEWE
465 wxCURSOR_SIZING
= wxpc
.wxCURSOR_SIZING
466 wxCURSOR_SPRAYCAN
= wxpc
.wxCURSOR_SPRAYCAN
467 wxCURSOR_WAIT
= wxpc
.wxCURSOR_WAIT
468 wxCURSOR_WATCH
= wxpc
.wxCURSOR_WATCH
469 wxCURSOR_BLANK
= wxpc
.wxCURSOR_BLANK
474 wxEVT_NULL
= wxpc
.wxEVT_NULL
475 wxEVT_FIRST
= wxpc
.wxEVT_FIRST
476 wxEVT_COMMAND_BUTTON_CLICKED
= wxpc
.wxEVT_COMMAND_BUTTON_CLICKED
477 wxEVT_COMMAND_CHECKBOX_CLICKED
= wxpc
.wxEVT_COMMAND_CHECKBOX_CLICKED
478 wxEVT_COMMAND_CHOICE_SELECTED
= wxpc
.wxEVT_COMMAND_CHOICE_SELECTED
479 wxEVT_COMMAND_LISTBOX_SELECTED
= wxpc
.wxEVT_COMMAND_LISTBOX_SELECTED
480 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= wxpc
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
481 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= wxpc
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
482 wxEVT_COMMAND_TEXT_UPDATED
= wxpc
.wxEVT_COMMAND_TEXT_UPDATED
483 wxEVT_COMMAND_TEXT_ENTER
= wxpc
.wxEVT_COMMAND_TEXT_ENTER
484 wxEVT_COMMAND_MENU_SELECTED
= wxpc
.wxEVT_COMMAND_MENU_SELECTED
485 wxEVT_COMMAND_SLIDER_UPDATED
= wxpc
.wxEVT_COMMAND_SLIDER_UPDATED
486 wxEVT_COMMAND_RADIOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBOX_SELECTED
487 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= wxpc
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
488 wxEVT_COMMAND_SCROLLBAR_UPDATED
= wxpc
.wxEVT_COMMAND_SCROLLBAR_UPDATED
489 wxEVT_COMMAND_VLBOX_SELECTED
= wxpc
.wxEVT_COMMAND_VLBOX_SELECTED
490 wxEVT_COMMAND_COMBOBOX_SELECTED
= wxpc
.wxEVT_COMMAND_COMBOBOX_SELECTED
491 wxEVT_COMMAND_TOOL_CLICKED
= wxpc
.wxEVT_COMMAND_TOOL_CLICKED
492 wxEVT_COMMAND_TOOL_RCLICKED
= wxpc
.wxEVT_COMMAND_TOOL_RCLICKED
493 wxEVT_COMMAND_TOOL_ENTER
= wxpc
.wxEVT_COMMAND_TOOL_ENTER
494 wxEVT_SET_FOCUS
= wxpc
.wxEVT_SET_FOCUS
495 wxEVT_KILL_FOCUS
= wxpc
.wxEVT_KILL_FOCUS
496 wxEVT_LEFT_DOWN
= wxpc
.wxEVT_LEFT_DOWN
497 wxEVT_LEFT_UP
= wxpc
.wxEVT_LEFT_UP
498 wxEVT_MIDDLE_DOWN
= wxpc
.wxEVT_MIDDLE_DOWN
499 wxEVT_MIDDLE_UP
= wxpc
.wxEVT_MIDDLE_UP
500 wxEVT_RIGHT_DOWN
= wxpc
.wxEVT_RIGHT_DOWN
501 wxEVT_RIGHT_UP
= wxpc
.wxEVT_RIGHT_UP
502 wxEVT_MOTION
= wxpc
.wxEVT_MOTION
503 wxEVT_ENTER_WINDOW
= wxpc
.wxEVT_ENTER_WINDOW
504 wxEVT_LEAVE_WINDOW
= wxpc
.wxEVT_LEAVE_WINDOW
505 wxEVT_LEFT_DCLICK
= wxpc
.wxEVT_LEFT_DCLICK
506 wxEVT_MIDDLE_DCLICK
= wxpc
.wxEVT_MIDDLE_DCLICK
507 wxEVT_RIGHT_DCLICK
= wxpc
.wxEVT_RIGHT_DCLICK
508 wxEVT_NC_LEFT_DOWN
= wxpc
.wxEVT_NC_LEFT_DOWN
509 wxEVT_NC_LEFT_UP
= wxpc
.wxEVT_NC_LEFT_UP
510 wxEVT_NC_MIDDLE_DOWN
= wxpc
.wxEVT_NC_MIDDLE_DOWN
511 wxEVT_NC_MIDDLE_UP
= wxpc
.wxEVT_NC_MIDDLE_UP
512 wxEVT_NC_RIGHT_DOWN
= wxpc
.wxEVT_NC_RIGHT_DOWN
513 wxEVT_NC_RIGHT_UP
= wxpc
.wxEVT_NC_RIGHT_UP
514 wxEVT_NC_MOTION
= wxpc
.wxEVT_NC_MOTION
515 wxEVT_NC_ENTER_WINDOW
= wxpc
.wxEVT_NC_ENTER_WINDOW
516 wxEVT_NC_LEAVE_WINDOW
= wxpc
.wxEVT_NC_LEAVE_WINDOW
517 wxEVT_NC_LEFT_DCLICK
= wxpc
.wxEVT_NC_LEFT_DCLICK
518 wxEVT_NC_MIDDLE_DCLICK
= wxpc
.wxEVT_NC_MIDDLE_DCLICK
519 wxEVT_NC_RIGHT_DCLICK
= wxpc
.wxEVT_NC_RIGHT_DCLICK
520 wxEVT_CHAR
= wxpc
.wxEVT_CHAR
521 wxEVT_SCROLL_TOP
= wxpc
.wxEVT_SCROLL_TOP
522 wxEVT_SCROLL_BOTTOM
= wxpc
.wxEVT_SCROLL_BOTTOM
523 wxEVT_SCROLL_LINEUP
= wxpc
.wxEVT_SCROLL_LINEUP
524 wxEVT_SCROLL_LINEDOWN
= wxpc
.wxEVT_SCROLL_LINEDOWN
525 wxEVT_SCROLL_PAGEUP
= wxpc
.wxEVT_SCROLL_PAGEUP
526 wxEVT_SCROLL_PAGEDOWN
= wxpc
.wxEVT_SCROLL_PAGEDOWN
527 wxEVT_SCROLL_THUMBTRACK
= wxpc
.wxEVT_SCROLL_THUMBTRACK
528 wxEVT_SIZE
= wxpc
.wxEVT_SIZE
529 wxEVT_MOVE
= wxpc
.wxEVT_MOVE
530 wxEVT_CLOSE_WINDOW
= wxpc
.wxEVT_CLOSE_WINDOW
531 wxEVT_END_SESSION
= wxpc
.wxEVT_END_SESSION
532 wxEVT_QUERY_END_SESSION
= wxpc
.wxEVT_QUERY_END_SESSION
533 wxEVT_ACTIVATE_APP
= wxpc
.wxEVT_ACTIVATE_APP
534 wxEVT_POWER
= wxpc
.wxEVT_POWER
535 wxEVT_CHAR_HOOK
= wxpc
.wxEVT_CHAR_HOOK
536 wxEVT_KEY_UP
= wxpc
.wxEVT_KEY_UP
537 wxEVT_ACTIVATE
= wxpc
.wxEVT_ACTIVATE
538 wxEVT_CREATE
= wxpc
.wxEVT_CREATE
539 wxEVT_DESTROY
= wxpc
.wxEVT_DESTROY
540 wxEVT_SHOW
= wxpc
.wxEVT_SHOW
541 wxEVT_ICONIZE
= wxpc
.wxEVT_ICONIZE
542 wxEVT_MAXIMIZE
= wxpc
.wxEVT_MAXIMIZE
543 wxEVT_MOUSE_CAPTURE_CHANGED
= wxpc
.wxEVT_MOUSE_CAPTURE_CHANGED
544 wxEVT_PAINT
= wxpc
.wxEVT_PAINT
545 wxEVT_ERASE_BACKGROUND
= wxpc
.wxEVT_ERASE_BACKGROUND
546 wxEVT_NC_PAINT
= wxpc
.wxEVT_NC_PAINT
547 wxEVT_PAINT_ICON
= wxpc
.wxEVT_PAINT_ICON
548 wxEVT_MENU_CHAR
= wxpc
.wxEVT_MENU_CHAR
549 wxEVT_MENU_INIT
= wxpc
.wxEVT_MENU_INIT
550 wxEVT_MENU_HIGHLIGHT
= wxpc
.wxEVT_MENU_HIGHLIGHT
551 wxEVT_POPUP_MENU_INIT
= wxpc
.wxEVT_POPUP_MENU_INIT
552 wxEVT_CONTEXT_MENU
= wxpc
.wxEVT_CONTEXT_MENU
553 wxEVT_SYS_COLOUR_CHANGED
= wxpc
.wxEVT_SYS_COLOUR_CHANGED
554 wxEVT_SETTING_CHANGED
= wxpc
.wxEVT_SETTING_CHANGED
555 wxEVT_QUERY_NEW_PALETTE
= wxpc
.wxEVT_QUERY_NEW_PALETTE
556 wxEVT_PALETTE_CHANGED
= wxpc
.wxEVT_PALETTE_CHANGED
557 wxEVT_JOY_BUTTON_DOWN
= wxpc
.wxEVT_JOY_BUTTON_DOWN
558 wxEVT_JOY_BUTTON_UP
= wxpc
.wxEVT_JOY_BUTTON_UP
559 wxEVT_JOY_MOVE
= wxpc
.wxEVT_JOY_MOVE
560 wxEVT_JOY_ZMOVE
= wxpc
.wxEVT_JOY_ZMOVE
561 wxEVT_DROP_FILES
= wxpc
.wxEVT_DROP_FILES
562 wxEVT_DRAW_ITEM
= wxpc
.wxEVT_DRAW_ITEM
563 wxEVT_MEASURE_ITEM
= wxpc
.wxEVT_MEASURE_ITEM
564 wxEVT_COMPARE_ITEM
= wxpc
.wxEVT_COMPARE_ITEM
565 wxEVT_INIT_DIALOG
= wxpc
.wxEVT_INIT_DIALOG
566 wxEVT_IDLE
= wxpc
.wxEVT_IDLE
567 wxEVT_UPDATE_UI
= wxpc
.wxEVT_UPDATE_UI
568 wxEVT_COMMAND_LEFT_CLICK
= wxpc
.wxEVT_COMMAND_LEFT_CLICK
569 wxEVT_COMMAND_LEFT_DCLICK
= wxpc
.wxEVT_COMMAND_LEFT_DCLICK
570 wxEVT_COMMAND_RIGHT_CLICK
= wxpc
.wxEVT_COMMAND_RIGHT_CLICK
571 wxEVT_COMMAND_RIGHT_DCLICK
= wxpc
.wxEVT_COMMAND_RIGHT_DCLICK
572 wxEVT_COMMAND_SET_FOCUS
= wxpc
.wxEVT_COMMAND_SET_FOCUS
573 wxEVT_COMMAND_KILL_FOCUS
= wxpc
.wxEVT_COMMAND_KILL_FOCUS
574 wxEVT_COMMAND_ENTER
= wxpc
.wxEVT_COMMAND_ENTER
575 wxEVT_COMMAND_TREE_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_DRAG
576 wxEVT_COMMAND_TREE_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_RDRAG
577 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT
578 wxEVT_COMMAND_TREE_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_TREE_END_LABEL_EDIT
579 wxEVT_COMMAND_TREE_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_TREE_DELETE_ITEM
580 wxEVT_COMMAND_TREE_GET_INFO
= wxpc
.wxEVT_COMMAND_TREE_GET_INFO
581 wxEVT_COMMAND_TREE_SET_INFO
= wxpc
.wxEVT_COMMAND_TREE_SET_INFO
582 wxEVT_COMMAND_TREE_ITEM_EXPANDED
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDED
583 wxEVT_COMMAND_TREE_ITEM_EXPANDING
= wxpc
.wxEVT_COMMAND_TREE_ITEM_EXPANDING
584 wxEVT_COMMAND_TREE_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGED
585 wxEVT_COMMAND_TREE_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TREE_SEL_CHANGING
586 wxEVT_COMMAND_TREE_KEY_DOWN
= wxpc
.wxEVT_COMMAND_TREE_KEY_DOWN
587 wxEVT_COMMAND_LIST_BEGIN_DRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_DRAG
588 wxEVT_COMMAND_LIST_BEGIN_RDRAG
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_RDRAG
589 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT
590 wxEVT_COMMAND_LIST_END_LABEL_EDIT
= wxpc
.wxEVT_COMMAND_LIST_END_LABEL_EDIT
591 wxEVT_COMMAND_LIST_DELETE_ITEM
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ITEM
592 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
= wxpc
.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS
593 wxEVT_COMMAND_LIST_GET_INFO
= wxpc
.wxEVT_COMMAND_LIST_GET_INFO
594 wxEVT_COMMAND_LIST_SET_INFO
= wxpc
.wxEVT_COMMAND_LIST_SET_INFO
595 wxEVT_COMMAND_LIST_ITEM_SELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_SELECTED
596 wxEVT_COMMAND_LIST_ITEM_DESELECTED
= wxpc
.wxEVT_COMMAND_LIST_ITEM_DESELECTED
597 wxEVT_COMMAND_LIST_KEY_DOWN
= wxpc
.wxEVT_COMMAND_LIST_KEY_DOWN
598 wxEVT_COMMAND_LIST_INSERT_ITEM
= wxpc
.wxEVT_COMMAND_LIST_INSERT_ITEM
599 wxEVT_COMMAND_LIST_COL_CLICK
= wxpc
.wxEVT_COMMAND_LIST_COL_CLICK
600 wxEVT_COMMAND_TAB_SEL_CHANGED
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGED
601 wxEVT_COMMAND_TAB_SEL_CHANGING
= wxpc
.wxEVT_COMMAND_TAB_SEL_CHANGING
602 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
603 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
= wxpc
.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
604 __version__
= wxpc
.__version
__
606 wxPyDefaultPosition
= wxPointPtr(wxpc
.cvar
.wxPyDefaultPosition
)
607 wxPyDefaultSize
= wxSizePtr(wxpc
.cvar
.wxPyDefaultSize
)
610 #-------------- USER INCLUDE -----------------------
612 #----------------------------------------------------------------------------
614 # Purpose: This file is appended to the shadow class file generated
615 # by SWIG. We add some unSWIGable things here.
621 # Copyright: (c) 1998 by Total Control Software
622 # Licence: wxWindows license
623 #----------------------------------------------------------------------------
627 #----------------------------------------------------------------------
628 # This gives this module's dictionary to the C++ extension code...
630 _wxSetDictionary(vars())
633 #----------------------------------------------------------------------
634 #----------------------------------------------------------------------
635 # Helper function to link python methods to wxWindows virtual
638 def _checkForCallback(obj
, name
, event
, theID
=-1):
639 try: cb
= getattr(obj
, name
)
641 else: obj
.Connect(theID
, -1, event
, cb
)
643 def _StdWindowCallbacks(win
):
644 _checkForCallback(win
, "OnChar", wxEVT_CHAR
)
645 _checkForCallback(win
, "OnSize", wxEVT_SIZE
)
646 _checkForCallback(win
, "OnEraseBackground", wxEVT_ERASE_BACKGROUND
)
647 _checkForCallback(win
, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED
)
648 _checkForCallback(win
, "OnInitDialog", wxEVT_INIT_DIALOG
)
649 _checkForCallback(win
, "OnIdle", wxEVT_IDLE
)
650 _checkForCallback(win
, "OnPaint", wxEVT_PAINT
)
652 def _StdFrameCallbacks(win
):
653 _StdWindowCallbacks(win
)
654 _checkForCallback(win
, "OnActivate", wxEVT_ACTIVATE
)
655 _checkForCallback(win
, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT
)
656 _checkForCallback(win
, "OnCloseWindow", wxEVT_CLOSE_WINDOW
)
659 def _StdOnScrollCallback(win
):
660 try: cb
= getattr(win
, "OnScroll")
662 else: EVT_SCROLL(win
, cb
)
666 #----------------------------------------------------------------------
667 #----------------------------------------------------------------------
668 # functions that look and act like the C++ Macros of the same name
672 def EVT_SIZE(win
, func
):
673 win
.Connect(-1, -1, wxEVT_SIZE
, func
)
675 def EVT_MOVE(win
, func
):
676 win
.Connect(-1, -1, wxEVT_MOVE
, func
)
678 def EVT_CLOSE(win
, func
):
679 win
.Connect(-1, -1, wxEVT_CLOSE_WINDOW
, func
)
681 def EVT_PAINT(win
, func
):
682 win
.Connect(-1, -1, wxEVT_PAINT
, func
)
684 def EVT_ERASE_BACKGROUND(win
, func
):
685 win
.Connect(-1, -1, wxEVT_ERASE_BACKGROUND
, func
)
687 def EVT_CHAR(win
, func
):
688 win
.Connect(-1, -1, wxEVT_CHAR
, func
)
690 def EVT_CHAR_HOOK(win
, func
):
691 win
.Connect(-1, -1, wxEVT_CHAR_HOOK
, func
)
693 def EVT_MENU_HIGHLIGHT(win
, id, func
):
694 win
.Connect(id, -1, wxEVT_MENU_HIGHLIGHT
, func
)
696 def EVT_MENU_HIGHLIGHT_ALL(win
, func
):
697 win
.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT
, func
)
699 def EVT_SET_FOCUS(win
, func
):
700 win
.Connect(-1, -1, wxEVT_SET_FOCUS
, func
)
702 def EVT_KILL_FOCUS(win
, func
):
703 win
.Connect(-1, -1, wxEVT_KILL_FOCUS
, func
)
705 def EVT_ACTIVATE(win
, func
):
706 win
.Connect(-1, -1, wxEVT_ACTIVATE
, func
)
708 def EVT_ACTIVATE_APP(win
, func
):
709 win
.Connect(-1, -1, wxEVT_ACTIVATE_APP
, func
)
711 def EVT_END_SESSION(win
, func
):
712 win
.Connect(-1, -1, wxEVT_END_SESSION
, func
)
714 def EVT_QUERY_END_SESSION(win
, func
):
715 win
.Connect(-1, -1, wxEVT_QUERY_END_SESSION
, func
)
717 def EVT_DROP_FILES(win
, func
):
718 win
.Connect(-1, -1, wxEVT_DROP_FILES
, func
)
720 def EVT_INIT_DIALOG(win
, func
):
721 win
.Connect(-1, -1, wxEVT_INIT_DIALOG
, func
)
723 def EVT_SYS_COLOUR_CHANGED(win
, func
):
724 win
.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED
, func
)
726 def EVT_SHOW(win
, func
):
727 win
.Connect(-1, -1, wxEVT_SHOW
, func
)
729 def EVT_MAXIMIZE(win
, func
):
730 win
.Connect(-1, -1, wxEVT_MAXIMIZE
, func
)
732 def EVT_ICONIZE(win
, func
):
733 win
.Connect(-1, -1, wxEVT_ICONIZE
, func
)
735 def EVT_NAVIGATION_KEY(win
, func
):
736 win
.Connect(-1, -1, wxEVT_NAVIGATION_KEY
, func
)
740 def EVT_LEFT_DOWN(win
, func
):
741 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
743 def EVT_LEFT_UP(win
, func
):
744 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
746 def EVT_MIDDLE_DOWN(win
, func
):
747 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
749 def EVT_MIDDLE_UP(win
, func
):
750 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
752 def EVT_RIGHT_DOWN(win
, func
):
753 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
755 def EVT_RIGHT_UP(win
, func
):
756 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
758 def EVT_MOTION(win
, func
):
759 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
761 def EVT_LEFT_DCLICK(win
, func
):
762 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
764 def EVT_MIDDLE_DCLICK(win
, func
):
765 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
767 def EVT_RIGHT_DCLICK(win
, func
):
768 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
770 def EVT_LEAVE_WINDOW(win
, func
):
771 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
773 def EVT_ENTER_WINDOW(win
, func
):
774 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
778 def EVT_MOUSE_EVENTS(win
, func
):
779 win
.Connect(-1, -1, wxEVT_LEFT_DOWN
, func
)
780 win
.Connect(-1, -1, wxEVT_LEFT_UP
, func
)
781 win
.Connect(-1, -1, wxEVT_MIDDLE_DOWN
, func
)
782 win
.Connect(-1, -1, wxEVT_MIDDLE_UP
, func
)
783 win
.Connect(-1, -1, wxEVT_RIGHT_DOWN
, func
)
784 win
.Connect(-1, -1, wxEVT_RIGHT_UP
, func
)
785 win
.Connect(-1, -1, wxEVT_MOTION
, func
)
786 win
.Connect(-1, -1, wxEVT_LEFT_DCLICK
, func
)
787 win
.Connect(-1, -1, wxEVT_MIDDLE_DCLICK
, func
)
788 win
.Connect(-1, -1, wxEVT_RIGHT_DCLICK
, func
)
789 win
.Connect(-1, -1, wxEVT_LEAVE_WINDOW
, func
)
790 win
.Connect(-1, -1, wxEVT_ENTER_WINDOW
, func
)
793 def EVT_COMMAND(win
, id, cmd
, func
):
794 win
.Connect(id, -1, cmd
, func
)
796 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
797 win
.Connect(id1
, id2
, cmd
, func
)
800 def EVT_SCROLL(win
, func
):
801 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
802 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
803 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
804 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
805 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
806 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
807 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
809 def EVT_SCROLL_TOP(win
, func
):
810 win
.Connect(-1, -1, wxEVT_SCROLL_TOP
, func
)
812 def EVT_SCROLL_BOTTOM(win
, func
):
813 win
.Connect(-1, -1, wxEVT_SCROLL_BOTTOM
, func
)
815 def EVT_SCROLL_LINEUP(win
, func
):
816 win
.Connect(-1, -1, wxEVT_SCROLL_LINEUP
, func
)
818 def EVT_SCROLL_LINEDOWN(win
, func
):
819 win
.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN
, func
)
821 def EVT_SCROLL_PAGEUP(win
, func
):
822 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEUP
, func
)
824 def EVT_SCROLL_PAGEDOWN(win
, func
):
825 win
.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
827 def EVT_SCROLL_THUMBTRACK(win
, func
):
828 win
.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
832 # Scrolling, with an id
833 def EVT_COMMAND_SCROLL(win
, id, func
):
834 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
835 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
836 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
837 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
838 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
839 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
840 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
,func
)
842 def EVT_COMMAND_SCROLL_TOP(win
, id, func
):
843 win
.Connect(id, -1, wxEVT_SCROLL_TOP
, func
)
845 def EVT_COMMAND_SCROLL_BOTTOM(win
, id, func
):
846 win
.Connect(id, -1, wxEVT_SCROLL_BOTTOM
, func
)
848 def EVT_COMMAND_SCROLL_LINEUP(win
, id, func
):
849 win
.Connect(id, -1, wxEVT_SCROLL_LINEUP
, func
)
851 def EVT_COMMAND_SCROLL_LINEDOWN(win
, id, func
):
852 win
.Connect(id, -1, wxEVT_SCROLL_LINEDOWN
, func
)
854 def EVT_COMMAND_SCROLL_PAGEUP(win
, id, func
):
855 win
.Connect(id, -1, wxEVT_SCROLL_PAGEUP
, func
)
857 def EVT_COMMAND_SCROLL_PAGEDOWN(win
, id, func
):
858 win
.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN
, func
)
860 def EVT_COMMAND_SCROLL_THUMBTRACK(win
, id, func
):
861 win
.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK
, func
)
864 # Convenience commands
865 def EVT_BUTTON(win
, id, func
):
866 win
.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED
, func
)
868 def EVT_CHECKBOX(win
, id, func
):
869 win
.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED
, func
)
871 def EVT_CHOICE(win
, id, func
):
872 win
.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED
, func
)
874 def EVT_LISTBOX(win
, id, func
):
875 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED
, func
)
877 def EVT_LISTBOX_DCLICK(win
, id, func
):
878 win
.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, func
)
880 def EVT_TEXT(win
, id, func
):
881 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED
, func
)
883 def EVT_TEXT_ENTER(win
, id, func
):
884 win
.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER
, func
)
886 def EVT_MENU(win
, id, func
):
887 win
.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED
, func
)
889 def EVT_MENU_RANGE(win
, id1
, id2
, func
):
890 win
.Connect(id1
, id2
, wxEVT_COMMAND_MENU_SELECTED
, func
)
892 def EVT_SLIDER(win
, id, func
):
893 win
.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED
, func
)
895 def EVT_RADIOBOX(win
, id, func
):
896 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED
, func
)
898 def EVT_RADIOBUTTON(win
, id, func
):
899 win
.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED
, func
)
901 def EVT_VLBOX(win
, id, func
):
902 win
.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED
, func
)
904 def EVT_COMBOBOX(win
, id, func
):
905 win
.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED
, func
)
907 def EVT_TOOL(win
, id, func
):
908 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED
, func
)
910 def EVT_TOOL_RCLICKED(win
, id, func
):
911 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED
, func
)
913 def EVT_TOOL_ENTER(win
, id, func
):
914 win
.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER
, func
)
916 def EVT_CHECKLISTBOX(win
, id, func
):
917 win
.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, func
)
920 # Generic command events
922 def EVT_COMMAND_LEFT_CLICK(win
, id, func
):
923 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK
, func
)
925 def EVT_COMMAND_LEFT_DCLICK(win
, id, func
):
926 win
.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK
, func
)
928 def EVT_COMMAND_RIGHT_CLICK(win
, id, func
):
929 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK
, func
)
931 def EVT_COMMAND_RIGHT_DCLICK(win
, id, func
):
932 win
.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK
, func
)
934 def EVT_COMMAND_SET_FOCUS(win
, id, func
):
935 win
.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS
, func
)
937 def EVT_COMMAND_KILL_FOCUS(win
, id, func
):
938 win
.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS
, func
)
940 def EVT_COMMAND_ENTER(win
, id, func
):
941 win
.Connect(id, -1, wxEVT_COMMAND_ENTER
, func
)
945 def EVT_NOTEBOOK_PAGE_CHANGED(win
, id, func
):
946 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
, func
)
948 def EVT_NOTEBOOK_PAGE_CHANGING(win
, id, func
):
949 win
.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
, func
)
953 #----------------------------------------------------------------------
954 #----------------------------------------------------------------------
955 # We need to add to the shadow classes a bit to facilitate callbacks via
956 # virtual functions. These classes replace the shadows generated by SWIG.
958 class wxWindow(wxWindowPtr
):
959 def __init__(self
,arg0
,arg1
,*args
) :
960 argl
= map(None,args
)
961 try: argl
[0] = argl
[0].this
963 try: argl
[1] = argl
[1].this
966 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
968 _StdWindowCallbacks(self
)
971 class wxFrame(wxFramePtr
):
972 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
973 argl
= map(None,args
)
974 try: argl
[0] = argl
[0].this
976 try: argl
[1] = argl
[1].this
979 self
.this
= apply(windowsc
.new_wxFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
981 _StdFrameCallbacks(self
)
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 class wxSpinButton(wxSpinButtonPtr
):
1218 def __init__(self
,arg0
,*args
) :
1219 argl
= map(None,args
)
1220 try: argl
[1] = argl
[1].this
1222 try: argl
[2] = argl
[2].this
1225 self
.this
= apply(controlsc
.new_wxSpinButton
,(arg0
.this
,)+args
)
1227 _StdWindowCallbacks(self
)
1229 class wxStaticBitmap(wxStaticBitmapPtr
):
1230 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1231 argl
= map(None,args
)
1232 try: argl
[0] = argl
[0].this
1234 try: argl
[1] = argl
[1].this
1237 self
.this
= apply(controlsc
.new_wxStaticBitmap
,(arg0
.this
,arg1
,arg2
.this
,)+args
)
1239 _StdWindowCallbacks(self
)
1241 class wxRadioBox(wxRadioBoxPtr
):
1242 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1243 argl
= map(None,args
)
1244 try: argl
[0] = argl
[0].this
1246 try: argl
[1] = argl
[1].this
1249 self
.this
= apply(controlsc
.new_wxRadioBox
,(arg0
.this
,arg1
,arg2
,)+args
)
1251 _StdWindowCallbacks(self
)
1253 class wxRadioButton(wxRadioButtonPtr
):
1254 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
1255 argl
= map(None,args
)
1256 try: argl
[0] = argl
[0].this
1258 try: argl
[1] = argl
[1].this
1261 self
.this
= apply(controlsc
.new_wxRadioButton
,(arg0
.this
,arg1
,arg2
,)+args
)
1263 _StdWindowCallbacks(self
)
1265 class wxSlider(wxSliderPtr
):
1266 def __init__(self
,arg0
,arg1
,arg2
,arg3
,arg4
,*args
) :
1267 argl
= map(None,args
)
1268 try: argl
[0] = argl
[0].this
1270 try: argl
[1] = argl
[1].this
1273 self
.this
= apply(controlsc
.new_wxSlider
,(arg0
.this
,arg1
,arg2
,arg3
,arg4
,)+args
)
1275 _StdWindowCallbacks(self
)
1282 class wxTimer(wxPyTimer
):
1284 wxPyTimer
.__init
__(self
, self
.Notify
) # derived class must provide
1285 # Notify(self) method.
1287 #----------------------------------------------------------------------
1288 # Some wxWin methods can take "NULL" as parameters, but the shadow classes
1289 # expect an object with the SWIG pointer as a 'this' member. This class
1290 # and instance fools the shadow into passing the NULL pointer.
1293 this
= 'NULL' # SWIG converts this to (void*)0
1298 #----------------------------------------------------------------------
1302 wxNamedColor
= wxNamedColour
1304 wxPyDefaultPosition
.Set(-1,-1)
1305 wxPyDefaultSize
.Set(-1,-1)
1307 #----------------------------------------------------------------------
1309 ## class wxPyStdOutWindow(wxFrame):
1310 ## def __init__(self, title = "wxPython: stdout/stderr"):
1311 ## wxFrame.__init__(self, NULL, title)
1312 ## self.title = title
1313 ## self.text = wxTextWindow(self)
1314 ## self.text.SetFont(wxFont(10, wxMODERN, wxNORMAL, wxBOLD))
1315 ## self.SetSize(-1,-1,400,200)
1317 ## self.isShown = false
1319 ## def write(self, str): # with this method,
1320 ## if not self.isShown:
1322 ## self.isShown = true
1323 ## self.text.WriteText(str)
1325 ## def OnCloseWindow(self, event): # doesn't allow the window to close, just hides it
1327 ## self.isShown = false
1330 _defRedirect
= (wxPlatform
== '__WIN32__')
1332 #----------------------------------------------------------------------
1333 # The main application class. Derive from this and implement an OnInit
1334 # method that creates a frame and then calls self.SetTopWindow(frame)
1336 class wxApp(wxPyApp
):
1337 error
= 'wxApp.error'
1339 def __init__(self
, redirect
=_defRedirect
, filename
=None):
1340 wxPyApp
.__init
__(self
)
1341 self
.stdioWin
= None
1342 self
.saveStdio
= (sys
.stdout
, sys
.stderr
)
1344 self
.RedirectStdio(filename
)
1346 # this initializes wxWindows and then calls our OnInit
1347 _wxStart(self
.OnInit
)
1356 def RedirectStdio(self
, filename
):
1358 sys
.stdout
= sys
.stderr
= open(filename
, 'a')
1360 raise self
.error
, 'wxPyStdOutWindow not yet implemented.'
1361 #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow()
1363 def RestoreStdio(self
):
1364 sys
.stdout
, sys
.stderr
= self
.saveStdio
1365 if self
.stdioWin
!= None:
1366 self
.stdioWin
.Show(false
)
1367 self
.stdioWin
.Destroy()
1368 self
.stdioWin
= None
1371 #----------------------------------------------------------------------------
1374 # Revision 1.3 1998/08/14 23:36:49 RD
1375 # Beginings of wxGTK compatibility
1377 # Revision 1.1 1998/08/09 08:25:49 RD