1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
6 #// Give a reference to the dictionary of this module to the C++ extension
8 _core
._wxPySetDictionary
(vars())
10 #// A little trick to make 'wx' be a reference to this module so wx.Names can
13 wx
= _sys
.modules
[__name__
]
15 NOT_FOUND
= _core
.NOT_FOUND
16 VSCROLL
= _core
.VSCROLL
17 HSCROLL
= _core
.HSCROLL
18 CAPTION
= _core
.CAPTION
19 DOUBLE_BORDER
= _core
.DOUBLE_BORDER
20 SUNKEN_BORDER
= _core
.SUNKEN_BORDER
21 RAISED_BORDER
= _core
.RAISED_BORDER
23 SIMPLE_BORDER
= _core
.SIMPLE_BORDER
24 STATIC_BORDER
= _core
.STATIC_BORDER
25 TRANSPARENT_WINDOW
= _core
.TRANSPARENT_WINDOW
26 NO_BORDER
= _core
.NO_BORDER
27 USER_COLOURS
= _core
.USER_COLOURS
29 TAB_TRAVERSAL
= _core
.TAB_TRAVERSAL
30 WANTS_CHARS
= _core
.WANTS_CHARS
31 POPUP_WINDOW
= _core
.POPUP_WINDOW
32 CENTER_FRAME
= _core
.CENTER_FRAME
33 CENTRE_ON_SCREEN
= _core
.CENTRE_ON_SCREEN
34 CENTER_ON_SCREEN
= _core
.CENTER_ON_SCREEN
35 STAY_ON_TOP
= _core
.STAY_ON_TOP
36 ICONIZE
= _core
.ICONIZE
37 MINIMIZE
= _core
.MINIMIZE
38 MAXIMIZE
= _core
.MAXIMIZE
39 CLOSE_BOX
= _core
.CLOSE_BOX
40 THICK_FRAME
= _core
.THICK_FRAME
41 SYSTEM_MENU
= _core
.SYSTEM_MENU
42 MINIMIZE_BOX
= _core
.MINIMIZE_BOX
43 MAXIMIZE_BOX
= _core
.MAXIMIZE_BOX
44 TINY_CAPTION_HORIZ
= _core
.TINY_CAPTION_HORIZ
45 TINY_CAPTION_VERT
= _core
.TINY_CAPTION_VERT
46 RESIZE_BOX
= _core
.RESIZE_BOX
47 RESIZE_BORDER
= _core
.RESIZE_BORDER
48 DIALOG_MODAL
= _core
.DIALOG_MODAL
49 DIALOG_MODELESS
= _core
.DIALOG_MODELESS
50 DIALOG_NO_PARENT
= _core
.DIALOG_NO_PARENT
51 DEFAULT_FRAME_STYLE
= _core
.DEFAULT_FRAME_STYLE
52 DEFAULT_DIALOG_STYLE
= _core
.DEFAULT_DIALOG_STYLE
53 FRAME_TOOL_WINDOW
= _core
.FRAME_TOOL_WINDOW
54 FRAME_FLOAT_ON_PARENT
= _core
.FRAME_FLOAT_ON_PARENT
55 FRAME_NO_WINDOW_MENU
= _core
.FRAME_NO_WINDOW_MENU
56 FRAME_NO_TASKBAR
= _core
.FRAME_NO_TASKBAR
57 FRAME_SHAPED
= _core
.FRAME_SHAPED
58 ED_CLIENT_MARGIN
= _core
.ED_CLIENT_MARGIN
59 ED_BUTTONS_BOTTOM
= _core
.ED_BUTTONS_BOTTOM
60 ED_BUTTONS_RIGHT
= _core
.ED_BUTTONS_RIGHT
61 ED_STATIC_LINE
= _core
.ED_STATIC_LINE
62 EXT_DIALOG_STYLE
= _core
.EXT_DIALOG_STYLE
63 CLIP_CHILDREN
= _core
.CLIP_CHILDREN
64 CLIP_SIBLINGS
= _core
.CLIP_SIBLINGS
65 RETAINED
= _core
.RETAINED
66 BACKINGSTORE
= _core
.BACKINGSTORE
67 COLOURED
= _core
.COLOURED
68 FIXED_LENGTH
= _core
.FIXED_LENGTH
69 LB_NEEDED_SB
= _core
.LB_NEEDED_SB
70 LB_ALWAYS_SB
= _core
.LB_ALWAYS_SB
71 LB_SORT
= _core
.LB_SORT
72 LB_SINGLE
= _core
.LB_SINGLE
73 LB_MULTIPLE
= _core
.LB_MULTIPLE
74 LB_EXTENDED
= _core
.LB_EXTENDED
75 LB_OWNERDRAW
= _core
.LB_OWNERDRAW
76 LB_HSCROLL
= _core
.LB_HSCROLL
77 PROCESS_ENTER
= _core
.PROCESS_ENTER
78 PASSWORD
= _core
.PASSWORD
79 CB_SIMPLE
= _core
.CB_SIMPLE
80 CB_DROPDOWN
= _core
.CB_DROPDOWN
81 CB_SORT
= _core
.CB_SORT
82 CB_READONLY
= _core
.CB_READONLY
83 RA_HORIZONTAL
= _core
.RA_HORIZONTAL
84 RA_VERTICAL
= _core
.RA_VERTICAL
85 RA_SPECIFY_ROWS
= _core
.RA_SPECIFY_ROWS
86 RA_SPECIFY_COLS
= _core
.RA_SPECIFY_COLS
87 RB_GROUP
= _core
.RB_GROUP
88 RB_SINGLE
= _core
.RB_SINGLE
89 SL_HORIZONTAL
= _core
.SL_HORIZONTAL
90 SL_VERTICAL
= _core
.SL_VERTICAL
91 SL_AUTOTICKS
= _core
.SL_AUTOTICKS
92 SL_LABELS
= _core
.SL_LABELS
93 SL_LEFT
= _core
.SL_LEFT
95 SL_RIGHT
= _core
.SL_RIGHT
96 SL_BOTTOM
= _core
.SL_BOTTOM
97 SL_BOTH
= _core
.SL_BOTH
98 SL_SELRANGE
= _core
.SL_SELRANGE
99 SB_HORIZONTAL
= _core
.SB_HORIZONTAL
100 SB_VERTICAL
= _core
.SB_VERTICAL
101 ST_SIZEGRIP
= _core
.ST_SIZEGRIP
102 ST_NO_AUTORESIZE
= _core
.ST_NO_AUTORESIZE
103 FLOOD_SURFACE
= _core
.FLOOD_SURFACE
104 FLOOD_BORDER
= _core
.FLOOD_BORDER
105 ODDEVEN_RULE
= _core
.ODDEVEN_RULE
106 WINDING_RULE
= _core
.WINDING_RULE
107 TOOL_TOP
= _core
.TOOL_TOP
108 TOOL_BOTTOM
= _core
.TOOL_BOTTOM
109 TOOL_LEFT
= _core
.TOOL_LEFT
110 TOOL_RIGHT
= _core
.TOOL_RIGHT
112 YES_NO
= _core
.YES_NO
113 CANCEL
= _core
.CANCEL
116 NO_DEFAULT
= _core
.NO_DEFAULT
117 YES_DEFAULT
= _core
.YES_DEFAULT
118 ICON_EXCLAMATION
= _core
.ICON_EXCLAMATION
119 ICON_HAND
= _core
.ICON_HAND
120 ICON_QUESTION
= _core
.ICON_QUESTION
121 ICON_INFORMATION
= _core
.ICON_INFORMATION
122 ICON_STOP
= _core
.ICON_STOP
123 ICON_ASTERISK
= _core
.ICON_ASTERISK
124 ICON_MASK
= _core
.ICON_MASK
125 ICON_WARNING
= _core
.ICON_WARNING
126 ICON_ERROR
= _core
.ICON_ERROR
127 FORWARD
= _core
.FORWARD
128 BACKWARD
= _core
.BACKWARD
133 SIZE_AUTO_WIDTH
= _core
.SIZE_AUTO_WIDTH
134 SIZE_AUTO_HEIGHT
= _core
.SIZE_AUTO_HEIGHT
135 SIZE_AUTO
= _core
.SIZE_AUTO
136 SIZE_USE_EXISTING
= _core
.SIZE_USE_EXISTING
137 SIZE_ALLOW_MINUS_ONE
= _core
.SIZE_ALLOW_MINUS_ONE
138 PORTRAIT
= _core
.PORTRAIT
139 LANDSCAPE
= _core
.LANDSCAPE
140 PRINT_QUALITY_HIGH
= _core
.PRINT_QUALITY_HIGH
141 PRINT_QUALITY_MEDIUM
= _core
.PRINT_QUALITY_MEDIUM
142 PRINT_QUALITY_LOW
= _core
.PRINT_QUALITY_LOW
143 PRINT_QUALITY_DRAFT
= _core
.PRINT_QUALITY_DRAFT
144 ID_ANY
= _core
.ID_ANY
145 ID_SEPARATOR
= _core
.ID_SEPARATOR
146 ID_LOWEST
= _core
.ID_LOWEST
147 ID_OPEN
= _core
.ID_OPEN
148 ID_CLOSE
= _core
.ID_CLOSE
149 ID_NEW
= _core
.ID_NEW
150 ID_SAVE
= _core
.ID_SAVE
151 ID_SAVEAS
= _core
.ID_SAVEAS
152 ID_REVERT
= _core
.ID_REVERT
153 ID_EXIT
= _core
.ID_EXIT
154 ID_UNDO
= _core
.ID_UNDO
155 ID_REDO
= _core
.ID_REDO
156 ID_HELP
= _core
.ID_HELP
157 ID_PRINT
= _core
.ID_PRINT
158 ID_PRINT_SETUP
= _core
.ID_PRINT_SETUP
159 ID_PREVIEW
= _core
.ID_PREVIEW
160 ID_ABOUT
= _core
.ID_ABOUT
161 ID_HELP_CONTENTS
= _core
.ID_HELP_CONTENTS
162 ID_HELP_COMMANDS
= _core
.ID_HELP_COMMANDS
163 ID_HELP_PROCEDURES
= _core
.ID_HELP_PROCEDURES
164 ID_HELP_CONTEXT
= _core
.ID_HELP_CONTEXT
165 ID_CLOSE_ALL
= _core
.ID_CLOSE_ALL
166 ID_PREFERENCES
= _core
.ID_PREFERENCES
167 ID_CUT
= _core
.ID_CUT
168 ID_COPY
= _core
.ID_COPY
169 ID_PASTE
= _core
.ID_PASTE
170 ID_CLEAR
= _core
.ID_CLEAR
171 ID_FIND
= _core
.ID_FIND
172 ID_DUPLICATE
= _core
.ID_DUPLICATE
173 ID_SELECTALL
= _core
.ID_SELECTALL
174 ID_DELETE
= _core
.ID_DELETE
175 ID_REPLACE
= _core
.ID_REPLACE
176 ID_REPLACE_ALL
= _core
.ID_REPLACE_ALL
177 ID_PROPERTIES
= _core
.ID_PROPERTIES
178 ID_VIEW_DETAILS
= _core
.ID_VIEW_DETAILS
179 ID_VIEW_LARGEICONS
= _core
.ID_VIEW_LARGEICONS
180 ID_VIEW_SMALLICONS
= _core
.ID_VIEW_SMALLICONS
181 ID_VIEW_LIST
= _core
.ID_VIEW_LIST
182 ID_VIEW_SORTDATE
= _core
.ID_VIEW_SORTDATE
183 ID_VIEW_SORTNAME
= _core
.ID_VIEW_SORTNAME
184 ID_VIEW_SORTSIZE
= _core
.ID_VIEW_SORTSIZE
185 ID_VIEW_SORTTYPE
= _core
.ID_VIEW_SORTTYPE
186 ID_FILE1
= _core
.ID_FILE1
187 ID_FILE2
= _core
.ID_FILE2
188 ID_FILE3
= _core
.ID_FILE3
189 ID_FILE4
= _core
.ID_FILE4
190 ID_FILE5
= _core
.ID_FILE5
191 ID_FILE6
= _core
.ID_FILE6
192 ID_FILE7
= _core
.ID_FILE7
193 ID_FILE8
= _core
.ID_FILE8
194 ID_FILE9
= _core
.ID_FILE9
196 ID_CANCEL
= _core
.ID_CANCEL
197 ID_APPLY
= _core
.ID_APPLY
198 ID_YES
= _core
.ID_YES
200 ID_STATIC
= _core
.ID_STATIC
201 ID_FORWARD
= _core
.ID_FORWARD
202 ID_BACKWARD
= _core
.ID_BACKWARD
203 ID_DEFAULT
= _core
.ID_DEFAULT
204 ID_MORE
= _core
.ID_MORE
205 ID_SETUP
= _core
.ID_SETUP
206 ID_RESET
= _core
.ID_RESET
207 ID_CONTEXT_HELP
= _core
.ID_CONTEXT_HELP
208 ID_YESTOALL
= _core
.ID_YESTOALL
209 ID_NOTOALL
= _core
.ID_NOTOALL
210 ID_ABORT
= _core
.ID_ABORT
211 ID_RETRY
= _core
.ID_RETRY
212 ID_IGNORE
= _core
.ID_IGNORE
213 ID_HIGHEST
= _core
.ID_HIGHEST
216 HIDE_READONLY
= _core
.HIDE_READONLY
217 OVERWRITE_PROMPT
= _core
.OVERWRITE_PROMPT
218 FILE_MUST_EXIST
= _core
.FILE_MUST_EXIST
219 MULTIPLE
= _core
.MULTIPLE
220 CHANGE_DIR
= _core
.CHANGE_DIR
221 ACCEL_ALT
= _core
.ACCEL_ALT
222 ACCEL_CTRL
= _core
.ACCEL_CTRL
223 ACCEL_SHIFT
= _core
.ACCEL_SHIFT
224 ACCEL_NORMAL
= _core
.ACCEL_NORMAL
225 PD_AUTO_HIDE
= _core
.PD_AUTO_HIDE
226 PD_APP_MODAL
= _core
.PD_APP_MODAL
227 PD_CAN_ABORT
= _core
.PD_CAN_ABORT
228 PD_ELAPSED_TIME
= _core
.PD_ELAPSED_TIME
229 PD_ESTIMATED_TIME
= _core
.PD_ESTIMATED_TIME
230 PD_REMAINING_TIME
= _core
.PD_REMAINING_TIME
231 DD_NEW_DIR_BUTTON
= _core
.DD_NEW_DIR_BUTTON
232 DD_DEFAULT_STYLE
= _core
.DD_DEFAULT_STYLE
233 MENU_TEAROFF
= _core
.MENU_TEAROFF
234 MB_DOCKABLE
= _core
.MB_DOCKABLE
235 NO_FULL_REPAINT_ON_RESIZE
= _core
.NO_FULL_REPAINT_ON_RESIZE
236 LI_HORIZONTAL
= _core
.LI_HORIZONTAL
237 LI_VERTICAL
= _core
.LI_VERTICAL
238 WS_EX_VALIDATE_RECURSIVELY
= _core
.WS_EX_VALIDATE_RECURSIVELY
239 WS_EX_BLOCK_EVENTS
= _core
.WS_EX_BLOCK_EVENTS
240 WS_EX_TRANSIENT
= _core
.WS_EX_TRANSIENT
241 WS_EX_THEMED_BACKGROUND
= _core
.WS_EX_THEMED_BACKGROUND
242 WS_EX_PROCESS_IDLE
= _core
.WS_EX_PROCESS_IDLE
243 WS_EX_PROCESS_UI_UPDATES
= _core
.WS_EX_PROCESS_UI_UPDATES
244 MM_TEXT
= _core
.MM_TEXT
245 MM_LOMETRIC
= _core
.MM_LOMETRIC
246 MM_HIMETRIC
= _core
.MM_HIMETRIC
247 MM_LOENGLISH
= _core
.MM_LOENGLISH
248 MM_HIENGLISH
= _core
.MM_HIENGLISH
249 MM_TWIPS
= _core
.MM_TWIPS
250 MM_ISOTROPIC
= _core
.MM_ISOTROPIC
251 MM_ANISOTROPIC
= _core
.MM_ANISOTROPIC
252 MM_POINTS
= _core
.MM_POINTS
253 MM_METRIC
= _core
.MM_METRIC
254 CENTRE
= _core
.CENTRE
255 CENTER
= _core
.CENTER
256 HORIZONTAL
= _core
.HORIZONTAL
257 VERTICAL
= _core
.VERTICAL
264 BOTTOM
= _core
.BOTTOM
270 ALIGN_NOT
= _core
.ALIGN_NOT
271 ALIGN_CENTER_HORIZONTAL
= _core
.ALIGN_CENTER_HORIZONTAL
272 ALIGN_CENTRE_HORIZONTAL
= _core
.ALIGN_CENTRE_HORIZONTAL
273 ALIGN_LEFT
= _core
.ALIGN_LEFT
274 ALIGN_TOP
= _core
.ALIGN_TOP
275 ALIGN_RIGHT
= _core
.ALIGN_RIGHT
276 ALIGN_BOTTOM
= _core
.ALIGN_BOTTOM
277 ALIGN_CENTER_VERTICAL
= _core
.ALIGN_CENTER_VERTICAL
278 ALIGN_CENTRE_VERTICAL
= _core
.ALIGN_CENTRE_VERTICAL
279 ALIGN_CENTER
= _core
.ALIGN_CENTER
280 ALIGN_CENTRE
= _core
.ALIGN_CENTRE
281 ALIGN_MASK
= _core
.ALIGN_MASK
282 STRETCH_NOT
= _core
.STRETCH_NOT
283 SHRINK
= _core
.SHRINK
285 EXPAND
= _core
.EXPAND
286 SHAPED
= _core
.SHAPED
287 ADJUST_MINSIZE
= _core
.ADJUST_MINSIZE
289 BORDER_DEFAULT
= _core
.BORDER_DEFAULT
290 BORDER_NONE
= _core
.BORDER_NONE
291 BORDER_STATIC
= _core
.BORDER_STATIC
292 BORDER_SIMPLE
= _core
.BORDER_SIMPLE
293 BORDER_RAISED
= _core
.BORDER_RAISED
294 BORDER_SUNKEN
= _core
.BORDER_SUNKEN
295 BORDER_DOUBLE
= _core
.BORDER_DOUBLE
296 BORDER_MASK
= _core
.BORDER_MASK
297 DEFAULT
= _core
.DEFAULT
298 DECORATIVE
= _core
.DECORATIVE
300 SCRIPT
= _core
.SCRIPT
302 MODERN
= _core
.MODERN
303 TELETYPE
= _core
.TELETYPE
304 VARIABLE
= _core
.VARIABLE
306 NORMAL
= _core
.NORMAL
309 ITALIC
= _core
.ITALIC
313 LONG_DASH
= _core
.LONG_DASH
314 SHORT_DASH
= _core
.SHORT_DASH
315 DOT_DASH
= _core
.DOT_DASH
316 USER_DASH
= _core
.USER_DASH
317 TRANSPARENT
= _core
.TRANSPARENT
318 STIPPLE
= _core
.STIPPLE
319 BDIAGONAL_HATCH
= _core
.BDIAGONAL_HATCH
320 CROSSDIAG_HATCH
= _core
.CROSSDIAG_HATCH
321 FDIAGONAL_HATCH
= _core
.FDIAGONAL_HATCH
322 CROSS_HATCH
= _core
.CROSS_HATCH
323 HORIZONTAL_HATCH
= _core
.HORIZONTAL_HATCH
324 VERTICAL_HATCH
= _core
.VERTICAL_HATCH
325 JOIN_BEVEL
= _core
.JOIN_BEVEL
326 JOIN_MITER
= _core
.JOIN_MITER
327 JOIN_ROUND
= _core
.JOIN_ROUND
328 CAP_ROUND
= _core
.CAP_ROUND
329 CAP_PROJECTING
= _core
.CAP_PROJECTING
330 CAP_BUTT
= _core
.CAP_BUTT
333 INVERT
= _core
.INVERT
334 OR_REVERSE
= _core
.OR_REVERSE
335 AND_REVERSE
= _core
.AND_REVERSE
338 AND_INVERT
= _core
.AND_INVERT
342 SRC_INVERT
= _core
.SRC_INVERT
343 OR_INVERT
= _core
.OR_INVERT
347 WXK_BACK
= _core
.WXK_BACK
348 WXK_TAB
= _core
.WXK_TAB
349 WXK_RETURN
= _core
.WXK_RETURN
350 WXK_ESCAPE
= _core
.WXK_ESCAPE
351 WXK_SPACE
= _core
.WXK_SPACE
352 WXK_DELETE
= _core
.WXK_DELETE
353 WXK_START
= _core
.WXK_START
354 WXK_LBUTTON
= _core
.WXK_LBUTTON
355 WXK_RBUTTON
= _core
.WXK_RBUTTON
356 WXK_CANCEL
= _core
.WXK_CANCEL
357 WXK_MBUTTON
= _core
.WXK_MBUTTON
358 WXK_CLEAR
= _core
.WXK_CLEAR
359 WXK_SHIFT
= _core
.WXK_SHIFT
360 WXK_ALT
= _core
.WXK_ALT
361 WXK_CONTROL
= _core
.WXK_CONTROL
362 WXK_MENU
= _core
.WXK_MENU
363 WXK_PAUSE
= _core
.WXK_PAUSE
364 WXK_CAPITAL
= _core
.WXK_CAPITAL
365 WXK_PRIOR
= _core
.WXK_PRIOR
366 WXK_NEXT
= _core
.WXK_NEXT
367 WXK_END
= _core
.WXK_END
368 WXK_HOME
= _core
.WXK_HOME
369 WXK_LEFT
= _core
.WXK_LEFT
370 WXK_UP
= _core
.WXK_UP
371 WXK_RIGHT
= _core
.WXK_RIGHT
372 WXK_DOWN
= _core
.WXK_DOWN
373 WXK_SELECT
= _core
.WXK_SELECT
374 WXK_PRINT
= _core
.WXK_PRINT
375 WXK_EXECUTE
= _core
.WXK_EXECUTE
376 WXK_SNAPSHOT
= _core
.WXK_SNAPSHOT
377 WXK_INSERT
= _core
.WXK_INSERT
378 WXK_HELP
= _core
.WXK_HELP
379 WXK_NUMPAD0
= _core
.WXK_NUMPAD0
380 WXK_NUMPAD1
= _core
.WXK_NUMPAD1
381 WXK_NUMPAD2
= _core
.WXK_NUMPAD2
382 WXK_NUMPAD3
= _core
.WXK_NUMPAD3
383 WXK_NUMPAD4
= _core
.WXK_NUMPAD4
384 WXK_NUMPAD5
= _core
.WXK_NUMPAD5
385 WXK_NUMPAD6
= _core
.WXK_NUMPAD6
386 WXK_NUMPAD7
= _core
.WXK_NUMPAD7
387 WXK_NUMPAD8
= _core
.WXK_NUMPAD8
388 WXK_NUMPAD9
= _core
.WXK_NUMPAD9
389 WXK_MULTIPLY
= _core
.WXK_MULTIPLY
390 WXK_ADD
= _core
.WXK_ADD
391 WXK_SEPARATOR
= _core
.WXK_SEPARATOR
392 WXK_SUBTRACT
= _core
.WXK_SUBTRACT
393 WXK_DECIMAL
= _core
.WXK_DECIMAL
394 WXK_DIVIDE
= _core
.WXK_DIVIDE
395 WXK_F1
= _core
.WXK_F1
396 WXK_F2
= _core
.WXK_F2
397 WXK_F3
= _core
.WXK_F3
398 WXK_F4
= _core
.WXK_F4
399 WXK_F5
= _core
.WXK_F5
400 WXK_F6
= _core
.WXK_F6
401 WXK_F7
= _core
.WXK_F7
402 WXK_F8
= _core
.WXK_F8
403 WXK_F9
= _core
.WXK_F9
404 WXK_F10
= _core
.WXK_F10
405 WXK_F11
= _core
.WXK_F11
406 WXK_F12
= _core
.WXK_F12
407 WXK_F13
= _core
.WXK_F13
408 WXK_F14
= _core
.WXK_F14
409 WXK_F15
= _core
.WXK_F15
410 WXK_F16
= _core
.WXK_F16
411 WXK_F17
= _core
.WXK_F17
412 WXK_F18
= _core
.WXK_F18
413 WXK_F19
= _core
.WXK_F19
414 WXK_F20
= _core
.WXK_F20
415 WXK_F21
= _core
.WXK_F21
416 WXK_F22
= _core
.WXK_F22
417 WXK_F23
= _core
.WXK_F23
418 WXK_F24
= _core
.WXK_F24
419 WXK_NUMLOCK
= _core
.WXK_NUMLOCK
420 WXK_SCROLL
= _core
.WXK_SCROLL
421 WXK_PAGEUP
= _core
.WXK_PAGEUP
422 WXK_PAGEDOWN
= _core
.WXK_PAGEDOWN
423 WXK_NUMPAD_SPACE
= _core
.WXK_NUMPAD_SPACE
424 WXK_NUMPAD_TAB
= _core
.WXK_NUMPAD_TAB
425 WXK_NUMPAD_ENTER
= _core
.WXK_NUMPAD_ENTER
426 WXK_NUMPAD_F1
= _core
.WXK_NUMPAD_F1
427 WXK_NUMPAD_F2
= _core
.WXK_NUMPAD_F2
428 WXK_NUMPAD_F3
= _core
.WXK_NUMPAD_F3
429 WXK_NUMPAD_F4
= _core
.WXK_NUMPAD_F4
430 WXK_NUMPAD_HOME
= _core
.WXK_NUMPAD_HOME
431 WXK_NUMPAD_LEFT
= _core
.WXK_NUMPAD_LEFT
432 WXK_NUMPAD_UP
= _core
.WXK_NUMPAD_UP
433 WXK_NUMPAD_RIGHT
= _core
.WXK_NUMPAD_RIGHT
434 WXK_NUMPAD_DOWN
= _core
.WXK_NUMPAD_DOWN
435 WXK_NUMPAD_PRIOR
= _core
.WXK_NUMPAD_PRIOR
436 WXK_NUMPAD_PAGEUP
= _core
.WXK_NUMPAD_PAGEUP
437 WXK_NUMPAD_NEXT
= _core
.WXK_NUMPAD_NEXT
438 WXK_NUMPAD_PAGEDOWN
= _core
.WXK_NUMPAD_PAGEDOWN
439 WXK_NUMPAD_END
= _core
.WXK_NUMPAD_END
440 WXK_NUMPAD_BEGIN
= _core
.WXK_NUMPAD_BEGIN
441 WXK_NUMPAD_INSERT
= _core
.WXK_NUMPAD_INSERT
442 WXK_NUMPAD_DELETE
= _core
.WXK_NUMPAD_DELETE
443 WXK_NUMPAD_EQUAL
= _core
.WXK_NUMPAD_EQUAL
444 WXK_NUMPAD_MULTIPLY
= _core
.WXK_NUMPAD_MULTIPLY
445 WXK_NUMPAD_ADD
= _core
.WXK_NUMPAD_ADD
446 WXK_NUMPAD_SEPARATOR
= _core
.WXK_NUMPAD_SEPARATOR
447 WXK_NUMPAD_SUBTRACT
= _core
.WXK_NUMPAD_SUBTRACT
448 WXK_NUMPAD_DECIMAL
= _core
.WXK_NUMPAD_DECIMAL
449 WXK_NUMPAD_DIVIDE
= _core
.WXK_NUMPAD_DIVIDE
450 WXK_WINDOWS_LEFT
= _core
.WXK_WINDOWS_LEFT
451 WXK_WINDOWS_RIGHT
= _core
.WXK_WINDOWS_RIGHT
452 WXK_WINDOWS_MENU
= _core
.WXK_WINDOWS_MENU
453 PAPER_NONE
= _core
.PAPER_NONE
454 PAPER_LETTER
= _core
.PAPER_LETTER
455 PAPER_LEGAL
= _core
.PAPER_LEGAL
456 PAPER_A4
= _core
.PAPER_A4
457 PAPER_CSHEET
= _core
.PAPER_CSHEET
458 PAPER_DSHEET
= _core
.PAPER_DSHEET
459 PAPER_ESHEET
= _core
.PAPER_ESHEET
460 PAPER_LETTERSMALL
= _core
.PAPER_LETTERSMALL
461 PAPER_TABLOID
= _core
.PAPER_TABLOID
462 PAPER_LEDGER
= _core
.PAPER_LEDGER
463 PAPER_STATEMENT
= _core
.PAPER_STATEMENT
464 PAPER_EXECUTIVE
= _core
.PAPER_EXECUTIVE
465 PAPER_A3
= _core
.PAPER_A3
466 PAPER_A4SMALL
= _core
.PAPER_A4SMALL
467 PAPER_A5
= _core
.PAPER_A5
468 PAPER_B4
= _core
.PAPER_B4
469 PAPER_B5
= _core
.PAPER_B5
470 PAPER_FOLIO
= _core
.PAPER_FOLIO
471 PAPER_QUARTO
= _core
.PAPER_QUARTO
472 PAPER_10X14
= _core
.PAPER_10X14
473 PAPER_11X17
= _core
.PAPER_11X17
474 PAPER_NOTE
= _core
.PAPER_NOTE
475 PAPER_ENV_9
= _core
.PAPER_ENV_9
476 PAPER_ENV_10
= _core
.PAPER_ENV_10
477 PAPER_ENV_11
= _core
.PAPER_ENV_11
478 PAPER_ENV_12
= _core
.PAPER_ENV_12
479 PAPER_ENV_14
= _core
.PAPER_ENV_14
480 PAPER_ENV_DL
= _core
.PAPER_ENV_DL
481 PAPER_ENV_C5
= _core
.PAPER_ENV_C5
482 PAPER_ENV_C3
= _core
.PAPER_ENV_C3
483 PAPER_ENV_C4
= _core
.PAPER_ENV_C4
484 PAPER_ENV_C6
= _core
.PAPER_ENV_C6
485 PAPER_ENV_C65
= _core
.PAPER_ENV_C65
486 PAPER_ENV_B4
= _core
.PAPER_ENV_B4
487 PAPER_ENV_B5
= _core
.PAPER_ENV_B5
488 PAPER_ENV_B6
= _core
.PAPER_ENV_B6
489 PAPER_ENV_ITALY
= _core
.PAPER_ENV_ITALY
490 PAPER_ENV_MONARCH
= _core
.PAPER_ENV_MONARCH
491 PAPER_ENV_PERSONAL
= _core
.PAPER_ENV_PERSONAL
492 PAPER_FANFOLD_US
= _core
.PAPER_FANFOLD_US
493 PAPER_FANFOLD_STD_GERMAN
= _core
.PAPER_FANFOLD_STD_GERMAN
494 PAPER_FANFOLD_LGL_GERMAN
= _core
.PAPER_FANFOLD_LGL_GERMAN
495 PAPER_ISO_B4
= _core
.PAPER_ISO_B4
496 PAPER_JAPANESE_POSTCARD
= _core
.PAPER_JAPANESE_POSTCARD
497 PAPER_9X11
= _core
.PAPER_9X11
498 PAPER_10X11
= _core
.PAPER_10X11
499 PAPER_15X11
= _core
.PAPER_15X11
500 PAPER_ENV_INVITE
= _core
.PAPER_ENV_INVITE
501 PAPER_LETTER_EXTRA
= _core
.PAPER_LETTER_EXTRA
502 PAPER_LEGAL_EXTRA
= _core
.PAPER_LEGAL_EXTRA
503 PAPER_TABLOID_EXTRA
= _core
.PAPER_TABLOID_EXTRA
504 PAPER_A4_EXTRA
= _core
.PAPER_A4_EXTRA
505 PAPER_LETTER_TRANSVERSE
= _core
.PAPER_LETTER_TRANSVERSE
506 PAPER_A4_TRANSVERSE
= _core
.PAPER_A4_TRANSVERSE
507 PAPER_LETTER_EXTRA_TRANSVERSE
= _core
.PAPER_LETTER_EXTRA_TRANSVERSE
508 PAPER_A_PLUS
= _core
.PAPER_A_PLUS
509 PAPER_B_PLUS
= _core
.PAPER_B_PLUS
510 PAPER_LETTER_PLUS
= _core
.PAPER_LETTER_PLUS
511 PAPER_A4_PLUS
= _core
.PAPER_A4_PLUS
512 PAPER_A5_TRANSVERSE
= _core
.PAPER_A5_TRANSVERSE
513 PAPER_B5_TRANSVERSE
= _core
.PAPER_B5_TRANSVERSE
514 PAPER_A3_EXTRA
= _core
.PAPER_A3_EXTRA
515 PAPER_A5_EXTRA
= _core
.PAPER_A5_EXTRA
516 PAPER_B5_EXTRA
= _core
.PAPER_B5_EXTRA
517 PAPER_A2
= _core
.PAPER_A2
518 PAPER_A3_TRANSVERSE
= _core
.PAPER_A3_TRANSVERSE
519 PAPER_A3_EXTRA_TRANSVERSE
= _core
.PAPER_A3_EXTRA_TRANSVERSE
520 DUPLEX_SIMPLEX
= _core
.DUPLEX_SIMPLEX
521 DUPLEX_HORIZONTAL
= _core
.DUPLEX_HORIZONTAL
522 DUPLEX_VERTICAL
= _core
.DUPLEX_VERTICAL
523 ITEM_SEPARATOR
= _core
.ITEM_SEPARATOR
524 ITEM_NORMAL
= _core
.ITEM_NORMAL
525 ITEM_CHECK
= _core
.ITEM_CHECK
526 ITEM_RADIO
= _core
.ITEM_RADIO
527 ITEM_MAX
= _core
.ITEM_MAX
528 HT_NOWHERE
= _core
.HT_NOWHERE
529 HT_SCROLLBAR_FIRST
= _core
.HT_SCROLLBAR_FIRST
530 HT_SCROLLBAR_ARROW_LINE_1
= _core
.HT_SCROLLBAR_ARROW_LINE_1
531 HT_SCROLLBAR_ARROW_LINE_2
= _core
.HT_SCROLLBAR_ARROW_LINE_2
532 HT_SCROLLBAR_ARROW_PAGE_1
= _core
.HT_SCROLLBAR_ARROW_PAGE_1
533 HT_SCROLLBAR_ARROW_PAGE_2
= _core
.HT_SCROLLBAR_ARROW_PAGE_2
534 HT_SCROLLBAR_THUMB
= _core
.HT_SCROLLBAR_THUMB
535 HT_SCROLLBAR_BAR_1
= _core
.HT_SCROLLBAR_BAR_1
536 HT_SCROLLBAR_BAR_2
= _core
.HT_SCROLLBAR_BAR_2
537 HT_SCROLLBAR_LAST
= _core
.HT_SCROLLBAR_LAST
538 HT_WINDOW_OUTSIDE
= _core
.HT_WINDOW_OUTSIDE
539 HT_WINDOW_INSIDE
= _core
.HT_WINDOW_INSIDE
540 HT_WINDOW_VERT_SCROLLBAR
= _core
.HT_WINDOW_VERT_SCROLLBAR
541 HT_WINDOW_HORZ_SCROLLBAR
= _core
.HT_WINDOW_HORZ_SCROLLBAR
542 HT_WINDOW_CORNER
= _core
.HT_WINDOW_CORNER
543 HT_MAX
= _core
.HT_MAX
544 MOD_NONE
= _core
.MOD_NONE
545 MOD_ALT
= _core
.MOD_ALT
546 MOD_CONTROL
= _core
.MOD_CONTROL
547 MOD_SHIFT
= _core
.MOD_SHIFT
548 MOD_WIN
= _core
.MOD_WIN
549 UPDATE_UI_NONE
= _core
.UPDATE_UI_NONE
550 UPDATE_UI_RECURSE
= _core
.UPDATE_UI_RECURSE
551 UPDATE_UI_FROMIDLE
= _core
.UPDATE_UI_FROMIDLE
552 #---------------------------------------------------------------------------
554 class Object(object):
555 def GetClassName(*args
, **kwargs
): return _core
.Object_GetClassName(*args
, **kwargs
)
556 def Destroy(*args
, **kwargs
): return _core
.Object_Destroy(*args
, **kwargs
)
557 def __init__(self
): raise RuntimeError, "No constructor defined"
559 return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
561 class ObjectPtr(Object
):
562 def __init__(self
, this
):
564 if not hasattr(self
,"thisown"): self
.thisown
= 0
565 self
.__class
__ = Object
566 _core
.Object_swigregister(ObjectPtr
)
567 _wxPySetDictionary
= _core
._wxPySetDictionary
570 #---------------------------------------------------------------------------
572 BITMAP_TYPE_INVALID
= _core
.BITMAP_TYPE_INVALID
573 BITMAP_TYPE_BMP
= _core
.BITMAP_TYPE_BMP
574 BITMAP_TYPE_BMP_RESOURCE
= _core
.BITMAP_TYPE_BMP_RESOURCE
575 BITMAP_TYPE_RESOURCE
= _core
.BITMAP_TYPE_RESOURCE
576 BITMAP_TYPE_ICO
= _core
.BITMAP_TYPE_ICO
577 BITMAP_TYPE_ICO_RESOURCE
= _core
.BITMAP_TYPE_ICO_RESOURCE
578 BITMAP_TYPE_CUR
= _core
.BITMAP_TYPE_CUR
579 BITMAP_TYPE_CUR_RESOURCE
= _core
.BITMAP_TYPE_CUR_RESOURCE
580 BITMAP_TYPE_XBM
= _core
.BITMAP_TYPE_XBM
581 BITMAP_TYPE_XBM_DATA
= _core
.BITMAP_TYPE_XBM_DATA
582 BITMAP_TYPE_XPM
= _core
.BITMAP_TYPE_XPM
583 BITMAP_TYPE_XPM_DATA
= _core
.BITMAP_TYPE_XPM_DATA
584 BITMAP_TYPE_TIF
= _core
.BITMAP_TYPE_TIF
585 BITMAP_TYPE_TIF_RESOURCE
= _core
.BITMAP_TYPE_TIF_RESOURCE
586 BITMAP_TYPE_GIF
= _core
.BITMAP_TYPE_GIF
587 BITMAP_TYPE_GIF_RESOURCE
= _core
.BITMAP_TYPE_GIF_RESOURCE
588 BITMAP_TYPE_PNG
= _core
.BITMAP_TYPE_PNG
589 BITMAP_TYPE_PNG_RESOURCE
= _core
.BITMAP_TYPE_PNG_RESOURCE
590 BITMAP_TYPE_JPEG
= _core
.BITMAP_TYPE_JPEG
591 BITMAP_TYPE_JPEG_RESOURCE
= _core
.BITMAP_TYPE_JPEG_RESOURCE
592 BITMAP_TYPE_PNM
= _core
.BITMAP_TYPE_PNM
593 BITMAP_TYPE_PNM_RESOURCE
= _core
.BITMAP_TYPE_PNM_RESOURCE
594 BITMAP_TYPE_PCX
= _core
.BITMAP_TYPE_PCX
595 BITMAP_TYPE_PCX_RESOURCE
= _core
.BITMAP_TYPE_PCX_RESOURCE
596 BITMAP_TYPE_PICT
= _core
.BITMAP_TYPE_PICT
597 BITMAP_TYPE_PICT_RESOURCE
= _core
.BITMAP_TYPE_PICT_RESOURCE
598 BITMAP_TYPE_ICON
= _core
.BITMAP_TYPE_ICON
599 BITMAP_TYPE_ICON_RESOURCE
= _core
.BITMAP_TYPE_ICON_RESOURCE
600 BITMAP_TYPE_ANI
= _core
.BITMAP_TYPE_ANI
601 BITMAP_TYPE_IFF
= _core
.BITMAP_TYPE_IFF
602 BITMAP_TYPE_MACCURSOR
= _core
.BITMAP_TYPE_MACCURSOR
603 BITMAP_TYPE_MACCURSOR_RESOURCE
= _core
.BITMAP_TYPE_MACCURSOR_RESOURCE
604 BITMAP_TYPE_ANY
= _core
.BITMAP_TYPE_ANY
605 CURSOR_NONE
= _core
.CURSOR_NONE
606 CURSOR_ARROW
= _core
.CURSOR_ARROW
607 CURSOR_RIGHT_ARROW
= _core
.CURSOR_RIGHT_ARROW
608 CURSOR_BULLSEYE
= _core
.CURSOR_BULLSEYE
609 CURSOR_CHAR
= _core
.CURSOR_CHAR
610 CURSOR_CROSS
= _core
.CURSOR_CROSS
611 CURSOR_HAND
= _core
.CURSOR_HAND
612 CURSOR_IBEAM
= _core
.CURSOR_IBEAM
613 CURSOR_LEFT_BUTTON
= _core
.CURSOR_LEFT_BUTTON
614 CURSOR_MAGNIFIER
= _core
.CURSOR_MAGNIFIER
615 CURSOR_MIDDLE_BUTTON
= _core
.CURSOR_MIDDLE_BUTTON
616 CURSOR_NO_ENTRY
= _core
.CURSOR_NO_ENTRY
617 CURSOR_PAINT_BRUSH
= _core
.CURSOR_PAINT_BRUSH
618 CURSOR_PENCIL
= _core
.CURSOR_PENCIL
619 CURSOR_POINT_LEFT
= _core
.CURSOR_POINT_LEFT
620 CURSOR_POINT_RIGHT
= _core
.CURSOR_POINT_RIGHT
621 CURSOR_QUESTION_ARROW
= _core
.CURSOR_QUESTION_ARROW
622 CURSOR_RIGHT_BUTTON
= _core
.CURSOR_RIGHT_BUTTON
623 CURSOR_SIZENESW
= _core
.CURSOR_SIZENESW
624 CURSOR_SIZENS
= _core
.CURSOR_SIZENS
625 CURSOR_SIZENWSE
= _core
.CURSOR_SIZENWSE
626 CURSOR_SIZEWE
= _core
.CURSOR_SIZEWE
627 CURSOR_SIZING
= _core
.CURSOR_SIZING
628 CURSOR_SPRAYCAN
= _core
.CURSOR_SPRAYCAN
629 CURSOR_WAIT
= _core
.CURSOR_WAIT
630 CURSOR_WATCH
= _core
.CURSOR_WATCH
631 CURSOR_BLANK
= _core
.CURSOR_BLANK
632 CURSOR_DEFAULT
= _core
.CURSOR_DEFAULT
633 CURSOR_COPY_ARROW
= _core
.CURSOR_COPY_ARROW
634 CURSOR_ARROWWAIT
= _core
.CURSOR_ARROWWAIT
635 CURSOR_MAX
= _core
.CURSOR_MAX
636 #---------------------------------------------------------------------------
639 width
= property(_core
.Size_width_get
, _core
.Size_width_set
)
640 height
= property(_core
.Size_height_get
, _core
.Size_height_set
)
641 def __init__(self
, *args
, **kwargs
):
642 newobj
= _core
.new_Size(*args
, **kwargs
)
643 self
.this
= newobj
.this
646 def __del__(self
, destroy
=_core
.delete_Size
):
648 if self
.thisown
: destroy(self
)
650 def __eq__(*args
, **kwargs
): return _core
.Size___eq__(*args
, **kwargs
)
651 def __ne__(*args
, **kwargs
): return _core
.Size___ne__(*args
, **kwargs
)
652 def __add__(*args
, **kwargs
): return _core
.Size___add__(*args
, **kwargs
)
653 def __sub__(*args
, **kwargs
): return _core
.Size___sub__(*args
, **kwargs
)
654 def IncTo(*args
, **kwargs
): return _core
.Size_IncTo(*args
, **kwargs
)
655 def DecTo(*args
, **kwargs
): return _core
.Size_DecTo(*args
, **kwargs
)
656 def Set(*args
, **kwargs
): return _core
.Size_Set(*args
, **kwargs
)
657 def SetWidth(*args
, **kwargs
): return _core
.Size_SetWidth(*args
, **kwargs
)
658 def SetHeight(*args
, **kwargs
): return _core
.Size_SetHeight(*args
, **kwargs
)
659 def GetWidth(*args
, **kwargs
): return _core
.Size_GetWidth(*args
, **kwargs
)
660 def GetHeight(*args
, **kwargs
): return _core
.Size_GetHeight(*args
, **kwargs
)
661 def GetX(*args
, **kwargs
): return _core
.Size_GetX(*args
, **kwargs
)
662 def GetY(*args
, **kwargs
): return _core
.Size_GetY(*args
, **kwargs
)
663 def asTuple(*args
, **kwargs
): return _core
.Size_asTuple(*args
, **kwargs
)
664 def __str__(self
): return str(self
.asTuple())
665 def __repr__(self
): return 'wxSize'+str(self
.asTuple())
666 def __len__(self
): return len(self
.asTuple())
667 def __getitem__(self
, index
): return self
.asTuple()[index
]
668 def __setitem__(self
, index
, val
):
669 if index
== 0: self
.width
= val
670 elif index
== 1: self
.height
= val
671 else: raise IndexError
672 def __nonzero__(self
): return self
.asTuple() != (0,0)
673 def __getinitargs__(self
): return ()
674 def __getstate__(self
): return self
.asTuple()
675 def __setstate__(self
, state
): self
.Set(*state
)
679 def __init__(self
, this
):
681 if not hasattr(self
,"thisown"): self
.thisown
= 0
682 self
.__class
__ = Size
683 _core
.Size_swigregister(SizePtr
)
685 #---------------------------------------------------------------------------
687 class RealPoint(object):
688 x
= property(_core
.RealPoint_x_get
, _core
.RealPoint_x_set
)
689 y
= property(_core
.RealPoint_y_get
, _core
.RealPoint_y_set
)
690 def __init__(self
, *args
, **kwargs
):
691 newobj
= _core
.new_RealPoint(*args
, **kwargs
)
692 self
.this
= newobj
.this
695 def __del__(self
, destroy
=_core
.delete_RealPoint
):
697 if self
.thisown
: destroy(self
)
699 def __add__(*args
, **kwargs
): return _core
.RealPoint___add__(*args
, **kwargs
)
700 def __sub__(*args
, **kwargs
): return _core
.RealPoint___sub__(*args
, **kwargs
)
701 def __eq__(*args
, **kwargs
): return _core
.RealPoint___eq__(*args
, **kwargs
)
702 def __ne__(*args
, **kwargs
): return _core
.RealPoint___ne__(*args
, **kwargs
)
703 def Set(*args
, **kwargs
): return _core
.RealPoint_Set(*args
, **kwargs
)
704 def asTuple(*args
, **kwargs
): return _core
.RealPoint_asTuple(*args
, **kwargs
)
705 def __str__(self
): return str(self
.asTuple())
706 def __repr__(self
): return 'wxRealPoint'+str(self
.asTuple())
707 def __len__(self
): return len(self
.asTuple())
708 def __getitem__(self
, index
): return self
.asTuple()[index
]
709 def __setitem__(self
, index
, val
):
710 if index
== 0: self
.width
= val
711 elif index
== 1: self
.height
= val
712 else: raise IndexError
713 def __nonzero__(self
): return self
.asTuple() != (0.0, 0.0)
714 def __getinitargs__(self
): return ()
715 def __getstate__(self
): return self
.asTuple()
716 def __setstate__(self
, state
): self
.Set(*state
)
719 class RealPointPtr(RealPoint
):
720 def __init__(self
, this
):
722 if not hasattr(self
,"thisown"): self
.thisown
= 0
723 self
.__class
__ = RealPoint
724 _core
.RealPoint_swigregister(RealPointPtr
)
726 #---------------------------------------------------------------------------
729 x
= property(_core
.Point_x_get
, _core
.Point_x_set
)
730 y
= property(_core
.Point_y_get
, _core
.Point_y_set
)
731 def __init__(self
, *args
, **kwargs
):
732 newobj
= _core
.new_Point(*args
, **kwargs
)
733 self
.this
= newobj
.this
736 def __del__(self
, destroy
=_core
.delete_Point
):
738 if self
.thisown
: destroy(self
)
740 def __eq__(*args
, **kwargs
): return _core
.Point___eq__(*args
, **kwargs
)
741 def __ne__(*args
, **kwargs
): return _core
.Point___ne__(*args
, **kwargs
)
742 def __add__(*args
, **kwargs
): return _core
.Point___add__(*args
, **kwargs
)
743 def __sub__(*args
, **kwargs
): return _core
.Point___sub__(*args
, **kwargs
)
744 def __iadd__(*args
, **kwargs
): return _core
.Point___iadd__(*args
, **kwargs
)
745 def __isub__(*args
, **kwargs
): return _core
.Point___isub__(*args
, **kwargs
)
746 def Set(*args
, **kwargs
): return _core
.Point_Set(*args
, **kwargs
)
747 def asTuple(*args
, **kwargs
): return _core
.Point_asTuple(*args
, **kwargs
)
748 def __str__(self
): return str(self
.asTuple())
749 def __repr__(self
): return 'wxPoint'+str(self
.asTuple())
750 def __len__(self
): return len(self
.asTuple())
751 def __getitem__(self
, index
): return self
.asTuple()[index
]
752 def __setitem__(self
, index
, val
):
753 if index
== 0: self
.x
= val
754 elif index
== 1: self
.y
= val
755 else: raise IndexError
756 def __nonzero__(self
): return self
.asTuple() != (0,0)
757 def __getinitargs__(self
): return ()
758 def __getstate__(self
): return self
.asTuple()
759 def __setstate__(self
, state
): self
.Set(*state
)
762 class PointPtr(Point
):
763 def __init__(self
, this
):
765 if not hasattr(self
,"thisown"): self
.thisown
= 0
766 self
.__class
__ = Point
767 _core
.Point_swigregister(PointPtr
)
769 #---------------------------------------------------------------------------
772 def __init__(self
, *args
, **kwargs
):
773 newobj
= _core
.new_Rect(*args
, **kwargs
)
774 self
.this
= newobj
.this
777 def __del__(self
, destroy
=_core
.delete_Rect
):
779 if self
.thisown
: destroy(self
)
781 def GetX(*args
, **kwargs
): return _core
.Rect_GetX(*args
, **kwargs
)
782 def SetX(*args
, **kwargs
): return _core
.Rect_SetX(*args
, **kwargs
)
783 def GetY(*args
, **kwargs
): return _core
.Rect_GetY(*args
, **kwargs
)
784 def SetY(*args
, **kwargs
): return _core
.Rect_SetY(*args
, **kwargs
)
785 def GetWidth(*args
, **kwargs
): return _core
.Rect_GetWidth(*args
, **kwargs
)
786 def SetWidth(*args
, **kwargs
): return _core
.Rect_SetWidth(*args
, **kwargs
)
787 def GetHeight(*args
, **kwargs
): return _core
.Rect_GetHeight(*args
, **kwargs
)
788 def SetHeight(*args
, **kwargs
): return _core
.Rect_SetHeight(*args
, **kwargs
)
789 def GetPosition(*args
, **kwargs
): return _core
.Rect_GetPosition(*args
, **kwargs
)
790 def SetPosition(*args
, **kwargs
): return _core
.Rect_SetPosition(*args
, **kwargs
)
791 def GetSize(*args
, **kwargs
): return _core
.Rect_GetSize(*args
, **kwargs
)
792 def SetSize(*args
, **kwargs
): return _core
.Rect_SetSize(*args
, **kwargs
)
793 def GetLeft(*args
, **kwargs
): return _core
.Rect_GetLeft(*args
, **kwargs
)
794 def GetTop(*args
, **kwargs
): return _core
.Rect_GetTop(*args
, **kwargs
)
795 def GetBottom(*args
, **kwargs
): return _core
.Rect_GetBottom(*args
, **kwargs
)
796 def GetRight(*args
, **kwargs
): return _core
.Rect_GetRight(*args
, **kwargs
)
797 def SetLeft(*args
, **kwargs
): return _core
.Rect_SetLeft(*args
, **kwargs
)
798 def SetRight(*args
, **kwargs
): return _core
.Rect_SetRight(*args
, **kwargs
)
799 def SetTop(*args
, **kwargs
): return _core
.Rect_SetTop(*args
, **kwargs
)
800 def SetBottom(*args
, **kwargs
): return _core
.Rect_SetBottom(*args
, **kwargs
)
801 def Inflate(*args
, **kwargs
): return _core
.Rect_Inflate(*args
, **kwargs
)
802 def Deflate(*args
, **kwargs
): return _core
.Rect_Deflate(*args
, **kwargs
)
803 def OffsetXY(*args
, **kwargs
): return _core
.Rect_OffsetXY(*args
, **kwargs
)
804 def Offset(*args
, **kwargs
): return _core
.Rect_Offset(*args
, **kwargs
)
805 def Intersect(*args
, **kwargs
): return _core
.Rect_Intersect(*args
, **kwargs
)
806 def __add__(*args
, **kwargs
): return _core
.Rect___add__(*args
, **kwargs
)
807 def __iadd__(*args
, **kwargs
): return _core
.Rect___iadd__(*args
, **kwargs
)
808 def __eq__(*args
, **kwargs
): return _core
.Rect___eq__(*args
, **kwargs
)
809 def __ne__(*args
, **kwargs
): return _core
.Rect___ne__(*args
, **kwargs
)
810 def InsideXY(*args
, **kwargs
): return _core
.Rect_InsideXY(*args
, **kwargs
)
811 def Inside(*args
, **kwargs
): return _core
.Rect_Inside(*args
, **kwargs
)
812 def Intersects(*args
, **kwargs
): return _core
.Rect_Intersects(*args
, **kwargs
)
813 x
= property(_core
.Rect_x_get
, _core
.Rect_x_set
)
814 y
= property(_core
.Rect_y_get
, _core
.Rect_y_set
)
815 width
= property(_core
.Rect_width_get
, _core
.Rect_width_set
)
816 height
= property(_core
.Rect_height_get
, _core
.Rect_height_set
)
817 def Set(*args
, **kwargs
): return _core
.Rect_Set(*args
, **kwargs
)
818 def asTuple(*args
, **kwargs
): return _core
.Rect_asTuple(*args
, **kwargs
)
819 def __str__(self
): return str(self
.asTuple())
820 def __repr__(self
): return 'wxRect'+str(self
.asTuple())
821 def __len__(self
): return len(self
.asTuple())
822 def __getitem__(self
, index
): return self
.asTuple()[index
]
823 def __setitem__(self
, index
, val
):
824 if index
== 0: self
.x
= val
825 elif index
== 1: self
.y
= val
826 elif index
== 2: self
.width
= val
827 elif index
== 3: self
.height
= val
828 else: raise IndexError
829 def __nonzero__(self
): return self
.asTuple() != (0,0,0,0)
830 def __getinitargs__(self
): return ()
831 def __getstate__(self
): return self
.asTuple()
832 def __setstate__(self
, state
): self
.Set(*state
)
836 def __init__(self
, this
):
838 if not hasattr(self
,"thisown"): self
.thisown
= 0
839 self
.__class
__ = Rect
840 _core
.Rect_swigregister(RectPtr
)
842 def RectPP(*args
, **kwargs
):
843 val
= _core
.new_RectPP(*args
, **kwargs
)
847 def RectPS(*args
, **kwargs
):
848 val
= _core
.new_RectPS(*args
, **kwargs
)
853 IntersectRect
= _core
.IntersectRect
854 #---------------------------------------------------------------------------
856 class Point2D(object):
857 def __init__(self
, *args
, **kwargs
):
858 newobj
= _core
.new_Point2D(*args
, **kwargs
)
859 self
.this
= newobj
.this
862 def GetFloor(*args
, **kwargs
): return _core
.Point2D_GetFloor(*args
, **kwargs
)
863 def GetRounded(*args
, **kwargs
): return _core
.Point2D_GetRounded(*args
, **kwargs
)
864 def GetVectorLength(*args
, **kwargs
): return _core
.Point2D_GetVectorLength(*args
, **kwargs
)
865 def GetVectorAngle(*args
, **kwargs
): return _core
.Point2D_GetVectorAngle(*args
, **kwargs
)
866 def SetVectorLength(*args
, **kwargs
): return _core
.Point2D_SetVectorLength(*args
, **kwargs
)
867 def SetVectorAngle(*args
, **kwargs
): return _core
.Point2D_SetVectorAngle(*args
, **kwargs
)
868 def SetPolarCoordinates(self
, angle
, length
):
869 self
.SetVectorLength(length
)
870 self
.SetVectorAngle(angle
)
872 self
.SetVectorLength(1.0)
874 def GetDistance(*args
, **kwargs
): return _core
.Point2D_GetDistance(*args
, **kwargs
)
875 def GetDistanceSquare(*args
, **kwargs
): return _core
.Point2D_GetDistanceSquare(*args
, **kwargs
)
876 def GetDotProduct(*args
, **kwargs
): return _core
.Point2D_GetDotProduct(*args
, **kwargs
)
877 def GetCrossProduct(*args
, **kwargs
): return _core
.Point2D_GetCrossProduct(*args
, **kwargs
)
878 def __neg__(*args
, **kwargs
): return _core
.Point2D___neg__(*args
, **kwargs
)
879 def __iadd__(*args
, **kwargs
): return _core
.Point2D___iadd__(*args
, **kwargs
)
880 def __isub__(*args
, **kwargs
): return _core
.Point2D___isub__(*args
, **kwargs
)
881 def __imul__(*args
, **kwargs
): return _core
.Point2D___imul__(*args
, **kwargs
)
882 def __idiv__(*args
, **kwargs
): return _core
.Point2D___idiv__(*args
, **kwargs
)
883 def __eq__(*args
, **kwargs
): return _core
.Point2D___eq__(*args
, **kwargs
)
884 def __ne__(*args
, **kwargs
): return _core
.Point2D___ne__(*args
, **kwargs
)
885 m_x
= property(_core
.Point2D_m_x_get
, _core
.Point2D_m_x_set
)
886 m_y
= property(_core
.Point2D_m_y_get
, _core
.Point2D_m_y_set
)
887 x
= property(_core
.Point2D_x_get
, _core
.Point2D_x_set
)
888 y
= property(_core
.Point2D_y_get
, _core
.Point2D_y_set
)
889 def Set(*args
, **kwargs
): return _core
.Point2D_Set(*args
, **kwargs
)
890 def asTuple(*args
, **kwargs
): return _core
.Point2D_asTuple(*args
, **kwargs
)
891 def __str__(self
): return str(self
.asTuple())
892 def __repr__(self
): return 'wxPoint2D'+str(self
.asTuple())
893 def __len__(self
): return len(self
.asTuple())
894 def __getitem__(self
, index
): return self
.asTuple()[index
]
895 def __setitem__(self
, index
, val
):
896 if index
== 0: self
.m_x
= val
897 elif index
== 1: self
.m_yt
= val
898 else: raise IndexError
899 def __nonzero__(self
): return self
.asTuple() != (0.0, 0.0)
900 def __getinitargs__(self
): return ()
901 def __getstate__(self
): return self
.asTuple()
902 def __setstate__(self
, state
): self
.Set(*state
)
906 class Point2DPtr(Point2D
):
907 def __init__(self
, this
):
909 if not hasattr(self
,"thisown"): self
.thisown
= 0
910 self
.__class
__ = Point2D
911 _core
.Point2D_swigregister(Point2DPtr
)
913 def Point2DCopy(*args
, **kwargs
):
914 val
= _core
.new_Point2DCopy(*args
, **kwargs
)
918 def Point2DFromPoint(*args
, **kwargs
):
919 val
= _core
.new_Point2DFromPoint(*args
, **kwargs
)
923 #---------------------------------------------------------------------------
925 FromStart
= _core
.FromStart
926 FromCurrent
= _core
.FromCurrent
927 FromEnd
= _core
.FromEnd
928 class InputStream(object):
929 def __init__(self
, *args
, **kwargs
):
930 newobj
= _core
.new_InputStream(*args
, **kwargs
)
931 self
.this
= newobj
.this
934 def close(*args
, **kwargs
): return _core
.InputStream_close(*args
, **kwargs
)
935 def flush(*args
, **kwargs
): return _core
.InputStream_flush(*args
, **kwargs
)
936 def eof(*args
, **kwargs
): return _core
.InputStream_eof(*args
, **kwargs
)
937 def read(*args
, **kwargs
): return _core
.InputStream_read(*args
, **kwargs
)
938 def readline(*args
, **kwargs
): return _core
.InputStream_readline(*args
, **kwargs
)
939 def readlines(*args
, **kwargs
): return _core
.InputStream_readlines(*args
, **kwargs
)
940 def seek(*args
, **kwargs
): return _core
.InputStream_seek(*args
, **kwargs
)
941 def tell(*args
, **kwargs
): return _core
.InputStream_tell(*args
, **kwargs
)
942 def Peek(*args
, **kwargs
): return _core
.InputStream_Peek(*args
, **kwargs
)
943 def GetC(*args
, **kwargs
): return _core
.InputStream_GetC(*args
, **kwargs
)
944 def LastRead(*args
, **kwargs
): return _core
.InputStream_LastRead(*args
, **kwargs
)
945 def CanRead(*args
, **kwargs
): return _core
.InputStream_CanRead(*args
, **kwargs
)
946 def Eof(*args
, **kwargs
): return _core
.InputStream_Eof(*args
, **kwargs
)
947 def Ungetch(*args
, **kwargs
): return _core
.InputStream_Ungetch(*args
, **kwargs
)
948 def SeekI(*args
, **kwargs
): return _core
.InputStream_SeekI(*args
, **kwargs
)
949 def TellI(*args
, **kwargs
): return _core
.InputStream_TellI(*args
, **kwargs
)
951 return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
953 class InputStreamPtr(InputStream
):
954 def __init__(self
, this
):
956 if not hasattr(self
,"thisown"): self
.thisown
= 0
957 self
.__class
__ = InputStream
958 _core
.InputStream_swigregister(InputStreamPtr
)
960 DefaultPosition
= cvar
.DefaultPosition
961 DefaultSize
= cvar
.DefaultSize
963 class OutputStream(object):
964 def write(*args
, **kwargs
): return _core
.OutputStream_write(*args
, **kwargs
)
965 def __init__(self
): raise RuntimeError, "No constructor defined"
967 return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
969 class OutputStreamPtr(OutputStream
):
970 def __init__(self
, this
):
972 if not hasattr(self
,"thisown"): self
.thisown
= 0
973 self
.__class
__ = OutputStream
974 _core
.OutputStream_swigregister(OutputStreamPtr
)
976 #---------------------------------------------------------------------------
978 class FSFile(Object
):
979 def __init__(self
, *args
, **kwargs
):
980 newobj
= _core
.new_FSFile(*args
, **kwargs
)
981 self
.this
= newobj
.this
984 def __del__(self
, destroy
=_core
.delete_FSFile
):
986 if self
.thisown
: destroy(self
)
988 def GetStream(*args
, **kwargs
): return _core
.FSFile_GetStream(*args
, **kwargs
)
989 def GetMimeType(*args
, **kwargs
): return _core
.FSFile_GetMimeType(*args
, **kwargs
)
990 def GetLocation(*args
, **kwargs
): return _core
.FSFile_GetLocation(*args
, **kwargs
)
991 def GetAnchor(*args
, **kwargs
): return _core
.FSFile_GetAnchor(*args
, **kwargs
)
992 def GetModificationTime(*args
, **kwargs
): return _core
.FSFile_GetModificationTime(*args
, **kwargs
)
994 return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
996 class FSFilePtr(FSFile
):
997 def __init__(self
, this
):
999 if not hasattr(self
,"thisown"): self
.thisown
= 0
1000 self
.__class
__ = FSFile
1001 _core
.FSFile_swigregister(FSFilePtr
)
1003 class CPPFileSystemHandler(object):
1004 def __init__(self
): raise RuntimeError, "No constructor defined"
1006 return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1008 class CPPFileSystemHandlerPtr(CPPFileSystemHandler
):
1009 def __init__(self
, this
):
1011 if not hasattr(self
,"thisown"): self
.thisown
= 0
1012 self
.__class
__ = CPPFileSystemHandler
1013 _core
.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr
)
1015 class FileSystemHandler(CPPFileSystemHandler
):
1016 def __init__(self
, *args
, **kwargs
):
1017 newobj
= _core
.new_FileSystemHandler(*args
, **kwargs
)
1018 self
.this
= newobj
.this
1021 self
._setCallbackInfo
(self
, FileSystemHandler
)
1022 def _setCallbackInfo(*args
, **kwargs
): return _core
.FileSystemHandler__setCallbackInfo(*args
, **kwargs
)
1023 def CanOpen(*args
, **kwargs
): return _core
.FileSystemHandler_CanOpen(*args
, **kwargs
)
1024 def OpenFile(*args
, **kwargs
): return _core
.FileSystemHandler_OpenFile(*args
, **kwargs
)
1025 def FindFirst(*args
, **kwargs
): return _core
.FileSystemHandler_FindFirst(*args
, **kwargs
)
1026 def FindNext(*args
, **kwargs
): return _core
.FileSystemHandler_FindNext(*args
, **kwargs
)
1027 def GetProtocol(*args
, **kwargs
): return _core
.FileSystemHandler_GetProtocol(*args
, **kwargs
)
1028 def GetLeftLocation(*args
, **kwargs
): return _core
.FileSystemHandler_GetLeftLocation(*args
, **kwargs
)
1029 def GetAnchor(*args
, **kwargs
): return _core
.FileSystemHandler_GetAnchor(*args
, **kwargs
)
1030 def GetRightLocation(*args
, **kwargs
): return _core
.FileSystemHandler_GetRightLocation(*args
, **kwargs
)
1031 def GetMimeTypeFromExt(*args
, **kwargs
): return _core
.FileSystemHandler_GetMimeTypeFromExt(*args
, **kwargs
)
1033 return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1035 class FileSystemHandlerPtr(FileSystemHandler
):
1036 def __init__(self
, this
):
1038 if not hasattr(self
,"thisown"): self
.thisown
= 0
1039 self
.__class
__ = FileSystemHandler
1040 _core
.FileSystemHandler_swigregister(FileSystemHandlerPtr
)
1042 class FileSystem(Object
):
1043 def __init__(self
, *args
, **kwargs
):
1044 newobj
= _core
.new_FileSystem(*args
, **kwargs
)
1045 self
.this
= newobj
.this
1048 def __del__(self
, destroy
=_core
.delete_FileSystem
):
1050 if self
.thisown
: destroy(self
)
1052 def ChangePathTo(*args
, **kwargs
): return _core
.FileSystem_ChangePathTo(*args
, **kwargs
)
1053 def GetPath(*args
, **kwargs
): return _core
.FileSystem_GetPath(*args
, **kwargs
)
1054 def OpenFile(*args
, **kwargs
): return _core
.FileSystem_OpenFile(*args
, **kwargs
)
1055 def FindFirst(*args
, **kwargs
): return _core
.FileSystem_FindFirst(*args
, **kwargs
)
1056 def FindNext(*args
, **kwargs
): return _core
.FileSystem_FindNext(*args
, **kwargs
)
1057 AddHandler
= staticmethod(_core
.FileSystem_AddHandler
)
1058 CleanUpHandlers
= staticmethod(_core
.FileSystem_CleanUpHandlers
)
1059 FileNameToURL
= staticmethod(_core
.FileSystem_FileNameToURL
)
1061 return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1063 class FileSystemPtr(FileSystem
):
1064 def __init__(self
, this
):
1066 if not hasattr(self
,"thisown"): self
.thisown
= 0
1067 self
.__class
__ = FileSystem
1068 _core
.FileSystem_swigregister(FileSystemPtr
)
1070 FileSystem_AddHandler
= _core
.FileSystem_AddHandler
1072 FileSystem_CleanUpHandlers
= _core
.FileSystem_CleanUpHandlers
1074 FileSystem_FileNameToURL
= _core
.FileSystem_FileNameToURL
1077 FileSystem_URLToFileName
= _core
.FileSystem_URLToFileName
1078 class InternetFSHandler(CPPFileSystemHandler
):
1079 def __init__(self
, *args
, **kwargs
):
1080 newobj
= _core
.new_InternetFSHandler(*args
, **kwargs
)
1081 self
.this
= newobj
.this
1084 def CanOpen(*args
, **kwargs
): return _core
.InternetFSHandler_CanOpen(*args
, **kwargs
)
1085 def OpenFile(*args
, **kwargs
): return _core
.InternetFSHandler_OpenFile(*args
, **kwargs
)
1087 return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1089 class InternetFSHandlerPtr(InternetFSHandler
):
1090 def __init__(self
, this
):
1092 if not hasattr(self
,"thisown"): self
.thisown
= 0
1093 self
.__class
__ = InternetFSHandler
1094 _core
.InternetFSHandler_swigregister(InternetFSHandlerPtr
)
1096 class ZipFSHandler(CPPFileSystemHandler
):
1097 def __init__(self
, *args
, **kwargs
):
1098 newobj
= _core
.new_ZipFSHandler(*args
, **kwargs
)
1099 self
.this
= newobj
.this
1102 def CanOpen(*args
, **kwargs
): return _core
.ZipFSHandler_CanOpen(*args
, **kwargs
)
1103 def OpenFile(*args
, **kwargs
): return _core
.ZipFSHandler_OpenFile(*args
, **kwargs
)
1104 def FindFirst(*args
, **kwargs
): return _core
.ZipFSHandler_FindFirst(*args
, **kwargs
)
1105 def FindNext(*args
, **kwargs
): return _core
.ZipFSHandler_FindNext(*args
, **kwargs
)
1107 return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1109 class ZipFSHandlerPtr(ZipFSHandler
):
1110 def __init__(self
, this
):
1112 if not hasattr(self
,"thisown"): self
.thisown
= 0
1113 self
.__class
__ = ZipFSHandler
1114 _core
.ZipFSHandler_swigregister(ZipFSHandlerPtr
)
1117 __wxMemoryFSHandler_AddFile_wxImage
= _core
.__wxMemoryFSHandler
_AddFile
_wxImage
1119 __wxMemoryFSHandler_AddFile_wxBitmap
= _core
.__wxMemoryFSHandler
_AddFile
_wxBitmap
1121 __wxMemoryFSHandler_AddFile_Data
= _core
.__wxMemoryFSHandler
_AddFile
_Data
1122 def MemoryFSHandler_AddFile(filename
, a
, b
=''):
1123 if isinstance(a
, wx
.Image
):
1124 __wxMemoryFSHandler_AddFile_wxImage(filename
, a
, b
)
1125 elif isinstance(a
, wx
.Bitmap
):
1126 __wxMemoryFSHandler_AddFile_wxBitmap(filename
, a
, b
)
1127 elif type(a
) == str:
1128 __wxMemoryFSHandler_AddFile_Data(filename
, a
)
1129 else: raise TypeError, 'wx.Image, wx.Bitmap or string expected'
1131 class MemoryFSHandler(CPPFileSystemHandler
):
1132 def __init__(self
, *args
, **kwargs
):
1133 newobj
= _core
.new_MemoryFSHandler(*args
, **kwargs
)
1134 self
.this
= newobj
.this
1137 RemoveFile
= staticmethod(_core
.MemoryFSHandler_RemoveFile
)
1138 AddFile
= staticmethod(MemoryFSHandler_AddFile
)
1139 def CanOpen(*args
, **kwargs
): return _core
.MemoryFSHandler_CanOpen(*args
, **kwargs
)
1140 def OpenFile(*args
, **kwargs
): return _core
.MemoryFSHandler_OpenFile(*args
, **kwargs
)
1141 def FindFirst(*args
, **kwargs
): return _core
.MemoryFSHandler_FindFirst(*args
, **kwargs
)
1142 def FindNext(*args
, **kwargs
): return _core
.MemoryFSHandler_FindNext(*args
, **kwargs
)
1144 return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1146 class MemoryFSHandlerPtr(MemoryFSHandler
):
1147 def __init__(self
, this
):
1149 if not hasattr(self
,"thisown"): self
.thisown
= 0
1150 self
.__class
__ = MemoryFSHandler
1151 _core
.MemoryFSHandler_swigregister(MemoryFSHandlerPtr
)
1153 MemoryFSHandler_RemoveFile
= _core
.MemoryFSHandler_RemoveFile
1155 #---------------------------------------------------------------------------
1157 class ImageHandler(Object
):
1158 def GetName(*args
, **kwargs
): return _core
.ImageHandler_GetName(*args
, **kwargs
)
1159 def GetExtension(*args
, **kwargs
): return _core
.ImageHandler_GetExtension(*args
, **kwargs
)
1160 def GetType(*args
, **kwargs
): return _core
.ImageHandler_GetType(*args
, **kwargs
)
1161 def GetMimeType(*args
, **kwargs
): return _core
.ImageHandler_GetMimeType(*args
, **kwargs
)
1162 def CanRead(*args
, **kwargs
): return _core
.ImageHandler_CanRead(*args
, **kwargs
)
1163 def SetName(*args
, **kwargs
): return _core
.ImageHandler_SetName(*args
, **kwargs
)
1164 def SetExtension(*args
, **kwargs
): return _core
.ImageHandler_SetExtension(*args
, **kwargs
)
1165 def SetType(*args
, **kwargs
): return _core
.ImageHandler_SetType(*args
, **kwargs
)
1166 def SetMimeType(*args
, **kwargs
): return _core
.ImageHandler_SetMimeType(*args
, **kwargs
)
1167 def __init__(self
): raise RuntimeError, "No constructor defined"
1169 return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1171 class ImageHandlerPtr(ImageHandler
):
1172 def __init__(self
, this
):
1174 if not hasattr(self
,"thisown"): self
.thisown
= 0
1175 self
.__class
__ = ImageHandler
1176 _core
.ImageHandler_swigregister(ImageHandlerPtr
)
1178 class ImageHistogram(object):
1179 def __init__(self
, *args
, **kwargs
):
1180 newobj
= _core
.new_ImageHistogram(*args
, **kwargs
)
1181 self
.this
= newobj
.this
1184 MakeKey
= staticmethod(_core
.ImageHistogram_MakeKey
)
1185 def FindFirstUnusedColour(*args
, **kwargs
): return _core
.ImageHistogram_FindFirstUnusedColour(*args
, **kwargs
)
1187 return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1189 class ImageHistogramPtr(ImageHistogram
):
1190 def __init__(self
, this
):
1192 if not hasattr(self
,"thisown"): self
.thisown
= 0
1193 self
.__class
__ = ImageHistogram
1194 _core
.ImageHistogram_swigregister(ImageHistogramPtr
)
1196 ImageHistogram_MakeKey
= _core
.ImageHistogram_MakeKey
1198 class Image(Object
):
1199 def __init__(self
, *args
, **kwargs
):
1200 newobj
= _core
.new_Image(*args
, **kwargs
)
1201 self
.this
= newobj
.this
1204 def __del__(self
, destroy
=_core
.delete_Image
):
1206 if self
.thisown
: destroy(self
)
1208 def Create(*args
, **kwargs
): return _core
.Image_Create(*args
, **kwargs
)
1209 def Destroy(*args
, **kwargs
): return _core
.Image_Destroy(*args
, **kwargs
)
1210 def Scale(*args
, **kwargs
): return _core
.Image_Scale(*args
, **kwargs
)
1211 def ShrinkBy(*args
, **kwargs
): return _core
.Image_ShrinkBy(*args
, **kwargs
)
1212 def Rescale(*args
, **kwargs
): return _core
.Image_Rescale(*args
, **kwargs
)
1213 def SetRGB(*args
, **kwargs
): return _core
.Image_SetRGB(*args
, **kwargs
)
1214 def GetRed(*args
, **kwargs
): return _core
.Image_GetRed(*args
, **kwargs
)
1215 def GetGreen(*args
, **kwargs
): return _core
.Image_GetGreen(*args
, **kwargs
)
1216 def GetBlue(*args
, **kwargs
): return _core
.Image_GetBlue(*args
, **kwargs
)
1217 def SetAlpha(*args
, **kwargs
): return _core
.Image_SetAlpha(*args
, **kwargs
)
1218 def GetAlpha(*args
, **kwargs
): return _core
.Image_GetAlpha(*args
, **kwargs
)
1219 def HasAlpha(*args
, **kwargs
): return _core
.Image_HasAlpha(*args
, **kwargs
)
1220 def FindFirstUnusedColour(*args
, **kwargs
): return _core
.Image_FindFirstUnusedColour(*args
, **kwargs
)
1221 def SetMaskFromImage(*args
, **kwargs
): return _core
.Image_SetMaskFromImage(*args
, **kwargs
)
1222 CanRead
= staticmethod(_core
.Image_CanRead
)
1223 GetImageCount
= staticmethod(_core
.Image_GetImageCount
)
1224 def LoadFile(*args
, **kwargs
): return _core
.Image_LoadFile(*args
, **kwargs
)
1225 def LoadMimeFile(*args
, **kwargs
): return _core
.Image_LoadMimeFile(*args
, **kwargs
)
1226 def SaveFile(*args
, **kwargs
): return _core
.Image_SaveFile(*args
, **kwargs
)
1227 def SaveMimeFile(*args
, **kwargs
): return _core
.Image_SaveMimeFile(*args
, **kwargs
)
1228 CanReadStream
= staticmethod(_core
.Image_CanReadStream
)
1229 def LoadStream(*args
, **kwargs
): return _core
.Image_LoadStream(*args
, **kwargs
)
1230 def LoadMimeStream(*args
, **kwargs
): return _core
.Image_LoadMimeStream(*args
, **kwargs
)
1231 def Ok(*args
, **kwargs
): return _core
.Image_Ok(*args
, **kwargs
)
1232 def GetWidth(*args
, **kwargs
): return _core
.Image_GetWidth(*args
, **kwargs
)
1233 def GetHeight(*args
, **kwargs
): return _core
.Image_GetHeight(*args
, **kwargs
)
1234 def GetSubImage(*args
, **kwargs
): return _core
.Image_GetSubImage(*args
, **kwargs
)
1235 def Copy(*args
, **kwargs
): return _core
.Image_Copy(*args
, **kwargs
)
1236 def Paste(*args
, **kwargs
): return _core
.Image_Paste(*args
, **kwargs
)
1237 def GetData(*args
, **kwargs
): return _core
.Image_GetData(*args
, **kwargs
)
1238 def SetData(*args
, **kwargs
): return _core
.Image_SetData(*args
, **kwargs
)
1239 def GetDataBuffer(*args
, **kwargs
): return _core
.Image_GetDataBuffer(*args
, **kwargs
)
1240 def SetDataBuffer(*args
, **kwargs
): return _core
.Image_SetDataBuffer(*args
, **kwargs
)
1241 def GetAlphaData(*args
, **kwargs
): return _core
.Image_GetAlphaData(*args
, **kwargs
)
1242 def SetAlphaData(*args
, **kwargs
): return _core
.Image_SetAlphaData(*args
, **kwargs
)
1243 def GetAlphaBuffer(*args
, **kwargs
): return _core
.Image_GetAlphaBuffer(*args
, **kwargs
)
1244 def SetAlphaBuffer(*args
, **kwargs
): return _core
.Image_SetAlphaBuffer(*args
, **kwargs
)
1245 def SetMaskColour(*args
, **kwargs
): return _core
.Image_SetMaskColour(*args
, **kwargs
)
1246 def GetMaskRed(*args
, **kwargs
): return _core
.Image_GetMaskRed(*args
, **kwargs
)
1247 def GetMaskGreen(*args
, **kwargs
): return _core
.Image_GetMaskGreen(*args
, **kwargs
)
1248 def GetMaskBlue(*args
, **kwargs
): return _core
.Image_GetMaskBlue(*args
, **kwargs
)
1249 def SetMask(*args
, **kwargs
): return _core
.Image_SetMask(*args
, **kwargs
)
1250 def HasMask(*args
, **kwargs
): return _core
.Image_HasMask(*args
, **kwargs
)
1251 def Rotate(*args
, **kwargs
): return _core
.Image_Rotate(*args
, **kwargs
)
1252 def Rotate90(*args
, **kwargs
): return _core
.Image_Rotate90(*args
, **kwargs
)
1253 def Mirror(*args
, **kwargs
): return _core
.Image_Mirror(*args
, **kwargs
)
1254 def Replace(*args
, **kwargs
): return _core
.Image_Replace(*args
, **kwargs
)
1255 def ConvertToMono(*args
, **kwargs
): return _core
.Image_ConvertToMono(*args
, **kwargs
)
1256 def SetOption(*args
, **kwargs
): return _core
.Image_SetOption(*args
, **kwargs
)
1257 def SetOptionInt(*args
, **kwargs
): return _core
.Image_SetOptionInt(*args
, **kwargs
)
1258 def GetOption(*args
, **kwargs
): return _core
.Image_GetOption(*args
, **kwargs
)
1259 def GetOptionInt(*args
, **kwargs
): return _core
.Image_GetOptionInt(*args
, **kwargs
)
1260 def HasOption(*args
, **kwargs
): return _core
.Image_HasOption(*args
, **kwargs
)
1261 def CountColours(*args
, **kwargs
): return _core
.Image_CountColours(*args
, **kwargs
)
1262 def ComputeHistogram(*args
, **kwargs
): return _core
.Image_ComputeHistogram(*args
, **kwargs
)
1263 AddHandler
= staticmethod(_core
.Image_AddHandler
)
1264 InsertHandler
= staticmethod(_core
.Image_InsertHandler
)
1265 RemoveHandler
= staticmethod(_core
.Image_RemoveHandler
)
1266 GetImageExtWildcard
= staticmethod(_core
.Image_GetImageExtWildcard
)
1267 def ConvertToBitmap(*args
, **kwargs
): return _core
.Image_ConvertToBitmap(*args
, **kwargs
)
1268 def ConvertToMonoBitmap(*args
, **kwargs
): return _core
.Image_ConvertToMonoBitmap(*args
, **kwargs
)
1269 def __nonzero__(self
): return self
.Ok()
1271 return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1273 class ImagePtr(Image
):
1274 def __init__(self
, this
):
1276 if not hasattr(self
,"thisown"): self
.thisown
= 0
1277 self
.__class
__ = Image
1278 _core
.Image_swigregister(ImagePtr
)
1280 def ImageFromMime(*args
, **kwargs
):
1281 val
= _core
.new_ImageFromMime(*args
, **kwargs
)
1285 def ImageFromStream(*args
, **kwargs
):
1286 val
= _core
.new_ImageFromStream(*args
, **kwargs
)
1290 def ImageFromStreamMime(*args
, **kwargs
):
1291 val
= _core
.new_ImageFromStreamMime(*args
, **kwargs
)
1295 def EmptyImage(*args
, **kwargs
):
1296 val
= _core
.new_EmptyImage(*args
, **kwargs
)
1300 def ImageFromBitmap(*args
, **kwargs
):
1301 val
= _core
.new_ImageFromBitmap(*args
, **kwargs
)
1305 def ImageFromData(*args
, **kwargs
):
1306 val
= _core
.new_ImageFromData(*args
, **kwargs
)
1310 Image_CanRead
= _core
.Image_CanRead
1312 Image_GetImageCount
= _core
.Image_GetImageCount
1314 Image_CanReadStream
= _core
.Image_CanReadStream
1316 Image_AddHandler
= _core
.Image_AddHandler
1318 Image_InsertHandler
= _core
.Image_InsertHandler
1320 Image_RemoveHandler
= _core
.Image_RemoveHandler
1322 Image_GetImageExtWildcard
= _core
.Image_GetImageExtWildcard
1325 InitAllImageHandlers
= _core
.InitAllImageHandlers
1326 IMAGE_RESOLUTION_INCHES
= _core
.IMAGE_RESOLUTION_INCHES
1327 IMAGE_RESOLUTION_CM
= _core
.IMAGE_RESOLUTION_CM
1328 BMP_24BPP
= _core
.BMP_24BPP
1329 BMP_8BPP
= _core
.BMP_8BPP
1330 BMP_8BPP_GREY
= _core
.BMP_8BPP_GREY
1331 BMP_8BPP_GRAY
= _core
.BMP_8BPP_GRAY
1332 BMP_8BPP_RED
= _core
.BMP_8BPP_RED
1333 BMP_8BPP_PALETTE
= _core
.BMP_8BPP_PALETTE
1334 BMP_4BPP
= _core
.BMP_4BPP
1335 BMP_1BPP
= _core
.BMP_1BPP
1336 BMP_1BPP_BW
= _core
.BMP_1BPP_BW
1337 class BMPHandler(ImageHandler
):
1338 def __init__(self
, *args
, **kwargs
):
1339 newobj
= _core
.new_BMPHandler(*args
, **kwargs
)
1340 self
.this
= newobj
.this
1344 return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1346 class BMPHandlerPtr(BMPHandler
):
1347 def __init__(self
, this
):
1349 if not hasattr(self
,"thisown"): self
.thisown
= 0
1350 self
.__class
__ = BMPHandler
1351 _core
.BMPHandler_swigregister(BMPHandlerPtr
)
1352 NullImage
= cvar
.NullImage
1353 IMAGE_OPTION_BMP_FORMAT
= cvar
.IMAGE_OPTION_BMP_FORMAT
1354 IMAGE_OPTION_CUR_HOTSPOT_X
= cvar
.IMAGE_OPTION_CUR_HOTSPOT_X
1355 IMAGE_OPTION_CUR_HOTSPOT_Y
= cvar
.IMAGE_OPTION_CUR_HOTSPOT_Y
1356 IMAGE_OPTION_RESOLUTION
= cvar
.IMAGE_OPTION_RESOLUTION
1357 IMAGE_OPTION_RESOLUTIONUNIT
= cvar
.IMAGE_OPTION_RESOLUTIONUNIT
1359 class ICOHandler(BMPHandler
):
1360 def __init__(self
, *args
, **kwargs
):
1361 newobj
= _core
.new_ICOHandler(*args
, **kwargs
)
1362 self
.this
= newobj
.this
1366 return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1368 class ICOHandlerPtr(ICOHandler
):
1369 def __init__(self
, this
):
1371 if not hasattr(self
,"thisown"): self
.thisown
= 0
1372 self
.__class
__ = ICOHandler
1373 _core
.ICOHandler_swigregister(ICOHandlerPtr
)
1375 class CURHandler(ICOHandler
):
1376 def __init__(self
, *args
, **kwargs
):
1377 newobj
= _core
.new_CURHandler(*args
, **kwargs
)
1378 self
.this
= newobj
.this
1382 return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1384 class CURHandlerPtr(CURHandler
):
1385 def __init__(self
, this
):
1387 if not hasattr(self
,"thisown"): self
.thisown
= 0
1388 self
.__class
__ = CURHandler
1389 _core
.CURHandler_swigregister(CURHandlerPtr
)
1391 class ANIHandler(CURHandler
):
1392 def __init__(self
, *args
, **kwargs
):
1393 newobj
= _core
.new_ANIHandler(*args
, **kwargs
)
1394 self
.this
= newobj
.this
1398 return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1400 class ANIHandlerPtr(ANIHandler
):
1401 def __init__(self
, this
):
1403 if not hasattr(self
,"thisown"): self
.thisown
= 0
1404 self
.__class
__ = ANIHandler
1405 _core
.ANIHandler_swigregister(ANIHandlerPtr
)
1407 class PNGHandler(ImageHandler
):
1408 def __init__(self
, *args
, **kwargs
):
1409 newobj
= _core
.new_PNGHandler(*args
, **kwargs
)
1410 self
.this
= newobj
.this
1414 return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1416 class PNGHandlerPtr(PNGHandler
):
1417 def __init__(self
, this
):
1419 if not hasattr(self
,"thisown"): self
.thisown
= 0
1420 self
.__class
__ = PNGHandler
1421 _core
.PNGHandler_swigregister(PNGHandlerPtr
)
1423 class GIFHandler(ImageHandler
):
1424 def __init__(self
, *args
, **kwargs
):
1425 newobj
= _core
.new_GIFHandler(*args
, **kwargs
)
1426 self
.this
= newobj
.this
1430 return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1432 class GIFHandlerPtr(GIFHandler
):
1433 def __init__(self
, this
):
1435 if not hasattr(self
,"thisown"): self
.thisown
= 0
1436 self
.__class
__ = GIFHandler
1437 _core
.GIFHandler_swigregister(GIFHandlerPtr
)
1439 class PCXHandler(ImageHandler
):
1440 def __init__(self
, *args
, **kwargs
):
1441 newobj
= _core
.new_PCXHandler(*args
, **kwargs
)
1442 self
.this
= newobj
.this
1446 return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1448 class PCXHandlerPtr(PCXHandler
):
1449 def __init__(self
, this
):
1451 if not hasattr(self
,"thisown"): self
.thisown
= 0
1452 self
.__class
__ = PCXHandler
1453 _core
.PCXHandler_swigregister(PCXHandlerPtr
)
1455 class JPEGHandler(ImageHandler
):
1456 def __init__(self
, *args
, **kwargs
):
1457 newobj
= _core
.new_JPEGHandler(*args
, **kwargs
)
1458 self
.this
= newobj
.this
1462 return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1464 class JPEGHandlerPtr(JPEGHandler
):
1465 def __init__(self
, this
):
1467 if not hasattr(self
,"thisown"): self
.thisown
= 0
1468 self
.__class
__ = JPEGHandler
1469 _core
.JPEGHandler_swigregister(JPEGHandlerPtr
)
1471 class PNMHandler(ImageHandler
):
1472 def __init__(self
, *args
, **kwargs
):
1473 newobj
= _core
.new_PNMHandler(*args
, **kwargs
)
1474 self
.this
= newobj
.this
1478 return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1480 class PNMHandlerPtr(PNMHandler
):
1481 def __init__(self
, this
):
1483 if not hasattr(self
,"thisown"): self
.thisown
= 0
1484 self
.__class
__ = PNMHandler
1485 _core
.PNMHandler_swigregister(PNMHandlerPtr
)
1487 class XPMHandler(ImageHandler
):
1488 def __init__(self
, *args
, **kwargs
):
1489 newobj
= _core
.new_XPMHandler(*args
, **kwargs
)
1490 self
.this
= newobj
.this
1494 return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1496 class XPMHandlerPtr(XPMHandler
):
1497 def __init__(self
, this
):
1499 if not hasattr(self
,"thisown"): self
.thisown
= 0
1500 self
.__class
__ = XPMHandler
1501 _core
.XPMHandler_swigregister(XPMHandlerPtr
)
1503 class TIFFHandler(ImageHandler
):
1504 def __init__(self
, *args
, **kwargs
):
1505 newobj
= _core
.new_TIFFHandler(*args
, **kwargs
)
1506 self
.this
= newobj
.this
1510 return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1512 class TIFFHandlerPtr(TIFFHandler
):
1513 def __init__(self
, this
):
1515 if not hasattr(self
,"thisown"): self
.thisown
= 0
1516 self
.__class
__ = TIFFHandler
1517 _core
.TIFFHandler_swigregister(TIFFHandlerPtr
)
1519 #---------------------------------------------------------------------------
1521 class EvtHandler(Object
):
1522 def __init__(self
, *args
, **kwargs
):
1523 newobj
= _core
.new_EvtHandler(*args
, **kwargs
)
1524 self
.this
= newobj
.this
1527 def GetNextHandler(*args
, **kwargs
): return _core
.EvtHandler_GetNextHandler(*args
, **kwargs
)
1528 def GetPreviousHandler(*args
, **kwargs
): return _core
.EvtHandler_GetPreviousHandler(*args
, **kwargs
)
1529 def SetNextHandler(*args
, **kwargs
): return _core
.EvtHandler_SetNextHandler(*args
, **kwargs
)
1530 def SetPreviousHandler(*args
, **kwargs
): return _core
.EvtHandler_SetPreviousHandler(*args
, **kwargs
)
1531 def GetEvtHandlerEnabled(*args
, **kwargs
): return _core
.EvtHandler_GetEvtHandlerEnabled(*args
, **kwargs
)
1532 def SetEvtHandlerEnabled(*args
, **kwargs
): return _core
.EvtHandler_SetEvtHandlerEnabled(*args
, **kwargs
)
1533 def ProcessEvent(*args
, **kwargs
): return _core
.EvtHandler_ProcessEvent(*args
, **kwargs
)
1534 def AddPendingEvent(*args
, **kwargs
): return _core
.EvtHandler_AddPendingEvent(*args
, **kwargs
)
1535 def ProcessPendingEvents(*args
, **kwargs
): return _core
.EvtHandler_ProcessPendingEvents(*args
, **kwargs
)
1536 def Connect(*args
, **kwargs
): return _core
.EvtHandler_Connect(*args
, **kwargs
)
1537 def Disconnect(*args
, **kwargs
): return _core
.EvtHandler_Disconnect(*args
, **kwargs
)
1538 def _setOORInfo(*args
, **kwargs
): return _core
.EvtHandler__setOORInfo(*args
, **kwargs
)
1539 def Bind(self
, event
, handler
, source
=None, id=wx
.ID_ANY
, id2
=wx
.ID_ANY
):
1541 Bind an event to an event handler.
1543 event One of the EVT_* objects that specifies the
1544 type of event to bind,
1546 handler A callable object to be invoked when the event
1547 is delivered to self. Pass None to disconnect an
1550 source Sometimes the event originates from a different window
1551 than self, but you still want to catch it in self. (For
1552 example, a button event delivered to a frame.) By
1553 passing the source of the event, the event handling
1554 system is able to differentiate between the same event
1555 type from different controls.
1557 id,id2 Used for menu IDs or for event types that require a
1560 if source
is not None:
1562 event
.Bind(self
, id, id2
, handler
)
1566 return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1568 class EvtHandlerPtr(EvtHandler
):
1569 def __init__(self
, this
):
1571 if not hasattr(self
,"thisown"): self
.thisown
= 0
1572 self
.__class
__ = EvtHandler
1573 _core
.EvtHandler_swigregister(EvtHandlerPtr
)
1575 #---------------------------------------------------------------------------
1577 class PyEventBinder(object):
1579 Instances of this class are used to bind specific events to event
1582 def __init__(self
, evtType
, expectedIDs
=0):
1583 if expectedIDs
not in [0, 1, 2]:
1584 raise ValueError, "Invalid number of expectedIDs"
1585 self
.expectedIDs
= expectedIDs
1587 if type(evtType
) == list or type(evtType
) == tuple:
1588 self
.evtType
= evtType
1590 self
.evtType
= [evtType
]
1593 def Bind(self
, target
, id1
, id2
, function
):
1594 """Bind this set of event types to target."""
1595 for et
in self
.evtType
:
1596 target
.Connect(id1
, id2
, et
, function
)
1599 def __call__(self
, *args
):
1601 For backwards compatibility with the old EVT_* functions.
1602 Should be called with either (window, func), (window, ID,
1603 func) or (window, ID1, ID2, func) parameters depending on the
1606 assert len(args
) == 2 + self
.expectedIDs
1610 if self
.expectedIDs
== 0:
1612 elif self
.expectedIDs
== 1:
1615 elif self
.expectedIDs
== 2:
1620 raise ValueError, "Unexpected number of IDs"
1622 self
.Bind(target
, id1
, id2
, func
)
1625 # These two are square pegs that don't fit the PyEventBinder hole...
1626 def EVT_COMMAND(win
, id, cmd
, func
):
1627 win
.Connect(id, -1, cmd
, func
)
1628 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
1629 win
.Connect(id1
, id2
, cmd
, func
)
1632 #---------------------------------------------------------------------------
1634 #---------------------------------------------------------------------------
1636 EVENT_PROPAGATE_NONE
= _core
.EVENT_PROPAGATE_NONE
1637 EVENT_PROPAGATE_MAX
= _core
.EVENT_PROPAGATE_MAX
1639 NewEventType
= _core
.NewEventType
1640 wxEVT_NULL
= _core
.wxEVT_NULL
1641 wxEVT_FIRST
= _core
.wxEVT_FIRST
1642 wxEVT_USER_FIRST
= _core
.wxEVT_USER_FIRST
1643 wxEVT_COMMAND_BUTTON_CLICKED
= _core
.wxEVT_COMMAND_BUTTON_CLICKED
1644 wxEVT_COMMAND_CHECKBOX_CLICKED
= _core
.wxEVT_COMMAND_CHECKBOX_CLICKED
1645 wxEVT_COMMAND_CHOICE_SELECTED
= _core
.wxEVT_COMMAND_CHOICE_SELECTED
1646 wxEVT_COMMAND_LISTBOX_SELECTED
= _core
.wxEVT_COMMAND_LISTBOX_SELECTED
1647 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= _core
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
1648 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= _core
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
1649 wxEVT_COMMAND_MENU_SELECTED
= _core
.wxEVT_COMMAND_MENU_SELECTED
1650 wxEVT_COMMAND_TOOL_CLICKED
= _core
.wxEVT_COMMAND_TOOL_CLICKED
1651 wxEVT_COMMAND_SLIDER_UPDATED
= _core
.wxEVT_COMMAND_SLIDER_UPDATED
1652 wxEVT_COMMAND_RADIOBOX_SELECTED
= _core
.wxEVT_COMMAND_RADIOBOX_SELECTED
1653 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= _core
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
1654 wxEVT_COMMAND_SCROLLBAR_UPDATED
= _core
.wxEVT_COMMAND_SCROLLBAR_UPDATED
1655 wxEVT_COMMAND_VLBOX_SELECTED
= _core
.wxEVT_COMMAND_VLBOX_SELECTED
1656 wxEVT_COMMAND_COMBOBOX_SELECTED
= _core
.wxEVT_COMMAND_COMBOBOX_SELECTED
1657 wxEVT_COMMAND_TOOL_RCLICKED
= _core
.wxEVT_COMMAND_TOOL_RCLICKED
1658 wxEVT_COMMAND_TOOL_ENTER
= _core
.wxEVT_COMMAND_TOOL_ENTER
1659 wxEVT_LEFT_DOWN
= _core
.wxEVT_LEFT_DOWN
1660 wxEVT_LEFT_UP
= _core
.wxEVT_LEFT_UP
1661 wxEVT_MIDDLE_DOWN
= _core
.wxEVT_MIDDLE_DOWN
1662 wxEVT_MIDDLE_UP
= _core
.wxEVT_MIDDLE_UP
1663 wxEVT_RIGHT_DOWN
= _core
.wxEVT_RIGHT_DOWN
1664 wxEVT_RIGHT_UP
= _core
.wxEVT_RIGHT_UP
1665 wxEVT_MOTION
= _core
.wxEVT_MOTION
1666 wxEVT_ENTER_WINDOW
= _core
.wxEVT_ENTER_WINDOW
1667 wxEVT_LEAVE_WINDOW
= _core
.wxEVT_LEAVE_WINDOW
1668 wxEVT_LEFT_DCLICK
= _core
.wxEVT_LEFT_DCLICK
1669 wxEVT_MIDDLE_DCLICK
= _core
.wxEVT_MIDDLE_DCLICK
1670 wxEVT_RIGHT_DCLICK
= _core
.wxEVT_RIGHT_DCLICK
1671 wxEVT_SET_FOCUS
= _core
.wxEVT_SET_FOCUS
1672 wxEVT_KILL_FOCUS
= _core
.wxEVT_KILL_FOCUS
1673 wxEVT_CHILD_FOCUS
= _core
.wxEVT_CHILD_FOCUS
1674 wxEVT_MOUSEWHEEL
= _core
.wxEVT_MOUSEWHEEL
1675 wxEVT_NC_LEFT_DOWN
= _core
.wxEVT_NC_LEFT_DOWN
1676 wxEVT_NC_LEFT_UP
= _core
.wxEVT_NC_LEFT_UP
1677 wxEVT_NC_MIDDLE_DOWN
= _core
.wxEVT_NC_MIDDLE_DOWN
1678 wxEVT_NC_MIDDLE_UP
= _core
.wxEVT_NC_MIDDLE_UP
1679 wxEVT_NC_RIGHT_DOWN
= _core
.wxEVT_NC_RIGHT_DOWN
1680 wxEVT_NC_RIGHT_UP
= _core
.wxEVT_NC_RIGHT_UP
1681 wxEVT_NC_MOTION
= _core
.wxEVT_NC_MOTION
1682 wxEVT_NC_ENTER_WINDOW
= _core
.wxEVT_NC_ENTER_WINDOW
1683 wxEVT_NC_LEAVE_WINDOW
= _core
.wxEVT_NC_LEAVE_WINDOW
1684 wxEVT_NC_LEFT_DCLICK
= _core
.wxEVT_NC_LEFT_DCLICK
1685 wxEVT_NC_MIDDLE_DCLICK
= _core
.wxEVT_NC_MIDDLE_DCLICK
1686 wxEVT_NC_RIGHT_DCLICK
= _core
.wxEVT_NC_RIGHT_DCLICK
1687 wxEVT_CHAR
= _core
.wxEVT_CHAR
1688 wxEVT_CHAR_HOOK
= _core
.wxEVT_CHAR_HOOK
1689 wxEVT_NAVIGATION_KEY
= _core
.wxEVT_NAVIGATION_KEY
1690 wxEVT_KEY_DOWN
= _core
.wxEVT_KEY_DOWN
1691 wxEVT_KEY_UP
= _core
.wxEVT_KEY_UP
1692 wxEVT_HOTKEY
= _core
.wxEVT_HOTKEY
1693 wxEVT_SET_CURSOR
= _core
.wxEVT_SET_CURSOR
1694 wxEVT_SCROLL_TOP
= _core
.wxEVT_SCROLL_TOP
1695 wxEVT_SCROLL_BOTTOM
= _core
.wxEVT_SCROLL_BOTTOM
1696 wxEVT_SCROLL_LINEUP
= _core
.wxEVT_SCROLL_LINEUP
1697 wxEVT_SCROLL_LINEDOWN
= _core
.wxEVT_SCROLL_LINEDOWN
1698 wxEVT_SCROLL_PAGEUP
= _core
.wxEVT_SCROLL_PAGEUP
1699 wxEVT_SCROLL_PAGEDOWN
= _core
.wxEVT_SCROLL_PAGEDOWN
1700 wxEVT_SCROLL_THUMBTRACK
= _core
.wxEVT_SCROLL_THUMBTRACK
1701 wxEVT_SCROLL_THUMBRELEASE
= _core
.wxEVT_SCROLL_THUMBRELEASE
1702 wxEVT_SCROLL_ENDSCROLL
= _core
.wxEVT_SCROLL_ENDSCROLL
1703 wxEVT_SCROLLWIN_TOP
= _core
.wxEVT_SCROLLWIN_TOP
1704 wxEVT_SCROLLWIN_BOTTOM
= _core
.wxEVT_SCROLLWIN_BOTTOM
1705 wxEVT_SCROLLWIN_LINEUP
= _core
.wxEVT_SCROLLWIN_LINEUP
1706 wxEVT_SCROLLWIN_LINEDOWN
= _core
.wxEVT_SCROLLWIN_LINEDOWN
1707 wxEVT_SCROLLWIN_PAGEUP
= _core
.wxEVT_SCROLLWIN_PAGEUP
1708 wxEVT_SCROLLWIN_PAGEDOWN
= _core
.wxEVT_SCROLLWIN_PAGEDOWN
1709 wxEVT_SCROLLWIN_THUMBTRACK
= _core
.wxEVT_SCROLLWIN_THUMBTRACK
1710 wxEVT_SCROLLWIN_THUMBRELEASE
= _core
.wxEVT_SCROLLWIN_THUMBRELEASE
1711 wxEVT_SIZE
= _core
.wxEVT_SIZE
1712 wxEVT_MOVE
= _core
.wxEVT_MOVE
1713 wxEVT_CLOSE_WINDOW
= _core
.wxEVT_CLOSE_WINDOW
1714 wxEVT_END_SESSION
= _core
.wxEVT_END_SESSION
1715 wxEVT_QUERY_END_SESSION
= _core
.wxEVT_QUERY_END_SESSION
1716 wxEVT_ACTIVATE_APP
= _core
.wxEVT_ACTIVATE_APP
1717 wxEVT_POWER
= _core
.wxEVT_POWER
1718 wxEVT_ACTIVATE
= _core
.wxEVT_ACTIVATE
1719 wxEVT_CREATE
= _core
.wxEVT_CREATE
1720 wxEVT_DESTROY
= _core
.wxEVT_DESTROY
1721 wxEVT_SHOW
= _core
.wxEVT_SHOW
1722 wxEVT_ICONIZE
= _core
.wxEVT_ICONIZE
1723 wxEVT_MAXIMIZE
= _core
.wxEVT_MAXIMIZE
1724 wxEVT_MOUSE_CAPTURE_CHANGED
= _core
.wxEVT_MOUSE_CAPTURE_CHANGED
1725 wxEVT_PAINT
= _core
.wxEVT_PAINT
1726 wxEVT_ERASE_BACKGROUND
= _core
.wxEVT_ERASE_BACKGROUND
1727 wxEVT_NC_PAINT
= _core
.wxEVT_NC_PAINT
1728 wxEVT_PAINT_ICON
= _core
.wxEVT_PAINT_ICON
1729 wxEVT_MENU_OPEN
= _core
.wxEVT_MENU_OPEN
1730 wxEVT_MENU_CLOSE
= _core
.wxEVT_MENU_CLOSE
1731 wxEVT_MENU_HIGHLIGHT
= _core
.wxEVT_MENU_HIGHLIGHT
1732 wxEVT_CONTEXT_MENU
= _core
.wxEVT_CONTEXT_MENU
1733 wxEVT_SYS_COLOUR_CHANGED
= _core
.wxEVT_SYS_COLOUR_CHANGED
1734 wxEVT_DISPLAY_CHANGED
= _core
.wxEVT_DISPLAY_CHANGED
1735 wxEVT_SETTING_CHANGED
= _core
.wxEVT_SETTING_CHANGED
1736 wxEVT_QUERY_NEW_PALETTE
= _core
.wxEVT_QUERY_NEW_PALETTE
1737 wxEVT_PALETTE_CHANGED
= _core
.wxEVT_PALETTE_CHANGED
1738 wxEVT_DROP_FILES
= _core
.wxEVT_DROP_FILES
1739 wxEVT_DRAW_ITEM
= _core
.wxEVT_DRAW_ITEM
1740 wxEVT_MEASURE_ITEM
= _core
.wxEVT_MEASURE_ITEM
1741 wxEVT_COMPARE_ITEM
= _core
.wxEVT_COMPARE_ITEM
1742 wxEVT_INIT_DIALOG
= _core
.wxEVT_INIT_DIALOG
1743 wxEVT_IDLE
= _core
.wxEVT_IDLE
1744 wxEVT_UPDATE_UI
= _core
.wxEVT_UPDATE_UI
1745 wxEVT_SIZING
= _core
.wxEVT_SIZING
1746 wxEVT_MOVING
= _core
.wxEVT_MOVING
1747 wxEVT_COMMAND_LEFT_CLICK
= _core
.wxEVT_COMMAND_LEFT_CLICK
1748 wxEVT_COMMAND_LEFT_DCLICK
= _core
.wxEVT_COMMAND_LEFT_DCLICK
1749 wxEVT_COMMAND_RIGHT_CLICK
= _core
.wxEVT_COMMAND_RIGHT_CLICK
1750 wxEVT_COMMAND_RIGHT_DCLICK
= _core
.wxEVT_COMMAND_RIGHT_DCLICK
1751 wxEVT_COMMAND_SET_FOCUS
= _core
.wxEVT_COMMAND_SET_FOCUS
1752 wxEVT_COMMAND_KILL_FOCUS
= _core
.wxEVT_COMMAND_KILL_FOCUS
1753 wxEVT_COMMAND_ENTER
= _core
.wxEVT_COMMAND_ENTER
1755 # Create some event binders
1756 EVT_SIZE
= wx
.PyEventBinder( wxEVT_SIZE
)
1757 EVT_SIZING
= wx
.PyEventBinder( wxEVT_SIZING
)
1758 EVT_MOVE
= wx
.PyEventBinder( wxEVT_MOVE
)
1759 EVT_MOVING
= wx
.PyEventBinder( wxEVT_MOVING
)
1760 EVT_CLOSE
= wx
.PyEventBinder( wxEVT_CLOSE_WINDOW
)
1761 EVT_END_SESSION
= wx
.PyEventBinder( wxEVT_END_SESSION
)
1762 EVT_QUERY_END_SESSION
= wx
.PyEventBinder( wxEVT_QUERY_END_SESSION
)
1763 EVT_PAINT
= wx
.PyEventBinder( wxEVT_PAINT
)
1764 EVT_NC_PAINT
= wx
.PyEventBinder( wxEVT_NC_PAINT
)
1765 EVT_ERASE_BACKGROUND
= wx
.PyEventBinder( wxEVT_ERASE_BACKGROUND
)
1766 EVT_CHAR
= wx
.PyEventBinder( wxEVT_CHAR
)
1767 EVT_KEY_DOWN
= wx
.PyEventBinder( wxEVT_KEY_DOWN
)
1768 EVT_KEY_UP
= wx
.PyEventBinder( wxEVT_KEY_UP
)
1769 EVT_HOTKEY
= wx
.PyEventBinder( wxEVT_HOTKEY
, 1)
1770 EVT_CHAR_HOOK
= wx
.PyEventBinder( wxEVT_CHAR_HOOK
)
1771 EVT_MENU_OPEN
= wx
.PyEventBinder( wxEVT_MENU_OPEN
)
1772 EVT_MENU_CLOSE
= wx
.PyEventBinder( wxEVT_MENU_CLOSE
)
1773 EVT_MENU_HIGHLIGHT
= wx
.PyEventBinder( wxEVT_MENU_HIGHLIGHT
, 1)
1774 EVT_MENU_HIGHLIGHT_ALL
= wx
.PyEventBinder( wxEVT_MENU_HIGHLIGHT
)
1775 EVT_SET_FOCUS
= wx
.PyEventBinder( wxEVT_SET_FOCUS
)
1776 EVT_KILL_FOCUS
= wx
.PyEventBinder( wxEVT_KILL_FOCUS
)
1777 EVT_CHILD_FOCUS
= wx
.PyEventBinder( wxEVT_CHILD_FOCUS
)
1778 EVT_ACTIVATE
= wx
.PyEventBinder( wxEVT_ACTIVATE
)
1779 EVT_ACTIVATE_APP
= wx
.PyEventBinder( wxEVT_ACTIVATE_APP
)
1780 EVT_END_SESSION
= wx
.PyEventBinder( wxEVT_END_SESSION
)
1781 EVT_QUERY_END_SESSION
= wx
.PyEventBinder( wxEVT_QUERY_END_SESSION
)
1782 EVT_DROP_FILES
= wx
.PyEventBinder( wxEVT_DROP_FILES
)
1783 EVT_INIT_DIALOG
= wx
.PyEventBinder( wxEVT_INIT_DIALOG
)
1784 EVT_SYS_COLOUR_CHANGED
= wx
.PyEventBinder( wxEVT_SYS_COLOUR_CHANGED
)
1785 EVT_DISPLAY_CHANGED
= wx
.PyEventBinder( wxEVT_DISPLAY_CHANGED
)
1786 EVT_SHOW
= wx
.PyEventBinder( wxEVT_SHOW
)
1787 EVT_MAXIMIZE
= wx
.PyEventBinder( wxEVT_MAXIMIZE
)
1788 EVT_ICONIZE
= wx
.PyEventBinder( wxEVT_ICONIZE
)
1789 EVT_NAVIGATION_KEY
= wx
.PyEventBinder( wxEVT_NAVIGATION_KEY
)
1790 EVT_PALETTE_CHANGED
= wx
.PyEventBinder( wxEVT_PALETTE_CHANGED
)
1791 EVT_QUERY_NEW_PALETTE
= wx
.PyEventBinder( wxEVT_QUERY_NEW_PALETTE
)
1792 EVT_WINDOW_CREATE
= wx
.PyEventBinder( wxEVT_CREATE
)
1793 EVT_WINDOW_DESTROY
= wx
.PyEventBinder( wxEVT_DESTROY
)
1794 EVT_SET_CURSOR
= wx
.PyEventBinder( wxEVT_SET_CURSOR
)
1795 EVT_MOUSE_CAPTURE_CHANGED
= wx
.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED
)
1797 EVT_LEFT_DOWN
= wx
.PyEventBinder( wxEVT_LEFT_DOWN
)
1798 EVT_LEFT_UP
= wx
.PyEventBinder( wxEVT_LEFT_UP
)
1799 EVT_MIDDLE_DOWN
= wx
.PyEventBinder( wxEVT_MIDDLE_DOWN
)
1800 EVT_MIDDLE_UP
= wx
.PyEventBinder( wxEVT_MIDDLE_UP
)
1801 EVT_RIGHT_DOWN
= wx
.PyEventBinder( wxEVT_RIGHT_DOWN
)
1802 EVT_RIGHT_UP
= wx
.PyEventBinder( wxEVT_RIGHT_UP
)
1803 EVT_MOTION
= wx
.PyEventBinder( wxEVT_MOTION
)
1804 EVT_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_LEFT_DCLICK
)
1805 EVT_MIDDLE_DCLICK
= wx
.PyEventBinder( wxEVT_MIDDLE_DCLICK
)
1806 EVT_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_RIGHT_DCLICK
)
1807 EVT_LEAVE_WINDOW
= wx
.PyEventBinder( wxEVT_LEAVE_WINDOW
)
1808 EVT_ENTER_WINDOW
= wx
.PyEventBinder( wxEVT_ENTER_WINDOW
)
1809 EVT_MOUSEWHEEL
= wx
.PyEventBinder( wxEVT_MOUSEWHEEL
)
1811 EVT_MOUSE_EVENTS
= wx
.PyEventBinder([ wxEVT_LEFT_DOWN
,
1819 wxEVT_MIDDLE_DCLICK
,
1827 # Scrolling from wxWindow (sent to wxScrolledWindow)
1828 EVT_SCROLLWIN
= wx
.PyEventBinder([ wxEVT_SCROLLWIN_TOP
,
1829 wxEVT_SCROLLWIN_BOTTOM
,
1830 wxEVT_SCROLLWIN_LINEUP
,
1831 wxEVT_SCROLLWIN_LINEDOWN
,
1832 wxEVT_SCROLLWIN_PAGEUP
,
1833 wxEVT_SCROLLWIN_PAGEDOWN
,
1834 wxEVT_SCROLLWIN_THUMBTRACK
,
1835 wxEVT_SCROLLWIN_THUMBRELEASE
,
1838 EVT_SCROLLWIN_TOP
= wx
.PyEventBinder( wxEVT_SCROLLWIN_TOP
)
1839 EVT_SCROLLWIN_BOTTOM
= wx
.PyEventBinder( wxEVT_SCROLLWIN_BOTTOM
)
1840 EVT_SCROLLWIN_LINEUP
= wx
.PyEventBinder( wxEVT_SCROLLWIN_LINEUP
)
1841 EVT_SCROLLWIN_LINEDOWN
= wx
.PyEventBinder( wxEVT_SCROLLWIN_LINEDOWN
)
1842 EVT_SCROLLWIN_PAGEUP
= wx
.PyEventBinder( wxEVT_SCROLLWIN_PAGEUP
)
1843 EVT_SCROLLWIN_PAGEDOWN
= wx
.PyEventBinder( wxEVT_SCROLLWIN_PAGEDOWN
)
1844 EVT_SCROLLWIN_THUMBTRACK
= wx
.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK
)
1845 EVT_SCROLLWIN_THUMBRELEASE
= wx
.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE
)
1847 # Scrolling from wxSlider and wxScrollBar
1848 EVT_SCROLL
= wx
.PyEventBinder([ wxEVT_SCROLL_TOP
,
1849 wxEVT_SCROLL_BOTTOM
,
1850 wxEVT_SCROLL_LINEUP
,
1851 wxEVT_SCROLL_LINEDOWN
,
1852 wxEVT_SCROLL_PAGEUP
,
1853 wxEVT_SCROLL_PAGEDOWN
,
1854 wxEVT_SCROLL_THUMBTRACK
,
1855 wxEVT_SCROLL_THUMBRELEASE
,
1856 wxEVT_SCROLL_ENDSCROLL
,
1859 EVT_SCROLL_TOP
= wx
.PyEventBinder( wxEVT_SCROLL_TOP
)
1860 EVT_SCROLL_BOTTOM
= wx
.PyEventBinder( wxEVT_SCROLL_BOTTOM
)
1861 EVT_SCROLL_LINEUP
= wx
.PyEventBinder( wxEVT_SCROLL_LINEUP
)
1862 EVT_SCROLL_LINEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_LINEDOWN
)
1863 EVT_SCROLL_PAGEUP
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEUP
)
1864 EVT_SCROLL_PAGEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEDOWN
)
1865 EVT_SCROLL_THUMBTRACK
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBTRACK
)
1866 EVT_SCROLL_THUMBRELEASE
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE
)
1867 EVT_SCROLL_ENDSCROLL
= wx
.PyEventBinder( wxEVT_SCROLL_ENDSCROLL
)
1869 # Scrolling from wxSlider and wxScrollBar, with an id
1870 EVT_COMMAND_SCROLL
= wx
.PyEventBinder([ wxEVT_SCROLL_TOP
,
1871 wxEVT_SCROLL_BOTTOM
,
1872 wxEVT_SCROLL_LINEUP
,
1873 wxEVT_SCROLL_LINEDOWN
,
1874 wxEVT_SCROLL_PAGEUP
,
1875 wxEVT_SCROLL_PAGEDOWN
,
1876 wxEVT_SCROLL_THUMBTRACK
,
1877 wxEVT_SCROLL_THUMBRELEASE
,
1878 wxEVT_SCROLL_ENDSCROLL
,
1881 EVT_COMMAND_SCROLL_TOP
= wx
.PyEventBinder( wxEVT_SCROLL_TOP
, 1)
1882 EVT_COMMAND_SCROLL_BOTTOM
= wx
.PyEventBinder( wxEVT_SCROLL_BOTTOM
, 1)
1883 EVT_COMMAND_SCROLL_LINEUP
= wx
.PyEventBinder( wxEVT_SCROLL_LINEUP
, 1)
1884 EVT_COMMAND_SCROLL_LINEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_LINEDOWN
, 1)
1885 EVT_COMMAND_SCROLL_PAGEUP
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEUP
, 1)
1886 EVT_COMMAND_SCROLL_PAGEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEDOWN
, 1)
1887 EVT_COMMAND_SCROLL_THUMBTRACK
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBTRACK
, 1)
1888 EVT_COMMAND_SCROLL_THUMBRELEASE
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE
, 1)
1889 EVT_COMMAND_SCROLL_ENDSCROLL
= wx
.PyEventBinder( wxEVT_SCROLL_ENDSCROLL
, 1)
1891 EVT_SPIN_UP
= wx
.PyEventBinder( wxEVT_SCROLL_LINEUP
, 1)
1892 EVT_SPIN_DOWN
= wx
.PyEventBinder( wxEVT_SCROLL_LINEDOWN
, 1)
1893 EVT_SPIN
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBTRACK
, 1)
1895 EVT_BUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED
, 1)
1896 EVT_CHECKBOX
= wx
.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED
, 1)
1897 EVT_CHOICE
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED
, 1)
1898 EVT_LISTBOX
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOX_SELECTED
, 1)
1899 EVT_LISTBOX_DCLICK
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, 1)
1900 EVT_MENU
= wx
.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED
, 1)
1901 EVT_MENU_RANGE
= wx
.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED
, 2)
1902 EVT_SLIDER
= wx
.PyEventBinder( wxEVT_COMMAND_SLIDER_UPDATED
, 1)
1903 EVT_RADIOBOX
= wx
.PyEventBinder( wxEVT_COMMAND_RADIOBOX_SELECTED
, 1)
1904 EVT_RADIOBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_RADIOBUTTON_SELECTED
, 1)
1906 EVT_SCROLLBAR
= wx
.PyEventBinder( wxEVT_COMMAND_SCROLLBAR_UPDATED
, 1)
1907 EVT_VLBOX
= wx
.PyEventBinder( wxEVT_COMMAND_VLBOX_SELECTED
, 1)
1908 EVT_COMBOBOX
= wx
.PyEventBinder( wxEVT_COMMAND_COMBOBOX_SELECTED
, 1)
1909 EVT_TOOL
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED
, 1)
1910 EVT_TOOL_RANGE
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED
, 2)
1911 EVT_TOOL_RCLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED
, 1)
1912 EVT_TOOL_RCLICKED_RANGE
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED
, 2)
1913 EVT_TOOL_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_ENTER
, 1)
1914 EVT_CHECKLISTBOX
= wx
.PyEventBinder( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, 1)
1917 EVT_COMMAND_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_COMMAND_LEFT_CLICK
, 1)
1918 EVT_COMMAND_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_COMMAND_LEFT_DCLICK
, 1)
1919 EVT_COMMAND_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_COMMAND_RIGHT_CLICK
, 1)
1920 EVT_COMMAND_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_COMMAND_RIGHT_DCLICK
, 1)
1921 EVT_COMMAND_SET_FOCUS
= wx
.PyEventBinder( wxEVT_COMMAND_SET_FOCUS
, 1)
1922 EVT_COMMAND_KILL_FOCUS
= wx
.PyEventBinder( wxEVT_COMMAND_KILL_FOCUS
, 1)
1923 EVT_COMMAND_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_ENTER
, 1)
1925 EVT_IDLE
= wx
.PyEventBinder( wxEVT_IDLE
)
1927 EVT_UPDATE_UI
= wx
.PyEventBinder( wxEVT_UPDATE_UI
, 1)
1928 EVT_UPDATE_UI_RANGE
= wx
.PyEventBinder( wxEVT_UPDATE_UI
, 2)
1930 EVT_CONTEXT_MENU
= wx
.PyEventBinder( wxEVT_CONTEXT_MENU
)
1934 #---------------------------------------------------------------------------
1936 class Event(Object
):
1937 def __del__(self
, destroy
=_core
.delete_Event
):
1939 if self
.thisown
: destroy(self
)
1941 def SetEventType(*args
, **kwargs
): return _core
.Event_SetEventType(*args
, **kwargs
)
1942 def GetEventType(*args
, **kwargs
): return _core
.Event_GetEventType(*args
, **kwargs
)
1943 def GetEventObject(*args
, **kwargs
): return _core
.Event_GetEventObject(*args
, **kwargs
)
1944 def SetEventObject(*args
, **kwargs
): return _core
.Event_SetEventObject(*args
, **kwargs
)
1945 def GetTimestamp(*args
, **kwargs
): return _core
.Event_GetTimestamp(*args
, **kwargs
)
1946 def SetTimestamp(*args
, **kwargs
): return _core
.Event_SetTimestamp(*args
, **kwargs
)
1947 def GetId(*args
, **kwargs
): return _core
.Event_GetId(*args
, **kwargs
)
1948 def SetId(*args
, **kwargs
): return _core
.Event_SetId(*args
, **kwargs
)
1949 def IsCommandEvent(*args
, **kwargs
): return _core
.Event_IsCommandEvent(*args
, **kwargs
)
1950 def Skip(*args
, **kwargs
): return _core
.Event_Skip(*args
, **kwargs
)
1951 def GetSkipped(*args
, **kwargs
): return _core
.Event_GetSkipped(*args
, **kwargs
)
1952 def ShouldPropagate(*args
, **kwargs
): return _core
.Event_ShouldPropagate(*args
, **kwargs
)
1953 def StopPropagation(*args
, **kwargs
): return _core
.Event_StopPropagation(*args
, **kwargs
)
1954 def ResumePropagation(*args
, **kwargs
): return _core
.Event_ResumePropagation(*args
, **kwargs
)
1955 def Clone(*args
, **kwargs
): return _core
.Event_Clone(*args
, **kwargs
)
1956 def __init__(self
): raise RuntimeError, "No constructor defined"
1958 return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1960 class EventPtr(Event
):
1961 def __init__(self
, this
):
1963 if not hasattr(self
,"thisown"): self
.thisown
= 0
1964 self
.__class
__ = Event
1965 _core
.Event_swigregister(EventPtr
)
1967 #---------------------------------------------------------------------------
1969 class PropagationDisabler(object):
1970 def __init__(self
, *args
, **kwargs
):
1971 newobj
= _core
.new_PropagationDisabler(*args
, **kwargs
)
1972 self
.this
= newobj
.this
1975 def __del__(self
, destroy
=_core
.delete_PropagationDisabler
):
1977 if self
.thisown
: destroy(self
)
1980 return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1982 class PropagationDisablerPtr(PropagationDisabler
):
1983 def __init__(self
, this
):
1985 if not hasattr(self
,"thisown"): self
.thisown
= 0
1986 self
.__class
__ = PropagationDisabler
1987 _core
.PropagationDisabler_swigregister(PropagationDisablerPtr
)
1989 class PropagateOnce(object):
1990 def __init__(self
, *args
, **kwargs
):
1991 newobj
= _core
.new_PropagateOnce(*args
, **kwargs
)
1992 self
.this
= newobj
.this
1995 def __del__(self
, destroy
=_core
.delete_PropagateOnce
):
1997 if self
.thisown
: destroy(self
)
2000 return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2002 class PropagateOncePtr(PropagateOnce
):
2003 def __init__(self
, this
):
2005 if not hasattr(self
,"thisown"): self
.thisown
= 0
2006 self
.__class
__ = PropagateOnce
2007 _core
.PropagateOnce_swigregister(PropagateOncePtr
)
2009 #---------------------------------------------------------------------------
2011 class CommandEvent(Event
):
2012 def __init__(self
, *args
, **kwargs
):
2013 newobj
= _core
.new_CommandEvent(*args
, **kwargs
)
2014 self
.this
= newobj
.this
2017 def GetSelection(*args
, **kwargs
): return _core
.CommandEvent_GetSelection(*args
, **kwargs
)
2018 def SetString(*args
, **kwargs
): return _core
.CommandEvent_SetString(*args
, **kwargs
)
2019 def GetString(*args
, **kwargs
): return _core
.CommandEvent_GetString(*args
, **kwargs
)
2020 def IsChecked(*args
, **kwargs
): return _core
.CommandEvent_IsChecked(*args
, **kwargs
)
2021 def IsSelection(*args
, **kwargs
): return _core
.CommandEvent_IsSelection(*args
, **kwargs
)
2022 def SetExtraLong(*args
, **kwargs
): return _core
.CommandEvent_SetExtraLong(*args
, **kwargs
)
2023 def GetExtraLong(*args
, **kwargs
): return _core
.CommandEvent_GetExtraLong(*args
, **kwargs
)
2024 def SetInt(*args
, **kwargs
): return _core
.CommandEvent_SetInt(*args
, **kwargs
)
2025 def GetInt(*args
, **kwargs
): return _core
.CommandEvent_GetInt(*args
, **kwargs
)
2026 def Clone(*args
, **kwargs
): return _core
.CommandEvent_Clone(*args
, **kwargs
)
2028 return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2030 class CommandEventPtr(CommandEvent
):
2031 def __init__(self
, this
):
2033 if not hasattr(self
,"thisown"): self
.thisown
= 0
2034 self
.__class
__ = CommandEvent
2035 _core
.CommandEvent_swigregister(CommandEventPtr
)
2037 #---------------------------------------------------------------------------
2039 class NotifyEvent(CommandEvent
):
2040 def __init__(self
, *args
, **kwargs
):
2041 newobj
= _core
.new_NotifyEvent(*args
, **kwargs
)
2042 self
.this
= newobj
.this
2045 def Veto(*args
, **kwargs
): return _core
.NotifyEvent_Veto(*args
, **kwargs
)
2046 def Allow(*args
, **kwargs
): return _core
.NotifyEvent_Allow(*args
, **kwargs
)
2047 def IsAllowed(*args
, **kwargs
): return _core
.NotifyEvent_IsAllowed(*args
, **kwargs
)
2049 return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2051 class NotifyEventPtr(NotifyEvent
):
2052 def __init__(self
, this
):
2054 if not hasattr(self
,"thisown"): self
.thisown
= 0
2055 self
.__class
__ = NotifyEvent
2056 _core
.NotifyEvent_swigregister(NotifyEventPtr
)
2058 #---------------------------------------------------------------------------
2060 class ScrollEvent(CommandEvent
):
2061 def __init__(self
, *args
, **kwargs
):
2062 newobj
= _core
.new_ScrollEvent(*args
, **kwargs
)
2063 self
.this
= newobj
.this
2066 def GetOrientation(*args
, **kwargs
): return _core
.ScrollEvent_GetOrientation(*args
, **kwargs
)
2067 def GetPosition(*args
, **kwargs
): return _core
.ScrollEvent_GetPosition(*args
, **kwargs
)
2068 def SetOrientation(*args
, **kwargs
): return _core
.ScrollEvent_SetOrientation(*args
, **kwargs
)
2069 def SetPosition(*args
, **kwargs
): return _core
.ScrollEvent_SetPosition(*args
, **kwargs
)
2071 return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2073 class ScrollEventPtr(ScrollEvent
):
2074 def __init__(self
, this
):
2076 if not hasattr(self
,"thisown"): self
.thisown
= 0
2077 self
.__class
__ = ScrollEvent
2078 _core
.ScrollEvent_swigregister(ScrollEventPtr
)
2080 #---------------------------------------------------------------------------
2082 class ScrollWinEvent(Event
):
2083 def __init__(self
, *args
, **kwargs
):
2084 newobj
= _core
.new_ScrollWinEvent(*args
, **kwargs
)
2085 self
.this
= newobj
.this
2088 def GetOrientation(*args
, **kwargs
): return _core
.ScrollWinEvent_GetOrientation(*args
, **kwargs
)
2089 def GetPosition(*args
, **kwargs
): return _core
.ScrollWinEvent_GetPosition(*args
, **kwargs
)
2090 def SetOrientation(*args
, **kwargs
): return _core
.ScrollWinEvent_SetOrientation(*args
, **kwargs
)
2091 def SetPosition(*args
, **kwargs
): return _core
.ScrollWinEvent_SetPosition(*args
, **kwargs
)
2093 return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2095 class ScrollWinEventPtr(ScrollWinEvent
):
2096 def __init__(self
, this
):
2098 if not hasattr(self
,"thisown"): self
.thisown
= 0
2099 self
.__class
__ = ScrollWinEvent
2100 _core
.ScrollWinEvent_swigregister(ScrollWinEventPtr
)
2102 #---------------------------------------------------------------------------
2104 MOUSE_BTN_ANY
= _core
.MOUSE_BTN_ANY
2105 MOUSE_BTN_NONE
= _core
.MOUSE_BTN_NONE
2106 MOUSE_BTN_LEFT
= _core
.MOUSE_BTN_LEFT
2107 MOUSE_BTN_MIDDLE
= _core
.MOUSE_BTN_MIDDLE
2108 MOUSE_BTN_RIGHT
= _core
.MOUSE_BTN_RIGHT
2109 class MouseEvent(Event
):
2110 def __init__(self
, *args
, **kwargs
):
2111 newobj
= _core
.new_MouseEvent(*args
, **kwargs
)
2112 self
.this
= newobj
.this
2115 def IsButton(*args
, **kwargs
): return _core
.MouseEvent_IsButton(*args
, **kwargs
)
2116 def ButtonDown(*args
, **kwargs
): return _core
.MouseEvent_ButtonDown(*args
, **kwargs
)
2117 def ButtonDClick(*args
, **kwargs
): return _core
.MouseEvent_ButtonDClick(*args
, **kwargs
)
2118 def ButtonUp(*args
, **kwargs
): return _core
.MouseEvent_ButtonUp(*args
, **kwargs
)
2119 def Button(*args
, **kwargs
): return _core
.MouseEvent_Button(*args
, **kwargs
)
2120 def ButtonIsDown(*args
, **kwargs
): return _core
.MouseEvent_ButtonIsDown(*args
, **kwargs
)
2121 def GetButton(*args
, **kwargs
): return _core
.MouseEvent_GetButton(*args
, **kwargs
)
2122 def ControlDown(*args
, **kwargs
): return _core
.MouseEvent_ControlDown(*args
, **kwargs
)
2123 def MetaDown(*args
, **kwargs
): return _core
.MouseEvent_MetaDown(*args
, **kwargs
)
2124 def AltDown(*args
, **kwargs
): return _core
.MouseEvent_AltDown(*args
, **kwargs
)
2125 def ShiftDown(*args
, **kwargs
): return _core
.MouseEvent_ShiftDown(*args
, **kwargs
)
2126 def LeftDown(*args
, **kwargs
): return _core
.MouseEvent_LeftDown(*args
, **kwargs
)
2127 def MiddleDown(*args
, **kwargs
): return _core
.MouseEvent_MiddleDown(*args
, **kwargs
)
2128 def RightDown(*args
, **kwargs
): return _core
.MouseEvent_RightDown(*args
, **kwargs
)
2129 def LeftUp(*args
, **kwargs
): return _core
.MouseEvent_LeftUp(*args
, **kwargs
)
2130 def MiddleUp(*args
, **kwargs
): return _core
.MouseEvent_MiddleUp(*args
, **kwargs
)
2131 def RightUp(*args
, **kwargs
): return _core
.MouseEvent_RightUp(*args
, **kwargs
)
2132 def LeftDClick(*args
, **kwargs
): return _core
.MouseEvent_LeftDClick(*args
, **kwargs
)
2133 def MiddleDClick(*args
, **kwargs
): return _core
.MouseEvent_MiddleDClick(*args
, **kwargs
)
2134 def RightDClick(*args
, **kwargs
): return _core
.MouseEvent_RightDClick(*args
, **kwargs
)
2135 def LeftIsDown(*args
, **kwargs
): return _core
.MouseEvent_LeftIsDown(*args
, **kwargs
)
2136 def MiddleIsDown(*args
, **kwargs
): return _core
.MouseEvent_MiddleIsDown(*args
, **kwargs
)
2137 def RightIsDown(*args
, **kwargs
): return _core
.MouseEvent_RightIsDown(*args
, **kwargs
)
2138 def Dragging(*args
, **kwargs
): return _core
.MouseEvent_Dragging(*args
, **kwargs
)
2139 def Moving(*args
, **kwargs
): return _core
.MouseEvent_Moving(*args
, **kwargs
)
2140 def Entering(*args
, **kwargs
): return _core
.MouseEvent_Entering(*args
, **kwargs
)
2141 def Leaving(*args
, **kwargs
): return _core
.MouseEvent_Leaving(*args
, **kwargs
)
2142 def GetPosition(*args
, **kwargs
): return _core
.MouseEvent_GetPosition(*args
, **kwargs
)
2143 def GetPositionTuple(*args
, **kwargs
): return _core
.MouseEvent_GetPositionTuple(*args
, **kwargs
)
2144 def GetLogicalPosition(*args
, **kwargs
): return _core
.MouseEvent_GetLogicalPosition(*args
, **kwargs
)
2145 def GetX(*args
, **kwargs
): return _core
.MouseEvent_GetX(*args
, **kwargs
)
2146 def GetY(*args
, **kwargs
): return _core
.MouseEvent_GetY(*args
, **kwargs
)
2147 def GetWheelRotation(*args
, **kwargs
): return _core
.MouseEvent_GetWheelRotation(*args
, **kwargs
)
2148 def GetWheelDelta(*args
, **kwargs
): return _core
.MouseEvent_GetWheelDelta(*args
, **kwargs
)
2149 def GetLinesPerAction(*args
, **kwargs
): return _core
.MouseEvent_GetLinesPerAction(*args
, **kwargs
)
2150 def IsPageScroll(*args
, **kwargs
): return _core
.MouseEvent_IsPageScroll(*args
, **kwargs
)
2151 m_x
= property(_core
.MouseEvent_m_x_get
, _core
.MouseEvent_m_x_set
)
2152 m_y
= property(_core
.MouseEvent_m_y_get
, _core
.MouseEvent_m_y_set
)
2153 m_leftDown
= property(_core
.MouseEvent_m_leftDown_get
, _core
.MouseEvent_m_leftDown_set
)
2154 m_middleDown
= property(_core
.MouseEvent_m_middleDown_get
, _core
.MouseEvent_m_middleDown_set
)
2155 m_rightDown
= property(_core
.MouseEvent_m_rightDown_get
, _core
.MouseEvent_m_rightDown_set
)
2156 m_controlDown
= property(_core
.MouseEvent_m_controlDown_get
, _core
.MouseEvent_m_controlDown_set
)
2157 m_shiftDown
= property(_core
.MouseEvent_m_shiftDown_get
, _core
.MouseEvent_m_shiftDown_set
)
2158 m_altDown
= property(_core
.MouseEvent_m_altDown_get
, _core
.MouseEvent_m_altDown_set
)
2159 m_metaDown
= property(_core
.MouseEvent_m_metaDown_get
, _core
.MouseEvent_m_metaDown_set
)
2160 m_wheelRotation
= property(_core
.MouseEvent_m_wheelRotation_get
, _core
.MouseEvent_m_wheelRotation_set
)
2161 m_wheelDelta
= property(_core
.MouseEvent_m_wheelDelta_get
, _core
.MouseEvent_m_wheelDelta_set
)
2162 m_linesPerAction
= property(_core
.MouseEvent_m_linesPerAction_get
, _core
.MouseEvent_m_linesPerAction_set
)
2164 return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2166 class MouseEventPtr(MouseEvent
):
2167 def __init__(self
, this
):
2169 if not hasattr(self
,"thisown"): self
.thisown
= 0
2170 self
.__class
__ = MouseEvent
2171 _core
.MouseEvent_swigregister(MouseEventPtr
)
2173 #---------------------------------------------------------------------------
2175 class SetCursorEvent(Event
):
2176 def __init__(self
, *args
, **kwargs
):
2177 newobj
= _core
.new_SetCursorEvent(*args
, **kwargs
)
2178 self
.this
= newobj
.this
2181 def GetX(*args
, **kwargs
): return _core
.SetCursorEvent_GetX(*args
, **kwargs
)
2182 def GetY(*args
, **kwargs
): return _core
.SetCursorEvent_GetY(*args
, **kwargs
)
2183 def SetCursor(*args
, **kwargs
): return _core
.SetCursorEvent_SetCursor(*args
, **kwargs
)
2184 def GetCursor(*args
, **kwargs
): return _core
.SetCursorEvent_GetCursor(*args
, **kwargs
)
2185 def HasCursor(*args
, **kwargs
): return _core
.SetCursorEvent_HasCursor(*args
, **kwargs
)
2187 return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2189 class SetCursorEventPtr(SetCursorEvent
):
2190 def __init__(self
, this
):
2192 if not hasattr(self
,"thisown"): self
.thisown
= 0
2193 self
.__class
__ = SetCursorEvent
2194 _core
.SetCursorEvent_swigregister(SetCursorEventPtr
)
2196 #---------------------------------------------------------------------------
2198 class KeyEvent(Event
):
2199 def __init__(self
, *args
, **kwargs
):
2200 newobj
= _core
.new_KeyEvent(*args
, **kwargs
)
2201 self
.this
= newobj
.this
2204 def ControlDown(*args
, **kwargs
): return _core
.KeyEvent_ControlDown(*args
, **kwargs
)
2205 def MetaDown(*args
, **kwargs
): return _core
.KeyEvent_MetaDown(*args
, **kwargs
)
2206 def AltDown(*args
, **kwargs
): return _core
.KeyEvent_AltDown(*args
, **kwargs
)
2207 def ShiftDown(*args
, **kwargs
): return _core
.KeyEvent_ShiftDown(*args
, **kwargs
)
2208 def HasModifiers(*args
, **kwargs
): return _core
.KeyEvent_HasModifiers(*args
, **kwargs
)
2209 def GetKeyCode(*args
, **kwargs
): return _core
.KeyEvent_GetKeyCode(*args
, **kwargs
)
2210 KeyCode
= GetKeyCode
2211 def GetUniChar(*args
, **kwargs
): return _core
.KeyEvent_GetUniChar(*args
, **kwargs
)
2212 def GetRawKeyCode(*args
, **kwargs
): return _core
.KeyEvent_GetRawKeyCode(*args
, **kwargs
)
2213 def GetRawKeyFlags(*args
, **kwargs
): return _core
.KeyEvent_GetRawKeyFlags(*args
, **kwargs
)
2214 def GetPosition(*args
, **kwargs
): return _core
.KeyEvent_GetPosition(*args
, **kwargs
)
2215 def GetPositionTuple(*args
, **kwargs
): return _core
.KeyEvent_GetPositionTuple(*args
, **kwargs
)
2216 def GetX(*args
, **kwargs
): return _core
.KeyEvent_GetX(*args
, **kwargs
)
2217 def GetY(*args
, **kwargs
): return _core
.KeyEvent_GetY(*args
, **kwargs
)
2218 m_x
= property(_core
.KeyEvent_m_x_get
, _core
.KeyEvent_m_x_set
)
2219 m_y
= property(_core
.KeyEvent_m_y_get
, _core
.KeyEvent_m_y_set
)
2220 m_keyCode
= property(_core
.KeyEvent_m_keyCode_get
, _core
.KeyEvent_m_keyCode_set
)
2221 m_controlDown
= property(_core
.KeyEvent_m_controlDown_get
, _core
.KeyEvent_m_controlDown_set
)
2222 m_shiftDown
= property(_core
.KeyEvent_m_shiftDown_get
, _core
.KeyEvent_m_shiftDown_set
)
2223 m_altDown
= property(_core
.KeyEvent_m_altDown_get
, _core
.KeyEvent_m_altDown_set
)
2224 m_metaDown
= property(_core
.KeyEvent_m_metaDown_get
, _core
.KeyEvent_m_metaDown_set
)
2225 m_scanCode
= property(_core
.KeyEvent_m_scanCode_get
, _core
.KeyEvent_m_scanCode_set
)
2226 m_rawCode
= property(_core
.KeyEvent_m_rawCode_get
, _core
.KeyEvent_m_rawCode_set
)
2227 m_rawFlags
= property(_core
.KeyEvent_m_rawFlags_get
, _core
.KeyEvent_m_rawFlags_set
)
2229 return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2231 class KeyEventPtr(KeyEvent
):
2232 def __init__(self
, this
):
2234 if not hasattr(self
,"thisown"): self
.thisown
= 0
2235 self
.__class
__ = KeyEvent
2236 _core
.KeyEvent_swigregister(KeyEventPtr
)
2238 #---------------------------------------------------------------------------
2240 class SizeEvent(Event
):
2241 def __init__(self
, *args
, **kwargs
):
2242 newobj
= _core
.new_SizeEvent(*args
, **kwargs
)
2243 self
.this
= newobj
.this
2246 def GetSize(*args
, **kwargs
): return _core
.SizeEvent_GetSize(*args
, **kwargs
)
2247 def GetRect(*args
, **kwargs
): return _core
.SizeEvent_GetRect(*args
, **kwargs
)
2248 def SetRect(*args
, **kwargs
): return _core
.SizeEvent_SetRect(*args
, **kwargs
)
2249 def SetSize(*args
, **kwargs
): return _core
.SizeEvent_SetSize(*args
, **kwargs
)
2250 m_size
= property(_core
.SizeEvent_m_size_get
, _core
.SizeEvent_m_size_set
)
2251 m_rect
= property(_core
.SizeEvent_m_rect_get
, _core
.SizeEvent_m_rect_set
)
2253 return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2255 class SizeEventPtr(SizeEvent
):
2256 def __init__(self
, this
):
2258 if not hasattr(self
,"thisown"): self
.thisown
= 0
2259 self
.__class
__ = SizeEvent
2260 _core
.SizeEvent_swigregister(SizeEventPtr
)
2262 #---------------------------------------------------------------------------
2264 class MoveEvent(Event
):
2265 def __init__(self
, *args
, **kwargs
):
2266 newobj
= _core
.new_MoveEvent(*args
, **kwargs
)
2267 self
.this
= newobj
.this
2270 def GetPosition(*args
, **kwargs
): return _core
.MoveEvent_GetPosition(*args
, **kwargs
)
2271 def GetRect(*args
, **kwargs
): return _core
.MoveEvent_GetRect(*args
, **kwargs
)
2272 def SetRect(*args
, **kwargs
): return _core
.MoveEvent_SetRect(*args
, **kwargs
)
2273 def SetPosition(*args
, **kwargs
): return _core
.MoveEvent_SetPosition(*args
, **kwargs
)
2274 m_pos
= property(_core
.MoveEvent_m_pos_get
, _core
.MoveEvent_m_pos_set
)
2275 m_rect
= property(_core
.MoveEvent_m_rect_get
, _core
.MoveEvent_m_rect_set
)
2277 return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2279 class MoveEventPtr(MoveEvent
):
2280 def __init__(self
, this
):
2282 if not hasattr(self
,"thisown"): self
.thisown
= 0
2283 self
.__class
__ = MoveEvent
2284 _core
.MoveEvent_swigregister(MoveEventPtr
)
2286 #---------------------------------------------------------------------------
2288 class PaintEvent(Event
):
2289 def __init__(self
, *args
, **kwargs
):
2290 newobj
= _core
.new_PaintEvent(*args
, **kwargs
)
2291 self
.this
= newobj
.this
2295 return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2297 class PaintEventPtr(PaintEvent
):
2298 def __init__(self
, this
):
2300 if not hasattr(self
,"thisown"): self
.thisown
= 0
2301 self
.__class
__ = PaintEvent
2302 _core
.PaintEvent_swigregister(PaintEventPtr
)
2304 class NcPaintEvent(Event
):
2305 def __init__(self
, *args
, **kwargs
):
2306 newobj
= _core
.new_NcPaintEvent(*args
, **kwargs
)
2307 self
.this
= newobj
.this
2311 return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2313 class NcPaintEventPtr(NcPaintEvent
):
2314 def __init__(self
, this
):
2316 if not hasattr(self
,"thisown"): self
.thisown
= 0
2317 self
.__class
__ = NcPaintEvent
2318 _core
.NcPaintEvent_swigregister(NcPaintEventPtr
)
2320 #---------------------------------------------------------------------------
2322 class EraseEvent(Event
):
2323 def __init__(self
, *args
, **kwargs
):
2324 newobj
= _core
.new_EraseEvent(*args
, **kwargs
)
2325 self
.this
= newobj
.this
2328 def GetDC(*args
, **kwargs
): return _core
.EraseEvent_GetDC(*args
, **kwargs
)
2330 return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2332 class EraseEventPtr(EraseEvent
):
2333 def __init__(self
, this
):
2335 if not hasattr(self
,"thisown"): self
.thisown
= 0
2336 self
.__class
__ = EraseEvent
2337 _core
.EraseEvent_swigregister(EraseEventPtr
)
2339 #---------------------------------------------------------------------------
2341 class FocusEvent(Event
):
2342 def __init__(self
, *args
, **kwargs
):
2343 newobj
= _core
.new_FocusEvent(*args
, **kwargs
)
2344 self
.this
= newobj
.this
2347 def GetWindow(*args
, **kwargs
): return _core
.FocusEvent_GetWindow(*args
, **kwargs
)
2348 def SetWindow(*args
, **kwargs
): return _core
.FocusEvent_SetWindow(*args
, **kwargs
)
2350 return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2352 class FocusEventPtr(FocusEvent
):
2353 def __init__(self
, this
):
2355 if not hasattr(self
,"thisown"): self
.thisown
= 0
2356 self
.__class
__ = FocusEvent
2357 _core
.FocusEvent_swigregister(FocusEventPtr
)
2359 #---------------------------------------------------------------------------
2361 class ChildFocusEvent(CommandEvent
):
2362 def __init__(self
, *args
, **kwargs
):
2363 newobj
= _core
.new_ChildFocusEvent(*args
, **kwargs
)
2364 self
.this
= newobj
.this
2367 def GetWindow(*args
, **kwargs
): return _core
.ChildFocusEvent_GetWindow(*args
, **kwargs
)
2369 return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2371 class ChildFocusEventPtr(ChildFocusEvent
):
2372 def __init__(self
, this
):
2374 if not hasattr(self
,"thisown"): self
.thisown
= 0
2375 self
.__class
__ = ChildFocusEvent
2376 _core
.ChildFocusEvent_swigregister(ChildFocusEventPtr
)
2378 #---------------------------------------------------------------------------
2380 class ActivateEvent(Event
):
2381 def __init__(self
, *args
, **kwargs
):
2382 newobj
= _core
.new_ActivateEvent(*args
, **kwargs
)
2383 self
.this
= newobj
.this
2386 def GetActive(*args
, **kwargs
): return _core
.ActivateEvent_GetActive(*args
, **kwargs
)
2388 return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2390 class ActivateEventPtr(ActivateEvent
):
2391 def __init__(self
, this
):
2393 if not hasattr(self
,"thisown"): self
.thisown
= 0
2394 self
.__class
__ = ActivateEvent
2395 _core
.ActivateEvent_swigregister(ActivateEventPtr
)
2397 #---------------------------------------------------------------------------
2399 class InitDialogEvent(Event
):
2400 def __init__(self
, *args
, **kwargs
):
2401 newobj
= _core
.new_InitDialogEvent(*args
, **kwargs
)
2402 self
.this
= newobj
.this
2406 return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2408 class InitDialogEventPtr(InitDialogEvent
):
2409 def __init__(self
, this
):
2411 if not hasattr(self
,"thisown"): self
.thisown
= 0
2412 self
.__class
__ = InitDialogEvent
2413 _core
.InitDialogEvent_swigregister(InitDialogEventPtr
)
2415 #---------------------------------------------------------------------------
2417 class MenuEvent(Event
):
2418 def __init__(self
, *args
, **kwargs
):
2419 newobj
= _core
.new_MenuEvent(*args
, **kwargs
)
2420 self
.this
= newobj
.this
2423 def GetMenuId(*args
, **kwargs
): return _core
.MenuEvent_GetMenuId(*args
, **kwargs
)
2424 def IsPopup(*args
, **kwargs
): return _core
.MenuEvent_IsPopup(*args
, **kwargs
)
2425 def GetMenu(*args
, **kwargs
): return _core
.MenuEvent_GetMenu(*args
, **kwargs
)
2427 return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2429 class MenuEventPtr(MenuEvent
):
2430 def __init__(self
, this
):
2432 if not hasattr(self
,"thisown"): self
.thisown
= 0
2433 self
.__class
__ = MenuEvent
2434 _core
.MenuEvent_swigregister(MenuEventPtr
)
2436 #---------------------------------------------------------------------------
2438 class CloseEvent(Event
):
2439 def __init__(self
, *args
, **kwargs
):
2440 newobj
= _core
.new_CloseEvent(*args
, **kwargs
)
2441 self
.this
= newobj
.this
2444 def SetLoggingOff(*args
, **kwargs
): return _core
.CloseEvent_SetLoggingOff(*args
, **kwargs
)
2445 def GetLoggingOff(*args
, **kwargs
): return _core
.CloseEvent_GetLoggingOff(*args
, **kwargs
)
2446 def Veto(*args
, **kwargs
): return _core
.CloseEvent_Veto(*args
, **kwargs
)
2447 def SetCanVeto(*args
, **kwargs
): return _core
.CloseEvent_SetCanVeto(*args
, **kwargs
)
2448 def CanVeto(*args
, **kwargs
): return _core
.CloseEvent_CanVeto(*args
, **kwargs
)
2449 def GetVeto(*args
, **kwargs
): return _core
.CloseEvent_GetVeto(*args
, **kwargs
)
2451 return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2453 class CloseEventPtr(CloseEvent
):
2454 def __init__(self
, this
):
2456 if not hasattr(self
,"thisown"): self
.thisown
= 0
2457 self
.__class
__ = CloseEvent
2458 _core
.CloseEvent_swigregister(CloseEventPtr
)
2460 #---------------------------------------------------------------------------
2462 class ShowEvent(Event
):
2463 def __init__(self
, *args
, **kwargs
):
2464 newobj
= _core
.new_ShowEvent(*args
, **kwargs
)
2465 self
.this
= newobj
.this
2468 def SetShow(*args
, **kwargs
): return _core
.ShowEvent_SetShow(*args
, **kwargs
)
2469 def GetShow(*args
, **kwargs
): return _core
.ShowEvent_GetShow(*args
, **kwargs
)
2471 return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2473 class ShowEventPtr(ShowEvent
):
2474 def __init__(self
, this
):
2476 if not hasattr(self
,"thisown"): self
.thisown
= 0
2477 self
.__class
__ = ShowEvent
2478 _core
.ShowEvent_swigregister(ShowEventPtr
)
2480 #---------------------------------------------------------------------------
2482 class IconizeEvent(Event
):
2483 def __init__(self
, *args
, **kwargs
):
2484 newobj
= _core
.new_IconizeEvent(*args
, **kwargs
)
2485 self
.this
= newobj
.this
2488 def Iconized(*args
, **kwargs
): return _core
.IconizeEvent_Iconized(*args
, **kwargs
)
2490 return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2492 class IconizeEventPtr(IconizeEvent
):
2493 def __init__(self
, this
):
2495 if not hasattr(self
,"thisown"): self
.thisown
= 0
2496 self
.__class
__ = IconizeEvent
2497 _core
.IconizeEvent_swigregister(IconizeEventPtr
)
2499 #---------------------------------------------------------------------------
2501 class MaximizeEvent(Event
):
2502 def __init__(self
, *args
, **kwargs
):
2503 newobj
= _core
.new_MaximizeEvent(*args
, **kwargs
)
2504 self
.this
= newobj
.this
2508 return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2510 class MaximizeEventPtr(MaximizeEvent
):
2511 def __init__(self
, this
):
2513 if not hasattr(self
,"thisown"): self
.thisown
= 0
2514 self
.__class
__ = MaximizeEvent
2515 _core
.MaximizeEvent_swigregister(MaximizeEventPtr
)
2517 #---------------------------------------------------------------------------
2519 class DropFilesEvent(Event
):
2520 def GetPosition(*args
, **kwargs
): return _core
.DropFilesEvent_GetPosition(*args
, **kwargs
)
2521 def GetNumberOfFiles(*args
, **kwargs
): return _core
.DropFilesEvent_GetNumberOfFiles(*args
, **kwargs
)
2522 def GetFiles(*args
, **kwargs
): return _core
.DropFilesEvent_GetFiles(*args
, **kwargs
)
2523 def __init__(self
): raise RuntimeError, "No constructor defined"
2525 return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2527 class DropFilesEventPtr(DropFilesEvent
):
2528 def __init__(self
, this
):
2530 if not hasattr(self
,"thisown"): self
.thisown
= 0
2531 self
.__class
__ = DropFilesEvent
2532 _core
.DropFilesEvent_swigregister(DropFilesEventPtr
)
2534 #---------------------------------------------------------------------------
2536 UPDATE_UI_PROCESS_ALL
= _core
.UPDATE_UI_PROCESS_ALL
2537 UPDATE_UI_PROCESS_SPECIFIED
= _core
.UPDATE_UI_PROCESS_SPECIFIED
2538 class UpdateUIEvent(CommandEvent
):
2539 def __init__(self
, *args
, **kwargs
):
2540 newobj
= _core
.new_UpdateUIEvent(*args
, **kwargs
)
2541 self
.this
= newobj
.this
2544 def GetChecked(*args
, **kwargs
): return _core
.UpdateUIEvent_GetChecked(*args
, **kwargs
)
2545 def GetEnabled(*args
, **kwargs
): return _core
.UpdateUIEvent_GetEnabled(*args
, **kwargs
)
2546 def GetText(*args
, **kwargs
): return _core
.UpdateUIEvent_GetText(*args
, **kwargs
)
2547 def GetSetText(*args
, **kwargs
): return _core
.UpdateUIEvent_GetSetText(*args
, **kwargs
)
2548 def GetSetChecked(*args
, **kwargs
): return _core
.UpdateUIEvent_GetSetChecked(*args
, **kwargs
)
2549 def GetSetEnabled(*args
, **kwargs
): return _core
.UpdateUIEvent_GetSetEnabled(*args
, **kwargs
)
2550 def Check(*args
, **kwargs
): return _core
.UpdateUIEvent_Check(*args
, **kwargs
)
2551 def Enable(*args
, **kwargs
): return _core
.UpdateUIEvent_Enable(*args
, **kwargs
)
2552 def SetText(*args
, **kwargs
): return _core
.UpdateUIEvent_SetText(*args
, **kwargs
)
2553 SetUpdateInterval
= staticmethod(_core
.UpdateUIEvent_SetUpdateInterval
)
2554 GetUpdateInterval
= staticmethod(_core
.UpdateUIEvent_GetUpdateInterval
)
2555 CanUpdate
= staticmethod(_core
.UpdateUIEvent_CanUpdate
)
2556 ResetUpdateTime
= staticmethod(_core
.UpdateUIEvent_ResetUpdateTime
)
2557 SetMode
= staticmethod(_core
.UpdateUIEvent_SetMode
)
2558 GetMode
= staticmethod(_core
.UpdateUIEvent_GetMode
)
2560 return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2562 class UpdateUIEventPtr(UpdateUIEvent
):
2563 def __init__(self
, this
):
2565 if not hasattr(self
,"thisown"): self
.thisown
= 0
2566 self
.__class
__ = UpdateUIEvent
2567 _core
.UpdateUIEvent_swigregister(UpdateUIEventPtr
)
2569 UpdateUIEvent_SetUpdateInterval
= _core
.UpdateUIEvent_SetUpdateInterval
2571 UpdateUIEvent_GetUpdateInterval
= _core
.UpdateUIEvent_GetUpdateInterval
2573 UpdateUIEvent_CanUpdate
= _core
.UpdateUIEvent_CanUpdate
2575 UpdateUIEvent_ResetUpdateTime
= _core
.UpdateUIEvent_ResetUpdateTime
2577 UpdateUIEvent_SetMode
= _core
.UpdateUIEvent_SetMode
2579 UpdateUIEvent_GetMode
= _core
.UpdateUIEvent_GetMode
2581 #---------------------------------------------------------------------------
2583 class SysColourChangedEvent(Event
):
2584 def __init__(self
, *args
, **kwargs
):
2585 newobj
= _core
.new_SysColourChangedEvent(*args
, **kwargs
)
2586 self
.this
= newobj
.this
2590 return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2592 class SysColourChangedEventPtr(SysColourChangedEvent
):
2593 def __init__(self
, this
):
2595 if not hasattr(self
,"thisown"): self
.thisown
= 0
2596 self
.__class
__ = SysColourChangedEvent
2597 _core
.SysColourChangedEvent_swigregister(SysColourChangedEventPtr
)
2599 #---------------------------------------------------------------------------
2601 class MouseCaptureChangedEvent(Event
):
2602 def __init__(self
, *args
, **kwargs
):
2603 newobj
= _core
.new_MouseCaptureChangedEvent(*args
, **kwargs
)
2604 self
.this
= newobj
.this
2607 def GetCapturedWindow(*args
, **kwargs
): return _core
.MouseCaptureChangedEvent_GetCapturedWindow(*args
, **kwargs
)
2609 return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2611 class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent
):
2612 def __init__(self
, this
):
2614 if not hasattr(self
,"thisown"): self
.thisown
= 0
2615 self
.__class
__ = MouseCaptureChangedEvent
2616 _core
.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr
)
2618 #---------------------------------------------------------------------------
2620 class DisplayChangedEvent(Event
):
2621 def __init__(self
, *args
, **kwargs
):
2622 newobj
= _core
.new_DisplayChangedEvent(*args
, **kwargs
)
2623 self
.this
= newobj
.this
2627 return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2629 class DisplayChangedEventPtr(DisplayChangedEvent
):
2630 def __init__(self
, this
):
2632 if not hasattr(self
,"thisown"): self
.thisown
= 0
2633 self
.__class
__ = DisplayChangedEvent
2634 _core
.DisplayChangedEvent_swigregister(DisplayChangedEventPtr
)
2636 #---------------------------------------------------------------------------
2638 class PaletteChangedEvent(Event
):
2639 def __init__(self
, *args
, **kwargs
):
2640 newobj
= _core
.new_PaletteChangedEvent(*args
, **kwargs
)
2641 self
.this
= newobj
.this
2644 def SetChangedWindow(*args
, **kwargs
): return _core
.PaletteChangedEvent_SetChangedWindow(*args
, **kwargs
)
2645 def GetChangedWindow(*args
, **kwargs
): return _core
.PaletteChangedEvent_GetChangedWindow(*args
, **kwargs
)
2647 return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2649 class PaletteChangedEventPtr(PaletteChangedEvent
):
2650 def __init__(self
, this
):
2652 if not hasattr(self
,"thisown"): self
.thisown
= 0
2653 self
.__class
__ = PaletteChangedEvent
2654 _core
.PaletteChangedEvent_swigregister(PaletteChangedEventPtr
)
2656 #---------------------------------------------------------------------------
2658 class QueryNewPaletteEvent(Event
):
2659 def __init__(self
, *args
, **kwargs
):
2660 newobj
= _core
.new_QueryNewPaletteEvent(*args
, **kwargs
)
2661 self
.this
= newobj
.this
2664 def SetPaletteRealized(*args
, **kwargs
): return _core
.QueryNewPaletteEvent_SetPaletteRealized(*args
, **kwargs
)
2665 def GetPaletteRealized(*args
, **kwargs
): return _core
.QueryNewPaletteEvent_GetPaletteRealized(*args
, **kwargs
)
2667 return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2669 class QueryNewPaletteEventPtr(QueryNewPaletteEvent
):
2670 def __init__(self
, this
):
2672 if not hasattr(self
,"thisown"): self
.thisown
= 0
2673 self
.__class
__ = QueryNewPaletteEvent
2674 _core
.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr
)
2676 #---------------------------------------------------------------------------
2678 class NavigationKeyEvent(Event
):
2679 def __init__(self
, *args
, **kwargs
):
2680 newobj
= _core
.new_NavigationKeyEvent(*args
, **kwargs
)
2681 self
.this
= newobj
.this
2684 def GetDirection(*args
, **kwargs
): return _core
.NavigationKeyEvent_GetDirection(*args
, **kwargs
)
2685 def SetDirection(*args
, **kwargs
): return _core
.NavigationKeyEvent_SetDirection(*args
, **kwargs
)
2686 def IsWindowChange(*args
, **kwargs
): return _core
.NavigationKeyEvent_IsWindowChange(*args
, **kwargs
)
2687 def SetWindowChange(*args
, **kwargs
): return _core
.NavigationKeyEvent_SetWindowChange(*args
, **kwargs
)
2688 def GetCurrentFocus(*args
, **kwargs
): return _core
.NavigationKeyEvent_GetCurrentFocus(*args
, **kwargs
)
2689 def SetCurrentFocus(*args
, **kwargs
): return _core
.NavigationKeyEvent_SetCurrentFocus(*args
, **kwargs
)
2691 return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2693 class NavigationKeyEventPtr(NavigationKeyEvent
):
2694 def __init__(self
, this
):
2696 if not hasattr(self
,"thisown"): self
.thisown
= 0
2697 self
.__class
__ = NavigationKeyEvent
2698 _core
.NavigationKeyEvent_swigregister(NavigationKeyEventPtr
)
2700 #---------------------------------------------------------------------------
2702 class WindowCreateEvent(CommandEvent
):
2703 def __init__(self
, *args
, **kwargs
):
2704 newobj
= _core
.new_WindowCreateEvent(*args
, **kwargs
)
2705 self
.this
= newobj
.this
2708 def GetWindow(*args
, **kwargs
): return _core
.WindowCreateEvent_GetWindow(*args
, **kwargs
)
2710 return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2712 class WindowCreateEventPtr(WindowCreateEvent
):
2713 def __init__(self
, this
):
2715 if not hasattr(self
,"thisown"): self
.thisown
= 0
2716 self
.__class
__ = WindowCreateEvent
2717 _core
.WindowCreateEvent_swigregister(WindowCreateEventPtr
)
2719 class WindowDestroyEvent(CommandEvent
):
2720 def __init__(self
, *args
, **kwargs
):
2721 newobj
= _core
.new_WindowDestroyEvent(*args
, **kwargs
)
2722 self
.this
= newobj
.this
2725 def GetWindow(*args
, **kwargs
): return _core
.WindowDestroyEvent_GetWindow(*args
, **kwargs
)
2727 return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2729 class WindowDestroyEventPtr(WindowDestroyEvent
):
2730 def __init__(self
, this
):
2732 if not hasattr(self
,"thisown"): self
.thisown
= 0
2733 self
.__class
__ = WindowDestroyEvent
2734 _core
.WindowDestroyEvent_swigregister(WindowDestroyEventPtr
)
2736 #---------------------------------------------------------------------------
2738 class ContextMenuEvent(CommandEvent
):
2739 def __init__(self
, *args
, **kwargs
):
2740 newobj
= _core
.new_ContextMenuEvent(*args
, **kwargs
)
2741 self
.this
= newobj
.this
2744 def GetPosition(*args
, **kwargs
): return _core
.ContextMenuEvent_GetPosition(*args
, **kwargs
)
2745 def SetPosition(*args
, **kwargs
): return _core
.ContextMenuEvent_SetPosition(*args
, **kwargs
)
2747 return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2749 class ContextMenuEventPtr(ContextMenuEvent
):
2750 def __init__(self
, this
):
2752 if not hasattr(self
,"thisown"): self
.thisown
= 0
2753 self
.__class
__ = ContextMenuEvent
2754 _core
.ContextMenuEvent_swigregister(ContextMenuEventPtr
)
2756 #---------------------------------------------------------------------------
2758 IDLE_PROCESS_ALL
= _core
.IDLE_PROCESS_ALL
2759 IDLE_PROCESS_SPECIFIED
= _core
.IDLE_PROCESS_SPECIFIED
2760 class IdleEvent(Event
):
2761 def __init__(self
, *args
, **kwargs
):
2762 newobj
= _core
.new_IdleEvent(*args
, **kwargs
)
2763 self
.this
= newobj
.this
2766 def RequestMore(*args
, **kwargs
): return _core
.IdleEvent_RequestMore(*args
, **kwargs
)
2767 def MoreRequested(*args
, **kwargs
): return _core
.IdleEvent_MoreRequested(*args
, **kwargs
)
2768 SetMode
= staticmethod(_core
.IdleEvent_SetMode
)
2769 GetMode
= staticmethod(_core
.IdleEvent_GetMode
)
2770 CanSend
= staticmethod(_core
.IdleEvent_CanSend
)
2772 return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2774 class IdleEventPtr(IdleEvent
):
2775 def __init__(self
, this
):
2777 if not hasattr(self
,"thisown"): self
.thisown
= 0
2778 self
.__class
__ = IdleEvent
2779 _core
.IdleEvent_swigregister(IdleEventPtr
)
2781 IdleEvent_SetMode
= _core
.IdleEvent_SetMode
2783 IdleEvent_GetMode
= _core
.IdleEvent_GetMode
2785 IdleEvent_CanSend
= _core
.IdleEvent_CanSend
2787 #---------------------------------------------------------------------------
2789 class PyEvent(Event
):
2790 def __init__(self
, *args
, **kwargs
):
2791 newobj
= _core
.new_PyEvent(*args
, **kwargs
)
2792 self
.this
= newobj
.this
2796 def __del__(self
, destroy
=_core
.delete_PyEvent
):
2798 if self
.thisown
: destroy(self
)
2800 def SetSelf(*args
, **kwargs
): return _core
.PyEvent_SetSelf(*args
, **kwargs
)
2801 def GetSelf(*args
, **kwargs
): return _core
.PyEvent_GetSelf(*args
, **kwargs
)
2803 return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2805 class PyEventPtr(PyEvent
):
2806 def __init__(self
, this
):
2808 if not hasattr(self
,"thisown"): self
.thisown
= 0
2809 self
.__class
__ = PyEvent
2810 _core
.PyEvent_swigregister(PyEventPtr
)
2812 class PyCommandEvent(CommandEvent
):
2813 def __init__(self
, *args
, **kwargs
):
2814 newobj
= _core
.new_PyCommandEvent(*args
, **kwargs
)
2815 self
.this
= newobj
.this
2819 def __del__(self
, destroy
=_core
.delete_PyCommandEvent
):
2821 if self
.thisown
: destroy(self
)
2823 def SetSelf(*args
, **kwargs
): return _core
.PyCommandEvent_SetSelf(*args
, **kwargs
)
2824 def GetSelf(*args
, **kwargs
): return _core
.PyCommandEvent_GetSelf(*args
, **kwargs
)
2826 return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2828 class PyCommandEventPtr(PyCommandEvent
):
2829 def __init__(self
, this
):
2831 if not hasattr(self
,"thisown"): self
.thisown
= 0
2832 self
.__class
__ = PyCommandEvent
2833 _core
.PyCommandEvent_swigregister(PyCommandEventPtr
)
2835 #---------------------------------------------------------------------------
2837 PYAPP_ASSERT_SUPPRESS
= _core
.PYAPP_ASSERT_SUPPRESS
2838 PYAPP_ASSERT_EXCEPTION
= _core
.PYAPP_ASSERT_EXCEPTION
2839 PYAPP_ASSERT_DIALOG
= _core
.PYAPP_ASSERT_DIALOG
2840 PYAPP_ASSERT_LOG
= _core
.PYAPP_ASSERT_LOG
2841 PRINT_WINDOWS
= _core
.PRINT_WINDOWS
2842 PRINT_POSTSCRIPT
= _core
.PRINT_POSTSCRIPT
2843 class PyApp(EvtHandler
):
2844 def __init__(self
, *args
, **kwargs
):
2845 newobj
= _core
.new_PyApp(*args
, **kwargs
)
2846 self
.this
= newobj
.this
2849 self
._setCallbackInfo
(self
, PyApp
)
2850 self
._setOORInfo
(self
)
2851 def __del__(self
, destroy
=_core
.delete_PyApp
):
2853 if self
.thisown
: destroy(self
)
2855 def _setCallbackInfo(*args
, **kwargs
): return _core
.PyApp__setCallbackInfo(*args
, **kwargs
)
2856 def GetAppName(*args
, **kwargs
): return _core
.PyApp_GetAppName(*args
, **kwargs
)
2857 def SetAppName(*args
, **kwargs
): return _core
.PyApp_SetAppName(*args
, **kwargs
)
2858 def GetClassName(*args
, **kwargs
): return _core
.PyApp_GetClassName(*args
, **kwargs
)
2859 def SetClassName(*args
, **kwargs
): return _core
.PyApp_SetClassName(*args
, **kwargs
)
2860 def GetVendorName(*args
, **kwargs
): return _core
.PyApp_GetVendorName(*args
, **kwargs
)
2861 def SetVendorName(*args
, **kwargs
): return _core
.PyApp_SetVendorName(*args
, **kwargs
)
2862 def GetTraits(*args
, **kwargs
): return _core
.PyApp_GetTraits(*args
, **kwargs
)
2863 def ProcessPendingEvents(*args
, **kwargs
): return _core
.PyApp_ProcessPendingEvents(*args
, **kwargs
)
2864 def Yield(*args
, **kwargs
): return _core
.PyApp_Yield(*args
, **kwargs
)
2865 def WakeUpIdle(*args
, **kwargs
): return _core
.PyApp_WakeUpIdle(*args
, **kwargs
)
2866 def MainLoop(*args
, **kwargs
): return _core
.PyApp_MainLoop(*args
, **kwargs
)
2867 def Exit(*args
, **kwargs
): return _core
.PyApp_Exit(*args
, **kwargs
)
2868 def ExitMainLoop(*args
, **kwargs
): return _core
.PyApp_ExitMainLoop(*args
, **kwargs
)
2869 def Pending(*args
, **kwargs
): return _core
.PyApp_Pending(*args
, **kwargs
)
2870 def Dispatch(*args
, **kwargs
): return _core
.PyApp_Dispatch(*args
, **kwargs
)
2871 def ProcessIdle(*args
, **kwargs
): return _core
.PyApp_ProcessIdle(*args
, **kwargs
)
2872 def SendIdleEvents(*args
, **kwargs
): return _core
.PyApp_SendIdleEvents(*args
, **kwargs
)
2873 def OnIdle(*args
, **kwargs
): return _core
.PyApp_OnIdle(*args
, **kwargs
)
2874 def IsActive(*args
, **kwargs
): return _core
.PyApp_IsActive(*args
, **kwargs
)
2875 def SetTopWindow(*args
, **kwargs
): return _core
.PyApp_SetTopWindow(*args
, **kwargs
)
2876 def GetTopWindow(*args
, **kwargs
): return _core
.PyApp_GetTopWindow(*args
, **kwargs
)
2877 def SetExitOnFrameDelete(*args
, **kwargs
): return _core
.PyApp_SetExitOnFrameDelete(*args
, **kwargs
)
2878 def GetExitOnFrameDelete(*args
, **kwargs
): return _core
.PyApp_GetExitOnFrameDelete(*args
, **kwargs
)
2879 def SetUseBestVisual(*args
, **kwargs
): return _core
.PyApp_SetUseBestVisual(*args
, **kwargs
)
2880 def GetUseBestVisual(*args
, **kwargs
): return _core
.PyApp_GetUseBestVisual(*args
, **kwargs
)
2881 def SetPrintMode(*args
, **kwargs
): return _core
.PyApp_SetPrintMode(*args
, **kwargs
)
2882 def GetPrintMode(*args
, **kwargs
): return _core
.PyApp_GetPrintMode(*args
, **kwargs
)
2883 def GetAssertMode(*args
, **kwargs
): return _core
.PyApp_GetAssertMode(*args
, **kwargs
)
2884 def SetAssertMode(*args
, **kwargs
): return _core
.PyApp_SetAssertMode(*args
, **kwargs
)
2885 GetMacSupportPCMenuShortcuts
= staticmethod(_core
.PyApp_GetMacSupportPCMenuShortcuts
)
2886 GetMacAboutMenuItemId
= staticmethod(_core
.PyApp_GetMacAboutMenuItemId
)
2887 GetMacPreferencesMenuItemId
= staticmethod(_core
.PyApp_GetMacPreferencesMenuItemId
)
2888 GetMacExitMenuItemId
= staticmethod(_core
.PyApp_GetMacExitMenuItemId
)
2889 GetMacHelpMenuTitleName
= staticmethod(_core
.PyApp_GetMacHelpMenuTitleName
)
2890 SetMacSupportPCMenuShortcuts
= staticmethod(_core
.PyApp_SetMacSupportPCMenuShortcuts
)
2891 SetMacAboutMenuItemId
= staticmethod(_core
.PyApp_SetMacAboutMenuItemId
)
2892 SetMacPreferencesMenuItemId
= staticmethod(_core
.PyApp_SetMacPreferencesMenuItemId
)
2893 SetMacExitMenuItemId
= staticmethod(_core
.PyApp_SetMacExitMenuItemId
)
2894 SetMacHelpMenuTitleName
= staticmethod(_core
.PyApp_SetMacHelpMenuTitleName
)
2895 def _BootstrapApp(*args
, **kwargs
): return _core
.PyApp__BootstrapApp(*args
, **kwargs
)
2896 GetComCtl32Version
= staticmethod(_core
.PyApp_GetComCtl32Version
)
2898 return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2900 class PyAppPtr(PyApp
):
2901 def __init__(self
, this
):
2903 if not hasattr(self
,"thisown"): self
.thisown
= 0
2904 self
.__class
__ = PyApp
2905 _core
.PyApp_swigregister(PyAppPtr
)
2907 PyApp_GetMacSupportPCMenuShortcuts
= _core
.PyApp_GetMacSupportPCMenuShortcuts
2909 PyApp_GetMacAboutMenuItemId
= _core
.PyApp_GetMacAboutMenuItemId
2911 PyApp_GetMacPreferencesMenuItemId
= _core
.PyApp_GetMacPreferencesMenuItemId
2913 PyApp_GetMacExitMenuItemId
= _core
.PyApp_GetMacExitMenuItemId
2915 PyApp_GetMacHelpMenuTitleName
= _core
.PyApp_GetMacHelpMenuTitleName
2917 PyApp_SetMacSupportPCMenuShortcuts
= _core
.PyApp_SetMacSupportPCMenuShortcuts
2919 PyApp_SetMacAboutMenuItemId
= _core
.PyApp_SetMacAboutMenuItemId
2921 PyApp_SetMacPreferencesMenuItemId
= _core
.PyApp_SetMacPreferencesMenuItemId
2923 PyApp_SetMacExitMenuItemId
= _core
.PyApp_SetMacExitMenuItemId
2925 PyApp_SetMacHelpMenuTitleName
= _core
.PyApp_SetMacHelpMenuTitleName
2927 PyApp_GetComCtl32Version
= _core
.PyApp_GetComCtl32Version
2929 #---------------------------------------------------------------------------
2936 YieldIfNeeded
= _core
.YieldIfNeeded
2938 SafeYield
= _core
.SafeYield
2940 WakeUpIdle
= _core
.WakeUpIdle
2942 PostEvent
= _core
.PostEvent
2944 App_CleanUp
= _core
.App_CleanUp
2946 GetApp
= _core
.GetApp
2947 #----------------------------------------------------------------------
2949 class PyOnDemandOutputWindow
:
2950 def __init__(self
, title
= "wxPython: stdout/stderr"):
2955 def SetParent(self
, parent
):
2956 self
.parent
= parent
2958 def OnCloseWindow(self
, event
):
2959 if self
.frame
!= None:
2960 self
.frame
.Destroy()
2964 # These methods provide the file-like output behaviour.
2965 def write(self
, str):
2966 if not wx
.Thread_IsMain():
2967 # Aquire the GUI mutex before making GUI calls. Mutex is released
2968 # when locker is deleted at the end of this function.
2969 locker
= wx
.MutexGuiLocker()
2972 self
.frame
= wx
.Frame(self
.parent
, -1, self
.title
,
2973 style
=wx
.DEFAULT_FRAME_STYLE | wx
.NO_FULL_REPAINT_ON_RESIZE
)
2974 self
.text
= wxTextCtrl(self
.frame
, -1, "",
2975 style
= wx
.TE_MULTILINE | wx
.TE_READONLY
)
2976 self
.frame
.SetSize((450, 300))
2977 self
.frame
.Show(True)
2978 EVT_CLOSE(self
.frame
, self
.OnCloseWindow
)
2979 self
.text
.AppendText(str)
2982 if self
.frame
!= None:
2983 if not wx
.Thread_IsMain():
2984 locker
= wx
.MutexGuiLocker()
2988 #----------------------------------------------------------------------
2989 # The main application class. Derive from this and implement an OnInit
2990 # method that creates a frame and then calls self.SetTopWindow(frame)
2992 _defRedirect
= (wx
.Platform
== '__WXMSW__' or wx
.Platform
== '__WXMAC__')
2994 class App(wx
.PyApp
):
2995 outputWindowClass
= PyOnDemandOutputWindow
2997 def __init__(self
, redirect
=_defRedirect
, filename
=None, useBestVisual
=False):
2998 wx
.PyApp
.__init
__(self
)
3000 if wx
.Platform
== "__WXMAC__":
3003 if not MacOS
.WMAvailable():
3005 This program needs access to the screen. Please run with 'pythonw',
3006 not 'python', and only when you are logged in on the main display of
3012 # This has to be done before OnInit
3013 self
.SetUseBestVisual(useBestVisual
)
3015 # Set the default handler for SIGINT. This fixes a problem
3016 # where if Ctrl-C is pressed in the console that started this
3017 # app then it will not appear to do anything, (not even send
3018 # KeyboardInterrupt???) but will later segfault on exit. By
3019 # setting the default handler then the app will exit, as
3020 # expected (depending on platform.)
3023 signal
.signal(signal
.SIGINT
, signal
.SIG_DFL
)
3027 # Save and redirect the stdio to a window?
3028 self
.stdioWin
= None
3029 self
.saveStdio
= (_sys
.stdout
, _sys
.stderr
)
3031 self
.RedirectStdio(filename
)
3033 # This finishes the initialization of wxWindows and then calls
3034 # the OnInit that should be present in the derived class
3035 self
._BootstrapApp
()
3040 self
.RestoreStdio() # Just in case the MainLoop was overridden
3045 def SetTopWindow(self
, frame
):
3047 self
.stdioWin
.SetParent(frame
)
3048 wx
.PyApp
.SetTopWindow(self
, frame
)
3052 wx
.PyApp
.MainLoop(self
)
3056 def RedirectStdio(self
, filename
):
3058 _sys
.stdout
= _sys
.stderr
= open(filename
, 'a')
3060 self
.stdioWin
= self
.outputWindowClass()
3061 _sys
.stdout
= _sys
.stderr
= self
.stdioWin
3064 def RestoreStdio(self
):
3065 _sys
.stdout
, _sys
.stderr
= self
.saveStdio
3069 # change from wxPyApp_ to wxApp_
3070 App_GetMacSupportPCMenuShortcuts
= _core
.PyApp_GetMacSupportPCMenuShortcuts
3071 App_GetMacAboutMenuItemId
= _core
.PyApp_GetMacAboutMenuItemId
3072 App_GetMacPreferencesMenuItemId
= _core
.PyApp_GetMacPreferencesMenuItemId
3073 App_GetMacExitMenuItemId
= _core
.PyApp_GetMacExitMenuItemId
3074 App_GetMacHelpMenuTitleName
= _core
.PyApp_GetMacHelpMenuTitleName
3075 App_SetMacSupportPCMenuShortcuts
= _core
.PyApp_SetMacSupportPCMenuShortcuts
3076 App_SetMacAboutMenuItemId
= _core
.PyApp_SetMacAboutMenuItemId
3077 App_SetMacPreferencesMenuItemId
= _core
.PyApp_SetMacPreferencesMenuItemId
3078 App_SetMacExitMenuItemId
= _core
.PyApp_SetMacExitMenuItemId
3079 App_SetMacHelpMenuTitleName
= _core
.PyApp_SetMacHelpMenuTitleName
3080 App_GetComCtl32Version
= _core
.PyApp_GetComCtl32Version
3082 #----------------------------------------------------------------------------
3084 class PySimpleApp(wx
.App
):
3085 def __init__(self
, redirect
=False, filename
=None):
3086 wx
.App
.__init
__(self
, redirect
, filename
)
3088 wx
.InitAllImageHandlers()
3092 class PyWidgetTester(wx
.App
):
3093 def __init__(self
, size
= (250, 100)):
3095 wx
.App
.__init
__(self
, 0)
3098 self
.frame
= wxFrame(None, -1, "Widget Tester", pos
=(0,0), size
=self
.size
)
3099 self
.SetTopWindow(self
.frame
)
3102 def SetWidget(self
, widgetClass
, *args
):
3103 w
= widgetClass(self
.frame
, *args
)
3104 self
.frame
.Show(True)
3106 #----------------------------------------------------------------------------
3107 # DO NOT hold any other references to this object. This is how we
3108 # know when to cleanup system resources that wxWin is holding. When
3109 # the sys module is unloaded, the refcount on sys.__wxPythonCleanup
3110 # goes to zero and it calls the wxApp_CleanUp function.
3112 class __wxPyCleanup
:
3114 self
.cleanup
= _core
.App_CleanUp
3118 _sys
.__wxPythonCleanup
= __wxPyCleanup()
3120 ## # another possible solution, but it gets called too early...
3121 ## if sys.version[0] == '2':
3123 ## atexit.register(_core.wxApp_CleanUp)
3125 ## sys.exitfunc = _core.wxApp_CleanUp
3128 #----------------------------------------------------------------------------
3130 #---------------------------------------------------------------------------
3132 class Window(EvtHandler
):
3133 def __init__(self
, *args
, **kwargs
):
3134 newobj
= _core
.new_Window(*args
, **kwargs
)
3135 self
.this
= newobj
.this
3138 self
._setOORInfo
(self
)
3139 def Create(*args
, **kwargs
): return _core
.Window_Create(*args
, **kwargs
)
3140 def Close(*args
, **kwargs
): return _core
.Window_Close(*args
, **kwargs
)
3141 def Destroy(*args
, **kwargs
): return _core
.Window_Destroy(*args
, **kwargs
)
3142 def DestroyChildren(*args
, **kwargs
): return _core
.Window_DestroyChildren(*args
, **kwargs
)
3143 def IsBeingDeleted(*args
, **kwargs
): return _core
.Window_IsBeingDeleted(*args
, **kwargs
)
3144 def SetTitle(*args
, **kwargs
): return _core
.Window_SetTitle(*args
, **kwargs
)
3145 def GetTitle(*args
, **kwargs
): return _core
.Window_GetTitle(*args
, **kwargs
)
3146 def SetLabel(*args
, **kwargs
): return _core
.Window_SetLabel(*args
, **kwargs
)
3147 def GetLabel(*args
, **kwargs
): return _core
.Window_GetLabel(*args
, **kwargs
)
3148 def SetName(*args
, **kwargs
): return _core
.Window_SetName(*args
, **kwargs
)
3149 def GetName(*args
, **kwargs
): return _core
.Window_GetName(*args
, **kwargs
)
3150 def SetId(*args
, **kwargs
): return _core
.Window_SetId(*args
, **kwargs
)
3151 def GetId(*args
, **kwargs
): return _core
.Window_GetId(*args
, **kwargs
)
3152 NewControlId
= staticmethod(_core
.Window_NewControlId
)
3153 NextControlId
= staticmethod(_core
.Window_NextControlId
)
3154 PrevControlId
= staticmethod(_core
.Window_PrevControlId
)
3155 def SetSize(*args
, **kwargs
): return _core
.Window_SetSize(*args
, **kwargs
)
3156 def SetDimensions(*args
, **kwargs
): return _core
.Window_SetDimensions(*args
, **kwargs
)
3157 def SetRect(*args
, **kwargs
): return _core
.Window_SetRect(*args
, **kwargs
)
3158 def SetSizeWH(*args
, **kwargs
): return _core
.Window_SetSizeWH(*args
, **kwargs
)
3159 def Move(*args
, **kwargs
): return _core
.Window_Move(*args
, **kwargs
)
3161 def MoveXY(*args
, **kwargs
): return _core
.Window_MoveXY(*args
, **kwargs
)
3162 def Raise(*args
, **kwargs
): return _core
.Window_Raise(*args
, **kwargs
)
3163 def Lower(*args
, **kwargs
): return _core
.Window_Lower(*args
, **kwargs
)
3164 def SetClientSize(*args
, **kwargs
): return _core
.Window_SetClientSize(*args
, **kwargs
)
3165 def SetClientSizeWH(*args
, **kwargs
): return _core
.Window_SetClientSizeWH(*args
, **kwargs
)
3166 def SetClientRect(*args
, **kwargs
): return _core
.Window_SetClientRect(*args
, **kwargs
)
3167 def GetPosition(*args
, **kwargs
): return _core
.Window_GetPosition(*args
, **kwargs
)
3168 def GetPositionTuple(*args
, **kwargs
): return _core
.Window_GetPositionTuple(*args
, **kwargs
)
3169 def GetSize(*args
, **kwargs
): return _core
.Window_GetSize(*args
, **kwargs
)
3170 def GetSizeTuple(*args
, **kwargs
): return _core
.Window_GetSizeTuple(*args
, **kwargs
)
3171 def GetRect(*args
, **kwargs
): return _core
.Window_GetRect(*args
, **kwargs
)
3172 def GetClientSize(*args
, **kwargs
): return _core
.Window_GetClientSize(*args
, **kwargs
)
3173 def GetClientSizeTuple(*args
, **kwargs
): return _core
.Window_GetClientSizeTuple(*args
, **kwargs
)
3174 def GetClientAreaOrigin(*args
, **kwargs
): return _core
.Window_GetClientAreaOrigin(*args
, **kwargs
)
3175 def GetClientRect(*args
, **kwargs
): return _core
.Window_GetClientRect(*args
, **kwargs
)
3176 def GetBestSize(*args
, **kwargs
): return _core
.Window_GetBestSize(*args
, **kwargs
)
3177 def GetBestSizeTuple(*args
, **kwargs
): return _core
.Window_GetBestSizeTuple(*args
, **kwargs
)
3178 def GetAdjustedBestSize(*args
, **kwargs
): return _core
.Window_GetAdjustedBestSize(*args
, **kwargs
)
3179 def Center(*args
, **kwargs
): return _core
.Window_Center(*args
, **kwargs
)
3181 def CenterOnScreen(*args
, **kwargs
): return _core
.Window_CenterOnScreen(*args
, **kwargs
)
3182 CentreOnScreen
= CenterOnScreen
3183 def CenterOnParent(*args
, **kwargs
): return _core
.Window_CenterOnParent(*args
, **kwargs
)
3184 CentreOnParent
= CenterOnParent
3185 def Fit(*args
, **kwargs
): return _core
.Window_Fit(*args
, **kwargs
)
3186 def FitInside(*args
, **kwargs
): return _core
.Window_FitInside(*args
, **kwargs
)
3187 def SetSizeHints(*args
, **kwargs
): return _core
.Window_SetSizeHints(*args
, **kwargs
)
3188 def SetVirtualSizeHints(*args
, **kwargs
): return _core
.Window_SetVirtualSizeHints(*args
, **kwargs
)
3189 def GetMinWidth(*args
, **kwargs
): return _core
.Window_GetMinWidth(*args
, **kwargs
)
3190 def GetMinHeight(*args
, **kwargs
): return _core
.Window_GetMinHeight(*args
, **kwargs
)
3191 def GetMaxWidth(*args
, **kwargs
): return _core
.Window_GetMaxWidth(*args
, **kwargs
)
3192 def GetMaxHeight(*args
, **kwargs
): return _core
.Window_GetMaxHeight(*args
, **kwargs
)
3193 def GetMaxSize(*args
, **kwargs
): return _core
.Window_GetMaxSize(*args
, **kwargs
)
3194 def SetVirtualSize(*args
, **kwargs
): return _core
.Window_SetVirtualSize(*args
, **kwargs
)
3195 def SetVirtualSizeWH(*args
, **kwargs
): return _core
.Window_SetVirtualSizeWH(*args
, **kwargs
)
3196 def GetVirtualSize(*args
, **kwargs
): return _core
.Window_GetVirtualSize(*args
, **kwargs
)
3197 def GetVirtualSizeTuple(*args
, **kwargs
): return _core
.Window_GetVirtualSizeTuple(*args
, **kwargs
)
3198 def GetBestVirtualSize(*args
, **kwargs
): return _core
.Window_GetBestVirtualSize(*args
, **kwargs
)
3199 def Show(*args
, **kwargs
): return _core
.Window_Show(*args
, **kwargs
)
3200 def Hide(*args
, **kwargs
): return _core
.Window_Hide(*args
, **kwargs
)
3201 def Enable(*args
, **kwargs
): return _core
.Window_Enable(*args
, **kwargs
)
3202 def Disable(*args
, **kwargs
): return _core
.Window_Disable(*args
, **kwargs
)
3203 def IsShown(*args
, **kwargs
): return _core
.Window_IsShown(*args
, **kwargs
)
3204 def IsEnabled(*args
, **kwargs
): return _core
.Window_IsEnabled(*args
, **kwargs
)
3205 def SetWindowStyleFlag(*args
, **kwargs
): return _core
.Window_SetWindowStyleFlag(*args
, **kwargs
)
3206 def GetWindowStyleFlag(*args
, **kwargs
): return _core
.Window_GetWindowStyleFlag(*args
, **kwargs
)
3207 def SetWindowStyle(*args
, **kwargs
): return _core
.Window_SetWindowStyle(*args
, **kwargs
)
3208 def GetWindowStyle(*args
, **kwargs
): return _core
.Window_GetWindowStyle(*args
, **kwargs
)
3209 def HasFlag(*args
, **kwargs
): return _core
.Window_HasFlag(*args
, **kwargs
)
3210 def IsRetained(*args
, **kwargs
): return _core
.Window_IsRetained(*args
, **kwargs
)
3211 def SetExtraStyle(*args
, **kwargs
): return _core
.Window_SetExtraStyle(*args
, **kwargs
)
3212 def GetExtraStyle(*args
, **kwargs
): return _core
.Window_GetExtraStyle(*args
, **kwargs
)
3213 def MakeModal(*args
, **kwargs
): return _core
.Window_MakeModal(*args
, **kwargs
)
3214 def SetThemeEnabled(*args
, **kwargs
): return _core
.Window_SetThemeEnabled(*args
, **kwargs
)
3215 def GetThemeEnabled(*args
, **kwargs
): return _core
.Window_GetThemeEnabled(*args
, **kwargs
)
3216 def ShouldInheritColours(*args
, **kwargs
): return _core
.Window_ShouldInheritColours(*args
, **kwargs
)
3217 def SetFocus(*args
, **kwargs
): return _core
.Window_SetFocus(*args
, **kwargs
)
3218 def SetFocusFromKbd(*args
, **kwargs
): return _core
.Window_SetFocusFromKbd(*args
, **kwargs
)
3219 FindFocus
= staticmethod(_core
.Window_FindFocus
)
3220 def AcceptsFocus(*args
, **kwargs
): return _core
.Window_AcceptsFocus(*args
, **kwargs
)
3221 def AcceptsFocusFromKeyboard(*args
, **kwargs
): return _core
.Window_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3222 def GetDefaultItem(*args
, **kwargs
): return _core
.Window_GetDefaultItem(*args
, **kwargs
)
3223 def SetDefaultItem(*args
, **kwargs
): return _core
.Window_SetDefaultItem(*args
, **kwargs
)
3224 def SetTmpDefaultItem(*args
, **kwargs
): return _core
.Window_SetTmpDefaultItem(*args
, **kwargs
)
3225 def GetChildren(*args
, **kwargs
): return _core
.Window_GetChildren(*args
, **kwargs
)
3226 def GetParent(*args
, **kwargs
): return _core
.Window_GetParent(*args
, **kwargs
)
3227 def GetGrandParent(*args
, **kwargs
): return _core
.Window_GetGrandParent(*args
, **kwargs
)
3228 def IsTopLevel(*args
, **kwargs
): return _core
.Window_IsTopLevel(*args
, **kwargs
)
3229 def Reparent(*args
, **kwargs
): return _core
.Window_Reparent(*args
, **kwargs
)
3230 def AddChild(*args
, **kwargs
): return _core
.Window_AddChild(*args
, **kwargs
)
3231 def RemoveChild(*args
, **kwargs
): return _core
.Window_RemoveChild(*args
, **kwargs
)
3232 def FindWindowById(*args
, **kwargs
): return _core
.Window_FindWindowById(*args
, **kwargs
)
3233 def FindWindowByName(*args
, **kwargs
): return _core
.Window_FindWindowByName(*args
, **kwargs
)
3234 def GetEventHandler(*args
, **kwargs
): return _core
.Window_GetEventHandler(*args
, **kwargs
)
3235 def SetEventHandler(*args
, **kwargs
): return _core
.Window_SetEventHandler(*args
, **kwargs
)
3236 def PushEventHandler(*args
, **kwargs
): return _core
.Window_PushEventHandler(*args
, **kwargs
)
3237 def PopEventHandler(*args
, **kwargs
): return _core
.Window_PopEventHandler(*args
, **kwargs
)
3238 def RemoveEventHandler(*args
, **kwargs
): return _core
.Window_RemoveEventHandler(*args
, **kwargs
)
3239 def SetValidator(*args
, **kwargs
): return _core
.Window_SetValidator(*args
, **kwargs
)
3240 def GetValidator(*args
, **kwargs
): return _core
.Window_GetValidator(*args
, **kwargs
)
3241 def SetAcceleratorTable(*args
, **kwargs
): return _core
.Window_SetAcceleratorTable(*args
, **kwargs
)
3242 def GetAcceleratorTable(*args
, **kwargs
): return _core
.Window_GetAcceleratorTable(*args
, **kwargs
)
3243 def RegisterHotKey(*args
, **kwargs
): return _core
.Window_RegisterHotKey(*args
, **kwargs
)
3244 def UnregisterHotKey(*args
, **kwargs
): return _core
.Window_UnregisterHotKey(*args
, **kwargs
)
3245 def ConvertDialogPointToPixels(*args
, **kwargs
): return _core
.Window_ConvertDialogPointToPixels(*args
, **kwargs
)
3246 def ConvertDialogSizeToPixels(*args
, **kwargs
): return _core
.Window_ConvertDialogSizeToPixels(*args
, **kwargs
)
3247 def DLG_PNT(*args
, **kwargs
): return _core
.Window_DLG_PNT(*args
, **kwargs
)
3248 def DLG_SZE(*args
, **kwargs
): return _core
.Window_DLG_SZE(*args
, **kwargs
)
3249 def ConvertPixelPointToDialog(*args
, **kwargs
): return _core
.Window_ConvertPixelPointToDialog(*args
, **kwargs
)
3250 def ConvertPixelSizeToDialog(*args
, **kwargs
): return _core
.Window_ConvertPixelSizeToDialog(*args
, **kwargs
)
3251 def WarpPointer(*args
, **kwargs
): return _core
.Window_WarpPointer(*args
, **kwargs
)
3252 def CaptureMouse(*args
, **kwargs
): return _core
.Window_CaptureMouse(*args
, **kwargs
)
3253 def ReleaseMouse(*args
, **kwargs
): return _core
.Window_ReleaseMouse(*args
, **kwargs
)
3254 GetCapture
= staticmethod(_core
.Window_GetCapture
)
3255 def HasCapture(*args
, **kwargs
): return _core
.Window_HasCapture(*args
, **kwargs
)
3256 def Refresh(*args
, **kwargs
): return _core
.Window_Refresh(*args
, **kwargs
)
3257 def RefreshRect(*args
, **kwargs
): return _core
.Window_RefreshRect(*args
, **kwargs
)
3258 def Update(*args
, **kwargs
): return _core
.Window_Update(*args
, **kwargs
)
3259 def ClearBackground(*args
, **kwargs
): return _core
.Window_ClearBackground(*args
, **kwargs
)
3260 def Freeze(*args
, **kwargs
): return _core
.Window_Freeze(*args
, **kwargs
)
3261 def Thaw(*args
, **kwargs
): return _core
.Window_Thaw(*args
, **kwargs
)
3262 def PrepareDC(*args
, **kwargs
): return _core
.Window_PrepareDC(*args
, **kwargs
)
3263 def GetUpdateRegion(*args
, **kwargs
): return _core
.Window_GetUpdateRegion(*args
, **kwargs
)
3264 def GetUpdateClientRect(*args
, **kwargs
): return _core
.Window_GetUpdateClientRect(*args
, **kwargs
)
3265 def IsExposed(*args
, **kwargs
): return _core
.Window_IsExposed(*args
, **kwargs
)
3266 def IsExposedPoint(*args
, **kwargs
): return _core
.Window_IsExposedPoint(*args
, **kwargs
)
3267 def isExposedRect(*args
, **kwargs
): return _core
.Window_isExposedRect(*args
, **kwargs
)
3268 def SetBackgroundColour(*args
, **kwargs
): return _core
.Window_SetBackgroundColour(*args
, **kwargs
)
3269 def SetForegroundColour(*args
, **kwargs
): return _core
.Window_SetForegroundColour(*args
, **kwargs
)
3270 def GetBackgroundColour(*args
, **kwargs
): return _core
.Window_GetBackgroundColour(*args
, **kwargs
)
3271 def GetForegroundColour(*args
, **kwargs
): return _core
.Window_GetForegroundColour(*args
, **kwargs
)
3272 def SetCursor(*args
, **kwargs
): return _core
.Window_SetCursor(*args
, **kwargs
)
3273 def GetCursor(*args
, **kwargs
): return _core
.Window_GetCursor(*args
, **kwargs
)
3274 def SetFont(*args
, **kwargs
): return _core
.Window_SetFont(*args
, **kwargs
)
3275 def GetFont(*args
, **kwargs
): return _core
.Window_GetFont(*args
, **kwargs
)
3276 def SetCaret(*args
, **kwargs
): return _core
.Window_SetCaret(*args
, **kwargs
)
3277 def GetCaret(*args
, **kwargs
): return _core
.Window_GetCaret(*args
, **kwargs
)
3278 def GetCharHeight(*args
, **kwargs
): return _core
.Window_GetCharHeight(*args
, **kwargs
)
3279 def GetCharWidth(*args
, **kwargs
): return _core
.Window_GetCharWidth(*args
, **kwargs
)
3280 def GetTextExtent(*args
, **kwargs
): return _core
.Window_GetTextExtent(*args
, **kwargs
)
3281 def GetFullTextExtent(*args
, **kwargs
): return _core
.Window_GetFullTextExtent(*args
, **kwargs
)
3282 def ClientToScreenXY(*args
, **kwargs
): return _core
.Window_ClientToScreenXY(*args
, **kwargs
)
3283 def ScreenToClientXY(*args
, **kwargs
): return _core
.Window_ScreenToClientXY(*args
, **kwargs
)
3284 def ClientToScreen(*args
, **kwargs
): return _core
.Window_ClientToScreen(*args
, **kwargs
)
3285 def ScreenToClient(*args
, **kwargs
): return _core
.Window_ScreenToClient(*args
, **kwargs
)
3286 def HitTestXY(*args
, **kwargs
): return _core
.Window_HitTestXY(*args
, **kwargs
)
3287 def HitTest(*args
, **kwargs
): return _core
.Window_HitTest(*args
, **kwargs
)
3288 def GetBorderFlags(*args
, **kwargs
): return _core
.Window_GetBorderFlags(*args
, **kwargs
)
3289 def GetBorder(*args
, **kwargs
): return _core
.Window_GetBorder(*args
, **kwargs
)
3290 def UpdateWindowUI(*args
, **kwargs
): return _core
.Window_UpdateWindowUI(*args
, **kwargs
)
3291 def PopupMenuXY(*args
, **kwargs
): return _core
.Window_PopupMenuXY(*args
, **kwargs
)
3292 def PopupMenu(*args
, **kwargs
): return _core
.Window_PopupMenu(*args
, **kwargs
)
3293 def GetHandle(*args
, **kwargs
): return _core
.Window_GetHandle(*args
, **kwargs
)
3294 def OnPaint(*args
, **kwargs
): return _core
.Window_OnPaint(*args
, **kwargs
)
3295 def HasScrollbar(*args
, **kwargs
): return _core
.Window_HasScrollbar(*args
, **kwargs
)
3296 def SetScrollbar(*args
, **kwargs
): return _core
.Window_SetScrollbar(*args
, **kwargs
)
3297 def SetScrollPos(*args
, **kwargs
): return _core
.Window_SetScrollPos(*args
, **kwargs
)
3298 def GetScrollPos(*args
, **kwargs
): return _core
.Window_GetScrollPos(*args
, **kwargs
)
3299 def GetScrollThumb(*args
, **kwargs
): return _core
.Window_GetScrollThumb(*args
, **kwargs
)
3300 def GetScrollRange(*args
, **kwargs
): return _core
.Window_GetScrollRange(*args
, **kwargs
)
3301 def ScrollWindow(*args
, **kwargs
): return _core
.Window_ScrollWindow(*args
, **kwargs
)
3302 def ScrollLines(*args
, **kwargs
): return _core
.Window_ScrollLines(*args
, **kwargs
)
3303 def ScrollPages(*args
, **kwargs
): return _core
.Window_ScrollPages(*args
, **kwargs
)
3304 def LineUp(*args
, **kwargs
): return _core
.Window_LineUp(*args
, **kwargs
)
3305 def LineDown(*args
, **kwargs
): return _core
.Window_LineDown(*args
, **kwargs
)
3306 def PageUp(*args
, **kwargs
): return _core
.Window_PageUp(*args
, **kwargs
)
3307 def PageDown(*args
, **kwargs
): return _core
.Window_PageDown(*args
, **kwargs
)
3308 def SetHelpText(*args
, **kwargs
): return _core
.Window_SetHelpText(*args
, **kwargs
)
3309 def SetHelpTextForId(*args
, **kwargs
): return _core
.Window_SetHelpTextForId(*args
, **kwargs
)
3310 def GetHelpText(*args
, **kwargs
): return _core
.Window_GetHelpText(*args
, **kwargs
)
3311 def SetToolTipString(*args
, **kwargs
): return _core
.Window_SetToolTipString(*args
, **kwargs
)
3312 def SetToolTip(*args
, **kwargs
): return _core
.Window_SetToolTip(*args
, **kwargs
)
3313 def GetToolTip(*args
, **kwargs
): return _core
.Window_GetToolTip(*args
, **kwargs
)
3314 def SetDropTarget(*args
, **kwargs
):
3315 val
= _core
.Window_SetDropTarget(*args
, **kwargs
)
3318 def GetDropTarget(*args
, **kwargs
): return _core
.Window_GetDropTarget(*args
, **kwargs
)
3319 def DragAcceptFiles(*args
, **kwargs
): return _core
.Window_DragAcceptFiles(*args
, **kwargs
)
3320 def SetConstraints(*args
, **kwargs
): return _core
.Window_SetConstraints(*args
, **kwargs
)
3321 def GetConstraints(*args
, **kwargs
): return _core
.Window_GetConstraints(*args
, **kwargs
)
3322 def SetAutoLayout(*args
, **kwargs
): return _core
.Window_SetAutoLayout(*args
, **kwargs
)
3323 def GetAutoLayout(*args
, **kwargs
): return _core
.Window_GetAutoLayout(*args
, **kwargs
)
3324 def Layout(*args
, **kwargs
): return _core
.Window_Layout(*args
, **kwargs
)
3325 def SetSizer(*args
, **kwargs
): return _core
.Window_SetSizer(*args
, **kwargs
)
3326 def SetSizerAndFit(*args
, **kwargs
): return _core
.Window_SetSizerAndFit(*args
, **kwargs
)
3327 def GetSizer(*args
, **kwargs
): return _core
.Window_GetSizer(*args
, **kwargs
)
3328 def SetContainingSizer(*args
, **kwargs
): return _core
.Window_SetContainingSizer(*args
, **kwargs
)
3329 def GetContainingSizer(*args
, **kwargs
): return _core
.Window_GetContainingSizer(*args
, **kwargs
)
3330 def PostCreate(self
, pre
):
3331 """Phase 3 of the 2-phase create <wink!>
3332 Call this method after precreating the window with the 2-phase create method."""
3333 self
.this
= pre
.this
3334 self
.thisown
= pre
.thisown
3336 if hasattr(self
, '_setOORInfo'):
3337 self
._setOORInfo
(self
)
3338 if hasattr(self
, '_setCallbackInfo'):
3339 self
._setCallbackInfo
(self
, self
.__class
__)
3342 return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3344 class WindowPtr(Window
):
3345 def __init__(self
, this
):
3347 if not hasattr(self
,"thisown"): self
.thisown
= 0
3348 self
.__class
__ = Window
3349 _core
.Window_swigregister(WindowPtr
)
3351 def PreWindow(*args
, **kwargs
):
3352 val
= _core
.new_PreWindow(*args
, **kwargs
)
3356 Window_NewControlId
= _core
.Window_NewControlId
3358 Window_NextControlId
= _core
.Window_NextControlId
3360 Window_PrevControlId
= _core
.Window_PrevControlId
3362 Window_FindFocus
= _core
.Window_FindFocus
3364 Window_GetCapture
= _core
.Window_GetCapture
3366 def DLG_PNT(win
, point_or_x
, y
=None):
3368 return win
.ConvertDialogPointToPixels(point_or_x
)
3370 return win
.ConvertDialogPointToPixels(wxPoint(point_or_x
, y
))
3372 def DLG_SZE(win
, size_width
, height
=None):
3374 return win
.ConvertDialogSizeToPixels(size_width
)
3376 return win
.ConvertDialogSizeToPixels(wxSize(size_width
, height
))
3379 FindWindowById
= _core
.FindWindowById
3381 FindWindowByName
= _core
.FindWindowByName
3383 FindWindowByLabel
= _core
.FindWindowByLabel
3385 Window_FromHWND
= _core
.Window_FromHWND
3386 #---------------------------------------------------------------------------
3388 class Validator(EvtHandler
):
3389 def __init__(self
, *args
, **kwargs
):
3390 newobj
= _core
.new_Validator(*args
, **kwargs
)
3391 self
.this
= newobj
.this
3394 self
._setOORInfo
(self
)
3395 def Clone(*args
, **kwargs
): return _core
.Validator_Clone(*args
, **kwargs
)
3396 def Validate(*args
, **kwargs
): return _core
.Validator_Validate(*args
, **kwargs
)
3397 def TransferToWindow(*args
, **kwargs
): return _core
.Validator_TransferToWindow(*args
, **kwargs
)
3398 def TransferFromWindow(*args
, **kwargs
): return _core
.Validator_TransferFromWindow(*args
, **kwargs
)
3399 def GetWindow(*args
, **kwargs
): return _core
.Validator_GetWindow(*args
, **kwargs
)
3400 def SetWindow(*args
, **kwargs
): return _core
.Validator_SetWindow(*args
, **kwargs
)
3401 IsSilent
= staticmethod(_core
.Validator_IsSilent
)
3402 SetBellOnError
= staticmethod(_core
.Validator_SetBellOnError
)
3404 return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3406 class ValidatorPtr(Validator
):
3407 def __init__(self
, this
):
3409 if not hasattr(self
,"thisown"): self
.thisown
= 0
3410 self
.__class
__ = Validator
3411 _core
.Validator_swigregister(ValidatorPtr
)
3413 Validator_IsSilent
= _core
.Validator_IsSilent
3415 Validator_SetBellOnError
= _core
.Validator_SetBellOnError
3417 class PyValidator(Validator
):
3418 def __init__(self
, *args
, **kwargs
):
3419 newobj
= _core
.new_PyValidator(*args
, **kwargs
)
3420 self
.this
= newobj
.this
3424 self
._setCallbackInfo
(self
, PyValidator
, 1)
3425 self
._setOORInfo
(self
)
3426 def _setCallbackInfo(*args
, **kwargs
): return _core
.PyValidator__setCallbackInfo(*args
, **kwargs
)
3428 return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3430 class PyValidatorPtr(PyValidator
):
3431 def __init__(self
, this
):
3433 if not hasattr(self
,"thisown"): self
.thisown
= 0
3434 self
.__class
__ = PyValidator
3435 _core
.PyValidator_swigregister(PyValidatorPtr
)
3437 #---------------------------------------------------------------------------
3439 class Menu(EvtHandler
):
3440 def __init__(self
, *args
, **kwargs
):
3441 newobj
= _core
.new_Menu(*args
, **kwargs
)
3442 self
.this
= newobj
.this
3445 self
._setOORInfo
(self
)
3446 def Append(*args
, **kwargs
): return _core
.Menu_Append(*args
, **kwargs
)
3447 def AppendSeparator(*args
, **kwargs
): return _core
.Menu_AppendSeparator(*args
, **kwargs
)
3448 def AppendCheckItem(*args
, **kwargs
): return _core
.Menu_AppendCheckItem(*args
, **kwargs
)
3449 def AppendRadioItem(*args
, **kwargs
): return _core
.Menu_AppendRadioItem(*args
, **kwargs
)
3450 def AppendMenu(*args
, **kwargs
): return _core
.Menu_AppendMenu(*args
, **kwargs
)
3451 def AppendItem(*args
, **kwargs
): return _core
.Menu_AppendItem(*args
, **kwargs
)
3452 def Break(*args
, **kwargs
): return _core
.Menu_Break(*args
, **kwargs
)
3453 def InsertItem(*args
, **kwargs
): return _core
.Menu_InsertItem(*args
, **kwargs
)
3454 def Insert(*args
, **kwargs
): return _core
.Menu_Insert(*args
, **kwargs
)
3455 def InsertSeparator(*args
, **kwargs
): return _core
.Menu_InsertSeparator(*args
, **kwargs
)
3456 def InsertCheckItem(*args
, **kwargs
): return _core
.Menu_InsertCheckItem(*args
, **kwargs
)
3457 def InsertRadioItem(*args
, **kwargs
): return _core
.Menu_InsertRadioItem(*args
, **kwargs
)
3458 def InsertMenu(*args
, **kwargs
): return _core
.Menu_InsertMenu(*args
, **kwargs
)
3459 def PrependItem(*args
, **kwargs
): return _core
.Menu_PrependItem(*args
, **kwargs
)
3460 def Prepend(*args
, **kwargs
): return _core
.Menu_Prepend(*args
, **kwargs
)
3461 def PrependSeparator(*args
, **kwargs
): return _core
.Menu_PrependSeparator(*args
, **kwargs
)
3462 def PrependCheckItem(*args
, **kwargs
): return _core
.Menu_PrependCheckItem(*args
, **kwargs
)
3463 def PrependRadioItem(*args
, **kwargs
): return _core
.Menu_PrependRadioItem(*args
, **kwargs
)
3464 def PrependMenu(*args
, **kwargs
): return _core
.Menu_PrependMenu(*args
, **kwargs
)
3465 def Remove(*args
, **kwargs
): return _core
.Menu_Remove(*args
, **kwargs
)
3466 def RemoveItem(*args
, **kwargs
): return _core
.Menu_RemoveItem(*args
, **kwargs
)
3467 def Delete(*args
, **kwargs
): return _core
.Menu_Delete(*args
, **kwargs
)
3468 def DeleteItem(*args
, **kwargs
): return _core
.Menu_DeleteItem(*args
, **kwargs
)
3469 def Destroy(*args
, **kwargs
): return _core
.Menu_Destroy(*args
, **kwargs
)
3470 def DestroyId(*args
, **kwargs
): return _core
.Menu_DestroyId(*args
, **kwargs
)
3471 def DestroyItem(*args
, **kwargs
): return _core
.Menu_DestroyItem(*args
, **kwargs
)
3472 def GetMenuItemCount(*args
, **kwargs
): return _core
.Menu_GetMenuItemCount(*args
, **kwargs
)
3473 def GetMenuItems(*args
, **kwargs
): return _core
.Menu_GetMenuItems(*args
, **kwargs
)
3474 def FindItem(*args
, **kwargs
): return _core
.Menu_FindItem(*args
, **kwargs
)
3475 def FindItemById(*args
, **kwargs
): return _core
.Menu_FindItemById(*args
, **kwargs
)
3476 def FindItemByPosition(*args
, **kwargs
): return _core
.Menu_FindItemByPosition(*args
, **kwargs
)
3477 def Enable(*args
, **kwargs
): return _core
.Menu_Enable(*args
, **kwargs
)
3478 def IsEnabled(*args
, **kwargs
): return _core
.Menu_IsEnabled(*args
, **kwargs
)
3479 def Check(*args
, **kwargs
): return _core
.Menu_Check(*args
, **kwargs
)
3480 def IsChecked(*args
, **kwargs
): return _core
.Menu_IsChecked(*args
, **kwargs
)
3481 def SetLabel(*args
, **kwargs
): return _core
.Menu_SetLabel(*args
, **kwargs
)
3482 def GetLabel(*args
, **kwargs
): return _core
.Menu_GetLabel(*args
, **kwargs
)
3483 def SetHelpString(*args
, **kwargs
): return _core
.Menu_SetHelpString(*args
, **kwargs
)
3484 def GetHelpString(*args
, **kwargs
): return _core
.Menu_GetHelpString(*args
, **kwargs
)
3485 def SetTitle(*args
, **kwargs
): return _core
.Menu_SetTitle(*args
, **kwargs
)
3486 def GetTitle(*args
, **kwargs
): return _core
.Menu_GetTitle(*args
, **kwargs
)
3487 def SetEventHandler(*args
, **kwargs
): return _core
.Menu_SetEventHandler(*args
, **kwargs
)
3488 def GetEventHandler(*args
, **kwargs
): return _core
.Menu_GetEventHandler(*args
, **kwargs
)
3489 def SetInvokingWindow(*args
, **kwargs
): return _core
.Menu_SetInvokingWindow(*args
, **kwargs
)
3490 def GetInvokingWindow(*args
, **kwargs
): return _core
.Menu_GetInvokingWindow(*args
, **kwargs
)
3491 def GetStyle(*args
, **kwargs
): return _core
.Menu_GetStyle(*args
, **kwargs
)
3492 def UpdateUI(*args
, **kwargs
): return _core
.Menu_UpdateUI(*args
, **kwargs
)
3493 def GetMenuBar(*args
, **kwargs
): return _core
.Menu_GetMenuBar(*args
, **kwargs
)
3494 def Attach(*args
, **kwargs
): return _core
.Menu_Attach(*args
, **kwargs
)
3495 def Detach(*args
, **kwargs
): return _core
.Menu_Detach(*args
, **kwargs
)
3496 def IsAttached(*args
, **kwargs
): return _core
.Menu_IsAttached(*args
, **kwargs
)
3497 def SetParent(*args
, **kwargs
): return _core
.Menu_SetParent(*args
, **kwargs
)
3498 def GetParent(*args
, **kwargs
): return _core
.Menu_GetParent(*args
, **kwargs
)
3500 return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3502 class MenuPtr(Menu
):
3503 def __init__(self
, this
):
3505 if not hasattr(self
,"thisown"): self
.thisown
= 0
3506 self
.__class
__ = Menu
3507 _core
.Menu_swigregister(MenuPtr
)
3508 DefaultValidator
= cvar
.DefaultValidator
3510 #---------------------------------------------------------------------------
3512 class MenuBar(Window
):
3513 def __init__(self
, *args
, **kwargs
):
3514 newobj
= _core
.new_MenuBar(*args
, **kwargs
)
3515 self
.this
= newobj
.this
3518 self
._setOORInfo
(self
)
3519 def Append(*args
, **kwargs
): return _core
.MenuBar_Append(*args
, **kwargs
)
3520 def Insert(*args
, **kwargs
): return _core
.MenuBar_Insert(*args
, **kwargs
)
3521 def GetMenuCount(*args
, **kwargs
): return _core
.MenuBar_GetMenuCount(*args
, **kwargs
)
3522 def GetMenu(*args
, **kwargs
): return _core
.MenuBar_GetMenu(*args
, **kwargs
)
3523 def Replace(*args
, **kwargs
): return _core
.MenuBar_Replace(*args
, **kwargs
)
3524 def Remove(*args
, **kwargs
): return _core
.MenuBar_Remove(*args
, **kwargs
)
3525 def EnableTop(*args
, **kwargs
): return _core
.MenuBar_EnableTop(*args
, **kwargs
)
3526 def IsEnabledTop(*args
, **kwargs
): return _core
.MenuBar_IsEnabledTop(*args
, **kwargs
)
3527 def SetLabelTop(*args
, **kwargs
): return _core
.MenuBar_SetLabelTop(*args
, **kwargs
)
3528 def GetLabelTop(*args
, **kwargs
): return _core
.MenuBar_GetLabelTop(*args
, **kwargs
)
3529 def FindMenuItem(*args
, **kwargs
): return _core
.MenuBar_FindMenuItem(*args
, **kwargs
)
3530 def FindItemById(*args
, **kwargs
): return _core
.MenuBar_FindItemById(*args
, **kwargs
)
3531 def FindMenu(*args
, **kwargs
): return _core
.MenuBar_FindMenu(*args
, **kwargs
)
3532 def Enable(*args
, **kwargs
): return _core
.MenuBar_Enable(*args
, **kwargs
)
3533 def Check(*args
, **kwargs
): return _core
.MenuBar_Check(*args
, **kwargs
)
3534 def IsChecked(*args
, **kwargs
): return _core
.MenuBar_IsChecked(*args
, **kwargs
)
3535 def IsEnabled(*args
, **kwargs
): return _core
.MenuBar_IsEnabled(*args
, **kwargs
)
3536 def SetLabel(*args
, **kwargs
): return _core
.MenuBar_SetLabel(*args
, **kwargs
)
3537 def GetLabel(*args
, **kwargs
): return _core
.MenuBar_GetLabel(*args
, **kwargs
)
3538 def SetHelpString(*args
, **kwargs
): return _core
.MenuBar_SetHelpString(*args
, **kwargs
)
3539 def GetHelpString(*args
, **kwargs
): return _core
.MenuBar_GetHelpString(*args
, **kwargs
)
3540 def GetFrame(*args
, **kwargs
): return _core
.MenuBar_GetFrame(*args
, **kwargs
)
3541 def IsAttached(*args
, **kwargs
): return _core
.MenuBar_IsAttached(*args
, **kwargs
)
3542 def Attach(*args
, **kwargs
): return _core
.MenuBar_Attach(*args
, **kwargs
)
3543 def Detach(*args
, **kwargs
): return _core
.MenuBar_Detach(*args
, **kwargs
)
3545 return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3547 class MenuBarPtr(MenuBar
):
3548 def __init__(self
, this
):
3550 if not hasattr(self
,"thisown"): self
.thisown
= 0
3551 self
.__class
__ = MenuBar
3552 _core
.MenuBar_swigregister(MenuBarPtr
)
3554 #---------------------------------------------------------------------------
3556 class MenuItem(Object
):
3557 def __init__(self
, *args
, **kwargs
):
3558 newobj
= _core
.new_MenuItem(*args
, **kwargs
)
3559 self
.this
= newobj
.this
3562 def GetMenu(*args
, **kwargs
): return _core
.MenuItem_GetMenu(*args
, **kwargs
)
3563 def SetMenu(*args
, **kwargs
): return _core
.MenuItem_SetMenu(*args
, **kwargs
)
3564 def SetId(*args
, **kwargs
): return _core
.MenuItem_SetId(*args
, **kwargs
)
3565 def GetId(*args
, **kwargs
): return _core
.MenuItem_GetId(*args
, **kwargs
)
3566 def IsSeparator(*args
, **kwargs
): return _core
.MenuItem_IsSeparator(*args
, **kwargs
)
3567 def SetText(*args
, **kwargs
): return _core
.MenuItem_SetText(*args
, **kwargs
)
3568 def GetLabel(*args
, **kwargs
): return _core
.MenuItem_GetLabel(*args
, **kwargs
)
3569 def GetText(*args
, **kwargs
): return _core
.MenuItem_GetText(*args
, **kwargs
)
3570 GetLabelFromText
= staticmethod(_core
.MenuItem_GetLabelFromText
)
3571 def GetKind(*args
, **kwargs
): return _core
.MenuItem_GetKind(*args
, **kwargs
)
3572 def SetCheckable(*args
, **kwargs
): return _core
.MenuItem_SetCheckable(*args
, **kwargs
)
3573 def IsCheckable(*args
, **kwargs
): return _core
.MenuItem_IsCheckable(*args
, **kwargs
)
3574 def IsSubMenu(*args
, **kwargs
): return _core
.MenuItem_IsSubMenu(*args
, **kwargs
)
3575 def SetSubMenu(*args
, **kwargs
): return _core
.MenuItem_SetSubMenu(*args
, **kwargs
)
3576 def GetSubMenu(*args
, **kwargs
): return _core
.MenuItem_GetSubMenu(*args
, **kwargs
)
3577 def Enable(*args
, **kwargs
): return _core
.MenuItem_Enable(*args
, **kwargs
)
3578 def IsEnabled(*args
, **kwargs
): return _core
.MenuItem_IsEnabled(*args
, **kwargs
)
3579 def Check(*args
, **kwargs
): return _core
.MenuItem_Check(*args
, **kwargs
)
3580 def IsChecked(*args
, **kwargs
): return _core
.MenuItem_IsChecked(*args
, **kwargs
)
3581 def Toggle(*args
, **kwargs
): return _core
.MenuItem_Toggle(*args
, **kwargs
)
3582 def SetHelp(*args
, **kwargs
): return _core
.MenuItem_SetHelp(*args
, **kwargs
)
3583 def GetHelp(*args
, **kwargs
): return _core
.MenuItem_GetHelp(*args
, **kwargs
)
3584 def GetAccel(*args
, **kwargs
): return _core
.MenuItem_GetAccel(*args
, **kwargs
)
3585 def SetAccel(*args
, **kwargs
): return _core
.MenuItem_SetAccel(*args
, **kwargs
)
3586 def SetFont(*args
, **kwargs
): return _core
.MenuItem_SetFont(*args
, **kwargs
)
3587 def GetFont(*args
, **kwargs
): return _core
.MenuItem_GetFont(*args
, **kwargs
)
3588 def SetTextColour(*args
, **kwargs
): return _core
.MenuItem_SetTextColour(*args
, **kwargs
)
3589 def GetTextColour(*args
, **kwargs
): return _core
.MenuItem_GetTextColour(*args
, **kwargs
)
3590 def SetBackgroundColour(*args
, **kwargs
): return _core
.MenuItem_SetBackgroundColour(*args
, **kwargs
)
3591 def GetBackgroundColour(*args
, **kwargs
): return _core
.MenuItem_GetBackgroundColour(*args
, **kwargs
)
3592 def SetBitmaps(*args
, **kwargs
): return _core
.MenuItem_SetBitmaps(*args
, **kwargs
)
3593 def SetDisabledBitmap(*args
, **kwargs
): return _core
.MenuItem_SetDisabledBitmap(*args
, **kwargs
)
3594 def GetDisabledBitmap(*args
, **kwargs
): return _core
.MenuItem_GetDisabledBitmap(*args
, **kwargs
)
3595 def SetMarginWidth(*args
, **kwargs
): return _core
.MenuItem_SetMarginWidth(*args
, **kwargs
)
3596 def GetMarginWidth(*args
, **kwargs
): return _core
.MenuItem_GetMarginWidth(*args
, **kwargs
)
3597 GetDefaultMarginWidth
= staticmethod(_core
.MenuItem_GetDefaultMarginWidth
)
3598 def IsOwnerDrawn(*args
, **kwargs
): return _core
.MenuItem_IsOwnerDrawn(*args
, **kwargs
)
3599 def SetOwnerDrawn(*args
, **kwargs
): return _core
.MenuItem_SetOwnerDrawn(*args
, **kwargs
)
3600 def ResetOwnerDrawn(*args
, **kwargs
): return _core
.MenuItem_ResetOwnerDrawn(*args
, **kwargs
)
3601 def SetBitmap(*args
, **kwargs
): return _core
.MenuItem_SetBitmap(*args
, **kwargs
)
3602 def GetBitmap(*args
, **kwargs
): return _core
.MenuItem_GetBitmap(*args
, **kwargs
)
3604 return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3606 class MenuItemPtr(MenuItem
):
3607 def __init__(self
, this
):
3609 if not hasattr(self
,"thisown"): self
.thisown
= 0
3610 self
.__class
__ = MenuItem
3611 _core
.MenuItem_swigregister(MenuItemPtr
)
3613 MenuItem_GetLabelFromText
= _core
.MenuItem_GetLabelFromText
3615 MenuItem_GetDefaultMarginWidth
= _core
.MenuItem_GetDefaultMarginWidth
3617 #---------------------------------------------------------------------------
3619 class Control(Window
):
3620 def __init__(self
, *args
, **kwargs
):
3621 newobj
= _core
.new_Control(*args
, **kwargs
)
3622 self
.this
= newobj
.this
3625 self
._setOORInfo
(self
)
3626 def Create(*args
, **kwargs
): return _core
.Control_Create(*args
, **kwargs
)
3627 def Command(*args
, **kwargs
): return _core
.Control_Command(*args
, **kwargs
)
3628 def GetLabel(*args
, **kwargs
): return _core
.Control_GetLabel(*args
, **kwargs
)
3629 def SetLabel(*args
, **kwargs
): return _core
.Control_SetLabel(*args
, **kwargs
)
3631 return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3633 class ControlPtr(Control
):
3634 def __init__(self
, this
):
3636 if not hasattr(self
,"thisown"): self
.thisown
= 0
3637 self
.__class
__ = Control
3638 _core
.Control_swigregister(ControlPtr
)
3640 def PreControl(*args
, **kwargs
):
3641 val
= _core
.new_PreControl(*args
, **kwargs
)
3645 #---------------------------------------------------------------------------
3647 class ItemContainer(object):
3648 def Append(*args
, **kwargs
): return _core
.ItemContainer_Append(*args
, **kwargs
)
3649 def AppendItems(*args
, **kwargs
): return _core
.ItemContainer_AppendItems(*args
, **kwargs
)
3650 def Insert(*args
, **kwargs
): return _core
.ItemContainer_Insert(*args
, **kwargs
)
3651 def Clear(*args
, **kwargs
): return _core
.ItemContainer_Clear(*args
, **kwargs
)
3652 def Delete(*args
, **kwargs
): return _core
.ItemContainer_Delete(*args
, **kwargs
)
3653 def GetCount(*args
, **kwargs
): return _core
.ItemContainer_GetCount(*args
, **kwargs
)
3654 def IsEmpty(*args
, **kwargs
): return _core
.ItemContainer_IsEmpty(*args
, **kwargs
)
3655 def GetString(*args
, **kwargs
): return _core
.ItemContainer_GetString(*args
, **kwargs
)
3656 def GetStrings(*args
, **kwargs
): return _core
.ItemContainer_GetStrings(*args
, **kwargs
)
3657 def SetString(*args
, **kwargs
): return _core
.ItemContainer_SetString(*args
, **kwargs
)
3658 def FindString(*args
, **kwargs
): return _core
.ItemContainer_FindString(*args
, **kwargs
)
3659 def Select(*args
, **kwargs
): return _core
.ItemContainer_Select(*args
, **kwargs
)
3660 def GetSelection(*args
, **kwargs
): return _core
.ItemContainer_GetSelection(*args
, **kwargs
)
3661 def GetStringSelection(*args
, **kwargs
): return _core
.ItemContainer_GetStringSelection(*args
, **kwargs
)
3662 def GetClientData(*args
, **kwargs
): return _core
.ItemContainer_GetClientData(*args
, **kwargs
)
3663 def SetClientData(*args
, **kwargs
): return _core
.ItemContainer_SetClientData(*args
, **kwargs
)
3664 def __init__(self
): raise RuntimeError, "No constructor defined"
3666 return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3668 class ItemContainerPtr(ItemContainer
):
3669 def __init__(self
, this
):
3671 if not hasattr(self
,"thisown"): self
.thisown
= 0
3672 self
.__class
__ = ItemContainer
3673 _core
.ItemContainer_swigregister(ItemContainerPtr
)
3675 #---------------------------------------------------------------------------
3677 class ControlWithItems(Control
,ItemContainer
):
3678 def __init__(self
): raise RuntimeError, "No constructor defined"
3680 return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3682 class ControlWithItemsPtr(ControlWithItems
):
3683 def __init__(self
, this
):
3685 if not hasattr(self
,"thisown"): self
.thisown
= 0
3686 self
.__class
__ = ControlWithItems
3687 _core
.ControlWithItems_swigregister(ControlWithItemsPtr
)
3689 #---------------------------------------------------------------------------
3691 class SizerItem(Object
):
3692 def __init__(self
, *args
, **kwargs
):
3693 newobj
= _core
.new_SizerItem(*args
, **kwargs
)
3694 self
.this
= newobj
.this
3697 def DeleteWindows(*args
, **kwargs
): return _core
.SizerItem_DeleteWindows(*args
, **kwargs
)
3698 def DetachSizer(*args
, **kwargs
): return _core
.SizerItem_DetachSizer(*args
, **kwargs
)
3699 def GetSize(*args
, **kwargs
): return _core
.SizerItem_GetSize(*args
, **kwargs
)
3700 def CalcMin(*args
, **kwargs
): return _core
.SizerItem_CalcMin(*args
, **kwargs
)
3701 def SetDimension(*args
, **kwargs
): return _core
.SizerItem_SetDimension(*args
, **kwargs
)
3702 def GetMinSize(*args
, **kwargs
): return _core
.SizerItem_GetMinSize(*args
, **kwargs
)
3703 def SetInitSize(*args
, **kwargs
): return _core
.SizerItem_SetInitSize(*args
, **kwargs
)
3704 def SetRatioWH(*args
, **kwargs
): return _core
.SizerItem_SetRatioWH(*args
, **kwargs
)
3705 def SetRatioSize(*args
, **kwargs
): return _core
.SizerItem_SetRatioSize(*args
, **kwargs
)
3706 def SetRatio(*args
, **kwargs
): return _core
.SizerItem_SetRatio(*args
, **kwargs
)
3707 def GetRatio(*args
, **kwargs
): return _core
.SizerItem_GetRatio(*args
, **kwargs
)
3708 def IsWindow(*args
, **kwargs
): return _core
.SizerItem_IsWindow(*args
, **kwargs
)
3709 def IsSizer(*args
, **kwargs
): return _core
.SizerItem_IsSizer(*args
, **kwargs
)
3710 def IsSpacer(*args
, **kwargs
): return _core
.SizerItem_IsSpacer(*args
, **kwargs
)
3711 def SetProportion(*args
, **kwargs
): return _core
.SizerItem_SetProportion(*args
, **kwargs
)
3712 def GetProportion(*args
, **kwargs
): return _core
.SizerItem_GetProportion(*args
, **kwargs
)
3713 def SetFlag(*args
, **kwargs
): return _core
.SizerItem_SetFlag(*args
, **kwargs
)
3714 def GetFlag(*args
, **kwargs
): return _core
.SizerItem_GetFlag(*args
, **kwargs
)
3715 def SetBorder(*args
, **kwargs
): return _core
.SizerItem_SetBorder(*args
, **kwargs
)
3716 def GetBorder(*args
, **kwargs
): return _core
.SizerItem_GetBorder(*args
, **kwargs
)
3717 def GetWindow(*args
, **kwargs
): return _core
.SizerItem_GetWindow(*args
, **kwargs
)
3718 def SetWindow(*args
, **kwargs
): return _core
.SizerItem_SetWindow(*args
, **kwargs
)
3719 def GetSizer(*args
, **kwargs
): return _core
.SizerItem_GetSizer(*args
, **kwargs
)
3720 def SetSizer(*args
, **kwargs
): return _core
.SizerItem_SetSizer(*args
, **kwargs
)
3721 def GetSpacer(*args
, **kwargs
): return _core
.SizerItem_GetSpacer(*args
, **kwargs
)
3722 def SetSpacer(*args
, **kwargs
): return _core
.SizerItem_SetSpacer(*args
, **kwargs
)
3723 def Show(*args
, **kwargs
): return _core
.SizerItem_Show(*args
, **kwargs
)
3724 def IsShown(*args
, **kwargs
): return _core
.SizerItem_IsShown(*args
, **kwargs
)
3725 def GetPosition(*args
, **kwargs
): return _core
.SizerItem_GetPosition(*args
, **kwargs
)
3726 def GetUserData(*args
, **kwargs
): return _core
.SizerItem_GetUserData(*args
, **kwargs
)
3728 return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3730 class SizerItemPtr(SizerItem
):
3731 def __init__(self
, this
):
3733 if not hasattr(self
,"thisown"): self
.thisown
= 0
3734 self
.__class
__ = SizerItem
3735 _core
.SizerItem_swigregister(SizerItemPtr
)
3737 def SizerItemSpacer(*args
, **kwargs
):
3738 val
= _core
.new_SizerItemSpacer(*args
, **kwargs
)
3742 def SizerItemWindow(*args
, **kwargs
):
3743 val
= _core
.new_SizerItemWindow(*args
, **kwargs
)
3747 def SizerItemSizer(*args
, **kwargs
):
3748 val
= _core
.new_SizerItemSizer(*args
, **kwargs
)
3752 class Sizer(Object
):
3753 def _setOORInfo(*args
, **kwargs
): return _core
.Sizer__setOORInfo(*args
, **kwargs
)
3754 def Add(*args
, **kwargs
): return _core
.Sizer_Add(*args
, **kwargs
)
3755 def Insert(*args
, **kwargs
): return _core
.Sizer_Insert(*args
, **kwargs
)
3756 def Prepend(*args
, **kwargs
): return _core
.Sizer_Prepend(*args
, **kwargs
)
3757 def Remove(*args
, **kwargs
): return _core
.Sizer_Remove(*args
, **kwargs
)
3758 def _SetItemMinSize(*args
, **kwargs
): return _core
.Sizer__SetItemMinSize(*args
, **kwargs
)
3759 def AddItem(*args
, **kwargs
): return _core
.Sizer_AddItem(*args
, **kwargs
)
3760 def InsertItem(*args
, **kwargs
): return _core
.Sizer_InsertItem(*args
, **kwargs
)
3761 def PrependItem(*args
, **kwargs
): return _core
.Sizer_PrependItem(*args
, **kwargs
)
3762 def AddMany(self
, widgets
):
3763 for childinfo
in widgets
:
3764 if type(childinfo
) != type(()):
3765 childinfo
= (childinfo
, )
3766 self
.Add(*childinfo
)
3769 AddWindow
= AddSizer
= AddSpacer
= Add
3770 PrependWindow
= PrependSizer
= PrependSpacer
= Prepend
3771 InsertWindow
= InsertSizer
= InsertSpacer
= Insert
3772 RemoveWindow
= RemoveSizer
= RemovePos
= Remove
3775 def SetItemMinSize(self
, item
, *args
):
3777 return self
._SetItemMinSize
(item
, args
)
3779 return self
._SetItemMinSize
(item
, args
[0])
3781 def SetDimension(*args
, **kwargs
): return _core
.Sizer_SetDimension(*args
, **kwargs
)
3782 def SetMinSize(*args
, **kwargs
): return _core
.Sizer_SetMinSize(*args
, **kwargs
)
3783 def GetSize(*args
, **kwargs
): return _core
.Sizer_GetSize(*args
, **kwargs
)
3784 def GetPosition(*args
, **kwargs
): return _core
.Sizer_GetPosition(*args
, **kwargs
)
3785 def GetMinSize(*args
, **kwargs
): return _core
.Sizer_GetMinSize(*args
, **kwargs
)
3786 def GetSizeTuple(self
):
3787 return self
.GetSize().asTuple()
3788 def GetPositionTuple(self
):
3789 return self
.GetPosition().asTuple()
3790 def GetMinSizeTuple(self
):
3791 return self
.GetMinSize().asTuple()
3793 def RecalcSizes(*args
, **kwargs
): return _core
.Sizer_RecalcSizes(*args
, **kwargs
)
3794 def CalcMin(*args
, **kwargs
): return _core
.Sizer_CalcMin(*args
, **kwargs
)
3795 def Layout(*args
, **kwargs
): return _core
.Sizer_Layout(*args
, **kwargs
)
3796 def Fit(*args
, **kwargs
): return _core
.Sizer_Fit(*args
, **kwargs
)
3797 def FitInside(*args
, **kwargs
): return _core
.Sizer_FitInside(*args
, **kwargs
)
3798 def SetSizeHints(*args
, **kwargs
): return _core
.Sizer_SetSizeHints(*args
, **kwargs
)
3799 def SetVirtualSizeHints(*args
, **kwargs
): return _core
.Sizer_SetVirtualSizeHints(*args
, **kwargs
)
3800 def Clear(*args
, **kwargs
): return _core
.Sizer_Clear(*args
, **kwargs
)
3801 def DeleteWindows(*args
, **kwargs
): return _core
.Sizer_DeleteWindows(*args
, **kwargs
)
3802 def GetChildren(*args
, **kwargs
): return _core
.Sizer_GetChildren(*args
, **kwargs
)
3803 def Show(*args
, **kwargs
): return _core
.Sizer_Show(*args
, **kwargs
)
3804 def Hide(*args
, **kwargs
): return _core
.Sizer_Hide(*args
, **kwargs
)
3805 def IsShown(*args
, **kwargs
): return _core
.Sizer_IsShown(*args
, **kwargs
)
3806 def ShowItems(*args
, **kwargs
): return _core
.Sizer_ShowItems(*args
, **kwargs
)
3807 def __init__(self
): raise RuntimeError, "No constructor defined"
3809 return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3811 class SizerPtr(Sizer
):
3812 def __init__(self
, this
):
3814 if not hasattr(self
,"thisown"): self
.thisown
= 0
3815 self
.__class
__ = Sizer
3816 _core
.Sizer_swigregister(SizerPtr
)
3818 class PySizer(Sizer
):
3819 def __init__(self
, *args
, **kwargs
):
3820 newobj
= _core
.new_PySizer(*args
, **kwargs
)
3821 self
.this
= newobj
.this
3824 self
._setCallbackInfo
(self
, PySizer
);self
._setOORInfo
(self
)
3825 def _setCallbackInfo(*args
, **kwargs
): return _core
.PySizer__setCallbackInfo(*args
, **kwargs
)
3827 return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3829 class PySizerPtr(PySizer
):
3830 def __init__(self
, this
):
3832 if not hasattr(self
,"thisown"): self
.thisown
= 0
3833 self
.__class
__ = PySizer
3834 _core
.PySizer_swigregister(PySizerPtr
)
3836 #---------------------------------------------------------------------------
3838 class BoxSizer(Sizer
):
3839 def __init__(self
, *args
, **kwargs
):
3840 newobj
= _core
.new_BoxSizer(*args
, **kwargs
)
3841 self
.this
= newobj
.this
3844 self
._setOORInfo
(self
)
3845 def GetOrientation(*args
, **kwargs
): return _core
.BoxSizer_GetOrientation(*args
, **kwargs
)
3846 def SetOrientation(*args
, **kwargs
): return _core
.BoxSizer_SetOrientation(*args
, **kwargs
)
3847 def RecalcSizes(*args
, **kwargs
): return _core
.BoxSizer_RecalcSizes(*args
, **kwargs
)
3848 def CalcMin(*args
, **kwargs
): return _core
.BoxSizer_CalcMin(*args
, **kwargs
)
3850 return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3852 class BoxSizerPtr(BoxSizer
):
3853 def __init__(self
, this
):
3855 if not hasattr(self
,"thisown"): self
.thisown
= 0
3856 self
.__class
__ = BoxSizer
3857 _core
.BoxSizer_swigregister(BoxSizerPtr
)
3859 #---------------------------------------------------------------------------
3861 class StaticBoxSizer(BoxSizer
):
3862 def __init__(self
, *args
, **kwargs
):
3863 newobj
= _core
.new_StaticBoxSizer(*args
, **kwargs
)
3864 self
.this
= newobj
.this
3867 self
._setOORInfo
(self
)
3868 def GetStaticBox(*args
, **kwargs
): return _core
.StaticBoxSizer_GetStaticBox(*args
, **kwargs
)
3869 def RecalcSizes(*args
, **kwargs
): return _core
.StaticBoxSizer_RecalcSizes(*args
, **kwargs
)
3870 def CalcMin(*args
, **kwargs
): return _core
.StaticBoxSizer_CalcMin(*args
, **kwargs
)
3872 return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3874 class StaticBoxSizerPtr(StaticBoxSizer
):
3875 def __init__(self
, this
):
3877 if not hasattr(self
,"thisown"): self
.thisown
= 0
3878 self
.__class
__ = StaticBoxSizer
3879 _core
.StaticBoxSizer_swigregister(StaticBoxSizerPtr
)
3881 #---------------------------------------------------------------------------
3883 class GridSizer(Sizer
):
3884 def __init__(self
, *args
, **kwargs
):
3885 newobj
= _core
.new_GridSizer(*args
, **kwargs
)
3886 self
.this
= newobj
.this
3889 self
._setOORInfo
(self
)
3890 def RecalcSizes(*args
, **kwargs
): return _core
.GridSizer_RecalcSizes(*args
, **kwargs
)
3891 def CalcMin(*args
, **kwargs
): return _core
.GridSizer_CalcMin(*args
, **kwargs
)
3892 def SetCols(*args
, **kwargs
): return _core
.GridSizer_SetCols(*args
, **kwargs
)
3893 def SetRows(*args
, **kwargs
): return _core
.GridSizer_SetRows(*args
, **kwargs
)
3894 def SetVGap(*args
, **kwargs
): return _core
.GridSizer_SetVGap(*args
, **kwargs
)
3895 def SetHGap(*args
, **kwargs
): return _core
.GridSizer_SetHGap(*args
, **kwargs
)
3896 def GetCols(*args
, **kwargs
): return _core
.GridSizer_GetCols(*args
, **kwargs
)
3897 def GetRows(*args
, **kwargs
): return _core
.GridSizer_GetRows(*args
, **kwargs
)
3898 def GetVGap(*args
, **kwargs
): return _core
.GridSizer_GetVGap(*args
, **kwargs
)
3899 def GetHGap(*args
, **kwargs
): return _core
.GridSizer_GetHGap(*args
, **kwargs
)
3901 return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3903 class GridSizerPtr(GridSizer
):
3904 def __init__(self
, this
):
3906 if not hasattr(self
,"thisown"): self
.thisown
= 0
3907 self
.__class
__ = GridSizer
3908 _core
.GridSizer_swigregister(GridSizerPtr
)
3910 #---------------------------------------------------------------------------
3912 FLEX_GROWMODE_NONE
= _core
.FLEX_GROWMODE_NONE
3913 FLEX_GROWMODE_SPECIFIED
= _core
.FLEX_GROWMODE_SPECIFIED
3914 FLEX_GROWMODE_ALL
= _core
.FLEX_GROWMODE_ALL
3915 class FlexGridSizer(GridSizer
):
3916 def __init__(self
, *args
, **kwargs
):
3917 newobj
= _core
.new_FlexGridSizer(*args
, **kwargs
)
3918 self
.this
= newobj
.this
3921 self
._setOORInfo
(self
)
3922 def RecalcSizes(*args
, **kwargs
): return _core
.FlexGridSizer_RecalcSizes(*args
, **kwargs
)
3923 def CalcMin(*args
, **kwargs
): return _core
.FlexGridSizer_CalcMin(*args
, **kwargs
)
3924 def AddGrowableRow(*args
, **kwargs
): return _core
.FlexGridSizer_AddGrowableRow(*args
, **kwargs
)
3925 def RemoveGrowableRow(*args
, **kwargs
): return _core
.FlexGridSizer_RemoveGrowableRow(*args
, **kwargs
)
3926 def AddGrowableCol(*args
, **kwargs
): return _core
.FlexGridSizer_AddGrowableCol(*args
, **kwargs
)
3927 def RemoveGrowableCol(*args
, **kwargs
): return _core
.FlexGridSizer_RemoveGrowableCol(*args
, **kwargs
)
3928 def SetFlexibleDirection(*args
, **kwargs
): return _core
.FlexGridSizer_SetFlexibleDirection(*args
, **kwargs
)
3929 def GetFlexibleDirection(*args
, **kwargs
): return _core
.FlexGridSizer_GetFlexibleDirection(*args
, **kwargs
)
3930 def SetNonFlexibleGrowMode(*args
, **kwargs
): return _core
.FlexGridSizer_SetNonFlexibleGrowMode(*args
, **kwargs
)
3931 def GetNonFlexibleGrowMode(*args
, **kwargs
): return _core
.FlexGridSizer_GetNonFlexibleGrowMode(*args
, **kwargs
)
3933 return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3935 class FlexGridSizerPtr(FlexGridSizer
):
3936 def __init__(self
, this
):
3938 if not hasattr(self
,"thisown"): self
.thisown
= 0
3939 self
.__class
__ = FlexGridSizer
3940 _core
.FlexGridSizer_swigregister(FlexGridSizerPtr
)
3942 #---------------------------------------------------------------------------
3944 class GBPosition(object):
3945 def __init__(self
, *args
, **kwargs
):
3946 newobj
= _core
.new_GBPosition(*args
, **kwargs
)
3947 self
.this
= newobj
.this
3950 def GetRow(*args
, **kwargs
): return _core
.GBPosition_GetRow(*args
, **kwargs
)
3951 def GetCol(*args
, **kwargs
): return _core
.GBPosition_GetCol(*args
, **kwargs
)
3952 def SetRow(*args
, **kwargs
): return _core
.GBPosition_SetRow(*args
, **kwargs
)
3953 def SetCol(*args
, **kwargs
): return _core
.GBPosition_SetCol(*args
, **kwargs
)
3954 def __eq__(*args
, **kwargs
): return _core
.GBPosition___eq__(*args
, **kwargs
)
3955 def __ne__(*args
, **kwargs
): return _core
.GBPosition___ne__(*args
, **kwargs
)
3956 def asTuple(*args
, **kwargs
): return _core
.GBPosition_asTuple(*args
, **kwargs
)
3957 def __str__(self
): return str(self
.asTuple())
3958 def __repr__(self
): return 'wxGBPosition'+str(self
.asTuple())
3959 def __len__(self
): return len(self
.asTuple())
3960 def __getitem__(self
, index
): return self
.asTuple()[index
]
3961 def __setitem__(self
, index
, val
):
3962 if index
== 0: self
.SetRow(val
)
3963 elif index
== 1: self
.SetCol(val
)
3964 else: raise IndexError
3965 def __nonzero__(self
): return self
.asTuple() != (0,0)
3966 def __getinitargs__(self
): return ()
3967 def __getstate__(self
): return self
.asTuple()
3968 def __setstate__(self
, state
): self
.Set(*state
)
3970 row
= property(GetRow
, SetRow
)
3971 col
= property(GetCol
, SetCol
)
3974 class GBPositionPtr(GBPosition
):
3975 def __init__(self
, this
):
3977 if not hasattr(self
,"thisown"): self
.thisown
= 0
3978 self
.__class
__ = GBPosition
3979 _core
.GBPosition_swigregister(GBPositionPtr
)
3981 class GBSpan(object):
3982 def __init__(self
, *args
, **kwargs
):
3983 newobj
= _core
.new_GBSpan(*args
, **kwargs
)
3984 self
.this
= newobj
.this
3987 def GetRowspan(*args
, **kwargs
): return _core
.GBSpan_GetRowspan(*args
, **kwargs
)
3988 def GetColspan(*args
, **kwargs
): return _core
.GBSpan_GetColspan(*args
, **kwargs
)
3989 def SetRowspan(*args
, **kwargs
): return _core
.GBSpan_SetRowspan(*args
, **kwargs
)
3990 def SetColspan(*args
, **kwargs
): return _core
.GBSpan_SetColspan(*args
, **kwargs
)
3991 def __eq__(*args
, **kwargs
): return _core
.GBSpan___eq__(*args
, **kwargs
)
3992 def __ne__(*args
, **kwargs
): return _core
.GBSpan___ne__(*args
, **kwargs
)
3993 def asTuple(*args
, **kwargs
): return _core
.GBSpan_asTuple(*args
, **kwargs
)
3994 def __str__(self
): return str(self
.asTuple())
3995 def __repr__(self
): return 'wxGBSpan'+str(self
.asTuple())
3996 def __len__(self
): return len(self
.asTuple())
3997 def __getitem__(self
, index
): return self
.asTuple()[index
]
3998 def __setitem__(self
, index
, val
):
3999 if index
== 0: self
.SetRowspan(val
)
4000 elif index
== 1: self
.SetColspan(val
)
4001 else: raise IndexError
4002 def __nonzero__(self
): return self
.asTuple() != (0,0)
4003 def __getinitargs__(self
): return ()
4004 def __getstate__(self
): return self
.asTuple()
4005 def __setstate__(self
, state
): self
.Set(*state
)
4007 rowspan
= property(GetRowspan
, SetRowspan
)
4008 colspan
= property(GetColspan
, SetColspan
)
4011 class GBSpanPtr(GBSpan
):
4012 def __init__(self
, this
):
4014 if not hasattr(self
,"thisown"): self
.thisown
= 0
4015 self
.__class
__ = GBSpan
4016 _core
.GBSpan_swigregister(GBSpanPtr
)
4018 class GBSizerItem(SizerItem
):
4019 def __init__(self
, *args
, **kwargs
):
4020 newobj
= _core
.new_GBSizerItem(*args
, **kwargs
)
4021 self
.this
= newobj
.this
4024 def GetPos(*args
, **kwargs
): return _core
.GBSizerItem_GetPos(*args
, **kwargs
)
4025 def GetPosTuple(self
): return self
.GetPos().asTuple()
4026 def GetSpan(*args
, **kwargs
): return _core
.GBSizerItem_GetSpan(*args
, **kwargs
)
4027 def GetSpanTuple(self
): return self
.GetSpan().asTuple()
4028 def SetPos(*args
, **kwargs
): return _core
.GBSizerItem_SetPos(*args
, **kwargs
)
4029 def SetSpan(*args
, **kwargs
): return _core
.GBSizerItem_SetSpan(*args
, **kwargs
)
4030 def Intersects(*args
): return _core
.GBSizerItem_Intersects(*args
)
4031 def GetEndPos(*args
, **kwargs
): return _core
.GBSizerItem_GetEndPos(*args
, **kwargs
)
4032 def GetGBSizer(*args
, **kwargs
): return _core
.GBSizerItem_GetGBSizer(*args
, **kwargs
)
4033 def SetGBSizer(*args
, **kwargs
): return _core
.GBSizerItem_SetGBSizer(*args
, **kwargs
)
4035 return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4037 class GBSizerItemPtr(GBSizerItem
):
4038 def __init__(self
, this
):
4040 if not hasattr(self
,"thisown"): self
.thisown
= 0
4041 self
.__class
__ = GBSizerItem
4042 _core
.GBSizerItem_swigregister(GBSizerItemPtr
)
4043 DefaultSpan
= cvar
.DefaultSpan
4045 def GBSizerItemWindow(*args
, **kwargs
):
4046 val
= _core
.new_GBSizerItemWindow(*args
, **kwargs
)
4050 def GBSizerItemSizer(*args
, **kwargs
):
4051 val
= _core
.new_GBSizerItemSizer(*args
, **kwargs
)
4055 def GBSizerItemSpacer(*args
, **kwargs
):
4056 val
= _core
.new_GBSizerItemSpacer(*args
, **kwargs
)
4060 class GridBagSizer(FlexGridSizer
):
4061 def __init__(self
, *args
, **kwargs
):
4062 newobj
= _core
.new_GridBagSizer(*args
, **kwargs
)
4063 self
.this
= newobj
.this
4066 def Add(*args
, **kwargs
): return _core
.GridBagSizer_Add(*args
, **kwargs
)
4067 def AddItem(*args
, **kwargs
): return _core
.GridBagSizer_AddItem(*args
, **kwargs
)
4068 def GetEmptyCellSize(*args
, **kwargs
): return _core
.GridBagSizer_GetEmptyCellSize(*args
, **kwargs
)
4069 def SetEmptyCellSize(*args
, **kwargs
): return _core
.GridBagSizer_SetEmptyCellSize(*args
, **kwargs
)
4070 def GetItemPosition(*args
): return _core
.GridBagSizer_GetItemPosition(*args
)
4071 def SetItemPosition(*args
): return _core
.GridBagSizer_SetItemPosition(*args
)
4072 def GetItemSpan(*args
): return _core
.GridBagSizer_GetItemSpan(*args
)
4073 def SetItemSpan(*args
): return _core
.GridBagSizer_SetItemSpan(*args
)
4074 def FindItem(*args
): return _core
.GridBagSizer_FindItem(*args
)
4075 def FindItemAtPosition(*args
, **kwargs
): return _core
.GridBagSizer_FindItemAtPosition(*args
, **kwargs
)
4076 def FindItemWithData(*args
, **kwargs
): return _core
.GridBagSizer_FindItemWithData(*args
, **kwargs
)
4077 def RecalcSizes(*args
, **kwargs
): return _core
.GridBagSizer_RecalcSizes(*args
, **kwargs
)
4078 def CalcMin(*args
, **kwargs
): return _core
.GridBagSizer_CalcMin(*args
, **kwargs
)
4079 def CheckForIntersection(*args
): return _core
.GridBagSizer_CheckForIntersection(*args
)
4081 return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4083 class GridBagSizerPtr(GridBagSizer
):
4084 def __init__(self
, this
):
4086 if not hasattr(self
,"thisown"): self
.thisown
= 0
4087 self
.__class
__ = GridBagSizer
4088 _core
.GridBagSizer_swigregister(GridBagSizerPtr
)
4090 #---------------------------------------------------------------------------
4095 Bottom
= _core
.Bottom
4097 Height
= _core
.Height
4098 Centre
= _core
.Centre
4099 Center
= _core
.Center
4100 CentreX
= _core
.CentreX
4101 CentreY
= _core
.CentreY
4102 Unconstrained
= _core
.Unconstrained
4104 PercentOf
= _core
.PercentOf
4107 LeftOf
= _core
.LeftOf
4108 RightOf
= _core
.RightOf
4109 SameAs
= _core
.SameAs
4110 Absolute
= _core
.Absolute
4111 class IndividualLayoutConstraint(Object
):
4112 def Set(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_Set(*args
, **kwargs
)
4113 def LeftOf(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_LeftOf(*args
, **kwargs
)
4114 def RightOf(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_RightOf(*args
, **kwargs
)
4115 def Above(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_Above(*args
, **kwargs
)
4116 def Below(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_Below(*args
, **kwargs
)
4117 def SameAs(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_SameAs(*args
, **kwargs
)
4118 def PercentOf(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_PercentOf(*args
, **kwargs
)
4119 def Absolute(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_Absolute(*args
, **kwargs
)
4120 def Unconstrained(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_Unconstrained(*args
, **kwargs
)
4121 def AsIs(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_AsIs(*args
, **kwargs
)
4122 def GetOtherWindow(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetOtherWindow(*args
, **kwargs
)
4123 def GetMyEdge(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetMyEdge(*args
, **kwargs
)
4124 def SetEdge(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_SetEdge(*args
, **kwargs
)
4125 def SetValue(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_SetValue(*args
, **kwargs
)
4126 def GetMargin(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetMargin(*args
, **kwargs
)
4127 def SetMargin(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_SetMargin(*args
, **kwargs
)
4128 def GetValue(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetValue(*args
, **kwargs
)
4129 def GetPercent(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetPercent(*args
, **kwargs
)
4130 def GetOtherEdge(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetOtherEdge(*args
, **kwargs
)
4131 def GetDone(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetDone(*args
, **kwargs
)
4132 def SetDone(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_SetDone(*args
, **kwargs
)
4133 def GetRelationship(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetRelationship(*args
, **kwargs
)
4134 def SetRelationship(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_SetRelationship(*args
, **kwargs
)
4135 def ResetIfWin(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_ResetIfWin(*args
, **kwargs
)
4136 def SatisfyConstraint(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_SatisfyConstraint(*args
, **kwargs
)
4137 def GetEdge(*args
, **kwargs
): return _core
.IndividualLayoutConstraint_GetEdge(*args
, **kwargs
)
4138 def __init__(self
): raise RuntimeError, "No constructor defined"
4140 return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4142 class IndividualLayoutConstraintPtr(IndividualLayoutConstraint
):
4143 def __init__(self
, this
):
4145 if not hasattr(self
,"thisown"): self
.thisown
= 0
4146 self
.__class
__ = IndividualLayoutConstraint
4147 _core
.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr
)
4149 class LayoutConstraints(Object
):
4150 left
= property(_core
.LayoutConstraints_left_get
)
4151 top
= property(_core
.LayoutConstraints_top_get
)
4152 right
= property(_core
.LayoutConstraints_right_get
)
4153 bottom
= property(_core
.LayoutConstraints_bottom_get
)
4154 width
= property(_core
.LayoutConstraints_width_get
)
4155 height
= property(_core
.LayoutConstraints_height_get
)
4156 centreX
= property(_core
.LayoutConstraints_centreX_get
)
4157 centreY
= property(_core
.LayoutConstraints_centreY_get
)
4158 def __init__(self
, *args
, **kwargs
):
4159 newobj
= _core
.new_LayoutConstraints(*args
, **kwargs
)
4160 self
.this
= newobj
.this
4163 def SatisfyConstraints(*args
, **kwargs
): return _core
.LayoutConstraints_SatisfyConstraints(*args
, **kwargs
)
4164 def AreSatisfied(*args
, **kwargs
): return _core
.LayoutConstraints_AreSatisfied(*args
, **kwargs
)
4166 return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4168 class LayoutConstraintsPtr(LayoutConstraints
):
4169 def __init__(self
, this
):
4171 if not hasattr(self
,"thisown"): self
.thisown
= 0
4172 self
.__class
__ = LayoutConstraints
4173 _core
.LayoutConstraints_swigregister(LayoutConstraintsPtr
)
4175 #----------------------------------------------------------------------------
4177 # Use Python's bool constants if available, make aliases if not
4184 # Backwards compaatibility
4186 FALSE
= false
= False
4189 # workarounds for bad wxRTTI names
4190 __wxPyPtrTypeMap
['wxGauge95'] = 'wxGauge'
4191 __wxPyPtrTypeMap
['wxSlider95'] = 'wxSlider'
4192 __wxPyPtrTypeMap
['wxStatusBar95'] = 'wxStatusBar'
4195 #----------------------------------------------------------------------------
4196 # Load version numbers from __version__... Ensure that major and minor
4197 # versions are the same for both wxPython and wxWindows.
4199 from __version__
import *
4200 __version__
= VERSION_STRING
4202 assert MAJOR_VERSION
== _core
.MAJOR_VERSION
, "wxPython/wxWindows version mismatch"
4203 assert MINOR_VERSION
== _core
.MINOR_VERSION
, "wxPython/wxWindows version mismatch"
4204 if RELEASE_VERSION
!= _core
.RELEASE_VERSION
:
4206 warnings
.warn("wxPython/wxWindows release number mismatch")
4208 #----------------------------------------------------------------------------
4210 class PyDeadObjectError(AttributeError):
4214 class _wxPyDeadObject(object):
4216 Instances of wx objects that are OOR capable will have their __class__
4217 changed to this class when the C++ object is deleted. This should help
4218 prevent crashes due to referencing a bogus C++ pointer.
4220 reprStr
= "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)"
4221 attrStr
= "The C++ part of the %s object has been deleted, attribute access no longer allowed."
4223 def __repr__( self
):
4224 if not hasattr(self
, "_name"):
4225 self
._name
= "[unknown]"
4226 return self
.reprStr
% self
._name
4228 def __getattr__( self
, *args
):
4229 if not hasattr(self
, "_name"):
4230 self
._name
= "[unknown]"
4231 raise PyDeadObjectError( self
.attrStr
% self
._name
)
4233 def __nonzero__(self
):
4237 #----------------------------------------------------------------------------
4238 _wxPyCallAfterId
= None
4240 def CallAfter(callable, *args
, **kw
):
4242 Call the specified function after the current and pending event
4243 handlers have been completed. This is also good for making GUI
4244 method calls from non-GUI threads.
4247 assert app
, 'No wxApp created yet'
4249 global _wxPyCallAfterId
4250 if _wxPyCallAfterId
is None:
4251 _wxPyCallAfterId
= wx
.NewEventType()
4252 app
.Connect(-1, -1, _wxPyCallAfterId
,
4253 lambda event
: event
.callable(*event
.args
, **event
.kw
) )
4255 evt
.SetEventType(_wxPyCallAfterId
)
4256 evt
.callable = callable
4259 wx
.PostEvent(app
, evt
)
4262 #----------------------------------------------------------------------------
4267 A convenience class for wxTimer, that calls the given callable
4268 object once after the given amount of milliseconds, passing any
4269 positional or keyword args. The return value of the callable is
4270 availbale after it has been run with the GetResult method.
4272 If you don't need to get the return value or restart the timer
4273 then there is no need to hold a reference to this object. It will
4274 hold a reference to itself while the timer is running (the timer
4275 has a reference to self.Notify) but the cycle will be broken when
4276 the timer completes, automatically cleaning up the wx.FutureCall
4279 def __init__(self
, millis
, callable, *args
, **kwargs
):
4280 self
.millis
= millis
4281 self
.callable = callable
4282 self
.SetArgs(*args
, **kwargs
)
4293 def Start(self
, millis
=None, *args
, **kwargs
):
4298 if millis
is not None:
4299 self
.millis
= millis
4301 self
.SetArgs(*args
, **kwargs
)
4303 self
.timer
= wx
.PyTimer(self
.Notify
)
4304 self
.timer
.Start(self
.millis
, wx
.TIMER_ONE_SHOT
)
4310 Stop and destroy the timer.
4312 if self
.timer
is not None:
4317 def GetInterval(self
):
4318 if self
.timer
is not None:
4319 return self
.timer
.GetInterval()
4324 def IsRunning(self
):
4325 return self
.timer
is not None and self
.timer
.IsRunning()
4328 def SetArgs(self
, *args
, **kwargs
):
4330 (Re)set the args passed to the callable object. This is
4331 useful in conjunction with Restart if you want to schedule a
4332 new call to the same callable object but with different
4336 self
.kwargs
= kwargs
4342 def GetResult(self
):
4347 The timer has expired so call the callable.
4349 if self
.callable and getattr(self
.callable, 'im_self', True):
4351 self
.result
= self
.callable(*self
.args
, **self
.kwargs
)
4353 wx
.CallAfter(self
.Stop
)
4356 #----------------------------------------------------------------------------
4357 #----------------------------------------------------------------------------
4359 # Import other modules in this package that should show up in the
4360 # "core" wx namespace
4362 from windows
import *
4363 from controls
import *
4366 #----------------------------------------------------------------------------
4367 #----------------------------------------------------------------------------