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 FULL_REPAINT_ON_RESIZE
= _core
.FULL_REPAINT_ON_RESIZE
237 LI_HORIZONTAL
= _core
.LI_HORIZONTAL
238 LI_VERTICAL
= _core
.LI_VERTICAL
239 WS_EX_VALIDATE_RECURSIVELY
= _core
.WS_EX_VALIDATE_RECURSIVELY
240 WS_EX_BLOCK_EVENTS
= _core
.WS_EX_BLOCK_EVENTS
241 WS_EX_TRANSIENT
= _core
.WS_EX_TRANSIENT
242 WS_EX_THEMED_BACKGROUND
= _core
.WS_EX_THEMED_BACKGROUND
243 WS_EX_PROCESS_IDLE
= _core
.WS_EX_PROCESS_IDLE
244 WS_EX_PROCESS_UI_UPDATES
= _core
.WS_EX_PROCESS_UI_UPDATES
245 MM_TEXT
= _core
.MM_TEXT
246 MM_LOMETRIC
= _core
.MM_LOMETRIC
247 MM_HIMETRIC
= _core
.MM_HIMETRIC
248 MM_LOENGLISH
= _core
.MM_LOENGLISH
249 MM_HIENGLISH
= _core
.MM_HIENGLISH
250 MM_TWIPS
= _core
.MM_TWIPS
251 MM_ISOTROPIC
= _core
.MM_ISOTROPIC
252 MM_ANISOTROPIC
= _core
.MM_ANISOTROPIC
253 MM_POINTS
= _core
.MM_POINTS
254 MM_METRIC
= _core
.MM_METRIC
255 CENTRE
= _core
.CENTRE
256 CENTER
= _core
.CENTER
257 HORIZONTAL
= _core
.HORIZONTAL
258 VERTICAL
= _core
.VERTICAL
265 BOTTOM
= _core
.BOTTOM
271 ALIGN_NOT
= _core
.ALIGN_NOT
272 ALIGN_CENTER_HORIZONTAL
= _core
.ALIGN_CENTER_HORIZONTAL
273 ALIGN_CENTRE_HORIZONTAL
= _core
.ALIGN_CENTRE_HORIZONTAL
274 ALIGN_LEFT
= _core
.ALIGN_LEFT
275 ALIGN_TOP
= _core
.ALIGN_TOP
276 ALIGN_RIGHT
= _core
.ALIGN_RIGHT
277 ALIGN_BOTTOM
= _core
.ALIGN_BOTTOM
278 ALIGN_CENTER_VERTICAL
= _core
.ALIGN_CENTER_VERTICAL
279 ALIGN_CENTRE_VERTICAL
= _core
.ALIGN_CENTRE_VERTICAL
280 ALIGN_CENTER
= _core
.ALIGN_CENTER
281 ALIGN_CENTRE
= _core
.ALIGN_CENTRE
282 ALIGN_MASK
= _core
.ALIGN_MASK
283 STRETCH_NOT
= _core
.STRETCH_NOT
284 SHRINK
= _core
.SHRINK
286 EXPAND
= _core
.EXPAND
287 SHAPED
= _core
.SHAPED
288 FIXED_SIZE
= _core
.FIXED_SIZE
290 ADJUST_MINSIZE
= _core
.ADJUST_MINSIZE
291 BORDER_DEFAULT
= _core
.BORDER_DEFAULT
292 BORDER_NONE
= _core
.BORDER_NONE
293 BORDER_STATIC
= _core
.BORDER_STATIC
294 BORDER_SIMPLE
= _core
.BORDER_SIMPLE
295 BORDER_RAISED
= _core
.BORDER_RAISED
296 BORDER_SUNKEN
= _core
.BORDER_SUNKEN
297 BORDER_DOUBLE
= _core
.BORDER_DOUBLE
298 BORDER_MASK
= _core
.BORDER_MASK
299 DEFAULT
= _core
.DEFAULT
300 DECORATIVE
= _core
.DECORATIVE
302 SCRIPT
= _core
.SCRIPT
304 MODERN
= _core
.MODERN
305 TELETYPE
= _core
.TELETYPE
306 VARIABLE
= _core
.VARIABLE
308 NORMAL
= _core
.NORMAL
311 ITALIC
= _core
.ITALIC
315 LONG_DASH
= _core
.LONG_DASH
316 SHORT_DASH
= _core
.SHORT_DASH
317 DOT_DASH
= _core
.DOT_DASH
318 USER_DASH
= _core
.USER_DASH
319 TRANSPARENT
= _core
.TRANSPARENT
320 STIPPLE
= _core
.STIPPLE
321 BDIAGONAL_HATCH
= _core
.BDIAGONAL_HATCH
322 CROSSDIAG_HATCH
= _core
.CROSSDIAG_HATCH
323 FDIAGONAL_HATCH
= _core
.FDIAGONAL_HATCH
324 CROSS_HATCH
= _core
.CROSS_HATCH
325 HORIZONTAL_HATCH
= _core
.HORIZONTAL_HATCH
326 VERTICAL_HATCH
= _core
.VERTICAL_HATCH
327 JOIN_BEVEL
= _core
.JOIN_BEVEL
328 JOIN_MITER
= _core
.JOIN_MITER
329 JOIN_ROUND
= _core
.JOIN_ROUND
330 CAP_ROUND
= _core
.CAP_ROUND
331 CAP_PROJECTING
= _core
.CAP_PROJECTING
332 CAP_BUTT
= _core
.CAP_BUTT
335 INVERT
= _core
.INVERT
336 OR_REVERSE
= _core
.OR_REVERSE
337 AND_REVERSE
= _core
.AND_REVERSE
340 AND_INVERT
= _core
.AND_INVERT
344 SRC_INVERT
= _core
.SRC_INVERT
345 OR_INVERT
= _core
.OR_INVERT
349 WXK_BACK
= _core
.WXK_BACK
350 WXK_TAB
= _core
.WXK_TAB
351 WXK_RETURN
= _core
.WXK_RETURN
352 WXK_ESCAPE
= _core
.WXK_ESCAPE
353 WXK_SPACE
= _core
.WXK_SPACE
354 WXK_DELETE
= _core
.WXK_DELETE
355 WXK_START
= _core
.WXK_START
356 WXK_LBUTTON
= _core
.WXK_LBUTTON
357 WXK_RBUTTON
= _core
.WXK_RBUTTON
358 WXK_CANCEL
= _core
.WXK_CANCEL
359 WXK_MBUTTON
= _core
.WXK_MBUTTON
360 WXK_CLEAR
= _core
.WXK_CLEAR
361 WXK_SHIFT
= _core
.WXK_SHIFT
362 WXK_ALT
= _core
.WXK_ALT
363 WXK_CONTROL
= _core
.WXK_CONTROL
364 WXK_MENU
= _core
.WXK_MENU
365 WXK_PAUSE
= _core
.WXK_PAUSE
366 WXK_CAPITAL
= _core
.WXK_CAPITAL
367 WXK_PRIOR
= _core
.WXK_PRIOR
368 WXK_NEXT
= _core
.WXK_NEXT
369 WXK_END
= _core
.WXK_END
370 WXK_HOME
= _core
.WXK_HOME
371 WXK_LEFT
= _core
.WXK_LEFT
372 WXK_UP
= _core
.WXK_UP
373 WXK_RIGHT
= _core
.WXK_RIGHT
374 WXK_DOWN
= _core
.WXK_DOWN
375 WXK_SELECT
= _core
.WXK_SELECT
376 WXK_PRINT
= _core
.WXK_PRINT
377 WXK_EXECUTE
= _core
.WXK_EXECUTE
378 WXK_SNAPSHOT
= _core
.WXK_SNAPSHOT
379 WXK_INSERT
= _core
.WXK_INSERT
380 WXK_HELP
= _core
.WXK_HELP
381 WXK_NUMPAD0
= _core
.WXK_NUMPAD0
382 WXK_NUMPAD1
= _core
.WXK_NUMPAD1
383 WXK_NUMPAD2
= _core
.WXK_NUMPAD2
384 WXK_NUMPAD3
= _core
.WXK_NUMPAD3
385 WXK_NUMPAD4
= _core
.WXK_NUMPAD4
386 WXK_NUMPAD5
= _core
.WXK_NUMPAD5
387 WXK_NUMPAD6
= _core
.WXK_NUMPAD6
388 WXK_NUMPAD7
= _core
.WXK_NUMPAD7
389 WXK_NUMPAD8
= _core
.WXK_NUMPAD8
390 WXK_NUMPAD9
= _core
.WXK_NUMPAD9
391 WXK_MULTIPLY
= _core
.WXK_MULTIPLY
392 WXK_ADD
= _core
.WXK_ADD
393 WXK_SEPARATOR
= _core
.WXK_SEPARATOR
394 WXK_SUBTRACT
= _core
.WXK_SUBTRACT
395 WXK_DECIMAL
= _core
.WXK_DECIMAL
396 WXK_DIVIDE
= _core
.WXK_DIVIDE
397 WXK_F1
= _core
.WXK_F1
398 WXK_F2
= _core
.WXK_F2
399 WXK_F3
= _core
.WXK_F3
400 WXK_F4
= _core
.WXK_F4
401 WXK_F5
= _core
.WXK_F5
402 WXK_F6
= _core
.WXK_F6
403 WXK_F7
= _core
.WXK_F7
404 WXK_F8
= _core
.WXK_F8
405 WXK_F9
= _core
.WXK_F9
406 WXK_F10
= _core
.WXK_F10
407 WXK_F11
= _core
.WXK_F11
408 WXK_F12
= _core
.WXK_F12
409 WXK_F13
= _core
.WXK_F13
410 WXK_F14
= _core
.WXK_F14
411 WXK_F15
= _core
.WXK_F15
412 WXK_F16
= _core
.WXK_F16
413 WXK_F17
= _core
.WXK_F17
414 WXK_F18
= _core
.WXK_F18
415 WXK_F19
= _core
.WXK_F19
416 WXK_F20
= _core
.WXK_F20
417 WXK_F21
= _core
.WXK_F21
418 WXK_F22
= _core
.WXK_F22
419 WXK_F23
= _core
.WXK_F23
420 WXK_F24
= _core
.WXK_F24
421 WXK_NUMLOCK
= _core
.WXK_NUMLOCK
422 WXK_SCROLL
= _core
.WXK_SCROLL
423 WXK_PAGEUP
= _core
.WXK_PAGEUP
424 WXK_PAGEDOWN
= _core
.WXK_PAGEDOWN
425 WXK_NUMPAD_SPACE
= _core
.WXK_NUMPAD_SPACE
426 WXK_NUMPAD_TAB
= _core
.WXK_NUMPAD_TAB
427 WXK_NUMPAD_ENTER
= _core
.WXK_NUMPAD_ENTER
428 WXK_NUMPAD_F1
= _core
.WXK_NUMPAD_F1
429 WXK_NUMPAD_F2
= _core
.WXK_NUMPAD_F2
430 WXK_NUMPAD_F3
= _core
.WXK_NUMPAD_F3
431 WXK_NUMPAD_F4
= _core
.WXK_NUMPAD_F4
432 WXK_NUMPAD_HOME
= _core
.WXK_NUMPAD_HOME
433 WXK_NUMPAD_LEFT
= _core
.WXK_NUMPAD_LEFT
434 WXK_NUMPAD_UP
= _core
.WXK_NUMPAD_UP
435 WXK_NUMPAD_RIGHT
= _core
.WXK_NUMPAD_RIGHT
436 WXK_NUMPAD_DOWN
= _core
.WXK_NUMPAD_DOWN
437 WXK_NUMPAD_PRIOR
= _core
.WXK_NUMPAD_PRIOR
438 WXK_NUMPAD_PAGEUP
= _core
.WXK_NUMPAD_PAGEUP
439 WXK_NUMPAD_NEXT
= _core
.WXK_NUMPAD_NEXT
440 WXK_NUMPAD_PAGEDOWN
= _core
.WXK_NUMPAD_PAGEDOWN
441 WXK_NUMPAD_END
= _core
.WXK_NUMPAD_END
442 WXK_NUMPAD_BEGIN
= _core
.WXK_NUMPAD_BEGIN
443 WXK_NUMPAD_INSERT
= _core
.WXK_NUMPAD_INSERT
444 WXK_NUMPAD_DELETE
= _core
.WXK_NUMPAD_DELETE
445 WXK_NUMPAD_EQUAL
= _core
.WXK_NUMPAD_EQUAL
446 WXK_NUMPAD_MULTIPLY
= _core
.WXK_NUMPAD_MULTIPLY
447 WXK_NUMPAD_ADD
= _core
.WXK_NUMPAD_ADD
448 WXK_NUMPAD_SEPARATOR
= _core
.WXK_NUMPAD_SEPARATOR
449 WXK_NUMPAD_SUBTRACT
= _core
.WXK_NUMPAD_SUBTRACT
450 WXK_NUMPAD_DECIMAL
= _core
.WXK_NUMPAD_DECIMAL
451 WXK_NUMPAD_DIVIDE
= _core
.WXK_NUMPAD_DIVIDE
452 WXK_WINDOWS_LEFT
= _core
.WXK_WINDOWS_LEFT
453 WXK_WINDOWS_RIGHT
= _core
.WXK_WINDOWS_RIGHT
454 WXK_WINDOWS_MENU
= _core
.WXK_WINDOWS_MENU
455 PAPER_NONE
= _core
.PAPER_NONE
456 PAPER_LETTER
= _core
.PAPER_LETTER
457 PAPER_LEGAL
= _core
.PAPER_LEGAL
458 PAPER_A4
= _core
.PAPER_A4
459 PAPER_CSHEET
= _core
.PAPER_CSHEET
460 PAPER_DSHEET
= _core
.PAPER_DSHEET
461 PAPER_ESHEET
= _core
.PAPER_ESHEET
462 PAPER_LETTERSMALL
= _core
.PAPER_LETTERSMALL
463 PAPER_TABLOID
= _core
.PAPER_TABLOID
464 PAPER_LEDGER
= _core
.PAPER_LEDGER
465 PAPER_STATEMENT
= _core
.PAPER_STATEMENT
466 PAPER_EXECUTIVE
= _core
.PAPER_EXECUTIVE
467 PAPER_A3
= _core
.PAPER_A3
468 PAPER_A4SMALL
= _core
.PAPER_A4SMALL
469 PAPER_A5
= _core
.PAPER_A5
470 PAPER_B4
= _core
.PAPER_B4
471 PAPER_B5
= _core
.PAPER_B5
472 PAPER_FOLIO
= _core
.PAPER_FOLIO
473 PAPER_QUARTO
= _core
.PAPER_QUARTO
474 PAPER_10X14
= _core
.PAPER_10X14
475 PAPER_11X17
= _core
.PAPER_11X17
476 PAPER_NOTE
= _core
.PAPER_NOTE
477 PAPER_ENV_9
= _core
.PAPER_ENV_9
478 PAPER_ENV_10
= _core
.PAPER_ENV_10
479 PAPER_ENV_11
= _core
.PAPER_ENV_11
480 PAPER_ENV_12
= _core
.PAPER_ENV_12
481 PAPER_ENV_14
= _core
.PAPER_ENV_14
482 PAPER_ENV_DL
= _core
.PAPER_ENV_DL
483 PAPER_ENV_C5
= _core
.PAPER_ENV_C5
484 PAPER_ENV_C3
= _core
.PAPER_ENV_C3
485 PAPER_ENV_C4
= _core
.PAPER_ENV_C4
486 PAPER_ENV_C6
= _core
.PAPER_ENV_C6
487 PAPER_ENV_C65
= _core
.PAPER_ENV_C65
488 PAPER_ENV_B4
= _core
.PAPER_ENV_B4
489 PAPER_ENV_B5
= _core
.PAPER_ENV_B5
490 PAPER_ENV_B6
= _core
.PAPER_ENV_B6
491 PAPER_ENV_ITALY
= _core
.PAPER_ENV_ITALY
492 PAPER_ENV_MONARCH
= _core
.PAPER_ENV_MONARCH
493 PAPER_ENV_PERSONAL
= _core
.PAPER_ENV_PERSONAL
494 PAPER_FANFOLD_US
= _core
.PAPER_FANFOLD_US
495 PAPER_FANFOLD_STD_GERMAN
= _core
.PAPER_FANFOLD_STD_GERMAN
496 PAPER_FANFOLD_LGL_GERMAN
= _core
.PAPER_FANFOLD_LGL_GERMAN
497 PAPER_ISO_B4
= _core
.PAPER_ISO_B4
498 PAPER_JAPANESE_POSTCARD
= _core
.PAPER_JAPANESE_POSTCARD
499 PAPER_9X11
= _core
.PAPER_9X11
500 PAPER_10X11
= _core
.PAPER_10X11
501 PAPER_15X11
= _core
.PAPER_15X11
502 PAPER_ENV_INVITE
= _core
.PAPER_ENV_INVITE
503 PAPER_LETTER_EXTRA
= _core
.PAPER_LETTER_EXTRA
504 PAPER_LEGAL_EXTRA
= _core
.PAPER_LEGAL_EXTRA
505 PAPER_TABLOID_EXTRA
= _core
.PAPER_TABLOID_EXTRA
506 PAPER_A4_EXTRA
= _core
.PAPER_A4_EXTRA
507 PAPER_LETTER_TRANSVERSE
= _core
.PAPER_LETTER_TRANSVERSE
508 PAPER_A4_TRANSVERSE
= _core
.PAPER_A4_TRANSVERSE
509 PAPER_LETTER_EXTRA_TRANSVERSE
= _core
.PAPER_LETTER_EXTRA_TRANSVERSE
510 PAPER_A_PLUS
= _core
.PAPER_A_PLUS
511 PAPER_B_PLUS
= _core
.PAPER_B_PLUS
512 PAPER_LETTER_PLUS
= _core
.PAPER_LETTER_PLUS
513 PAPER_A4_PLUS
= _core
.PAPER_A4_PLUS
514 PAPER_A5_TRANSVERSE
= _core
.PAPER_A5_TRANSVERSE
515 PAPER_B5_TRANSVERSE
= _core
.PAPER_B5_TRANSVERSE
516 PAPER_A3_EXTRA
= _core
.PAPER_A3_EXTRA
517 PAPER_A5_EXTRA
= _core
.PAPER_A5_EXTRA
518 PAPER_B5_EXTRA
= _core
.PAPER_B5_EXTRA
519 PAPER_A2
= _core
.PAPER_A2
520 PAPER_A3_TRANSVERSE
= _core
.PAPER_A3_TRANSVERSE
521 PAPER_A3_EXTRA_TRANSVERSE
= _core
.PAPER_A3_EXTRA_TRANSVERSE
522 DUPLEX_SIMPLEX
= _core
.DUPLEX_SIMPLEX
523 DUPLEX_HORIZONTAL
= _core
.DUPLEX_HORIZONTAL
524 DUPLEX_VERTICAL
= _core
.DUPLEX_VERTICAL
525 ITEM_SEPARATOR
= _core
.ITEM_SEPARATOR
526 ITEM_NORMAL
= _core
.ITEM_NORMAL
527 ITEM_CHECK
= _core
.ITEM_CHECK
528 ITEM_RADIO
= _core
.ITEM_RADIO
529 ITEM_MAX
= _core
.ITEM_MAX
530 HT_NOWHERE
= _core
.HT_NOWHERE
531 HT_SCROLLBAR_FIRST
= _core
.HT_SCROLLBAR_FIRST
532 HT_SCROLLBAR_ARROW_LINE_1
= _core
.HT_SCROLLBAR_ARROW_LINE_1
533 HT_SCROLLBAR_ARROW_LINE_2
= _core
.HT_SCROLLBAR_ARROW_LINE_2
534 HT_SCROLLBAR_ARROW_PAGE_1
= _core
.HT_SCROLLBAR_ARROW_PAGE_1
535 HT_SCROLLBAR_ARROW_PAGE_2
= _core
.HT_SCROLLBAR_ARROW_PAGE_2
536 HT_SCROLLBAR_THUMB
= _core
.HT_SCROLLBAR_THUMB
537 HT_SCROLLBAR_BAR_1
= _core
.HT_SCROLLBAR_BAR_1
538 HT_SCROLLBAR_BAR_2
= _core
.HT_SCROLLBAR_BAR_2
539 HT_SCROLLBAR_LAST
= _core
.HT_SCROLLBAR_LAST
540 HT_WINDOW_OUTSIDE
= _core
.HT_WINDOW_OUTSIDE
541 HT_WINDOW_INSIDE
= _core
.HT_WINDOW_INSIDE
542 HT_WINDOW_VERT_SCROLLBAR
= _core
.HT_WINDOW_VERT_SCROLLBAR
543 HT_WINDOW_HORZ_SCROLLBAR
= _core
.HT_WINDOW_HORZ_SCROLLBAR
544 HT_WINDOW_CORNER
= _core
.HT_WINDOW_CORNER
545 HT_MAX
= _core
.HT_MAX
546 MOD_NONE
= _core
.MOD_NONE
547 MOD_ALT
= _core
.MOD_ALT
548 MOD_CONTROL
= _core
.MOD_CONTROL
549 MOD_SHIFT
= _core
.MOD_SHIFT
550 MOD_WIN
= _core
.MOD_WIN
551 UPDATE_UI_NONE
= _core
.UPDATE_UI_NONE
552 UPDATE_UI_RECURSE
= _core
.UPDATE_UI_RECURSE
553 UPDATE_UI_FROMIDLE
= _core
.UPDATE_UI_FROMIDLE
554 #---------------------------------------------------------------------------
556 class Object(object):
558 The base class for most wx objects, although in wxPython not
559 much functionality is needed nor exposed.
561 def __init__(self
): raise RuntimeError, "No constructor defined"
563 return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
564 def GetClassName(*args
, **kwargs
):
566 GetClassName() -> String
568 Returns the class name of the C++ object using wxRTTI.
570 return _core
.Object_GetClassName(*args
, **kwargs
)
572 def Destroy(*args
, **kwargs
):
576 Deletes the C++ object this Python object is a proxy for.
578 return _core
.Object_Destroy(*args
, **kwargs
)
581 class ObjectPtr(Object
):
582 def __init__(self
, this
):
584 if not hasattr(self
,"thisown"): self
.thisown
= 0
585 self
.__class
__ = Object
586 _core
.Object_swigregister(ObjectPtr
)
587 _wxPySetDictionary
= _core
._wxPySetDictionary
589 _wxPyFixStockObjects
= _core
._wxPyFixStockObjects
592 EmptyString
= cvar
.EmptyString
594 #---------------------------------------------------------------------------
596 BITMAP_TYPE_INVALID
= _core
.BITMAP_TYPE_INVALID
597 BITMAP_TYPE_BMP
= _core
.BITMAP_TYPE_BMP
598 BITMAP_TYPE_ICO
= _core
.BITMAP_TYPE_ICO
599 BITMAP_TYPE_CUR
= _core
.BITMAP_TYPE_CUR
600 BITMAP_TYPE_XBM
= _core
.BITMAP_TYPE_XBM
601 BITMAP_TYPE_XBM_DATA
= _core
.BITMAP_TYPE_XBM_DATA
602 BITMAP_TYPE_XPM
= _core
.BITMAP_TYPE_XPM
603 BITMAP_TYPE_XPM_DATA
= _core
.BITMAP_TYPE_XPM_DATA
604 BITMAP_TYPE_TIF
= _core
.BITMAP_TYPE_TIF
605 BITMAP_TYPE_GIF
= _core
.BITMAP_TYPE_GIF
606 BITMAP_TYPE_PNG
= _core
.BITMAP_TYPE_PNG
607 BITMAP_TYPE_JPEG
= _core
.BITMAP_TYPE_JPEG
608 BITMAP_TYPE_PNM
= _core
.BITMAP_TYPE_PNM
609 BITMAP_TYPE_PCX
= _core
.BITMAP_TYPE_PCX
610 BITMAP_TYPE_PICT
= _core
.BITMAP_TYPE_PICT
611 BITMAP_TYPE_ICON
= _core
.BITMAP_TYPE_ICON
612 BITMAP_TYPE_ANI
= _core
.BITMAP_TYPE_ANI
613 BITMAP_TYPE_IFF
= _core
.BITMAP_TYPE_IFF
614 BITMAP_TYPE_MACCURSOR
= _core
.BITMAP_TYPE_MACCURSOR
615 BITMAP_TYPE_ANY
= _core
.BITMAP_TYPE_ANY
616 CURSOR_NONE
= _core
.CURSOR_NONE
617 CURSOR_ARROW
= _core
.CURSOR_ARROW
618 CURSOR_RIGHT_ARROW
= _core
.CURSOR_RIGHT_ARROW
619 CURSOR_BULLSEYE
= _core
.CURSOR_BULLSEYE
620 CURSOR_CHAR
= _core
.CURSOR_CHAR
621 CURSOR_CROSS
= _core
.CURSOR_CROSS
622 CURSOR_HAND
= _core
.CURSOR_HAND
623 CURSOR_IBEAM
= _core
.CURSOR_IBEAM
624 CURSOR_LEFT_BUTTON
= _core
.CURSOR_LEFT_BUTTON
625 CURSOR_MAGNIFIER
= _core
.CURSOR_MAGNIFIER
626 CURSOR_MIDDLE_BUTTON
= _core
.CURSOR_MIDDLE_BUTTON
627 CURSOR_NO_ENTRY
= _core
.CURSOR_NO_ENTRY
628 CURSOR_PAINT_BRUSH
= _core
.CURSOR_PAINT_BRUSH
629 CURSOR_PENCIL
= _core
.CURSOR_PENCIL
630 CURSOR_POINT_LEFT
= _core
.CURSOR_POINT_LEFT
631 CURSOR_POINT_RIGHT
= _core
.CURSOR_POINT_RIGHT
632 CURSOR_QUESTION_ARROW
= _core
.CURSOR_QUESTION_ARROW
633 CURSOR_RIGHT_BUTTON
= _core
.CURSOR_RIGHT_BUTTON
634 CURSOR_SIZENESW
= _core
.CURSOR_SIZENESW
635 CURSOR_SIZENS
= _core
.CURSOR_SIZENS
636 CURSOR_SIZENWSE
= _core
.CURSOR_SIZENWSE
637 CURSOR_SIZEWE
= _core
.CURSOR_SIZEWE
638 CURSOR_SIZING
= _core
.CURSOR_SIZING
639 CURSOR_SPRAYCAN
= _core
.CURSOR_SPRAYCAN
640 CURSOR_WAIT
= _core
.CURSOR_WAIT
641 CURSOR_WATCH
= _core
.CURSOR_WATCH
642 CURSOR_BLANK
= _core
.CURSOR_BLANK
643 CURSOR_DEFAULT
= _core
.CURSOR_DEFAULT
644 CURSOR_COPY_ARROW
= _core
.CURSOR_COPY_ARROW
645 CURSOR_ARROWWAIT
= _core
.CURSOR_ARROWWAIT
646 CURSOR_MAX
= _core
.CURSOR_MAX
647 #---------------------------------------------------------------------------
651 wx.Size is a useful data structure used to represent the size of something.
652 It simply contians integer width and height proprtites. In most places in
653 wxPython where a wx.Size is expected a (width,height) tuple can be used
657 return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
658 width
= property(_core
.Size_width_get
, _core
.Size_width_set
)
659 height
= property(_core
.Size_height_get
, _core
.Size_height_set
)
660 x
= width
; y
= height
661 def __init__(self
, *args
, **kwargs
):
663 __init__(int w=0, int h=0) -> Size
665 Creates a size object.
667 newobj
= _core
.new_Size(*args
, **kwargs
)
668 self
.this
= newobj
.this
671 def __del__(self
, destroy
=_core
.delete_Size
):
674 if self
.thisown
: destroy(self
)
677 def __eq__(*args
, **kwargs
):
679 __eq__(Size sz) -> bool
681 Test for equality of wx.Size objects.
683 return _core
.Size___eq__(*args
, **kwargs
)
685 def __ne__(*args
, **kwargs
):
687 __ne__(Size sz) -> bool
691 return _core
.Size___ne__(*args
, **kwargs
)
693 def __add__(*args
, **kwargs
):
695 __add__(Size sz) -> Size
697 Add sz's proprties to this and return the result.
699 return _core
.Size___add__(*args
, **kwargs
)
701 def __sub__(*args
, **kwargs
):
703 __sub__(Size sz) -> Size
705 Subtract sz's properties from this and return the result.
707 return _core
.Size___sub__(*args
, **kwargs
)
709 def IncTo(*args
, **kwargs
):
713 Increments this object so that both of its dimensions are not less
714 than the corresponding dimensions of the size.
716 return _core
.Size_IncTo(*args
, **kwargs
)
718 def DecTo(*args
, **kwargs
):
722 Decrements this object so that both of its dimensions are not greater
723 than the corresponding dimensions of the size.
725 return _core
.Size_DecTo(*args
, **kwargs
)
727 def Set(*args
, **kwargs
):
731 Set both width and height.
733 return _core
.Size_Set(*args
, **kwargs
)
735 def SetWidth(*args
, **kwargs
):
736 """SetWidth(int w)"""
737 return _core
.Size_SetWidth(*args
, **kwargs
)
739 def SetHeight(*args
, **kwargs
):
740 """SetHeight(int h)"""
741 return _core
.Size_SetHeight(*args
, **kwargs
)
743 def GetWidth(*args
, **kwargs
):
744 """GetWidth() -> int"""
745 return _core
.Size_GetWidth(*args
, **kwargs
)
747 def GetHeight(*args
, **kwargs
):
748 """GetHeight() -> int"""
749 return _core
.Size_GetHeight(*args
, **kwargs
)
751 def IsFullySpecified(*args
, **kwargs
):
753 IsFullySpecified() -> bool
755 Returns True if both components of the size are non-default values.
757 return _core
.Size_IsFullySpecified(*args
, **kwargs
)
759 def SetDefaults(*args
, **kwargs
):
761 SetDefaults(Size size)
763 Combine this size with the other one replacing the default
764 components of this object (i.e. equal to -1) with those of the
767 return _core
.Size_SetDefaults(*args
, **kwargs
)
769 def Get(*args
, **kwargs
):
771 Get() -> (width,height)
773 Returns the width and height properties as a tuple.
775 return _core
.Size_Get(*args
, **kwargs
)
778 def __str__(self
): return str(self
.Get())
779 def __repr__(self
): return 'wx.Size'+str(self
.Get())
780 def __len__(self
): return len(self
.Get())
781 def __getitem__(self
, index
): return self
.Get()[index
]
782 def __setitem__(self
, index
, val
):
783 if index
== 0: self
.width
= val
784 elif index
== 1: self
.height
= val
785 else: raise IndexError
786 def __nonzero__(self
): return self
.Get() != (0,0)
787 __safe_for_unpickling__
= True
788 def __reduce__(self
): return (wx
.Size
, self
.Get())
792 def __init__(self
, this
):
794 if not hasattr(self
,"thisown"): self
.thisown
= 0
795 self
.__class
__ = Size
796 _core
.Size_swigregister(SizePtr
)
798 #---------------------------------------------------------------------------
800 class RealPoint(object):
802 A data structure for representing a point or position with floating point x
803 and y properties. In wxPython most places that expect a wx.RealPoint can also
804 accept a (x,y) tuple.
807 return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
808 x
= property(_core
.RealPoint_x_get
, _core
.RealPoint_x_set
)
809 y
= property(_core
.RealPoint_y_get
, _core
.RealPoint_y_set
)
810 def __init__(self
, *args
, **kwargs
):
812 __init__(double x=0.0, double y=0.0) -> RealPoint
814 Create a wx.RealPoint object
816 newobj
= _core
.new_RealPoint(*args
, **kwargs
)
817 self
.this
= newobj
.this
820 def __del__(self
, destroy
=_core
.delete_RealPoint
):
823 if self
.thisown
: destroy(self
)
826 def __eq__(*args
, **kwargs
):
828 __eq__(RealPoint pt) -> bool
830 Test for equality of wx.RealPoint objects.
832 return _core
.RealPoint___eq__(*args
, **kwargs
)
834 def __ne__(*args
, **kwargs
):
836 __ne__(RealPoint pt) -> bool
838 Test for inequality of wx.RealPoint objects.
840 return _core
.RealPoint___ne__(*args
, **kwargs
)
842 def __add__(*args
, **kwargs
):
844 __add__(RealPoint pt) -> RealPoint
846 Add pt's proprties to this and return the result.
848 return _core
.RealPoint___add__(*args
, **kwargs
)
850 def __sub__(*args
, **kwargs
):
852 __sub__(RealPoint pt) -> RealPoint
854 Subtract pt's proprties from this and return the result
856 return _core
.RealPoint___sub__(*args
, **kwargs
)
858 def Set(*args
, **kwargs
):
860 Set(double x, double y)
862 Set both the x and y properties
864 return _core
.RealPoint_Set(*args
, **kwargs
)
866 def Get(*args
, **kwargs
):
870 Return the x and y properties as a tuple.
872 return _core
.RealPoint_Get(*args
, **kwargs
)
875 def __str__(self
): return str(self
.Get())
876 def __repr__(self
): return 'wx.RealPoint'+str(self
.Get())
877 def __len__(self
): return len(self
.Get())
878 def __getitem__(self
, index
): return self
.Get()[index
]
879 def __setitem__(self
, index
, val
):
880 if index
== 0: self
.x
= val
881 elif index
== 1: self
.y
= val
882 else: raise IndexError
883 def __nonzero__(self
): return self
.Get() != (0.0, 0.0)
884 __safe_for_unpickling__
= True
885 def __reduce__(self
): return (wx
.RealPoint
, self
.Get())
888 class RealPointPtr(RealPoint
):
889 def __init__(self
, this
):
891 if not hasattr(self
,"thisown"): self
.thisown
= 0
892 self
.__class
__ = RealPoint
893 _core
.RealPoint_swigregister(RealPointPtr
)
895 #---------------------------------------------------------------------------
899 A data structure for representing a point or position with integer x and y
900 properties. Most places in wxPython that expect a wx.Point can also accept a
904 return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
905 x
= property(_core
.Point_x_get
, _core
.Point_x_set
)
906 y
= property(_core
.Point_y_get
, _core
.Point_y_set
)
907 def __init__(self
, *args
, **kwargs
):
909 __init__(int x=0, int y=0) -> Point
911 Create a wx.Point object
913 newobj
= _core
.new_Point(*args
, **kwargs
)
914 self
.this
= newobj
.this
917 def __del__(self
, destroy
=_core
.delete_Point
):
920 if self
.thisown
: destroy(self
)
923 def __eq__(*args
, **kwargs
):
925 __eq__(Point pt) -> bool
927 Test for equality of wx.Point objects.
929 return _core
.Point___eq__(*args
, **kwargs
)
931 def __ne__(*args
, **kwargs
):
933 __ne__(Point pt) -> bool
935 Test for inequality of wx.Point objects.
937 return _core
.Point___ne__(*args
, **kwargs
)
939 def __add__(*args
, **kwargs
):
941 __add__(Point pt) -> Point
943 Add pt's proprties to this and return the result.
945 return _core
.Point___add__(*args
, **kwargs
)
947 def __sub__(*args
, **kwargs
):
949 __sub__(Point pt) -> Point
951 Subtract pt's proprties from this and return the result
953 return _core
.Point___sub__(*args
, **kwargs
)
955 def __iadd__(*args
, **kwargs
):
957 __iadd__(Point pt) -> Point
959 Add pt to this object.
961 return _core
.Point___iadd__(*args
, **kwargs
)
963 def __isub__(*args
, **kwargs
):
965 __isub__(Point pt) -> Point
967 Subtract pt from this object.
969 return _core
.Point___isub__(*args
, **kwargs
)
971 def Set(*args
, **kwargs
):
975 Set both the x and y properties
977 return _core
.Point_Set(*args
, **kwargs
)
979 def Get(*args
, **kwargs
):
983 Return the x and y properties as a tuple.
985 return _core
.Point_Get(*args
, **kwargs
)
988 def __str__(self
): return str(self
.Get())
989 def __repr__(self
): return 'wx.Point'+str(self
.Get())
990 def __len__(self
): return len(self
.Get())
991 def __getitem__(self
, index
): return self
.Get()[index
]
992 def __setitem__(self
, index
, val
):
993 if index
== 0: self
.x
= val
994 elif index
== 1: self
.y
= val
995 else: raise IndexError
996 def __nonzero__(self
): return self
.Get() != (0,0)
997 __safe_for_unpickling__
= True
998 def __reduce__(self
): return (wx
.Point
, self
.Get())
1001 class PointPtr(Point
):
1002 def __init__(self
, this
):
1004 if not hasattr(self
,"thisown"): self
.thisown
= 0
1005 self
.__class
__ = Point
1006 _core
.Point_swigregister(PointPtr
)
1008 #---------------------------------------------------------------------------
1012 A class for representing and manipulating rectangles. It has x, y, width and
1013 height properties. In wxPython most palces that expect a wx.Rect can also
1014 accept a (x,y,width,height) tuple.
1017 return "<%s.%s; proxy of C++ wxRect instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1018 def __init__(self
, *args
, **kwargs
):
1020 __init__(int x=0, int y=0, int width=0, int height=0) -> Rect
1022 Create a new Rect object.
1024 newobj
= _core
.new_Rect(*args
, **kwargs
)
1025 self
.this
= newobj
.this
1028 def __del__(self
, destroy
=_core
.delete_Rect
):
1031 if self
.thisown
: destroy(self
)
1034 def GetX(*args
, **kwargs
):
1036 return _core
.Rect_GetX(*args
, **kwargs
)
1038 def SetX(*args
, **kwargs
):
1040 return _core
.Rect_SetX(*args
, **kwargs
)
1042 def GetY(*args
, **kwargs
):
1044 return _core
.Rect_GetY(*args
, **kwargs
)
1046 def SetY(*args
, **kwargs
):
1048 return _core
.Rect_SetY(*args
, **kwargs
)
1050 def GetWidth(*args
, **kwargs
):
1051 """GetWidth() -> int"""
1052 return _core
.Rect_GetWidth(*args
, **kwargs
)
1054 def SetWidth(*args
, **kwargs
):
1055 """SetWidth(int w)"""
1056 return _core
.Rect_SetWidth(*args
, **kwargs
)
1058 def GetHeight(*args
, **kwargs
):
1059 """GetHeight() -> int"""
1060 return _core
.Rect_GetHeight(*args
, **kwargs
)
1062 def SetHeight(*args
, **kwargs
):
1063 """SetHeight(int h)"""
1064 return _core
.Rect_SetHeight(*args
, **kwargs
)
1066 def GetPosition(*args
, **kwargs
):
1067 """GetPosition() -> Point"""
1068 return _core
.Rect_GetPosition(*args
, **kwargs
)
1070 def SetPosition(*args
, **kwargs
):
1071 """SetPosition(Point p)"""
1072 return _core
.Rect_SetPosition(*args
, **kwargs
)
1074 def GetSize(*args
, **kwargs
):
1075 """GetSize() -> Size"""
1076 return _core
.Rect_GetSize(*args
, **kwargs
)
1078 def SetSize(*args
, **kwargs
):
1079 """SetSize(Size s)"""
1080 return _core
.Rect_SetSize(*args
, **kwargs
)
1082 def GetTopLeft(*args
, **kwargs
):
1083 """GetTopLeft() -> Point"""
1084 return _core
.Rect_GetTopLeft(*args
, **kwargs
)
1086 def SetTopLeft(*args
, **kwargs
):
1087 """SetTopLeft(Point p)"""
1088 return _core
.Rect_SetTopLeft(*args
, **kwargs
)
1090 def GetBottomRight(*args
, **kwargs
):
1091 """GetBottomRight() -> Point"""
1092 return _core
.Rect_GetBottomRight(*args
, **kwargs
)
1094 def SetBottomRight(*args
, **kwargs
):
1095 """SetBottomRight(Point p)"""
1096 return _core
.Rect_SetBottomRight(*args
, **kwargs
)
1098 def GetLeft(*args
, **kwargs
):
1099 """GetLeft() -> int"""
1100 return _core
.Rect_GetLeft(*args
, **kwargs
)
1102 def GetTop(*args
, **kwargs
):
1103 """GetTop() -> int"""
1104 return _core
.Rect_GetTop(*args
, **kwargs
)
1106 def GetBottom(*args
, **kwargs
):
1107 """GetBottom() -> int"""
1108 return _core
.Rect_GetBottom(*args
, **kwargs
)
1110 def GetRight(*args
, **kwargs
):
1111 """GetRight() -> int"""
1112 return _core
.Rect_GetRight(*args
, **kwargs
)
1114 def SetLeft(*args
, **kwargs
):
1115 """SetLeft(int left)"""
1116 return _core
.Rect_SetLeft(*args
, **kwargs
)
1118 def SetRight(*args
, **kwargs
):
1119 """SetRight(int right)"""
1120 return _core
.Rect_SetRight(*args
, **kwargs
)
1122 def SetTop(*args
, **kwargs
):
1123 """SetTop(int top)"""
1124 return _core
.Rect_SetTop(*args
, **kwargs
)
1126 def SetBottom(*args
, **kwargs
):
1127 """SetBottom(int bottom)"""
1128 return _core
.Rect_SetBottom(*args
, **kwargs
)
1130 position
= property(GetPosition
, SetPosition
)
1131 size
= property(GetSize
, SetSize
)
1132 left
= property(GetLeft
, SetLeft
)
1133 right
= property(GetRight
, SetRight
)
1134 top
= property(GetTop
, SetTop
)
1135 bottom
= property(GetBottom
, SetBottom
)
1137 def Inflate(*args
, **kwargs
):
1139 Inflate(int dx, int dy) -> Rect
1141 Increase the rectangle size by dx in x direction and dy in y direction. Both
1142 (or one of) parameters may be negative to decrease the rectangle size.
1144 return _core
.Rect_Inflate(*args
, **kwargs
)
1146 def Deflate(*args
, **kwargs
):
1148 Deflate(int dx, int dy) -> Rect
1150 Decrease the rectangle size by dx in x direction and dy in y direction. Both
1151 (or one of) parameters may be negative to increase the rectngle size. This
1152 method is the opposite of Inflate.
1154 return _core
.Rect_Deflate(*args
, **kwargs
)
1156 def OffsetXY(*args
, **kwargs
):
1158 OffsetXY(int dx, int dy)
1160 Moves the rectangle by the specified offset. If dx is positive, the rectangle
1161 is moved to the right, if dy is positive, it is moved to the bottom, otherwise
1162 it is moved to the left or top respectively.
1164 return _core
.Rect_OffsetXY(*args
, **kwargs
)
1166 def Offset(*args
, **kwargs
):
1170 Same as OffsetXY but uses dx,dy from Point
1172 return _core
.Rect_Offset(*args
, **kwargs
)
1174 def Intersect(*args
, **kwargs
):
1176 Intersect(Rect rect) -> Rect
1178 Return the intersectsion of this rectangle and rect.
1180 return _core
.Rect_Intersect(*args
, **kwargs
)
1182 def __add__(*args
, **kwargs
):
1184 __add__(Rect rect) -> Rect
1186 Add the properties of rect to this rectangle and return the result.
1188 return _core
.Rect___add__(*args
, **kwargs
)
1190 def __iadd__(*args
, **kwargs
):
1192 __iadd__(Rect rect) -> Rect
1194 Add the properties of rect to this rectangle, updating this rectangle.
1196 return _core
.Rect___iadd__(*args
, **kwargs
)
1198 def __eq__(*args
, **kwargs
):
1200 __eq__(Rect rect) -> bool
1204 return _core
.Rect___eq__(*args
, **kwargs
)
1206 def __ne__(*args
, **kwargs
):
1208 __ne__(Rect rect) -> bool
1210 Test for inequality.
1212 return _core
.Rect___ne__(*args
, **kwargs
)
1214 def InsideXY(*args
, **kwargs
):
1216 InsideXY(int x, int y) -> bool
1218 Return True if the point is (not strcitly) inside the rect.
1220 return _core
.Rect_InsideXY(*args
, **kwargs
)
1222 def Inside(*args
, **kwargs
):
1224 Inside(Point pt) -> bool
1226 Return True if the point is (not strcitly) inside the rect.
1228 return _core
.Rect_Inside(*args
, **kwargs
)
1230 def Intersects(*args
, **kwargs
):
1232 Intersects(Rect rect) -> bool
1234 Returns True if the rectangles have a non empty intersection.
1236 return _core
.Rect_Intersects(*args
, **kwargs
)
1238 x
= property(_core
.Rect_x_get
, _core
.Rect_x_set
)
1239 y
= property(_core
.Rect_y_get
, _core
.Rect_y_set
)
1240 width
= property(_core
.Rect_width_get
, _core
.Rect_width_set
)
1241 height
= property(_core
.Rect_height_get
, _core
.Rect_height_set
)
1242 def Set(*args
, **kwargs
):
1244 Set(int x=0, int y=0, int width=0, int height=0)
1246 Set all rectangle properties.
1248 return _core
.Rect_Set(*args
, **kwargs
)
1250 def Get(*args
, **kwargs
):
1252 Get() -> (x,y,width,height)
1254 Return the rectangle properties as a tuple.
1256 return _core
.Rect_Get(*args
, **kwargs
)
1259 def __str__(self
): return str(self
.Get())
1260 def __repr__(self
): return 'wx.Rect'+str(self
.Get())
1261 def __len__(self
): return len(self
.Get())
1262 def __getitem__(self
, index
): return self
.Get()[index
]
1263 def __setitem__(self
, index
, val
):
1264 if index
== 0: self
.x
= val
1265 elif index
== 1: self
.y
= val
1266 elif index
== 2: self
.width
= val
1267 elif index
== 3: self
.height
= val
1268 else: raise IndexError
1269 def __nonzero__(self
): return self
.Get() != (0,0,0,0)
1270 __safe_for_unpickling__
= True
1271 def __reduce__(self
): return (wx
.Rect
, self
.Get())
1274 class RectPtr(Rect
):
1275 def __init__(self
, this
):
1277 if not hasattr(self
,"thisown"): self
.thisown
= 0
1278 self
.__class
__ = Rect
1279 _core
.Rect_swigregister(RectPtr
)
1281 def RectPP(*args
, **kwargs
):
1283 RectPP(Point topLeft, Point bottomRight) -> Rect
1285 Create a new Rect object from Points representing two corners.
1287 val
= _core
.new_RectPP(*args
, **kwargs
)
1291 def RectPS(*args
, **kwargs
):
1293 RectPS(Point pos, Size size) -> Rect
1295 Create a new Rect from a position and size.
1297 val
= _core
.new_RectPS(*args
, **kwargs
)
1302 def IntersectRect(*args
, **kwargs
):
1304 IntersectRect(Rect r1, Rect r2) -> Rect
1306 Calculate and return the intersection of r1 and r2.
1308 return _core
.IntersectRect(*args
, **kwargs
)
1309 #---------------------------------------------------------------------------
1311 class Point2D(object):
1312 """wx.Point2Ds represent a point or a vector in a 2d coordinate system with floating point values."""
1314 return "<%s.%s; proxy of C++ wxPoint2D instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1315 def __init__(self
, *args
, **kwargs
):
1317 __init__(double x=0.0, double y=0.0) -> Point2D
1319 Create a w.Point2D object.
1321 newobj
= _core
.new_Point2D(*args
, **kwargs
)
1322 self
.this
= newobj
.this
1325 def GetFloor(*args
, **kwargs
):
1331 return _core
.Point2D_GetFloor(*args
, **kwargs
)
1333 def GetRounded(*args
, **kwargs
):
1335 GetRounded() -> (x,y)
1339 return _core
.Point2D_GetRounded(*args
, **kwargs
)
1341 def GetVectorLength(*args
, **kwargs
):
1342 """GetVectorLength() -> double"""
1343 return _core
.Point2D_GetVectorLength(*args
, **kwargs
)
1345 def GetVectorAngle(*args
, **kwargs
):
1346 """GetVectorAngle() -> double"""
1347 return _core
.Point2D_GetVectorAngle(*args
, **kwargs
)
1349 def SetVectorLength(*args
, **kwargs
):
1350 """SetVectorLength(double length)"""
1351 return _core
.Point2D_SetVectorLength(*args
, **kwargs
)
1353 def SetVectorAngle(*args
, **kwargs
):
1354 """SetVectorAngle(double degrees)"""
1355 return _core
.Point2D_SetVectorAngle(*args
, **kwargs
)
1357 def SetPolarCoordinates(self
, angle
, length
):
1358 self
.SetVectorLength(length
)
1359 self
.SetVectorAngle(angle
)
1360 def Normalize(self
):
1361 self
.SetVectorLength(1.0)
1363 def GetDistance(*args
, **kwargs
):
1364 """GetDistance(Point2D pt) -> double"""
1365 return _core
.Point2D_GetDistance(*args
, **kwargs
)
1367 def GetDistanceSquare(*args
, **kwargs
):
1368 """GetDistanceSquare(Point2D pt) -> double"""
1369 return _core
.Point2D_GetDistanceSquare(*args
, **kwargs
)
1371 def GetDotProduct(*args
, **kwargs
):
1372 """GetDotProduct(Point2D vec) -> double"""
1373 return _core
.Point2D_GetDotProduct(*args
, **kwargs
)
1375 def GetCrossProduct(*args
, **kwargs
):
1376 """GetCrossProduct(Point2D vec) -> double"""
1377 return _core
.Point2D_GetCrossProduct(*args
, **kwargs
)
1379 def __neg__(*args
, **kwargs
):
1381 __neg__() -> Point2D
1383 the reflection of this point
1385 return _core
.Point2D___neg__(*args
, **kwargs
)
1387 def __iadd__(*args
, **kwargs
):
1388 """__iadd__(Point2D pt) -> Point2D"""
1389 return _core
.Point2D___iadd__(*args
, **kwargs
)
1391 def __isub__(*args
, **kwargs
):
1392 """__isub__(Point2D pt) -> Point2D"""
1393 return _core
.Point2D___isub__(*args
, **kwargs
)
1395 def __imul__(*args
, **kwargs
):
1396 """__imul__(Point2D pt) -> Point2D"""
1397 return _core
.Point2D___imul__(*args
, **kwargs
)
1399 def __idiv__(*args
, **kwargs
):
1400 """__idiv__(Point2D pt) -> Point2D"""
1401 return _core
.Point2D___idiv__(*args
, **kwargs
)
1403 def __eq__(*args
, **kwargs
):
1405 __eq__(Point2D pt) -> bool
1409 return _core
.Point2D___eq__(*args
, **kwargs
)
1411 def __ne__(*args
, **kwargs
):
1413 __ne__(Point2D pt) -> bool
1417 return _core
.Point2D___ne__(*args
, **kwargs
)
1419 x
= property(_core
.Point2D_x_get
, _core
.Point2D_x_set
)
1420 y
= property(_core
.Point2D_y_get
, _core
.Point2D_y_set
)
1421 def Set(*args
, **kwargs
):
1422 """Set(double x=0, double y=0)"""
1423 return _core
.Point2D_Set(*args
, **kwargs
)
1425 def Get(*args
, **kwargs
):
1429 Return x and y properties as a tuple.
1431 return _core
.Point2D_Get(*args
, **kwargs
)
1434 def __str__(self
): return str(self
.Get())
1435 def __repr__(self
): return 'wx.Point2D'+str(self
.Get())
1436 def __len__(self
): return len(self
.Get())
1437 def __getitem__(self
, index
): return self
.Get()[index
]
1438 def __setitem__(self
, index
, val
):
1439 if index
== 0: self
.x
= val
1440 elif index
== 1: self
.y
= val
1441 else: raise IndexError
1442 def __nonzero__(self
): return self
.Get() != (0.0, 0.0)
1443 __safe_for_unpickling__
= True
1444 def __reduce__(self
): return (wx
.Point2D
, self
.Get())
1447 class Point2DPtr(Point2D
):
1448 def __init__(self
, this
):
1450 if not hasattr(self
,"thisown"): self
.thisown
= 0
1451 self
.__class
__ = Point2D
1452 _core
.Point2D_swigregister(Point2DPtr
)
1454 def Point2DCopy(*args
, **kwargs
):
1456 Point2DCopy(Point2D pt) -> Point2D
1458 Create a w.Point2D object.
1460 val
= _core
.new_Point2DCopy(*args
, **kwargs
)
1464 def Point2DFromPoint(*args
, **kwargs
):
1466 Point2DFromPoint(Point pt) -> Point2D
1468 Create a w.Point2D object.
1470 val
= _core
.new_Point2DFromPoint(*args
, **kwargs
)
1474 #---------------------------------------------------------------------------
1476 FromStart
= _core
.FromStart
1477 FromCurrent
= _core
.FromCurrent
1478 FromEnd
= _core
.FromEnd
1479 class InputStream(object):
1481 return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1482 def __init__(self
, *args
, **kwargs
):
1483 """__init__(PyObject p) -> InputStream"""
1484 newobj
= _core
.new_InputStream(*args
, **kwargs
)
1485 self
.this
= newobj
.this
1488 def close(*args
, **kwargs
):
1490 return _core
.InputStream_close(*args
, **kwargs
)
1492 def flush(*args
, **kwargs
):
1494 return _core
.InputStream_flush(*args
, **kwargs
)
1496 def eof(*args
, **kwargs
):
1498 return _core
.InputStream_eof(*args
, **kwargs
)
1500 def read(*args
, **kwargs
):
1501 """read(int size=-1) -> PyObject"""
1502 return _core
.InputStream_read(*args
, **kwargs
)
1504 def readline(*args
, **kwargs
):
1505 """readline(int size=-1) -> PyObject"""
1506 return _core
.InputStream_readline(*args
, **kwargs
)
1508 def readlines(*args
, **kwargs
):
1509 """readlines(int sizehint=-1) -> PyObject"""
1510 return _core
.InputStream_readlines(*args
, **kwargs
)
1512 def seek(*args
, **kwargs
):
1513 """seek(int offset, int whence=0)"""
1514 return _core
.InputStream_seek(*args
, **kwargs
)
1516 def tell(*args
, **kwargs
):
1518 return _core
.InputStream_tell(*args
, **kwargs
)
1520 def Peek(*args
, **kwargs
):
1521 """Peek() -> char"""
1522 return _core
.InputStream_Peek(*args
, **kwargs
)
1524 def GetC(*args
, **kwargs
):
1525 """GetC() -> char"""
1526 return _core
.InputStream_GetC(*args
, **kwargs
)
1528 def LastRead(*args
, **kwargs
):
1529 """LastRead() -> size_t"""
1530 return _core
.InputStream_LastRead(*args
, **kwargs
)
1532 def CanRead(*args
, **kwargs
):
1533 """CanRead() -> bool"""
1534 return _core
.InputStream_CanRead(*args
, **kwargs
)
1536 def Eof(*args
, **kwargs
):
1538 return _core
.InputStream_Eof(*args
, **kwargs
)
1540 def Ungetch(*args
, **kwargs
):
1541 """Ungetch(char c) -> bool"""
1542 return _core
.InputStream_Ungetch(*args
, **kwargs
)
1544 def SeekI(*args
, **kwargs
):
1545 """SeekI(long pos, int mode=FromStart) -> long"""
1546 return _core
.InputStream_SeekI(*args
, **kwargs
)
1548 def TellI(*args
, **kwargs
):
1549 """TellI() -> long"""
1550 return _core
.InputStream_TellI(*args
, **kwargs
)
1553 class InputStreamPtr(InputStream
):
1554 def __init__(self
, this
):
1556 if not hasattr(self
,"thisown"): self
.thisown
= 0
1557 self
.__class
__ = InputStream
1558 _core
.InputStream_swigregister(InputStreamPtr
)
1559 DefaultPosition
= cvar
.DefaultPosition
1560 DefaultSize
= cvar
.DefaultSize
1562 class OutputStream(object):
1563 def __init__(self
): raise RuntimeError, "No constructor defined"
1565 return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1566 def write(*args
, **kwargs
):
1567 """write(PyObject obj)"""
1568 return _core
.OutputStream_write(*args
, **kwargs
)
1571 class OutputStreamPtr(OutputStream
):
1572 def __init__(self
, this
):
1574 if not hasattr(self
,"thisown"): self
.thisown
= 0
1575 self
.__class
__ = OutputStream
1576 _core
.OutputStream_swigregister(OutputStreamPtr
)
1578 #---------------------------------------------------------------------------
1580 class FSFile(Object
):
1582 return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1583 def __init__(self
, *args
, **kwargs
):
1585 __init__(InputStream stream, String loc, String mimetype, String anchor,
1586 DateTime modif) -> FSFile
1588 newobj
= _core
.new_FSFile(*args
, **kwargs
)
1589 self
.this
= newobj
.this
1592 def __del__(self
, destroy
=_core
.delete_FSFile
):
1595 if self
.thisown
: destroy(self
)
1598 def GetStream(*args
, **kwargs
):
1599 """GetStream() -> InputStream"""
1600 return _core
.FSFile_GetStream(*args
, **kwargs
)
1602 def GetMimeType(*args
, **kwargs
):
1603 """GetMimeType() -> String"""
1604 return _core
.FSFile_GetMimeType(*args
, **kwargs
)
1606 def GetLocation(*args
, **kwargs
):
1607 """GetLocation() -> String"""
1608 return _core
.FSFile_GetLocation(*args
, **kwargs
)
1610 def GetAnchor(*args
, **kwargs
):
1611 """GetAnchor() -> String"""
1612 return _core
.FSFile_GetAnchor(*args
, **kwargs
)
1614 def GetModificationTime(*args
, **kwargs
):
1615 """GetModificationTime() -> DateTime"""
1616 return _core
.FSFile_GetModificationTime(*args
, **kwargs
)
1619 class FSFilePtr(FSFile
):
1620 def __init__(self
, this
):
1622 if not hasattr(self
,"thisown"): self
.thisown
= 0
1623 self
.__class
__ = FSFile
1624 _core
.FSFile_swigregister(FSFilePtr
)
1626 class CPPFileSystemHandler(object):
1627 def __init__(self
): raise RuntimeError, "No constructor defined"
1629 return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1631 class CPPFileSystemHandlerPtr(CPPFileSystemHandler
):
1632 def __init__(self
, this
):
1634 if not hasattr(self
,"thisown"): self
.thisown
= 0
1635 self
.__class
__ = CPPFileSystemHandler
1636 _core
.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr
)
1638 class FileSystemHandler(CPPFileSystemHandler
):
1640 return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1641 def __init__(self
, *args
, **kwargs
):
1642 """__init__() -> FileSystemHandler"""
1643 newobj
= _core
.new_FileSystemHandler(*args
, **kwargs
)
1644 self
.this
= newobj
.this
1647 self
._setCallbackInfo
(self
, FileSystemHandler
)
1649 def _setCallbackInfo(*args
, **kwargs
):
1650 """_setCallbackInfo(PyObject self, PyObject _class)"""
1651 return _core
.FileSystemHandler__setCallbackInfo(*args
, **kwargs
)
1653 def CanOpen(*args
, **kwargs
):
1654 """CanOpen(String location) -> bool"""
1655 return _core
.FileSystemHandler_CanOpen(*args
, **kwargs
)
1657 def OpenFile(*args
, **kwargs
):
1658 """OpenFile(FileSystem fs, String location) -> FSFile"""
1659 return _core
.FileSystemHandler_OpenFile(*args
, **kwargs
)
1661 def FindFirst(*args
, **kwargs
):
1662 """FindFirst(String spec, int flags=0) -> String"""
1663 return _core
.FileSystemHandler_FindFirst(*args
, **kwargs
)
1665 def FindNext(*args
, **kwargs
):
1666 """FindNext() -> String"""
1667 return _core
.FileSystemHandler_FindNext(*args
, **kwargs
)
1669 def GetProtocol(*args
, **kwargs
):
1670 """GetProtocol(String location) -> String"""
1671 return _core
.FileSystemHandler_GetProtocol(*args
, **kwargs
)
1673 def GetLeftLocation(*args
, **kwargs
):
1674 """GetLeftLocation(String location) -> String"""
1675 return _core
.FileSystemHandler_GetLeftLocation(*args
, **kwargs
)
1677 def GetAnchor(*args
, **kwargs
):
1678 """GetAnchor(String location) -> String"""
1679 return _core
.FileSystemHandler_GetAnchor(*args
, **kwargs
)
1681 def GetRightLocation(*args
, **kwargs
):
1682 """GetRightLocation(String location) -> String"""
1683 return _core
.FileSystemHandler_GetRightLocation(*args
, **kwargs
)
1685 def GetMimeTypeFromExt(*args
, **kwargs
):
1686 """GetMimeTypeFromExt(String location) -> String"""
1687 return _core
.FileSystemHandler_GetMimeTypeFromExt(*args
, **kwargs
)
1690 class FileSystemHandlerPtr(FileSystemHandler
):
1691 def __init__(self
, this
):
1693 if not hasattr(self
,"thisown"): self
.thisown
= 0
1694 self
.__class
__ = FileSystemHandler
1695 _core
.FileSystemHandler_swigregister(FileSystemHandlerPtr
)
1697 class FileSystem(Object
):
1699 return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1700 def __init__(self
, *args
, **kwargs
):
1701 """__init__() -> FileSystem"""
1702 newobj
= _core
.new_FileSystem(*args
, **kwargs
)
1703 self
.this
= newobj
.this
1706 def __del__(self
, destroy
=_core
.delete_FileSystem
):
1709 if self
.thisown
: destroy(self
)
1712 def ChangePathTo(*args
, **kwargs
):
1713 """ChangePathTo(String location, bool is_dir=False)"""
1714 return _core
.FileSystem_ChangePathTo(*args
, **kwargs
)
1716 def GetPath(*args
, **kwargs
):
1717 """GetPath() -> String"""
1718 return _core
.FileSystem_GetPath(*args
, **kwargs
)
1720 def OpenFile(*args
, **kwargs
):
1721 """OpenFile(String location) -> FSFile"""
1722 return _core
.FileSystem_OpenFile(*args
, **kwargs
)
1724 def FindFirst(*args
, **kwargs
):
1725 """FindFirst(String spec, int flags=0) -> String"""
1726 return _core
.FileSystem_FindFirst(*args
, **kwargs
)
1728 def FindNext(*args
, **kwargs
):
1729 """FindNext() -> String"""
1730 return _core
.FileSystem_FindNext(*args
, **kwargs
)
1732 def AddHandler(*args
, **kwargs
):
1733 """AddHandler(CPPFileSystemHandler handler)"""
1734 return _core
.FileSystem_AddHandler(*args
, **kwargs
)
1736 AddHandler
= staticmethod(AddHandler
)
1737 def CleanUpHandlers(*args
, **kwargs
):
1738 """CleanUpHandlers()"""
1739 return _core
.FileSystem_CleanUpHandlers(*args
, **kwargs
)
1741 CleanUpHandlers
= staticmethod(CleanUpHandlers
)
1742 def FileNameToURL(*args
, **kwargs
):
1743 """FileNameToURL(String filename) -> String"""
1744 return _core
.FileSystem_FileNameToURL(*args
, **kwargs
)
1746 FileNameToURL
= staticmethod(FileNameToURL
)
1748 class FileSystemPtr(FileSystem
):
1749 def __init__(self
, this
):
1751 if not hasattr(self
,"thisown"): self
.thisown
= 0
1752 self
.__class
__ = FileSystem
1753 _core
.FileSystem_swigregister(FileSystemPtr
)
1755 def FileSystem_AddHandler(*args
, **kwargs
):
1756 """FileSystem_AddHandler(CPPFileSystemHandler handler)"""
1757 return _core
.FileSystem_AddHandler(*args
, **kwargs
)
1759 def FileSystem_CleanUpHandlers(*args
, **kwargs
):
1760 """FileSystem_CleanUpHandlers()"""
1761 return _core
.FileSystem_CleanUpHandlers(*args
, **kwargs
)
1763 def FileSystem_FileNameToURL(*args
, **kwargs
):
1764 """FileSystem_FileNameToURL(String filename) -> String"""
1765 return _core
.FileSystem_FileNameToURL(*args
, **kwargs
)
1768 def FileSystem_URLToFileName(*args
, **kwargs
):
1769 """FileSystem_URLToFileName(String url) -> String"""
1770 return _core
.FileSystem_URLToFileName(*args
, **kwargs
)
1771 class InternetFSHandler(CPPFileSystemHandler
):
1773 return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1774 def __init__(self
, *args
, **kwargs
):
1775 """__init__() -> InternetFSHandler"""
1776 newobj
= _core
.new_InternetFSHandler(*args
, **kwargs
)
1777 self
.this
= newobj
.this
1780 def CanOpen(*args
, **kwargs
):
1781 """CanOpen(String location) -> bool"""
1782 return _core
.InternetFSHandler_CanOpen(*args
, **kwargs
)
1784 def OpenFile(*args
, **kwargs
):
1785 """OpenFile(FileSystem fs, String location) -> FSFile"""
1786 return _core
.InternetFSHandler_OpenFile(*args
, **kwargs
)
1789 class InternetFSHandlerPtr(InternetFSHandler
):
1790 def __init__(self
, this
):
1792 if not hasattr(self
,"thisown"): self
.thisown
= 0
1793 self
.__class
__ = InternetFSHandler
1794 _core
.InternetFSHandler_swigregister(InternetFSHandlerPtr
)
1796 class ZipFSHandler(CPPFileSystemHandler
):
1798 return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1799 def __init__(self
, *args
, **kwargs
):
1800 """__init__() -> ZipFSHandler"""
1801 newobj
= _core
.new_ZipFSHandler(*args
, **kwargs
)
1802 self
.this
= newobj
.this
1805 def CanOpen(*args
, **kwargs
):
1806 """CanOpen(String location) -> bool"""
1807 return _core
.ZipFSHandler_CanOpen(*args
, **kwargs
)
1809 def OpenFile(*args
, **kwargs
):
1810 """OpenFile(FileSystem fs, String location) -> FSFile"""
1811 return _core
.ZipFSHandler_OpenFile(*args
, **kwargs
)
1813 def FindFirst(*args
, **kwargs
):
1814 """FindFirst(String spec, int flags=0) -> String"""
1815 return _core
.ZipFSHandler_FindFirst(*args
, **kwargs
)
1817 def FindNext(*args
, **kwargs
):
1818 """FindNext() -> String"""
1819 return _core
.ZipFSHandler_FindNext(*args
, **kwargs
)
1822 class ZipFSHandlerPtr(ZipFSHandler
):
1823 def __init__(self
, this
):
1825 if not hasattr(self
,"thisown"): self
.thisown
= 0
1826 self
.__class
__ = ZipFSHandler
1827 _core
.ZipFSHandler_swigregister(ZipFSHandlerPtr
)
1830 def __wxMemoryFSHandler_AddFile_wxImage(*args
, **kwargs
):
1831 """__wxMemoryFSHandler_AddFile_wxImage(String filename, Image image, long type)"""
1832 return _core
.__wxMemoryFSHandler
_AddFile
_wxImage
(*args
, **kwargs
)
1834 def __wxMemoryFSHandler_AddFile_wxBitmap(*args
, **kwargs
):
1835 """__wxMemoryFSHandler_AddFile_wxBitmap(String filename, Bitmap bitmap, long type)"""
1836 return _core
.__wxMemoryFSHandler
_AddFile
_wxBitmap
(*args
, **kwargs
)
1838 def __wxMemoryFSHandler_AddFile_Data(*args
, **kwargs
):
1839 """__wxMemoryFSHandler_AddFile_Data(String filename, PyObject data)"""
1840 return _core
.__wxMemoryFSHandler
_AddFile
_Data
(*args
, **kwargs
)
1841 def MemoryFSHandler_AddFile(filename
, a
, b
=''):
1842 if isinstance(a
, wx
.Image
):
1843 __wxMemoryFSHandler_AddFile_wxImage(filename
, a
, b
)
1844 elif isinstance(a
, wx
.Bitmap
):
1845 __wxMemoryFSHandler_AddFile_wxBitmap(filename
, a
, b
)
1846 elif type(a
) == str:
1847 __wxMemoryFSHandler_AddFile_Data(filename
, a
)
1848 else: raise TypeError, 'wx.Image, wx.Bitmap or string expected'
1850 class MemoryFSHandler(CPPFileSystemHandler
):
1852 return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1853 def __init__(self
, *args
, **kwargs
):
1854 """__init__() -> MemoryFSHandler"""
1855 newobj
= _core
.new_MemoryFSHandler(*args
, **kwargs
)
1856 self
.this
= newobj
.this
1859 def RemoveFile(*args
, **kwargs
):
1860 """RemoveFile(String filename)"""
1861 return _core
.MemoryFSHandler_RemoveFile(*args
, **kwargs
)
1863 RemoveFile
= staticmethod(RemoveFile
)
1864 AddFile
= staticmethod(MemoryFSHandler_AddFile
)
1865 def CanOpen(*args
, **kwargs
):
1866 """CanOpen(String location) -> bool"""
1867 return _core
.MemoryFSHandler_CanOpen(*args
, **kwargs
)
1869 def OpenFile(*args
, **kwargs
):
1870 """OpenFile(FileSystem fs, String location) -> FSFile"""
1871 return _core
.MemoryFSHandler_OpenFile(*args
, **kwargs
)
1873 def FindFirst(*args
, **kwargs
):
1874 """FindFirst(String spec, int flags=0) -> String"""
1875 return _core
.MemoryFSHandler_FindFirst(*args
, **kwargs
)
1877 def FindNext(*args
, **kwargs
):
1878 """FindNext() -> String"""
1879 return _core
.MemoryFSHandler_FindNext(*args
, **kwargs
)
1882 class MemoryFSHandlerPtr(MemoryFSHandler
):
1883 def __init__(self
, this
):
1885 if not hasattr(self
,"thisown"): self
.thisown
= 0
1886 self
.__class
__ = MemoryFSHandler
1887 _core
.MemoryFSHandler_swigregister(MemoryFSHandlerPtr
)
1889 def MemoryFSHandler_RemoveFile(*args
, **kwargs
):
1890 """MemoryFSHandler_RemoveFile(String filename)"""
1891 return _core
.MemoryFSHandler_RemoveFile(*args
, **kwargs
)
1893 #---------------------------------------------------------------------------
1895 class ImageHandler(Object
):
1896 def __init__(self
): raise RuntimeError, "No constructor defined"
1898 return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1899 def GetName(*args
, **kwargs
):
1900 """GetName() -> String"""
1901 return _core
.ImageHandler_GetName(*args
, **kwargs
)
1903 def GetExtension(*args
, **kwargs
):
1904 """GetExtension() -> String"""
1905 return _core
.ImageHandler_GetExtension(*args
, **kwargs
)
1907 def GetType(*args
, **kwargs
):
1908 """GetType() -> long"""
1909 return _core
.ImageHandler_GetType(*args
, **kwargs
)
1911 def GetMimeType(*args
, **kwargs
):
1912 """GetMimeType() -> String"""
1913 return _core
.ImageHandler_GetMimeType(*args
, **kwargs
)
1915 def CanRead(*args
, **kwargs
):
1916 """CanRead(String name) -> bool"""
1917 return _core
.ImageHandler_CanRead(*args
, **kwargs
)
1919 def SetName(*args
, **kwargs
):
1920 """SetName(String name)"""
1921 return _core
.ImageHandler_SetName(*args
, **kwargs
)
1923 def SetExtension(*args
, **kwargs
):
1924 """SetExtension(String extension)"""
1925 return _core
.ImageHandler_SetExtension(*args
, **kwargs
)
1927 def SetType(*args
, **kwargs
):
1928 """SetType(long type)"""
1929 return _core
.ImageHandler_SetType(*args
, **kwargs
)
1931 def SetMimeType(*args
, **kwargs
):
1932 """SetMimeType(String mimetype)"""
1933 return _core
.ImageHandler_SetMimeType(*args
, **kwargs
)
1936 class ImageHandlerPtr(ImageHandler
):
1937 def __init__(self
, this
):
1939 if not hasattr(self
,"thisown"): self
.thisown
= 0
1940 self
.__class
__ = ImageHandler
1941 _core
.ImageHandler_swigregister(ImageHandlerPtr
)
1943 class ImageHistogram(object):
1945 return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1946 def __init__(self
, *args
, **kwargs
):
1947 """__init__() -> ImageHistogram"""
1948 newobj
= _core
.new_ImageHistogram(*args
, **kwargs
)
1949 self
.this
= newobj
.this
1952 def MakeKey(*args
, **kwargs
):
1954 MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long
1956 Get the key in the histogram for the given RGB values
1958 return _core
.ImageHistogram_MakeKey(*args
, **kwargs
)
1960 MakeKey
= staticmethod(MakeKey
)
1961 def FindFirstUnusedColour(*args
, **kwargs
):
1963 FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b)
1965 Find first colour that is not used in the image and has higher RGB values than
1966 startR, startG, startB. Returns a tuple consisting of a success flag and rgb
1969 return _core
.ImageHistogram_FindFirstUnusedColour(*args
, **kwargs
)
1972 class ImageHistogramPtr(ImageHistogram
):
1973 def __init__(self
, this
):
1975 if not hasattr(self
,"thisown"): self
.thisown
= 0
1976 self
.__class
__ = ImageHistogram
1977 _core
.ImageHistogram_swigregister(ImageHistogramPtr
)
1979 def ImageHistogram_MakeKey(*args
, **kwargs
):
1981 ImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long
1983 Get the key in the histogram for the given RGB values
1985 return _core
.ImageHistogram_MakeKey(*args
, **kwargs
)
1987 class Image(Object
):
1989 return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1990 def __init__(self
, *args
, **kwargs
):
1991 """__init__(String name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image"""
1992 newobj
= _core
.new_Image(*args
, **kwargs
)
1993 self
.this
= newobj
.this
1996 def __del__(self
, destroy
=_core
.delete_Image
):
1999 if self
.thisown
: destroy(self
)
2002 def Create(*args
, **kwargs
):
2003 """Create(int width, int height)"""
2004 return _core
.Image_Create(*args
, **kwargs
)
2006 def Destroy(*args
, **kwargs
):
2010 Deletes the C++ object this Python object is a proxy for.
2012 return _core
.Image_Destroy(*args
, **kwargs
)
2014 def Scale(*args
, **kwargs
):
2015 """Scale(int width, int height) -> Image"""
2016 return _core
.Image_Scale(*args
, **kwargs
)
2018 def ShrinkBy(*args
, **kwargs
):
2019 """ShrinkBy(int xFactor, int yFactor) -> Image"""
2020 return _core
.Image_ShrinkBy(*args
, **kwargs
)
2022 def Rescale(*args
, **kwargs
):
2023 """Rescale(int width, int height) -> Image"""
2024 return _core
.Image_Rescale(*args
, **kwargs
)
2026 def SetRGB(*args
, **kwargs
):
2027 """SetRGB(int x, int y, unsigned char r, unsigned char g, unsigned char b)"""
2028 return _core
.Image_SetRGB(*args
, **kwargs
)
2030 def GetRed(*args
, **kwargs
):
2031 """GetRed(int x, int y) -> unsigned char"""
2032 return _core
.Image_GetRed(*args
, **kwargs
)
2034 def GetGreen(*args
, **kwargs
):
2035 """GetGreen(int x, int y) -> unsigned char"""
2036 return _core
.Image_GetGreen(*args
, **kwargs
)
2038 def GetBlue(*args
, **kwargs
):
2039 """GetBlue(int x, int y) -> unsigned char"""
2040 return _core
.Image_GetBlue(*args
, **kwargs
)
2042 def SetAlpha(*args
, **kwargs
):
2043 """SetAlpha(int x, int y, unsigned char alpha)"""
2044 return _core
.Image_SetAlpha(*args
, **kwargs
)
2046 def GetAlpha(*args
, **kwargs
):
2047 """GetAlpha(int x, int y) -> unsigned char"""
2048 return _core
.Image_GetAlpha(*args
, **kwargs
)
2050 def HasAlpha(*args
, **kwargs
):
2051 """HasAlpha() -> bool"""
2052 return _core
.Image_HasAlpha(*args
, **kwargs
)
2054 def FindFirstUnusedColour(*args
, **kwargs
):
2056 FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b)
2058 Find first colour that is not used in the image and has higher RGB values than
2059 startR, startG, startB. Returns a tuple consisting of a success flag and rgb
2062 return _core
.Image_FindFirstUnusedColour(*args
, **kwargs
)
2064 def SetMaskFromImage(*args
, **kwargs
):
2065 """SetMaskFromImage(Image mask, byte mr, byte mg, byte mb) -> bool"""
2066 return _core
.Image_SetMaskFromImage(*args
, **kwargs
)
2068 def CanRead(*args
, **kwargs
):
2069 """CanRead(String name) -> bool"""
2070 return _core
.Image_CanRead(*args
, **kwargs
)
2072 CanRead
= staticmethod(CanRead
)
2073 def GetImageCount(*args
, **kwargs
):
2074 """GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int"""
2075 return _core
.Image_GetImageCount(*args
, **kwargs
)
2077 GetImageCount
= staticmethod(GetImageCount
)
2078 def LoadFile(*args
, **kwargs
):
2079 """LoadFile(String name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool"""
2080 return _core
.Image_LoadFile(*args
, **kwargs
)
2082 def LoadMimeFile(*args
, **kwargs
):
2083 """LoadMimeFile(String name, String mimetype, int index=-1) -> bool"""
2084 return _core
.Image_LoadMimeFile(*args
, **kwargs
)
2086 def SaveFile(*args
, **kwargs
):
2087 """SaveFile(String name, int type) -> bool"""
2088 return _core
.Image_SaveFile(*args
, **kwargs
)
2090 def SaveMimeFile(*args
, **kwargs
):
2091 """SaveMimeFile(String name, String mimetype) -> bool"""
2092 return _core
.Image_SaveMimeFile(*args
, **kwargs
)
2094 def CanReadStream(*args
, **kwargs
):
2095 """CanReadStream(InputStream stream) -> bool"""
2096 return _core
.Image_CanReadStream(*args
, **kwargs
)
2098 CanReadStream
= staticmethod(CanReadStream
)
2099 def LoadStream(*args
, **kwargs
):
2100 """LoadStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool"""
2101 return _core
.Image_LoadStream(*args
, **kwargs
)
2103 def LoadMimeStream(*args
, **kwargs
):
2104 """LoadMimeStream(InputStream stream, String mimetype, int index=-1) -> bool"""
2105 return _core
.Image_LoadMimeStream(*args
, **kwargs
)
2107 def Ok(*args
, **kwargs
):
2109 return _core
.Image_Ok(*args
, **kwargs
)
2111 def GetWidth(*args
, **kwargs
):
2112 """GetWidth() -> int"""
2113 return _core
.Image_GetWidth(*args
, **kwargs
)
2115 def GetHeight(*args
, **kwargs
):
2116 """GetHeight() -> int"""
2117 return _core
.Image_GetHeight(*args
, **kwargs
)
2119 def GetSubImage(*args
, **kwargs
):
2120 """GetSubImage(Rect rect) -> Image"""
2121 return _core
.Image_GetSubImage(*args
, **kwargs
)
2123 def Copy(*args
, **kwargs
):
2124 """Copy() -> Image"""
2125 return _core
.Image_Copy(*args
, **kwargs
)
2127 def Paste(*args
, **kwargs
):
2128 """Paste(Image image, int x, int y)"""
2129 return _core
.Image_Paste(*args
, **kwargs
)
2131 def GetData(*args
, **kwargs
):
2132 """GetData() -> PyObject"""
2133 return _core
.Image_GetData(*args
, **kwargs
)
2135 def SetData(*args
, **kwargs
):
2136 """SetData(PyObject data)"""
2137 return _core
.Image_SetData(*args
, **kwargs
)
2139 def GetDataBuffer(*args
, **kwargs
):
2140 """GetDataBuffer() -> PyObject"""
2141 return _core
.Image_GetDataBuffer(*args
, **kwargs
)
2143 def SetDataBuffer(*args
, **kwargs
):
2144 """SetDataBuffer(PyObject data)"""
2145 return _core
.Image_SetDataBuffer(*args
, **kwargs
)
2147 def GetAlphaData(*args
, **kwargs
):
2148 """GetAlphaData() -> PyObject"""
2149 return _core
.Image_GetAlphaData(*args
, **kwargs
)
2151 def SetAlphaData(*args
, **kwargs
):
2152 """SetAlphaData(PyObject data)"""
2153 return _core
.Image_SetAlphaData(*args
, **kwargs
)
2155 def GetAlphaBuffer(*args
, **kwargs
):
2156 """GetAlphaBuffer() -> PyObject"""
2157 return _core
.Image_GetAlphaBuffer(*args
, **kwargs
)
2159 def SetAlphaBuffer(*args
, **kwargs
):
2160 """SetAlphaBuffer(PyObject data)"""
2161 return _core
.Image_SetAlphaBuffer(*args
, **kwargs
)
2163 def SetMaskColour(*args
, **kwargs
):
2164 """SetMaskColour(unsigned char r, unsigned char g, unsigned char b)"""
2165 return _core
.Image_SetMaskColour(*args
, **kwargs
)
2167 def GetMaskRed(*args
, **kwargs
):
2168 """GetMaskRed() -> unsigned char"""
2169 return _core
.Image_GetMaskRed(*args
, **kwargs
)
2171 def GetMaskGreen(*args
, **kwargs
):
2172 """GetMaskGreen() -> unsigned char"""
2173 return _core
.Image_GetMaskGreen(*args
, **kwargs
)
2175 def GetMaskBlue(*args
, **kwargs
):
2176 """GetMaskBlue() -> unsigned char"""
2177 return _core
.Image_GetMaskBlue(*args
, **kwargs
)
2179 def SetMask(*args
, **kwargs
):
2180 """SetMask(bool mask=True)"""
2181 return _core
.Image_SetMask(*args
, **kwargs
)
2183 def HasMask(*args
, **kwargs
):
2184 """HasMask() -> bool"""
2185 return _core
.Image_HasMask(*args
, **kwargs
)
2187 def Rotate(*args
, **kwargs
):
2189 Rotate(double angle, Point centre_of_rotation, bool interpolating=True,
2190 Point offset_after_rotation=None) -> Image
2192 return _core
.Image_Rotate(*args
, **kwargs
)
2194 def Rotate90(*args
, **kwargs
):
2195 """Rotate90(bool clockwise=True) -> Image"""
2196 return _core
.Image_Rotate90(*args
, **kwargs
)
2198 def Mirror(*args
, **kwargs
):
2199 """Mirror(bool horizontally=True) -> Image"""
2200 return _core
.Image_Mirror(*args
, **kwargs
)
2202 def Replace(*args
, **kwargs
):
2204 Replace(unsigned char r1, unsigned char g1, unsigned char b1,
2205 unsigned char r2, unsigned char g2, unsigned char b2)
2207 return _core
.Image_Replace(*args
, **kwargs
)
2209 def ConvertToMono(*args
, **kwargs
):
2210 """ConvertToMono(unsigned char r, unsigned char g, unsigned char b) -> Image"""
2211 return _core
.Image_ConvertToMono(*args
, **kwargs
)
2213 def SetOption(*args
, **kwargs
):
2214 """SetOption(String name, String value)"""
2215 return _core
.Image_SetOption(*args
, **kwargs
)
2217 def SetOptionInt(*args
, **kwargs
):
2218 """SetOptionInt(String name, int value)"""
2219 return _core
.Image_SetOptionInt(*args
, **kwargs
)
2221 def GetOption(*args
, **kwargs
):
2222 """GetOption(String name) -> String"""
2223 return _core
.Image_GetOption(*args
, **kwargs
)
2225 def GetOptionInt(*args
, **kwargs
):
2226 """GetOptionInt(String name) -> int"""
2227 return _core
.Image_GetOptionInt(*args
, **kwargs
)
2229 def HasOption(*args
, **kwargs
):
2230 """HasOption(String name) -> bool"""
2231 return _core
.Image_HasOption(*args
, **kwargs
)
2233 def CountColours(*args
, **kwargs
):
2234 """CountColours(unsigned long stopafter=(unsigned long) -1) -> unsigned long"""
2235 return _core
.Image_CountColours(*args
, **kwargs
)
2237 def ComputeHistogram(*args
, **kwargs
):
2238 """ComputeHistogram(ImageHistogram h) -> unsigned long"""
2239 return _core
.Image_ComputeHistogram(*args
, **kwargs
)
2241 def AddHandler(*args
, **kwargs
):
2242 """AddHandler(ImageHandler handler)"""
2243 return _core
.Image_AddHandler(*args
, **kwargs
)
2245 AddHandler
= staticmethod(AddHandler
)
2246 def InsertHandler(*args
, **kwargs
):
2247 """InsertHandler(ImageHandler handler)"""
2248 return _core
.Image_InsertHandler(*args
, **kwargs
)
2250 InsertHandler
= staticmethod(InsertHandler
)
2251 def RemoveHandler(*args
, **kwargs
):
2252 """RemoveHandler(String name) -> bool"""
2253 return _core
.Image_RemoveHandler(*args
, **kwargs
)
2255 RemoveHandler
= staticmethod(RemoveHandler
)
2256 def GetImageExtWildcard(*args
, **kwargs
):
2257 """GetImageExtWildcard() -> String"""
2258 return _core
.Image_GetImageExtWildcard(*args
, **kwargs
)
2260 GetImageExtWildcard
= staticmethod(GetImageExtWildcard
)
2261 def ConvertToBitmap(*args
, **kwargs
):
2262 """ConvertToBitmap() -> Bitmap"""
2263 return _core
.Image_ConvertToBitmap(*args
, **kwargs
)
2265 def ConvertToMonoBitmap(*args
, **kwargs
):
2266 """ConvertToMonoBitmap(unsigned char red, unsigned char green, unsigned char blue) -> Bitmap"""
2267 return _core
.Image_ConvertToMonoBitmap(*args
, **kwargs
)
2269 def __nonzero__(self
): return self
.Ok()
2271 class ImagePtr(Image
):
2272 def __init__(self
, this
):
2274 if not hasattr(self
,"thisown"): self
.thisown
= 0
2275 self
.__class
__ = Image
2276 _core
.Image_swigregister(ImagePtr
)
2278 def ImageFromMime(*args
, **kwargs
):
2279 """ImageFromMime(String name, String mimetype, int index=-1) -> Image"""
2280 val
= _core
.new_ImageFromMime(*args
, **kwargs
)
2284 def ImageFromStream(*args
, **kwargs
):
2285 """ImageFromStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image"""
2286 val
= _core
.new_ImageFromStream(*args
, **kwargs
)
2290 def ImageFromStreamMime(*args
, **kwargs
):
2291 """ImageFromStreamMime(InputStream stream, String mimetype, int index=-1) -> Image"""
2292 val
= _core
.new_ImageFromStreamMime(*args
, **kwargs
)
2296 def EmptyImage(*args
, **kwargs
):
2297 """EmptyImage(int width=0, int height=0, bool clear=True) -> Image"""
2298 val
= _core
.new_EmptyImage(*args
, **kwargs
)
2302 def ImageFromBitmap(*args
, **kwargs
):
2303 """ImageFromBitmap(Bitmap bitmap) -> Image"""
2304 val
= _core
.new_ImageFromBitmap(*args
, **kwargs
)
2308 def ImageFromData(*args
, **kwargs
):
2309 """ImageFromData(int width, int height, unsigned char data) -> Image"""
2310 val
= _core
.new_ImageFromData(*args
, **kwargs
)
2314 def Image_CanRead(*args
, **kwargs
):
2315 """Image_CanRead(String name) -> bool"""
2316 return _core
.Image_CanRead(*args
, **kwargs
)
2318 def Image_GetImageCount(*args
, **kwargs
):
2319 """Image_GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int"""
2320 return _core
.Image_GetImageCount(*args
, **kwargs
)
2322 def Image_CanReadStream(*args
, **kwargs
):
2323 """Image_CanReadStream(InputStream stream) -> bool"""
2324 return _core
.Image_CanReadStream(*args
, **kwargs
)
2326 def Image_AddHandler(*args
, **kwargs
):
2327 """Image_AddHandler(ImageHandler handler)"""
2328 return _core
.Image_AddHandler(*args
, **kwargs
)
2330 def Image_InsertHandler(*args
, **kwargs
):
2331 """Image_InsertHandler(ImageHandler handler)"""
2332 return _core
.Image_InsertHandler(*args
, **kwargs
)
2334 def Image_RemoveHandler(*args
, **kwargs
):
2335 """Image_RemoveHandler(String name) -> bool"""
2336 return _core
.Image_RemoveHandler(*args
, **kwargs
)
2338 def Image_GetImageExtWildcard(*args
, **kwargs
):
2339 """Image_GetImageExtWildcard() -> String"""
2340 return _core
.Image_GetImageExtWildcard(*args
, **kwargs
)
2343 def InitAllImageHandlers(*args
, **kwargs
):
2344 """InitAllImageHandlers()"""
2345 return _core
.InitAllImageHandlers(*args
, **kwargs
)
2346 IMAGE_RESOLUTION_INCHES
= _core
.IMAGE_RESOLUTION_INCHES
2347 IMAGE_RESOLUTION_CM
= _core
.IMAGE_RESOLUTION_CM
2348 BMP_24BPP
= _core
.BMP_24BPP
2349 BMP_8BPP
= _core
.BMP_8BPP
2350 BMP_8BPP_GREY
= _core
.BMP_8BPP_GREY
2351 BMP_8BPP_GRAY
= _core
.BMP_8BPP_GRAY
2352 BMP_8BPP_RED
= _core
.BMP_8BPP_RED
2353 BMP_8BPP_PALETTE
= _core
.BMP_8BPP_PALETTE
2354 BMP_4BPP
= _core
.BMP_4BPP
2355 BMP_1BPP
= _core
.BMP_1BPP
2356 BMP_1BPP_BW
= _core
.BMP_1BPP_BW
2357 class BMPHandler(ImageHandler
):
2359 return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2360 def __init__(self
, *args
, **kwargs
):
2361 """__init__() -> BMPHandler"""
2362 newobj
= _core
.new_BMPHandler(*args
, **kwargs
)
2363 self
.this
= newobj
.this
2367 class BMPHandlerPtr(BMPHandler
):
2368 def __init__(self
, this
):
2370 if not hasattr(self
,"thisown"): self
.thisown
= 0
2371 self
.__class
__ = BMPHandler
2372 _core
.BMPHandler_swigregister(BMPHandlerPtr
)
2373 NullImage
= cvar
.NullImage
2374 IMAGE_OPTION_BMP_FORMAT
= cvar
.IMAGE_OPTION_BMP_FORMAT
2375 IMAGE_OPTION_CUR_HOTSPOT_X
= cvar
.IMAGE_OPTION_CUR_HOTSPOT_X
2376 IMAGE_OPTION_CUR_HOTSPOT_Y
= cvar
.IMAGE_OPTION_CUR_HOTSPOT_Y
2377 IMAGE_OPTION_RESOLUTION
= cvar
.IMAGE_OPTION_RESOLUTION
2378 IMAGE_OPTION_RESOLUTIONUNIT
= cvar
.IMAGE_OPTION_RESOLUTIONUNIT
2380 class ICOHandler(BMPHandler
):
2382 return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2383 def __init__(self
, *args
, **kwargs
):
2384 """__init__() -> ICOHandler"""
2385 newobj
= _core
.new_ICOHandler(*args
, **kwargs
)
2386 self
.this
= newobj
.this
2390 class ICOHandlerPtr(ICOHandler
):
2391 def __init__(self
, this
):
2393 if not hasattr(self
,"thisown"): self
.thisown
= 0
2394 self
.__class
__ = ICOHandler
2395 _core
.ICOHandler_swigregister(ICOHandlerPtr
)
2397 class CURHandler(ICOHandler
):
2399 return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2400 def __init__(self
, *args
, **kwargs
):
2401 """__init__() -> CURHandler"""
2402 newobj
= _core
.new_CURHandler(*args
, **kwargs
)
2403 self
.this
= newobj
.this
2407 class CURHandlerPtr(CURHandler
):
2408 def __init__(self
, this
):
2410 if not hasattr(self
,"thisown"): self
.thisown
= 0
2411 self
.__class
__ = CURHandler
2412 _core
.CURHandler_swigregister(CURHandlerPtr
)
2414 class ANIHandler(CURHandler
):
2416 return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2417 def __init__(self
, *args
, **kwargs
):
2418 """__init__() -> ANIHandler"""
2419 newobj
= _core
.new_ANIHandler(*args
, **kwargs
)
2420 self
.this
= newobj
.this
2424 class ANIHandlerPtr(ANIHandler
):
2425 def __init__(self
, this
):
2427 if not hasattr(self
,"thisown"): self
.thisown
= 0
2428 self
.__class
__ = ANIHandler
2429 _core
.ANIHandler_swigregister(ANIHandlerPtr
)
2431 class PNGHandler(ImageHandler
):
2433 return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2434 def __init__(self
, *args
, **kwargs
):
2435 """__init__() -> PNGHandler"""
2436 newobj
= _core
.new_PNGHandler(*args
, **kwargs
)
2437 self
.this
= newobj
.this
2441 class PNGHandlerPtr(PNGHandler
):
2442 def __init__(self
, this
):
2444 if not hasattr(self
,"thisown"): self
.thisown
= 0
2445 self
.__class
__ = PNGHandler
2446 _core
.PNGHandler_swigregister(PNGHandlerPtr
)
2448 class GIFHandler(ImageHandler
):
2450 return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2451 def __init__(self
, *args
, **kwargs
):
2452 """__init__() -> GIFHandler"""
2453 newobj
= _core
.new_GIFHandler(*args
, **kwargs
)
2454 self
.this
= newobj
.this
2458 class GIFHandlerPtr(GIFHandler
):
2459 def __init__(self
, this
):
2461 if not hasattr(self
,"thisown"): self
.thisown
= 0
2462 self
.__class
__ = GIFHandler
2463 _core
.GIFHandler_swigregister(GIFHandlerPtr
)
2465 class PCXHandler(ImageHandler
):
2467 return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2468 def __init__(self
, *args
, **kwargs
):
2469 """__init__() -> PCXHandler"""
2470 newobj
= _core
.new_PCXHandler(*args
, **kwargs
)
2471 self
.this
= newobj
.this
2475 class PCXHandlerPtr(PCXHandler
):
2476 def __init__(self
, this
):
2478 if not hasattr(self
,"thisown"): self
.thisown
= 0
2479 self
.__class
__ = PCXHandler
2480 _core
.PCXHandler_swigregister(PCXHandlerPtr
)
2482 class JPEGHandler(ImageHandler
):
2484 return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2485 def __init__(self
, *args
, **kwargs
):
2486 """__init__() -> JPEGHandler"""
2487 newobj
= _core
.new_JPEGHandler(*args
, **kwargs
)
2488 self
.this
= newobj
.this
2492 class JPEGHandlerPtr(JPEGHandler
):
2493 def __init__(self
, this
):
2495 if not hasattr(self
,"thisown"): self
.thisown
= 0
2496 self
.__class
__ = JPEGHandler
2497 _core
.JPEGHandler_swigregister(JPEGHandlerPtr
)
2499 class PNMHandler(ImageHandler
):
2501 return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2502 def __init__(self
, *args
, **kwargs
):
2503 """__init__() -> PNMHandler"""
2504 newobj
= _core
.new_PNMHandler(*args
, **kwargs
)
2505 self
.this
= newobj
.this
2509 class PNMHandlerPtr(PNMHandler
):
2510 def __init__(self
, this
):
2512 if not hasattr(self
,"thisown"): self
.thisown
= 0
2513 self
.__class
__ = PNMHandler
2514 _core
.PNMHandler_swigregister(PNMHandlerPtr
)
2516 class XPMHandler(ImageHandler
):
2518 return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2519 def __init__(self
, *args
, **kwargs
):
2520 """__init__() -> XPMHandler"""
2521 newobj
= _core
.new_XPMHandler(*args
, **kwargs
)
2522 self
.this
= newobj
.this
2526 class XPMHandlerPtr(XPMHandler
):
2527 def __init__(self
, this
):
2529 if not hasattr(self
,"thisown"): self
.thisown
= 0
2530 self
.__class
__ = XPMHandler
2531 _core
.XPMHandler_swigregister(XPMHandlerPtr
)
2533 class TIFFHandler(ImageHandler
):
2535 return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2536 def __init__(self
, *args
, **kwargs
):
2537 """__init__() -> TIFFHandler"""
2538 newobj
= _core
.new_TIFFHandler(*args
, **kwargs
)
2539 self
.this
= newobj
.this
2543 class TIFFHandlerPtr(TIFFHandler
):
2544 def __init__(self
, this
):
2546 if not hasattr(self
,"thisown"): self
.thisown
= 0
2547 self
.__class
__ = TIFFHandler
2548 _core
.TIFFHandler_swigregister(TIFFHandlerPtr
)
2550 #---------------------------------------------------------------------------
2552 class EvtHandler(Object
):
2554 return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2555 def __init__(self
, *args
, **kwargs
):
2556 """__init__() -> EvtHandler"""
2557 newobj
= _core
.new_EvtHandler(*args
, **kwargs
)
2558 self
.this
= newobj
.this
2561 def GetNextHandler(*args
, **kwargs
):
2562 """GetNextHandler() -> EvtHandler"""
2563 return _core
.EvtHandler_GetNextHandler(*args
, **kwargs
)
2565 def GetPreviousHandler(*args
, **kwargs
):
2566 """GetPreviousHandler() -> EvtHandler"""
2567 return _core
.EvtHandler_GetPreviousHandler(*args
, **kwargs
)
2569 def SetNextHandler(*args
, **kwargs
):
2570 """SetNextHandler(EvtHandler handler)"""
2571 return _core
.EvtHandler_SetNextHandler(*args
, **kwargs
)
2573 def SetPreviousHandler(*args
, **kwargs
):
2574 """SetPreviousHandler(EvtHandler handler)"""
2575 return _core
.EvtHandler_SetPreviousHandler(*args
, **kwargs
)
2577 def GetEvtHandlerEnabled(*args
, **kwargs
):
2578 """GetEvtHandlerEnabled() -> bool"""
2579 return _core
.EvtHandler_GetEvtHandlerEnabled(*args
, **kwargs
)
2581 def SetEvtHandlerEnabled(*args
, **kwargs
):
2582 """SetEvtHandlerEnabled(bool enabled)"""
2583 return _core
.EvtHandler_SetEvtHandlerEnabled(*args
, **kwargs
)
2585 def ProcessEvent(*args
, **kwargs
):
2586 """ProcessEvent(Event event) -> bool"""
2587 return _core
.EvtHandler_ProcessEvent(*args
, **kwargs
)
2589 def AddPendingEvent(*args
, **kwargs
):
2590 """AddPendingEvent(Event event)"""
2591 return _core
.EvtHandler_AddPendingEvent(*args
, **kwargs
)
2593 def ProcessPendingEvents(*args
, **kwargs
):
2594 """ProcessPendingEvents()"""
2595 return _core
.EvtHandler_ProcessPendingEvents(*args
, **kwargs
)
2597 def Connect(*args
, **kwargs
):
2598 """Connect(int id, int lastId, int eventType, PyObject func)"""
2599 return _core
.EvtHandler_Connect(*args
, **kwargs
)
2601 def Disconnect(*args
, **kwargs
):
2602 """Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool"""
2603 return _core
.EvtHandler_Disconnect(*args
, **kwargs
)
2605 def _setOORInfo(*args
, **kwargs
):
2606 """_setOORInfo(PyObject _self)"""
2607 return _core
.EvtHandler__setOORInfo(*args
, **kwargs
)
2609 def Bind(self
, event
, handler
, source
=None, id=wx
.ID_ANY
, id2
=wx
.ID_ANY
):
2611 Bind an event to an event handler.
2613 event One of the EVT_* objects that specifies the
2614 type of event to bind,
2616 handler A callable object to be invoked when the event
2617 is delivered to self. Pass None to disconnect an
2620 source Sometimes the event originates from a different window
2621 than self, but you still want to catch it in self. (For
2622 example, a button event delivered to a frame.) By
2623 passing the source of the event, the event handling
2624 system is able to differentiate between the same event
2625 type from different controls.
2627 id,id2 Used for menu IDs or for event types that require a
2630 if source
is not None:
2632 event
.Bind(self
, id, id2
, handler
)
2636 class EvtHandlerPtr(EvtHandler
):
2637 def __init__(self
, this
):
2639 if not hasattr(self
,"thisown"): self
.thisown
= 0
2640 self
.__class
__ = EvtHandler
2641 _core
.EvtHandler_swigregister(EvtHandlerPtr
)
2643 #---------------------------------------------------------------------------
2645 class PyEventBinder(object):
2647 Instances of this class are used to bind specific events to event
2650 def __init__(self
, evtType
, expectedIDs
=0):
2651 if expectedIDs
not in [0, 1, 2]:
2652 raise ValueError, "Invalid number of expectedIDs"
2653 self
.expectedIDs
= expectedIDs
2655 if type(evtType
) == list or type(evtType
) == tuple:
2656 self
.evtType
= evtType
2658 self
.evtType
= [evtType
]
2661 def Bind(self
, target
, id1
, id2
, function
):
2662 """Bind this set of event types to target."""
2663 for et
in self
.evtType
:
2664 target
.Connect(id1
, id2
, et
, function
)
2667 def __call__(self
, *args
):
2669 For backwards compatibility with the old EVT_* functions.
2670 Should be called with either (window, func), (window, ID,
2671 func) or (window, ID1, ID2, func) parameters depending on the
2674 assert len(args
) == 2 + self
.expectedIDs
2678 if self
.expectedIDs
== 0:
2680 elif self
.expectedIDs
== 1:
2683 elif self
.expectedIDs
== 2:
2688 raise ValueError, "Unexpected number of IDs"
2690 self
.Bind(target
, id1
, id2
, func
)
2693 # These two are square pegs that don't fit the PyEventBinder hole...
2694 def EVT_COMMAND(win
, id, cmd
, func
):
2695 win
.Connect(id, -1, cmd
, func
)
2696 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
):
2697 win
.Connect(id1
, id2
, cmd
, func
)
2700 #---------------------------------------------------------------------------
2702 #---------------------------------------------------------------------------
2704 EVENT_PROPAGATE_NONE
= _core
.EVENT_PROPAGATE_NONE
2705 EVENT_PROPAGATE_MAX
= _core
.EVENT_PROPAGATE_MAX
2707 def NewEventType(*args
, **kwargs
):
2708 """NewEventType() -> wxEventType"""
2709 return _core
.NewEventType(*args
, **kwargs
)
2710 wxEVT_NULL
= _core
.wxEVT_NULL
2711 wxEVT_FIRST
= _core
.wxEVT_FIRST
2712 wxEVT_USER_FIRST
= _core
.wxEVT_USER_FIRST
2713 wxEVT_COMMAND_BUTTON_CLICKED
= _core
.wxEVT_COMMAND_BUTTON_CLICKED
2714 wxEVT_COMMAND_CHECKBOX_CLICKED
= _core
.wxEVT_COMMAND_CHECKBOX_CLICKED
2715 wxEVT_COMMAND_CHOICE_SELECTED
= _core
.wxEVT_COMMAND_CHOICE_SELECTED
2716 wxEVT_COMMAND_LISTBOX_SELECTED
= _core
.wxEVT_COMMAND_LISTBOX_SELECTED
2717 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
= _core
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
2718 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
= _core
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
2719 wxEVT_COMMAND_MENU_SELECTED
= _core
.wxEVT_COMMAND_MENU_SELECTED
2720 wxEVT_COMMAND_TOOL_CLICKED
= _core
.wxEVT_COMMAND_TOOL_CLICKED
2721 wxEVT_COMMAND_SLIDER_UPDATED
= _core
.wxEVT_COMMAND_SLIDER_UPDATED
2722 wxEVT_COMMAND_RADIOBOX_SELECTED
= _core
.wxEVT_COMMAND_RADIOBOX_SELECTED
2723 wxEVT_COMMAND_RADIOBUTTON_SELECTED
= _core
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
2724 wxEVT_COMMAND_SCROLLBAR_UPDATED
= _core
.wxEVT_COMMAND_SCROLLBAR_UPDATED
2725 wxEVT_COMMAND_VLBOX_SELECTED
= _core
.wxEVT_COMMAND_VLBOX_SELECTED
2726 wxEVT_COMMAND_COMBOBOX_SELECTED
= _core
.wxEVT_COMMAND_COMBOBOX_SELECTED
2727 wxEVT_COMMAND_TOOL_RCLICKED
= _core
.wxEVT_COMMAND_TOOL_RCLICKED
2728 wxEVT_COMMAND_TOOL_ENTER
= _core
.wxEVT_COMMAND_TOOL_ENTER
2729 wxEVT_LEFT_DOWN
= _core
.wxEVT_LEFT_DOWN
2730 wxEVT_LEFT_UP
= _core
.wxEVT_LEFT_UP
2731 wxEVT_MIDDLE_DOWN
= _core
.wxEVT_MIDDLE_DOWN
2732 wxEVT_MIDDLE_UP
= _core
.wxEVT_MIDDLE_UP
2733 wxEVT_RIGHT_DOWN
= _core
.wxEVT_RIGHT_DOWN
2734 wxEVT_RIGHT_UP
= _core
.wxEVT_RIGHT_UP
2735 wxEVT_MOTION
= _core
.wxEVT_MOTION
2736 wxEVT_ENTER_WINDOW
= _core
.wxEVT_ENTER_WINDOW
2737 wxEVT_LEAVE_WINDOW
= _core
.wxEVT_LEAVE_WINDOW
2738 wxEVT_LEFT_DCLICK
= _core
.wxEVT_LEFT_DCLICK
2739 wxEVT_MIDDLE_DCLICK
= _core
.wxEVT_MIDDLE_DCLICK
2740 wxEVT_RIGHT_DCLICK
= _core
.wxEVT_RIGHT_DCLICK
2741 wxEVT_SET_FOCUS
= _core
.wxEVT_SET_FOCUS
2742 wxEVT_KILL_FOCUS
= _core
.wxEVT_KILL_FOCUS
2743 wxEVT_CHILD_FOCUS
= _core
.wxEVT_CHILD_FOCUS
2744 wxEVT_MOUSEWHEEL
= _core
.wxEVT_MOUSEWHEEL
2745 wxEVT_NC_LEFT_DOWN
= _core
.wxEVT_NC_LEFT_DOWN
2746 wxEVT_NC_LEFT_UP
= _core
.wxEVT_NC_LEFT_UP
2747 wxEVT_NC_MIDDLE_DOWN
= _core
.wxEVT_NC_MIDDLE_DOWN
2748 wxEVT_NC_MIDDLE_UP
= _core
.wxEVT_NC_MIDDLE_UP
2749 wxEVT_NC_RIGHT_DOWN
= _core
.wxEVT_NC_RIGHT_DOWN
2750 wxEVT_NC_RIGHT_UP
= _core
.wxEVT_NC_RIGHT_UP
2751 wxEVT_NC_MOTION
= _core
.wxEVT_NC_MOTION
2752 wxEVT_NC_ENTER_WINDOW
= _core
.wxEVT_NC_ENTER_WINDOW
2753 wxEVT_NC_LEAVE_WINDOW
= _core
.wxEVT_NC_LEAVE_WINDOW
2754 wxEVT_NC_LEFT_DCLICK
= _core
.wxEVT_NC_LEFT_DCLICK
2755 wxEVT_NC_MIDDLE_DCLICK
= _core
.wxEVT_NC_MIDDLE_DCLICK
2756 wxEVT_NC_RIGHT_DCLICK
= _core
.wxEVT_NC_RIGHT_DCLICK
2757 wxEVT_CHAR
= _core
.wxEVT_CHAR
2758 wxEVT_CHAR_HOOK
= _core
.wxEVT_CHAR_HOOK
2759 wxEVT_NAVIGATION_KEY
= _core
.wxEVT_NAVIGATION_KEY
2760 wxEVT_KEY_DOWN
= _core
.wxEVT_KEY_DOWN
2761 wxEVT_KEY_UP
= _core
.wxEVT_KEY_UP
2762 wxEVT_HOTKEY
= _core
.wxEVT_HOTKEY
2763 wxEVT_SET_CURSOR
= _core
.wxEVT_SET_CURSOR
2764 wxEVT_SCROLL_TOP
= _core
.wxEVT_SCROLL_TOP
2765 wxEVT_SCROLL_BOTTOM
= _core
.wxEVT_SCROLL_BOTTOM
2766 wxEVT_SCROLL_LINEUP
= _core
.wxEVT_SCROLL_LINEUP
2767 wxEVT_SCROLL_LINEDOWN
= _core
.wxEVT_SCROLL_LINEDOWN
2768 wxEVT_SCROLL_PAGEUP
= _core
.wxEVT_SCROLL_PAGEUP
2769 wxEVT_SCROLL_PAGEDOWN
= _core
.wxEVT_SCROLL_PAGEDOWN
2770 wxEVT_SCROLL_THUMBTRACK
= _core
.wxEVT_SCROLL_THUMBTRACK
2771 wxEVT_SCROLL_THUMBRELEASE
= _core
.wxEVT_SCROLL_THUMBRELEASE
2772 wxEVT_SCROLL_ENDSCROLL
= _core
.wxEVT_SCROLL_ENDSCROLL
2773 wxEVT_SCROLLWIN_TOP
= _core
.wxEVT_SCROLLWIN_TOP
2774 wxEVT_SCROLLWIN_BOTTOM
= _core
.wxEVT_SCROLLWIN_BOTTOM
2775 wxEVT_SCROLLWIN_LINEUP
= _core
.wxEVT_SCROLLWIN_LINEUP
2776 wxEVT_SCROLLWIN_LINEDOWN
= _core
.wxEVT_SCROLLWIN_LINEDOWN
2777 wxEVT_SCROLLWIN_PAGEUP
= _core
.wxEVT_SCROLLWIN_PAGEUP
2778 wxEVT_SCROLLWIN_PAGEDOWN
= _core
.wxEVT_SCROLLWIN_PAGEDOWN
2779 wxEVT_SCROLLWIN_THUMBTRACK
= _core
.wxEVT_SCROLLWIN_THUMBTRACK
2780 wxEVT_SCROLLWIN_THUMBRELEASE
= _core
.wxEVT_SCROLLWIN_THUMBRELEASE
2781 wxEVT_SIZE
= _core
.wxEVT_SIZE
2782 wxEVT_MOVE
= _core
.wxEVT_MOVE
2783 wxEVT_CLOSE_WINDOW
= _core
.wxEVT_CLOSE_WINDOW
2784 wxEVT_END_SESSION
= _core
.wxEVT_END_SESSION
2785 wxEVT_QUERY_END_SESSION
= _core
.wxEVT_QUERY_END_SESSION
2786 wxEVT_ACTIVATE_APP
= _core
.wxEVT_ACTIVATE_APP
2787 wxEVT_POWER
= _core
.wxEVT_POWER
2788 wxEVT_ACTIVATE
= _core
.wxEVT_ACTIVATE
2789 wxEVT_CREATE
= _core
.wxEVT_CREATE
2790 wxEVT_DESTROY
= _core
.wxEVT_DESTROY
2791 wxEVT_SHOW
= _core
.wxEVT_SHOW
2792 wxEVT_ICONIZE
= _core
.wxEVT_ICONIZE
2793 wxEVT_MAXIMIZE
= _core
.wxEVT_MAXIMIZE
2794 wxEVT_MOUSE_CAPTURE_CHANGED
= _core
.wxEVT_MOUSE_CAPTURE_CHANGED
2795 wxEVT_PAINT
= _core
.wxEVT_PAINT
2796 wxEVT_ERASE_BACKGROUND
= _core
.wxEVT_ERASE_BACKGROUND
2797 wxEVT_NC_PAINT
= _core
.wxEVT_NC_PAINT
2798 wxEVT_PAINT_ICON
= _core
.wxEVT_PAINT_ICON
2799 wxEVT_MENU_OPEN
= _core
.wxEVT_MENU_OPEN
2800 wxEVT_MENU_CLOSE
= _core
.wxEVT_MENU_CLOSE
2801 wxEVT_MENU_HIGHLIGHT
= _core
.wxEVT_MENU_HIGHLIGHT
2802 wxEVT_CONTEXT_MENU
= _core
.wxEVT_CONTEXT_MENU
2803 wxEVT_SYS_COLOUR_CHANGED
= _core
.wxEVT_SYS_COLOUR_CHANGED
2804 wxEVT_DISPLAY_CHANGED
= _core
.wxEVT_DISPLAY_CHANGED
2805 wxEVT_SETTING_CHANGED
= _core
.wxEVT_SETTING_CHANGED
2806 wxEVT_QUERY_NEW_PALETTE
= _core
.wxEVT_QUERY_NEW_PALETTE
2807 wxEVT_PALETTE_CHANGED
= _core
.wxEVT_PALETTE_CHANGED
2808 wxEVT_DROP_FILES
= _core
.wxEVT_DROP_FILES
2809 wxEVT_DRAW_ITEM
= _core
.wxEVT_DRAW_ITEM
2810 wxEVT_MEASURE_ITEM
= _core
.wxEVT_MEASURE_ITEM
2811 wxEVT_COMPARE_ITEM
= _core
.wxEVT_COMPARE_ITEM
2812 wxEVT_INIT_DIALOG
= _core
.wxEVT_INIT_DIALOG
2813 wxEVT_IDLE
= _core
.wxEVT_IDLE
2814 wxEVT_UPDATE_UI
= _core
.wxEVT_UPDATE_UI
2815 wxEVT_SIZING
= _core
.wxEVT_SIZING
2816 wxEVT_MOVING
= _core
.wxEVT_MOVING
2817 wxEVT_COMMAND_LEFT_CLICK
= _core
.wxEVT_COMMAND_LEFT_CLICK
2818 wxEVT_COMMAND_LEFT_DCLICK
= _core
.wxEVT_COMMAND_LEFT_DCLICK
2819 wxEVT_COMMAND_RIGHT_CLICK
= _core
.wxEVT_COMMAND_RIGHT_CLICK
2820 wxEVT_COMMAND_RIGHT_DCLICK
= _core
.wxEVT_COMMAND_RIGHT_DCLICK
2821 wxEVT_COMMAND_SET_FOCUS
= _core
.wxEVT_COMMAND_SET_FOCUS
2822 wxEVT_COMMAND_KILL_FOCUS
= _core
.wxEVT_COMMAND_KILL_FOCUS
2823 wxEVT_COMMAND_ENTER
= _core
.wxEVT_COMMAND_ENTER
2825 # Create some event binders
2826 EVT_SIZE
= wx
.PyEventBinder( wxEVT_SIZE
)
2827 EVT_SIZING
= wx
.PyEventBinder( wxEVT_SIZING
)
2828 EVT_MOVE
= wx
.PyEventBinder( wxEVT_MOVE
)
2829 EVT_MOVING
= wx
.PyEventBinder( wxEVT_MOVING
)
2830 EVT_CLOSE
= wx
.PyEventBinder( wxEVT_CLOSE_WINDOW
)
2831 EVT_END_SESSION
= wx
.PyEventBinder( wxEVT_END_SESSION
)
2832 EVT_QUERY_END_SESSION
= wx
.PyEventBinder( wxEVT_QUERY_END_SESSION
)
2833 EVT_PAINT
= wx
.PyEventBinder( wxEVT_PAINT
)
2834 EVT_NC_PAINT
= wx
.PyEventBinder( wxEVT_NC_PAINT
)
2835 EVT_ERASE_BACKGROUND
= wx
.PyEventBinder( wxEVT_ERASE_BACKGROUND
)
2836 EVT_CHAR
= wx
.PyEventBinder( wxEVT_CHAR
)
2837 EVT_KEY_DOWN
= wx
.PyEventBinder( wxEVT_KEY_DOWN
)
2838 EVT_KEY_UP
= wx
.PyEventBinder( wxEVT_KEY_UP
)
2839 EVT_HOTKEY
= wx
.PyEventBinder( wxEVT_HOTKEY
, 1)
2840 EVT_CHAR_HOOK
= wx
.PyEventBinder( wxEVT_CHAR_HOOK
)
2841 EVT_MENU_OPEN
= wx
.PyEventBinder( wxEVT_MENU_OPEN
)
2842 EVT_MENU_CLOSE
= wx
.PyEventBinder( wxEVT_MENU_CLOSE
)
2843 EVT_MENU_HIGHLIGHT
= wx
.PyEventBinder( wxEVT_MENU_HIGHLIGHT
, 1)
2844 EVT_MENU_HIGHLIGHT_ALL
= wx
.PyEventBinder( wxEVT_MENU_HIGHLIGHT
)
2845 EVT_SET_FOCUS
= wx
.PyEventBinder( wxEVT_SET_FOCUS
)
2846 EVT_KILL_FOCUS
= wx
.PyEventBinder( wxEVT_KILL_FOCUS
)
2847 EVT_CHILD_FOCUS
= wx
.PyEventBinder( wxEVT_CHILD_FOCUS
)
2848 EVT_ACTIVATE
= wx
.PyEventBinder( wxEVT_ACTIVATE
)
2849 EVT_ACTIVATE_APP
= wx
.PyEventBinder( wxEVT_ACTIVATE_APP
)
2850 EVT_END_SESSION
= wx
.PyEventBinder( wxEVT_END_SESSION
)
2851 EVT_QUERY_END_SESSION
= wx
.PyEventBinder( wxEVT_QUERY_END_SESSION
)
2852 EVT_DROP_FILES
= wx
.PyEventBinder( wxEVT_DROP_FILES
)
2853 EVT_INIT_DIALOG
= wx
.PyEventBinder( wxEVT_INIT_DIALOG
)
2854 EVT_SYS_COLOUR_CHANGED
= wx
.PyEventBinder( wxEVT_SYS_COLOUR_CHANGED
)
2855 EVT_DISPLAY_CHANGED
= wx
.PyEventBinder( wxEVT_DISPLAY_CHANGED
)
2856 EVT_SHOW
= wx
.PyEventBinder( wxEVT_SHOW
)
2857 EVT_MAXIMIZE
= wx
.PyEventBinder( wxEVT_MAXIMIZE
)
2858 EVT_ICONIZE
= wx
.PyEventBinder( wxEVT_ICONIZE
)
2859 EVT_NAVIGATION_KEY
= wx
.PyEventBinder( wxEVT_NAVIGATION_KEY
)
2860 EVT_PALETTE_CHANGED
= wx
.PyEventBinder( wxEVT_PALETTE_CHANGED
)
2861 EVT_QUERY_NEW_PALETTE
= wx
.PyEventBinder( wxEVT_QUERY_NEW_PALETTE
)
2862 EVT_WINDOW_CREATE
= wx
.PyEventBinder( wxEVT_CREATE
)
2863 EVT_WINDOW_DESTROY
= wx
.PyEventBinder( wxEVT_DESTROY
)
2864 EVT_SET_CURSOR
= wx
.PyEventBinder( wxEVT_SET_CURSOR
)
2865 EVT_MOUSE_CAPTURE_CHANGED
= wx
.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED
)
2867 EVT_LEFT_DOWN
= wx
.PyEventBinder( wxEVT_LEFT_DOWN
)
2868 EVT_LEFT_UP
= wx
.PyEventBinder( wxEVT_LEFT_UP
)
2869 EVT_MIDDLE_DOWN
= wx
.PyEventBinder( wxEVT_MIDDLE_DOWN
)
2870 EVT_MIDDLE_UP
= wx
.PyEventBinder( wxEVT_MIDDLE_UP
)
2871 EVT_RIGHT_DOWN
= wx
.PyEventBinder( wxEVT_RIGHT_DOWN
)
2872 EVT_RIGHT_UP
= wx
.PyEventBinder( wxEVT_RIGHT_UP
)
2873 EVT_MOTION
= wx
.PyEventBinder( wxEVT_MOTION
)
2874 EVT_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_LEFT_DCLICK
)
2875 EVT_MIDDLE_DCLICK
= wx
.PyEventBinder( wxEVT_MIDDLE_DCLICK
)
2876 EVT_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_RIGHT_DCLICK
)
2877 EVT_LEAVE_WINDOW
= wx
.PyEventBinder( wxEVT_LEAVE_WINDOW
)
2878 EVT_ENTER_WINDOW
= wx
.PyEventBinder( wxEVT_ENTER_WINDOW
)
2879 EVT_MOUSEWHEEL
= wx
.PyEventBinder( wxEVT_MOUSEWHEEL
)
2881 EVT_MOUSE_EVENTS
= wx
.PyEventBinder([ wxEVT_LEFT_DOWN
,
2889 wxEVT_MIDDLE_DCLICK
,
2897 # Scrolling from wxWindow (sent to wxScrolledWindow)
2898 EVT_SCROLLWIN
= wx
.PyEventBinder([ wxEVT_SCROLLWIN_TOP
,
2899 wxEVT_SCROLLWIN_BOTTOM
,
2900 wxEVT_SCROLLWIN_LINEUP
,
2901 wxEVT_SCROLLWIN_LINEDOWN
,
2902 wxEVT_SCROLLWIN_PAGEUP
,
2903 wxEVT_SCROLLWIN_PAGEDOWN
,
2904 wxEVT_SCROLLWIN_THUMBTRACK
,
2905 wxEVT_SCROLLWIN_THUMBRELEASE
,
2908 EVT_SCROLLWIN_TOP
= wx
.PyEventBinder( wxEVT_SCROLLWIN_TOP
)
2909 EVT_SCROLLWIN_BOTTOM
= wx
.PyEventBinder( wxEVT_SCROLLWIN_BOTTOM
)
2910 EVT_SCROLLWIN_LINEUP
= wx
.PyEventBinder( wxEVT_SCROLLWIN_LINEUP
)
2911 EVT_SCROLLWIN_LINEDOWN
= wx
.PyEventBinder( wxEVT_SCROLLWIN_LINEDOWN
)
2912 EVT_SCROLLWIN_PAGEUP
= wx
.PyEventBinder( wxEVT_SCROLLWIN_PAGEUP
)
2913 EVT_SCROLLWIN_PAGEDOWN
= wx
.PyEventBinder( wxEVT_SCROLLWIN_PAGEDOWN
)
2914 EVT_SCROLLWIN_THUMBTRACK
= wx
.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK
)
2915 EVT_SCROLLWIN_THUMBRELEASE
= wx
.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE
)
2917 # Scrolling from wxSlider and wxScrollBar
2918 EVT_SCROLL
= wx
.PyEventBinder([ wxEVT_SCROLL_TOP
,
2919 wxEVT_SCROLL_BOTTOM
,
2920 wxEVT_SCROLL_LINEUP
,
2921 wxEVT_SCROLL_LINEDOWN
,
2922 wxEVT_SCROLL_PAGEUP
,
2923 wxEVT_SCROLL_PAGEDOWN
,
2924 wxEVT_SCROLL_THUMBTRACK
,
2925 wxEVT_SCROLL_THUMBRELEASE
,
2926 wxEVT_SCROLL_ENDSCROLL
,
2929 EVT_SCROLL_TOP
= wx
.PyEventBinder( wxEVT_SCROLL_TOP
)
2930 EVT_SCROLL_BOTTOM
= wx
.PyEventBinder( wxEVT_SCROLL_BOTTOM
)
2931 EVT_SCROLL_LINEUP
= wx
.PyEventBinder( wxEVT_SCROLL_LINEUP
)
2932 EVT_SCROLL_LINEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_LINEDOWN
)
2933 EVT_SCROLL_PAGEUP
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEUP
)
2934 EVT_SCROLL_PAGEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEDOWN
)
2935 EVT_SCROLL_THUMBTRACK
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBTRACK
)
2936 EVT_SCROLL_THUMBRELEASE
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE
)
2937 EVT_SCROLL_ENDSCROLL
= wx
.PyEventBinder( wxEVT_SCROLL_ENDSCROLL
)
2939 # Scrolling from wxSlider and wxScrollBar, with an id
2940 EVT_COMMAND_SCROLL
= wx
.PyEventBinder([ wxEVT_SCROLL_TOP
,
2941 wxEVT_SCROLL_BOTTOM
,
2942 wxEVT_SCROLL_LINEUP
,
2943 wxEVT_SCROLL_LINEDOWN
,
2944 wxEVT_SCROLL_PAGEUP
,
2945 wxEVT_SCROLL_PAGEDOWN
,
2946 wxEVT_SCROLL_THUMBTRACK
,
2947 wxEVT_SCROLL_THUMBRELEASE
,
2948 wxEVT_SCROLL_ENDSCROLL
,
2951 EVT_COMMAND_SCROLL_TOP
= wx
.PyEventBinder( wxEVT_SCROLL_TOP
, 1)
2952 EVT_COMMAND_SCROLL_BOTTOM
= wx
.PyEventBinder( wxEVT_SCROLL_BOTTOM
, 1)
2953 EVT_COMMAND_SCROLL_LINEUP
= wx
.PyEventBinder( wxEVT_SCROLL_LINEUP
, 1)
2954 EVT_COMMAND_SCROLL_LINEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_LINEDOWN
, 1)
2955 EVT_COMMAND_SCROLL_PAGEUP
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEUP
, 1)
2956 EVT_COMMAND_SCROLL_PAGEDOWN
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEDOWN
, 1)
2957 EVT_COMMAND_SCROLL_THUMBTRACK
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBTRACK
, 1)
2958 EVT_COMMAND_SCROLL_THUMBRELEASE
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE
, 1)
2959 EVT_COMMAND_SCROLL_ENDSCROLL
= wx
.PyEventBinder( wxEVT_SCROLL_ENDSCROLL
, 1)
2961 EVT_BUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED
, 1)
2962 EVT_CHECKBOX
= wx
.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED
, 1)
2963 EVT_CHOICE
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED
, 1)
2964 EVT_LISTBOX
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOX_SELECTED
, 1)
2965 EVT_LISTBOX_DCLICK
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, 1)
2966 EVT_MENU
= wx
.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED
, 1)
2967 EVT_MENU_RANGE
= wx
.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED
, 2)
2968 EVT_SLIDER
= wx
.PyEventBinder( wxEVT_COMMAND_SLIDER_UPDATED
, 1)
2969 EVT_RADIOBOX
= wx
.PyEventBinder( wxEVT_COMMAND_RADIOBOX_SELECTED
, 1)
2970 EVT_RADIOBUTTON
= wx
.PyEventBinder( wxEVT_COMMAND_RADIOBUTTON_SELECTED
, 1)
2972 EVT_SCROLLBAR
= wx
.PyEventBinder( wxEVT_COMMAND_SCROLLBAR_UPDATED
, 1)
2973 EVT_VLBOX
= wx
.PyEventBinder( wxEVT_COMMAND_VLBOX_SELECTED
, 1)
2974 EVT_COMBOBOX
= wx
.PyEventBinder( wxEVT_COMMAND_COMBOBOX_SELECTED
, 1)
2975 EVT_TOOL
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED
, 1)
2976 EVT_TOOL_RANGE
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED
, 2)
2977 EVT_TOOL_RCLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED
, 1)
2978 EVT_TOOL_RCLICKED_RANGE
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED
, 2)
2979 EVT_TOOL_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_ENTER
, 1)
2980 EVT_CHECKLISTBOX
= wx
.PyEventBinder( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, 1)
2983 EVT_COMMAND_LEFT_CLICK
= wx
.PyEventBinder( wxEVT_COMMAND_LEFT_CLICK
, 1)
2984 EVT_COMMAND_LEFT_DCLICK
= wx
.PyEventBinder( wxEVT_COMMAND_LEFT_DCLICK
, 1)
2985 EVT_COMMAND_RIGHT_CLICK
= wx
.PyEventBinder( wxEVT_COMMAND_RIGHT_CLICK
, 1)
2986 EVT_COMMAND_RIGHT_DCLICK
= wx
.PyEventBinder( wxEVT_COMMAND_RIGHT_DCLICK
, 1)
2987 EVT_COMMAND_SET_FOCUS
= wx
.PyEventBinder( wxEVT_COMMAND_SET_FOCUS
, 1)
2988 EVT_COMMAND_KILL_FOCUS
= wx
.PyEventBinder( wxEVT_COMMAND_KILL_FOCUS
, 1)
2989 EVT_COMMAND_ENTER
= wx
.PyEventBinder( wxEVT_COMMAND_ENTER
, 1)
2991 EVT_IDLE
= wx
.PyEventBinder( wxEVT_IDLE
)
2993 EVT_UPDATE_UI
= wx
.PyEventBinder( wxEVT_UPDATE_UI
, 1)
2994 EVT_UPDATE_UI_RANGE
= wx
.PyEventBinder( wxEVT_UPDATE_UI
, 2)
2996 EVT_CONTEXT_MENU
= wx
.PyEventBinder( wxEVT_CONTEXT_MENU
)
3000 #---------------------------------------------------------------------------
3002 class Event(Object
):
3003 def __init__(self
): raise RuntimeError, "No constructor defined"
3005 return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3006 def __del__(self
, destroy
=_core
.delete_Event
):
3009 if self
.thisown
: destroy(self
)
3012 def SetEventType(*args
, **kwargs
):
3013 """SetEventType(wxEventType typ)"""
3014 return _core
.Event_SetEventType(*args
, **kwargs
)
3016 def GetEventType(*args
, **kwargs
):
3017 """GetEventType() -> wxEventType"""
3018 return _core
.Event_GetEventType(*args
, **kwargs
)
3020 def GetEventObject(*args
, **kwargs
):
3021 """GetEventObject() -> Object"""
3022 return _core
.Event_GetEventObject(*args
, **kwargs
)
3024 def SetEventObject(*args
, **kwargs
):
3025 """SetEventObject(Object obj)"""
3026 return _core
.Event_SetEventObject(*args
, **kwargs
)
3028 def GetTimestamp(*args
, **kwargs
):
3029 """GetTimestamp() -> long"""
3030 return _core
.Event_GetTimestamp(*args
, **kwargs
)
3032 def SetTimestamp(*args
, **kwargs
):
3033 """SetTimestamp(long ts=0)"""
3034 return _core
.Event_SetTimestamp(*args
, **kwargs
)
3036 def GetId(*args
, **kwargs
):
3037 """GetId() -> int"""
3038 return _core
.Event_GetId(*args
, **kwargs
)
3040 def SetId(*args
, **kwargs
):
3042 return _core
.Event_SetId(*args
, **kwargs
)
3044 def IsCommandEvent(*args
, **kwargs
):
3045 """IsCommandEvent() -> bool"""
3046 return _core
.Event_IsCommandEvent(*args
, **kwargs
)
3048 def Skip(*args
, **kwargs
):
3049 """Skip(bool skip=True)"""
3050 return _core
.Event_Skip(*args
, **kwargs
)
3052 def GetSkipped(*args
, **kwargs
):
3053 """GetSkipped() -> bool"""
3054 return _core
.Event_GetSkipped(*args
, **kwargs
)
3056 def ShouldPropagate(*args
, **kwargs
):
3057 """ShouldPropagate() -> bool"""
3058 return _core
.Event_ShouldPropagate(*args
, **kwargs
)
3060 def StopPropagation(*args
, **kwargs
):
3061 """StopPropagation() -> int"""
3062 return _core
.Event_StopPropagation(*args
, **kwargs
)
3064 def ResumePropagation(*args
, **kwargs
):
3065 """ResumePropagation(int propagationLevel)"""
3066 return _core
.Event_ResumePropagation(*args
, **kwargs
)
3068 def Clone(*args
, **kwargs
):
3069 """Clone() -> Event"""
3070 return _core
.Event_Clone(*args
, **kwargs
)
3073 class EventPtr(Event
):
3074 def __init__(self
, this
):
3076 if not hasattr(self
,"thisown"): self
.thisown
= 0
3077 self
.__class
__ = Event
3078 _core
.Event_swigregister(EventPtr
)
3080 #---------------------------------------------------------------------------
3082 class PropagationDisabler(object):
3084 return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3085 def __init__(self
, *args
, **kwargs
):
3086 """__init__(Event event) -> PropagationDisabler"""
3087 newobj
= _core
.new_PropagationDisabler(*args
, **kwargs
)
3088 self
.this
= newobj
.this
3091 def __del__(self
, destroy
=_core
.delete_PropagationDisabler
):
3094 if self
.thisown
: destroy(self
)
3098 class PropagationDisablerPtr(PropagationDisabler
):
3099 def __init__(self
, this
):
3101 if not hasattr(self
,"thisown"): self
.thisown
= 0
3102 self
.__class
__ = PropagationDisabler
3103 _core
.PropagationDisabler_swigregister(PropagationDisablerPtr
)
3105 class PropagateOnce(object):
3107 return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3108 def __init__(self
, *args
, **kwargs
):
3109 """__init__(Event event) -> PropagateOnce"""
3110 newobj
= _core
.new_PropagateOnce(*args
, **kwargs
)
3111 self
.this
= newobj
.this
3114 def __del__(self
, destroy
=_core
.delete_PropagateOnce
):
3117 if self
.thisown
: destroy(self
)
3121 class PropagateOncePtr(PropagateOnce
):
3122 def __init__(self
, this
):
3124 if not hasattr(self
,"thisown"): self
.thisown
= 0
3125 self
.__class
__ = PropagateOnce
3126 _core
.PropagateOnce_swigregister(PropagateOncePtr
)
3128 #---------------------------------------------------------------------------
3130 class CommandEvent(Event
):
3132 return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3133 def __init__(self
, *args
, **kwargs
):
3134 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent"""
3135 newobj
= _core
.new_CommandEvent(*args
, **kwargs
)
3136 self
.this
= newobj
.this
3139 def GetSelection(*args
, **kwargs
):
3140 """GetSelection() -> int"""
3141 return _core
.CommandEvent_GetSelection(*args
, **kwargs
)
3143 def SetString(*args
, **kwargs
):
3144 """SetString(String s)"""
3145 return _core
.CommandEvent_SetString(*args
, **kwargs
)
3147 def GetString(*args
, **kwargs
):
3148 """GetString() -> String"""
3149 return _core
.CommandEvent_GetString(*args
, **kwargs
)
3151 def IsChecked(*args
, **kwargs
):
3152 """IsChecked() -> bool"""
3153 return _core
.CommandEvent_IsChecked(*args
, **kwargs
)
3156 def IsSelection(*args
, **kwargs
):
3157 """IsSelection() -> bool"""
3158 return _core
.CommandEvent_IsSelection(*args
, **kwargs
)
3160 def SetExtraLong(*args
, **kwargs
):
3161 """SetExtraLong(long extraLong)"""
3162 return _core
.CommandEvent_SetExtraLong(*args
, **kwargs
)
3164 def GetExtraLong(*args
, **kwargs
):
3165 """GetExtraLong() -> long"""
3166 return _core
.CommandEvent_GetExtraLong(*args
, **kwargs
)
3168 def SetInt(*args
, **kwargs
):
3170 return _core
.CommandEvent_SetInt(*args
, **kwargs
)
3172 def GetInt(*args
, **kwargs
):
3173 """GetInt() -> long"""
3174 return _core
.CommandEvent_GetInt(*args
, **kwargs
)
3176 def Clone(*args
, **kwargs
):
3177 """Clone() -> Event"""
3178 return _core
.CommandEvent_Clone(*args
, **kwargs
)
3181 class CommandEventPtr(CommandEvent
):
3182 def __init__(self
, this
):
3184 if not hasattr(self
,"thisown"): self
.thisown
= 0
3185 self
.__class
__ = CommandEvent
3186 _core
.CommandEvent_swigregister(CommandEventPtr
)
3188 #---------------------------------------------------------------------------
3190 class NotifyEvent(CommandEvent
):
3192 return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3193 def __init__(self
, *args
, **kwargs
):
3194 """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent"""
3195 newobj
= _core
.new_NotifyEvent(*args
, **kwargs
)
3196 self
.this
= newobj
.this
3199 def Veto(*args
, **kwargs
):
3201 return _core
.NotifyEvent_Veto(*args
, **kwargs
)
3203 def Allow(*args
, **kwargs
):
3205 return _core
.NotifyEvent_Allow(*args
, **kwargs
)
3207 def IsAllowed(*args
, **kwargs
):
3208 """IsAllowed() -> bool"""
3209 return _core
.NotifyEvent_IsAllowed(*args
, **kwargs
)
3212 class NotifyEventPtr(NotifyEvent
):
3213 def __init__(self
, this
):
3215 if not hasattr(self
,"thisown"): self
.thisown
= 0
3216 self
.__class
__ = NotifyEvent
3217 _core
.NotifyEvent_swigregister(NotifyEventPtr
)
3219 #---------------------------------------------------------------------------
3221 class ScrollEvent(CommandEvent
):
3223 return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3224 def __init__(self
, *args
, **kwargs
):
3226 __init__(wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0,
3227 int orient=0) -> ScrollEvent
3229 newobj
= _core
.new_ScrollEvent(*args
, **kwargs
)
3230 self
.this
= newobj
.this
3233 def GetOrientation(*args
, **kwargs
):
3234 """GetOrientation() -> int"""
3235 return _core
.ScrollEvent_GetOrientation(*args
, **kwargs
)
3237 def GetPosition(*args
, **kwargs
):
3238 """GetPosition() -> int"""
3239 return _core
.ScrollEvent_GetPosition(*args
, **kwargs
)
3241 def SetOrientation(*args
, **kwargs
):
3242 """SetOrientation(int orient)"""
3243 return _core
.ScrollEvent_SetOrientation(*args
, **kwargs
)
3245 def SetPosition(*args
, **kwargs
):
3246 """SetPosition(int pos)"""
3247 return _core
.ScrollEvent_SetPosition(*args
, **kwargs
)
3250 class ScrollEventPtr(ScrollEvent
):
3251 def __init__(self
, this
):
3253 if not hasattr(self
,"thisown"): self
.thisown
= 0
3254 self
.__class
__ = ScrollEvent
3255 _core
.ScrollEvent_swigregister(ScrollEventPtr
)
3257 #---------------------------------------------------------------------------
3259 class ScrollWinEvent(Event
):
3261 return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3262 def __init__(self
, *args
, **kwargs
):
3263 """__init__(wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent"""
3264 newobj
= _core
.new_ScrollWinEvent(*args
, **kwargs
)
3265 self
.this
= newobj
.this
3268 def GetOrientation(*args
, **kwargs
):
3269 """GetOrientation() -> int"""
3270 return _core
.ScrollWinEvent_GetOrientation(*args
, **kwargs
)
3272 def GetPosition(*args
, **kwargs
):
3273 """GetPosition() -> int"""
3274 return _core
.ScrollWinEvent_GetPosition(*args
, **kwargs
)
3276 def SetOrientation(*args
, **kwargs
):
3277 """SetOrientation(int orient)"""
3278 return _core
.ScrollWinEvent_SetOrientation(*args
, **kwargs
)
3280 def SetPosition(*args
, **kwargs
):
3281 """SetPosition(int pos)"""
3282 return _core
.ScrollWinEvent_SetPosition(*args
, **kwargs
)
3285 class ScrollWinEventPtr(ScrollWinEvent
):
3286 def __init__(self
, this
):
3288 if not hasattr(self
,"thisown"): self
.thisown
= 0
3289 self
.__class
__ = ScrollWinEvent
3290 _core
.ScrollWinEvent_swigregister(ScrollWinEventPtr
)
3292 #---------------------------------------------------------------------------
3294 MOUSE_BTN_ANY
= _core
.MOUSE_BTN_ANY
3295 MOUSE_BTN_NONE
= _core
.MOUSE_BTN_NONE
3296 MOUSE_BTN_LEFT
= _core
.MOUSE_BTN_LEFT
3297 MOUSE_BTN_MIDDLE
= _core
.MOUSE_BTN_MIDDLE
3298 MOUSE_BTN_RIGHT
= _core
.MOUSE_BTN_RIGHT
3299 class MouseEvent(Event
):
3301 return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3302 def __init__(self
, *args
, **kwargs
):
3303 """__init__(wxEventType mouseType=wxEVT_NULL) -> MouseEvent"""
3304 newobj
= _core
.new_MouseEvent(*args
, **kwargs
)
3305 self
.this
= newobj
.this
3308 def IsButton(*args
, **kwargs
):
3309 """IsButton() -> bool"""
3310 return _core
.MouseEvent_IsButton(*args
, **kwargs
)
3312 def ButtonDown(*args
, **kwargs
):
3313 """ButtonDown(int but=MOUSE_BTN_ANY) -> bool"""
3314 return _core
.MouseEvent_ButtonDown(*args
, **kwargs
)
3316 def ButtonDClick(*args
, **kwargs
):
3317 """ButtonDClick(int but=MOUSE_BTN_ANY) -> bool"""
3318 return _core
.MouseEvent_ButtonDClick(*args
, **kwargs
)
3320 def ButtonUp(*args
, **kwargs
):
3321 """ButtonUp(int but=MOUSE_BTN_ANY) -> bool"""
3322 return _core
.MouseEvent_ButtonUp(*args
, **kwargs
)
3324 def Button(*args
, **kwargs
):
3325 """Button(int but) -> bool"""
3326 return _core
.MouseEvent_Button(*args
, **kwargs
)
3328 def ButtonIsDown(*args
, **kwargs
):
3329 """ButtonIsDown(int but) -> bool"""
3330 return _core
.MouseEvent_ButtonIsDown(*args
, **kwargs
)
3332 def GetButton(*args
, **kwargs
):
3333 """GetButton() -> int"""
3334 return _core
.MouseEvent_GetButton(*args
, **kwargs
)
3336 def ControlDown(*args
, **kwargs
):
3337 """ControlDown() -> bool"""
3338 return _core
.MouseEvent_ControlDown(*args
, **kwargs
)
3340 def MetaDown(*args
, **kwargs
):
3341 """MetaDown() -> bool"""
3342 return _core
.MouseEvent_MetaDown(*args
, **kwargs
)
3344 def AltDown(*args
, **kwargs
):
3345 """AltDown() -> bool"""
3346 return _core
.MouseEvent_AltDown(*args
, **kwargs
)
3348 def ShiftDown(*args
, **kwargs
):
3349 """ShiftDown() -> bool"""
3350 return _core
.MouseEvent_ShiftDown(*args
, **kwargs
)
3352 def LeftDown(*args
, **kwargs
):
3353 """LeftDown() -> bool"""
3354 return _core
.MouseEvent_LeftDown(*args
, **kwargs
)
3356 def MiddleDown(*args
, **kwargs
):
3357 """MiddleDown() -> bool"""
3358 return _core
.MouseEvent_MiddleDown(*args
, **kwargs
)
3360 def RightDown(*args
, **kwargs
):
3361 """RightDown() -> bool"""
3362 return _core
.MouseEvent_RightDown(*args
, **kwargs
)
3364 def LeftUp(*args
, **kwargs
):
3365 """LeftUp() -> bool"""
3366 return _core
.MouseEvent_LeftUp(*args
, **kwargs
)
3368 def MiddleUp(*args
, **kwargs
):
3369 """MiddleUp() -> bool"""
3370 return _core
.MouseEvent_MiddleUp(*args
, **kwargs
)
3372 def RightUp(*args
, **kwargs
):
3373 """RightUp() -> bool"""
3374 return _core
.MouseEvent_RightUp(*args
, **kwargs
)
3376 def LeftDClick(*args
, **kwargs
):
3377 """LeftDClick() -> bool"""
3378 return _core
.MouseEvent_LeftDClick(*args
, **kwargs
)
3380 def MiddleDClick(*args
, **kwargs
):
3381 """MiddleDClick() -> bool"""
3382 return _core
.MouseEvent_MiddleDClick(*args
, **kwargs
)
3384 def RightDClick(*args
, **kwargs
):
3385 """RightDClick() -> bool"""
3386 return _core
.MouseEvent_RightDClick(*args
, **kwargs
)
3388 def LeftIsDown(*args
, **kwargs
):
3389 """LeftIsDown() -> bool"""
3390 return _core
.MouseEvent_LeftIsDown(*args
, **kwargs
)
3392 def MiddleIsDown(*args
, **kwargs
):
3393 """MiddleIsDown() -> bool"""
3394 return _core
.MouseEvent_MiddleIsDown(*args
, **kwargs
)
3396 def RightIsDown(*args
, **kwargs
):
3397 """RightIsDown() -> bool"""
3398 return _core
.MouseEvent_RightIsDown(*args
, **kwargs
)
3400 def Dragging(*args
, **kwargs
):
3401 """Dragging() -> bool"""
3402 return _core
.MouseEvent_Dragging(*args
, **kwargs
)
3404 def Moving(*args
, **kwargs
):
3405 """Moving() -> bool"""
3406 return _core
.MouseEvent_Moving(*args
, **kwargs
)
3408 def Entering(*args
, **kwargs
):
3409 """Entering() -> bool"""
3410 return _core
.MouseEvent_Entering(*args
, **kwargs
)
3412 def Leaving(*args
, **kwargs
):
3413 """Leaving() -> bool"""
3414 return _core
.MouseEvent_Leaving(*args
, **kwargs
)
3416 def GetPosition(*args
, **kwargs
):
3418 GetPosition() -> Point
3420 Returns the position of the mouse in window coordinates when the event happened.
3422 return _core
.MouseEvent_GetPosition(*args
, **kwargs
)
3424 def GetPositionTuple(*args
, **kwargs
):
3426 GetPositionTuple() -> (x,y)
3428 Returns the position of the mouse in window coordinates when the event happened.
3430 return _core
.MouseEvent_GetPositionTuple(*args
, **kwargs
)
3432 def GetLogicalPosition(*args
, **kwargs
):
3433 """GetLogicalPosition(DC dc) -> Point"""
3434 return _core
.MouseEvent_GetLogicalPosition(*args
, **kwargs
)
3436 def GetX(*args
, **kwargs
):
3438 return _core
.MouseEvent_GetX(*args
, **kwargs
)
3440 def GetY(*args
, **kwargs
):
3442 return _core
.MouseEvent_GetY(*args
, **kwargs
)
3444 def GetWheelRotation(*args
, **kwargs
):
3445 """GetWheelRotation() -> int"""
3446 return _core
.MouseEvent_GetWheelRotation(*args
, **kwargs
)
3448 def GetWheelDelta(*args
, **kwargs
):
3449 """GetWheelDelta() -> int"""
3450 return _core
.MouseEvent_GetWheelDelta(*args
, **kwargs
)
3452 def GetLinesPerAction(*args
, **kwargs
):
3453 """GetLinesPerAction() -> int"""
3454 return _core
.MouseEvent_GetLinesPerAction(*args
, **kwargs
)
3456 def IsPageScroll(*args
, **kwargs
):
3457 """IsPageScroll() -> bool"""
3458 return _core
.MouseEvent_IsPageScroll(*args
, **kwargs
)
3460 m_x
= property(_core
.MouseEvent_m_x_get
, _core
.MouseEvent_m_x_set
)
3461 m_y
= property(_core
.MouseEvent_m_y_get
, _core
.MouseEvent_m_y_set
)
3462 m_leftDown
= property(_core
.MouseEvent_m_leftDown_get
, _core
.MouseEvent_m_leftDown_set
)
3463 m_middleDown
= property(_core
.MouseEvent_m_middleDown_get
, _core
.MouseEvent_m_middleDown_set
)
3464 m_rightDown
= property(_core
.MouseEvent_m_rightDown_get
, _core
.MouseEvent_m_rightDown_set
)
3465 m_controlDown
= property(_core
.MouseEvent_m_controlDown_get
, _core
.MouseEvent_m_controlDown_set
)
3466 m_shiftDown
= property(_core
.MouseEvent_m_shiftDown_get
, _core
.MouseEvent_m_shiftDown_set
)
3467 m_altDown
= property(_core
.MouseEvent_m_altDown_get
, _core
.MouseEvent_m_altDown_set
)
3468 m_metaDown
= property(_core
.MouseEvent_m_metaDown_get
, _core
.MouseEvent_m_metaDown_set
)
3469 m_wheelRotation
= property(_core
.MouseEvent_m_wheelRotation_get
, _core
.MouseEvent_m_wheelRotation_set
)
3470 m_wheelDelta
= property(_core
.MouseEvent_m_wheelDelta_get
, _core
.MouseEvent_m_wheelDelta_set
)
3471 m_linesPerAction
= property(_core
.MouseEvent_m_linesPerAction_get
, _core
.MouseEvent_m_linesPerAction_set
)
3473 class MouseEventPtr(MouseEvent
):
3474 def __init__(self
, this
):
3476 if not hasattr(self
,"thisown"): self
.thisown
= 0
3477 self
.__class
__ = MouseEvent
3478 _core
.MouseEvent_swigregister(MouseEventPtr
)
3480 #---------------------------------------------------------------------------
3482 class SetCursorEvent(Event
):
3484 return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3485 def __init__(self
, *args
, **kwargs
):
3486 """__init__(int x=0, int y=0) -> SetCursorEvent"""
3487 newobj
= _core
.new_SetCursorEvent(*args
, **kwargs
)
3488 self
.this
= newobj
.this
3491 def GetX(*args
, **kwargs
):
3493 return _core
.SetCursorEvent_GetX(*args
, **kwargs
)
3495 def GetY(*args
, **kwargs
):
3497 return _core
.SetCursorEvent_GetY(*args
, **kwargs
)
3499 def SetCursor(*args
, **kwargs
):
3500 """SetCursor(Cursor cursor)"""
3501 return _core
.SetCursorEvent_SetCursor(*args
, **kwargs
)
3503 def GetCursor(*args
, **kwargs
):
3504 """GetCursor() -> Cursor"""
3505 return _core
.SetCursorEvent_GetCursor(*args
, **kwargs
)
3507 def HasCursor(*args
, **kwargs
):
3508 """HasCursor() -> bool"""
3509 return _core
.SetCursorEvent_HasCursor(*args
, **kwargs
)
3512 class SetCursorEventPtr(SetCursorEvent
):
3513 def __init__(self
, this
):
3515 if not hasattr(self
,"thisown"): self
.thisown
= 0
3516 self
.__class
__ = SetCursorEvent
3517 _core
.SetCursorEvent_swigregister(SetCursorEventPtr
)
3519 #---------------------------------------------------------------------------
3521 class KeyEvent(Event
):
3523 return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3524 def __init__(self
, *args
, **kwargs
):
3525 """__init__(wxEventType keyType=wxEVT_NULL) -> KeyEvent"""
3526 newobj
= _core
.new_KeyEvent(*args
, **kwargs
)
3527 self
.this
= newobj
.this
3530 def ControlDown(*args
, **kwargs
):
3531 """ControlDown() -> bool"""
3532 return _core
.KeyEvent_ControlDown(*args
, **kwargs
)
3534 def MetaDown(*args
, **kwargs
):
3535 """MetaDown() -> bool"""
3536 return _core
.KeyEvent_MetaDown(*args
, **kwargs
)
3538 def AltDown(*args
, **kwargs
):
3539 """AltDown() -> bool"""
3540 return _core
.KeyEvent_AltDown(*args
, **kwargs
)
3542 def ShiftDown(*args
, **kwargs
):
3543 """ShiftDown() -> bool"""
3544 return _core
.KeyEvent_ShiftDown(*args
, **kwargs
)
3546 def HasModifiers(*args
, **kwargs
):
3547 """HasModifiers() -> bool"""
3548 return _core
.KeyEvent_HasModifiers(*args
, **kwargs
)
3550 def GetKeyCode(*args
, **kwargs
):
3551 """GetKeyCode() -> int"""
3552 return _core
.KeyEvent_GetKeyCode(*args
, **kwargs
)
3554 KeyCode
= GetKeyCode
3555 def GetUniChar(*args
, **kwargs
):
3556 """GetUniChar() -> int"""
3557 return _core
.KeyEvent_GetUniChar(*args
, **kwargs
)
3559 def GetRawKeyCode(*args
, **kwargs
):
3560 """GetRawKeyCode() -> unsigned int"""
3561 return _core
.KeyEvent_GetRawKeyCode(*args
, **kwargs
)
3563 def GetRawKeyFlags(*args
, **kwargs
):
3564 """GetRawKeyFlags() -> unsigned int"""
3565 return _core
.KeyEvent_GetRawKeyFlags(*args
, **kwargs
)
3567 def GetPosition(*args
, **kwargs
):
3569 GetPosition() -> Point
3571 Find the position of the event.
3573 return _core
.KeyEvent_GetPosition(*args
, **kwargs
)
3575 def GetPositionTuple(*args
, **kwargs
):
3577 GetPositionTuple() -> (x,y)
3579 Find the position of the event.
3581 return _core
.KeyEvent_GetPositionTuple(*args
, **kwargs
)
3583 def GetX(*args
, **kwargs
):
3585 return _core
.KeyEvent_GetX(*args
, **kwargs
)
3587 def GetY(*args
, **kwargs
):
3589 return _core
.KeyEvent_GetY(*args
, **kwargs
)
3591 m_x
= property(_core
.KeyEvent_m_x_get
, _core
.KeyEvent_m_x_set
)
3592 m_y
= property(_core
.KeyEvent_m_y_get
, _core
.KeyEvent_m_y_set
)
3593 m_keyCode
= property(_core
.KeyEvent_m_keyCode_get
, _core
.KeyEvent_m_keyCode_set
)
3594 m_controlDown
= property(_core
.KeyEvent_m_controlDown_get
, _core
.KeyEvent_m_controlDown_set
)
3595 m_shiftDown
= property(_core
.KeyEvent_m_shiftDown_get
, _core
.KeyEvent_m_shiftDown_set
)
3596 m_altDown
= property(_core
.KeyEvent_m_altDown_get
, _core
.KeyEvent_m_altDown_set
)
3597 m_metaDown
= property(_core
.KeyEvent_m_metaDown_get
, _core
.KeyEvent_m_metaDown_set
)
3598 m_scanCode
= property(_core
.KeyEvent_m_scanCode_get
, _core
.KeyEvent_m_scanCode_set
)
3599 m_rawCode
= property(_core
.KeyEvent_m_rawCode_get
, _core
.KeyEvent_m_rawCode_set
)
3600 m_rawFlags
= property(_core
.KeyEvent_m_rawFlags_get
, _core
.KeyEvent_m_rawFlags_set
)
3602 class KeyEventPtr(KeyEvent
):
3603 def __init__(self
, this
):
3605 if not hasattr(self
,"thisown"): self
.thisown
= 0
3606 self
.__class
__ = KeyEvent
3607 _core
.KeyEvent_swigregister(KeyEventPtr
)
3609 #---------------------------------------------------------------------------
3611 class SizeEvent(Event
):
3613 return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3614 def __init__(self
, *args
, **kwargs
):
3615 """__init__(Size sz=DefaultSize, int winid=0) -> SizeEvent"""
3616 newobj
= _core
.new_SizeEvent(*args
, **kwargs
)
3617 self
.this
= newobj
.this
3620 def GetSize(*args
, **kwargs
):
3621 """GetSize() -> Size"""
3622 return _core
.SizeEvent_GetSize(*args
, **kwargs
)
3624 def GetRect(*args
, **kwargs
):
3625 """GetRect() -> Rect"""
3626 return _core
.SizeEvent_GetRect(*args
, **kwargs
)
3628 def SetRect(*args
, **kwargs
):
3629 """SetRect(Rect rect)"""
3630 return _core
.SizeEvent_SetRect(*args
, **kwargs
)
3632 def SetSize(*args
, **kwargs
):
3633 """SetSize(Size size)"""
3634 return _core
.SizeEvent_SetSize(*args
, **kwargs
)
3636 m_size
= property(_core
.SizeEvent_m_size_get
, _core
.SizeEvent_m_size_set
)
3637 m_rect
= property(_core
.SizeEvent_m_rect_get
, _core
.SizeEvent_m_rect_set
)
3639 class SizeEventPtr(SizeEvent
):
3640 def __init__(self
, this
):
3642 if not hasattr(self
,"thisown"): self
.thisown
= 0
3643 self
.__class
__ = SizeEvent
3644 _core
.SizeEvent_swigregister(SizeEventPtr
)
3646 #---------------------------------------------------------------------------
3648 class MoveEvent(Event
):
3650 return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3651 def __init__(self
, *args
, **kwargs
):
3652 """__init__(Point pos=DefaultPosition, int winid=0) -> MoveEvent"""
3653 newobj
= _core
.new_MoveEvent(*args
, **kwargs
)
3654 self
.this
= newobj
.this
3657 def GetPosition(*args
, **kwargs
):
3658 """GetPosition() -> Point"""
3659 return _core
.MoveEvent_GetPosition(*args
, **kwargs
)
3661 def GetRect(*args
, **kwargs
):
3662 """GetRect() -> Rect"""
3663 return _core
.MoveEvent_GetRect(*args
, **kwargs
)
3665 def SetRect(*args
, **kwargs
):
3666 """SetRect(Rect rect)"""
3667 return _core
.MoveEvent_SetRect(*args
, **kwargs
)
3669 def SetPosition(*args
, **kwargs
):
3670 """SetPosition(Point pos)"""
3671 return _core
.MoveEvent_SetPosition(*args
, **kwargs
)
3673 m_pos
= property(_core
.MoveEvent_m_pos_get
, _core
.MoveEvent_m_pos_set
)
3674 m_rect
= property(_core
.MoveEvent_m_rect_get
, _core
.MoveEvent_m_rect_set
)
3676 class MoveEventPtr(MoveEvent
):
3677 def __init__(self
, this
):
3679 if not hasattr(self
,"thisown"): self
.thisown
= 0
3680 self
.__class
__ = MoveEvent
3681 _core
.MoveEvent_swigregister(MoveEventPtr
)
3683 #---------------------------------------------------------------------------
3685 class PaintEvent(Event
):
3687 return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3688 def __init__(self
, *args
, **kwargs
):
3689 """__init__(int Id=0) -> PaintEvent"""
3690 newobj
= _core
.new_PaintEvent(*args
, **kwargs
)
3691 self
.this
= newobj
.this
3695 class PaintEventPtr(PaintEvent
):
3696 def __init__(self
, this
):
3698 if not hasattr(self
,"thisown"): self
.thisown
= 0
3699 self
.__class
__ = PaintEvent
3700 _core
.PaintEvent_swigregister(PaintEventPtr
)
3702 class NcPaintEvent(Event
):
3704 return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3705 def __init__(self
, *args
, **kwargs
):
3706 """__init__(int winid=0) -> NcPaintEvent"""
3707 newobj
= _core
.new_NcPaintEvent(*args
, **kwargs
)
3708 self
.this
= newobj
.this
3712 class NcPaintEventPtr(NcPaintEvent
):
3713 def __init__(self
, this
):
3715 if not hasattr(self
,"thisown"): self
.thisown
= 0
3716 self
.__class
__ = NcPaintEvent
3717 _core
.NcPaintEvent_swigregister(NcPaintEventPtr
)
3719 #---------------------------------------------------------------------------
3721 class EraseEvent(Event
):
3723 return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3724 def __init__(self
, *args
, **kwargs
):
3725 """__init__(int Id=0, DC dc=(wxDC *) NULL) -> EraseEvent"""
3726 newobj
= _core
.new_EraseEvent(*args
, **kwargs
)
3727 self
.this
= newobj
.this
3730 def GetDC(*args
, **kwargs
):
3732 return _core
.EraseEvent_GetDC(*args
, **kwargs
)
3735 class EraseEventPtr(EraseEvent
):
3736 def __init__(self
, this
):
3738 if not hasattr(self
,"thisown"): self
.thisown
= 0
3739 self
.__class
__ = EraseEvent
3740 _core
.EraseEvent_swigregister(EraseEventPtr
)
3742 #---------------------------------------------------------------------------
3744 class FocusEvent(Event
):
3746 return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3747 def __init__(self
, *args
, **kwargs
):
3748 """__init__(wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent"""
3749 newobj
= _core
.new_FocusEvent(*args
, **kwargs
)
3750 self
.this
= newobj
.this
3753 def GetWindow(*args
, **kwargs
):
3754 """GetWindow() -> Window"""
3755 return _core
.FocusEvent_GetWindow(*args
, **kwargs
)
3757 def SetWindow(*args
, **kwargs
):
3758 """SetWindow(Window win)"""
3759 return _core
.FocusEvent_SetWindow(*args
, **kwargs
)
3762 class FocusEventPtr(FocusEvent
):
3763 def __init__(self
, this
):
3765 if not hasattr(self
,"thisown"): self
.thisown
= 0
3766 self
.__class
__ = FocusEvent
3767 _core
.FocusEvent_swigregister(FocusEventPtr
)
3769 #---------------------------------------------------------------------------
3771 class ChildFocusEvent(CommandEvent
):
3773 return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3774 def __init__(self
, *args
, **kwargs
):
3775 """__init__(Window win=None) -> ChildFocusEvent"""
3776 newobj
= _core
.new_ChildFocusEvent(*args
, **kwargs
)
3777 self
.this
= newobj
.this
3780 def GetWindow(*args
, **kwargs
):
3781 """GetWindow() -> Window"""
3782 return _core
.ChildFocusEvent_GetWindow(*args
, **kwargs
)
3785 class ChildFocusEventPtr(ChildFocusEvent
):
3786 def __init__(self
, this
):
3788 if not hasattr(self
,"thisown"): self
.thisown
= 0
3789 self
.__class
__ = ChildFocusEvent
3790 _core
.ChildFocusEvent_swigregister(ChildFocusEventPtr
)
3792 #---------------------------------------------------------------------------
3794 class ActivateEvent(Event
):
3796 return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3797 def __init__(self
, *args
, **kwargs
):
3798 """__init__(wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent"""
3799 newobj
= _core
.new_ActivateEvent(*args
, **kwargs
)
3800 self
.this
= newobj
.this
3803 def GetActive(*args
, **kwargs
):
3804 """GetActive() -> bool"""
3805 return _core
.ActivateEvent_GetActive(*args
, **kwargs
)
3808 class ActivateEventPtr(ActivateEvent
):
3809 def __init__(self
, this
):
3811 if not hasattr(self
,"thisown"): self
.thisown
= 0
3812 self
.__class
__ = ActivateEvent
3813 _core
.ActivateEvent_swigregister(ActivateEventPtr
)
3815 #---------------------------------------------------------------------------
3817 class InitDialogEvent(Event
):
3819 return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3820 def __init__(self
, *args
, **kwargs
):
3821 """__init__(int Id=0) -> InitDialogEvent"""
3822 newobj
= _core
.new_InitDialogEvent(*args
, **kwargs
)
3823 self
.this
= newobj
.this
3827 class InitDialogEventPtr(InitDialogEvent
):
3828 def __init__(self
, this
):
3830 if not hasattr(self
,"thisown"): self
.thisown
= 0
3831 self
.__class
__ = InitDialogEvent
3832 _core
.InitDialogEvent_swigregister(InitDialogEventPtr
)
3834 #---------------------------------------------------------------------------
3836 class MenuEvent(Event
):
3838 return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3839 def __init__(self
, *args
, **kwargs
):
3840 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent"""
3841 newobj
= _core
.new_MenuEvent(*args
, **kwargs
)
3842 self
.this
= newobj
.this
3845 def GetMenuId(*args
, **kwargs
):
3846 """GetMenuId() -> int"""
3847 return _core
.MenuEvent_GetMenuId(*args
, **kwargs
)
3849 def IsPopup(*args
, **kwargs
):
3850 """IsPopup() -> bool"""
3851 return _core
.MenuEvent_IsPopup(*args
, **kwargs
)
3853 def GetMenu(*args
, **kwargs
):
3854 """GetMenu() -> Menu"""
3855 return _core
.MenuEvent_GetMenu(*args
, **kwargs
)
3858 class MenuEventPtr(MenuEvent
):
3859 def __init__(self
, this
):
3861 if not hasattr(self
,"thisown"): self
.thisown
= 0
3862 self
.__class
__ = MenuEvent
3863 _core
.MenuEvent_swigregister(MenuEventPtr
)
3865 #---------------------------------------------------------------------------
3867 class CloseEvent(Event
):
3869 return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3870 def __init__(self
, *args
, **kwargs
):
3871 """__init__(wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent"""
3872 newobj
= _core
.new_CloseEvent(*args
, **kwargs
)
3873 self
.this
= newobj
.this
3876 def SetLoggingOff(*args
, **kwargs
):
3877 """SetLoggingOff(bool logOff)"""
3878 return _core
.CloseEvent_SetLoggingOff(*args
, **kwargs
)
3880 def GetLoggingOff(*args
, **kwargs
):
3881 """GetLoggingOff() -> bool"""
3882 return _core
.CloseEvent_GetLoggingOff(*args
, **kwargs
)
3884 def Veto(*args
, **kwargs
):
3885 """Veto(bool veto=True)"""
3886 return _core
.CloseEvent_Veto(*args
, **kwargs
)
3888 def SetCanVeto(*args
, **kwargs
):
3889 """SetCanVeto(bool canVeto)"""
3890 return _core
.CloseEvent_SetCanVeto(*args
, **kwargs
)
3892 def CanVeto(*args
, **kwargs
):
3893 """CanVeto() -> bool"""
3894 return _core
.CloseEvent_CanVeto(*args
, **kwargs
)
3896 def GetVeto(*args
, **kwargs
):
3897 """GetVeto() -> bool"""
3898 return _core
.CloseEvent_GetVeto(*args
, **kwargs
)
3901 class CloseEventPtr(CloseEvent
):
3902 def __init__(self
, this
):
3904 if not hasattr(self
,"thisown"): self
.thisown
= 0
3905 self
.__class
__ = CloseEvent
3906 _core
.CloseEvent_swigregister(CloseEventPtr
)
3908 #---------------------------------------------------------------------------
3910 class ShowEvent(Event
):
3912 return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3913 def __init__(self
, *args
, **kwargs
):
3914 """__init__(int winid=0, bool show=False) -> ShowEvent"""
3915 newobj
= _core
.new_ShowEvent(*args
, **kwargs
)
3916 self
.this
= newobj
.this
3919 def SetShow(*args
, **kwargs
):
3920 """SetShow(bool show)"""
3921 return _core
.ShowEvent_SetShow(*args
, **kwargs
)
3923 def GetShow(*args
, **kwargs
):
3924 """GetShow() -> bool"""
3925 return _core
.ShowEvent_GetShow(*args
, **kwargs
)
3928 class ShowEventPtr(ShowEvent
):
3929 def __init__(self
, this
):
3931 if not hasattr(self
,"thisown"): self
.thisown
= 0
3932 self
.__class
__ = ShowEvent
3933 _core
.ShowEvent_swigregister(ShowEventPtr
)
3935 #---------------------------------------------------------------------------
3937 class IconizeEvent(Event
):
3939 return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3940 def __init__(self
, *args
, **kwargs
):
3941 """__init__(int id=0, bool iconized=True) -> IconizeEvent"""
3942 newobj
= _core
.new_IconizeEvent(*args
, **kwargs
)
3943 self
.this
= newobj
.this
3946 def Iconized(*args
, **kwargs
):
3947 """Iconized() -> bool"""
3948 return _core
.IconizeEvent_Iconized(*args
, **kwargs
)
3951 class IconizeEventPtr(IconizeEvent
):
3952 def __init__(self
, this
):
3954 if not hasattr(self
,"thisown"): self
.thisown
= 0
3955 self
.__class
__ = IconizeEvent
3956 _core
.IconizeEvent_swigregister(IconizeEventPtr
)
3958 #---------------------------------------------------------------------------
3960 class MaximizeEvent(Event
):
3962 return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3963 def __init__(self
, *args
, **kwargs
):
3964 """__init__(int id=0) -> MaximizeEvent"""
3965 newobj
= _core
.new_MaximizeEvent(*args
, **kwargs
)
3966 self
.this
= newobj
.this
3970 class MaximizeEventPtr(MaximizeEvent
):
3971 def __init__(self
, this
):
3973 if not hasattr(self
,"thisown"): self
.thisown
= 0
3974 self
.__class
__ = MaximizeEvent
3975 _core
.MaximizeEvent_swigregister(MaximizeEventPtr
)
3977 #---------------------------------------------------------------------------
3979 class DropFilesEvent(Event
):
3980 def __init__(self
): raise RuntimeError, "No constructor defined"
3982 return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3983 def GetPosition(*args
, **kwargs
):
3984 """GetPosition() -> Point"""
3985 return _core
.DropFilesEvent_GetPosition(*args
, **kwargs
)
3987 def GetNumberOfFiles(*args
, **kwargs
):
3988 """GetNumberOfFiles() -> int"""
3989 return _core
.DropFilesEvent_GetNumberOfFiles(*args
, **kwargs
)
3991 def GetFiles(*args
, **kwargs
):
3992 """GetFiles() -> PyObject"""
3993 return _core
.DropFilesEvent_GetFiles(*args
, **kwargs
)
3996 class DropFilesEventPtr(DropFilesEvent
):
3997 def __init__(self
, this
):
3999 if not hasattr(self
,"thisown"): self
.thisown
= 0
4000 self
.__class
__ = DropFilesEvent
4001 _core
.DropFilesEvent_swigregister(DropFilesEventPtr
)
4003 #---------------------------------------------------------------------------
4005 UPDATE_UI_PROCESS_ALL
= _core
.UPDATE_UI_PROCESS_ALL
4006 UPDATE_UI_PROCESS_SPECIFIED
= _core
.UPDATE_UI_PROCESS_SPECIFIED
4007 class UpdateUIEvent(CommandEvent
):
4009 return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4010 def __init__(self
, *args
, **kwargs
):
4011 """__init__(int commandId=0) -> UpdateUIEvent"""
4012 newobj
= _core
.new_UpdateUIEvent(*args
, **kwargs
)
4013 self
.this
= newobj
.this
4016 def GetChecked(*args
, **kwargs
):
4017 """GetChecked() -> bool"""
4018 return _core
.UpdateUIEvent_GetChecked(*args
, **kwargs
)
4020 def GetEnabled(*args
, **kwargs
):
4021 """GetEnabled() -> bool"""
4022 return _core
.UpdateUIEvent_GetEnabled(*args
, **kwargs
)
4024 def GetText(*args
, **kwargs
):
4025 """GetText() -> String"""
4026 return _core
.UpdateUIEvent_GetText(*args
, **kwargs
)
4028 def GetSetText(*args
, **kwargs
):
4029 """GetSetText() -> bool"""
4030 return _core
.UpdateUIEvent_GetSetText(*args
, **kwargs
)
4032 def GetSetChecked(*args
, **kwargs
):
4033 """GetSetChecked() -> bool"""
4034 return _core
.UpdateUIEvent_GetSetChecked(*args
, **kwargs
)
4036 def GetSetEnabled(*args
, **kwargs
):
4037 """GetSetEnabled() -> bool"""
4038 return _core
.UpdateUIEvent_GetSetEnabled(*args
, **kwargs
)
4040 def Check(*args
, **kwargs
):
4041 """Check(bool check)"""
4042 return _core
.UpdateUIEvent_Check(*args
, **kwargs
)
4044 def Enable(*args
, **kwargs
):
4045 """Enable(bool enable)"""
4046 return _core
.UpdateUIEvent_Enable(*args
, **kwargs
)
4048 def SetText(*args
, **kwargs
):
4049 """SetText(String text)"""
4050 return _core
.UpdateUIEvent_SetText(*args
, **kwargs
)
4052 def SetUpdateInterval(*args
, **kwargs
):
4053 """SetUpdateInterval(long updateInterval)"""
4054 return _core
.UpdateUIEvent_SetUpdateInterval(*args
, **kwargs
)
4056 SetUpdateInterval
= staticmethod(SetUpdateInterval
)
4057 def GetUpdateInterval(*args
, **kwargs
):
4058 """GetUpdateInterval() -> long"""
4059 return _core
.UpdateUIEvent_GetUpdateInterval(*args
, **kwargs
)
4061 GetUpdateInterval
= staticmethod(GetUpdateInterval
)
4062 def CanUpdate(*args
, **kwargs
):
4063 """CanUpdate(Window win) -> bool"""
4064 return _core
.UpdateUIEvent_CanUpdate(*args
, **kwargs
)
4066 CanUpdate
= staticmethod(CanUpdate
)
4067 def ResetUpdateTime(*args
, **kwargs
):
4068 """ResetUpdateTime()"""
4069 return _core
.UpdateUIEvent_ResetUpdateTime(*args
, **kwargs
)
4071 ResetUpdateTime
= staticmethod(ResetUpdateTime
)
4072 def SetMode(*args
, **kwargs
):
4073 """SetMode(int mode)"""
4074 return _core
.UpdateUIEvent_SetMode(*args
, **kwargs
)
4076 SetMode
= staticmethod(SetMode
)
4077 def GetMode(*args
, **kwargs
):
4078 """GetMode() -> int"""
4079 return _core
.UpdateUIEvent_GetMode(*args
, **kwargs
)
4081 GetMode
= staticmethod(GetMode
)
4083 class UpdateUIEventPtr(UpdateUIEvent
):
4084 def __init__(self
, this
):
4086 if not hasattr(self
,"thisown"): self
.thisown
= 0
4087 self
.__class
__ = UpdateUIEvent
4088 _core
.UpdateUIEvent_swigregister(UpdateUIEventPtr
)
4090 def UpdateUIEvent_SetUpdateInterval(*args
, **kwargs
):
4091 """UpdateUIEvent_SetUpdateInterval(long updateInterval)"""
4092 return _core
.UpdateUIEvent_SetUpdateInterval(*args
, **kwargs
)
4094 def UpdateUIEvent_GetUpdateInterval(*args
, **kwargs
):
4095 """UpdateUIEvent_GetUpdateInterval() -> long"""
4096 return _core
.UpdateUIEvent_GetUpdateInterval(*args
, **kwargs
)
4098 def UpdateUIEvent_CanUpdate(*args
, **kwargs
):
4099 """UpdateUIEvent_CanUpdate(Window win) -> bool"""
4100 return _core
.UpdateUIEvent_CanUpdate(*args
, **kwargs
)
4102 def UpdateUIEvent_ResetUpdateTime(*args
, **kwargs
):
4103 """UpdateUIEvent_ResetUpdateTime()"""
4104 return _core
.UpdateUIEvent_ResetUpdateTime(*args
, **kwargs
)
4106 def UpdateUIEvent_SetMode(*args
, **kwargs
):
4107 """UpdateUIEvent_SetMode(int mode)"""
4108 return _core
.UpdateUIEvent_SetMode(*args
, **kwargs
)
4110 def UpdateUIEvent_GetMode(*args
, **kwargs
):
4111 """UpdateUIEvent_GetMode() -> int"""
4112 return _core
.UpdateUIEvent_GetMode(*args
, **kwargs
)
4114 #---------------------------------------------------------------------------
4116 class SysColourChangedEvent(Event
):
4118 return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4119 def __init__(self
, *args
, **kwargs
):
4120 """__init__() -> SysColourChangedEvent"""
4121 newobj
= _core
.new_SysColourChangedEvent(*args
, **kwargs
)
4122 self
.this
= newobj
.this
4126 class SysColourChangedEventPtr(SysColourChangedEvent
):
4127 def __init__(self
, this
):
4129 if not hasattr(self
,"thisown"): self
.thisown
= 0
4130 self
.__class
__ = SysColourChangedEvent
4131 _core
.SysColourChangedEvent_swigregister(SysColourChangedEventPtr
)
4133 #---------------------------------------------------------------------------
4135 class MouseCaptureChangedEvent(Event
):
4137 return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4138 def __init__(self
, *args
, **kwargs
):
4139 """__init__(int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent"""
4140 newobj
= _core
.new_MouseCaptureChangedEvent(*args
, **kwargs
)
4141 self
.this
= newobj
.this
4144 def GetCapturedWindow(*args
, **kwargs
):
4145 """GetCapturedWindow() -> Window"""
4146 return _core
.MouseCaptureChangedEvent_GetCapturedWindow(*args
, **kwargs
)
4149 class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent
):
4150 def __init__(self
, this
):
4152 if not hasattr(self
,"thisown"): self
.thisown
= 0
4153 self
.__class
__ = MouseCaptureChangedEvent
4154 _core
.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr
)
4156 #---------------------------------------------------------------------------
4158 class DisplayChangedEvent(Event
):
4160 return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4161 def __init__(self
, *args
, **kwargs
):
4162 """__init__() -> DisplayChangedEvent"""
4163 newobj
= _core
.new_DisplayChangedEvent(*args
, **kwargs
)
4164 self
.this
= newobj
.this
4168 class DisplayChangedEventPtr(DisplayChangedEvent
):
4169 def __init__(self
, this
):
4171 if not hasattr(self
,"thisown"): self
.thisown
= 0
4172 self
.__class
__ = DisplayChangedEvent
4173 _core
.DisplayChangedEvent_swigregister(DisplayChangedEventPtr
)
4175 #---------------------------------------------------------------------------
4177 class PaletteChangedEvent(Event
):
4179 return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4180 def __init__(self
, *args
, **kwargs
):
4181 """__init__(int id=0) -> PaletteChangedEvent"""
4182 newobj
= _core
.new_PaletteChangedEvent(*args
, **kwargs
)
4183 self
.this
= newobj
.this
4186 def SetChangedWindow(*args
, **kwargs
):
4187 """SetChangedWindow(Window win)"""
4188 return _core
.PaletteChangedEvent_SetChangedWindow(*args
, **kwargs
)
4190 def GetChangedWindow(*args
, **kwargs
):
4191 """GetChangedWindow() -> Window"""
4192 return _core
.PaletteChangedEvent_GetChangedWindow(*args
, **kwargs
)
4195 class PaletteChangedEventPtr(PaletteChangedEvent
):
4196 def __init__(self
, this
):
4198 if not hasattr(self
,"thisown"): self
.thisown
= 0
4199 self
.__class
__ = PaletteChangedEvent
4200 _core
.PaletteChangedEvent_swigregister(PaletteChangedEventPtr
)
4202 #---------------------------------------------------------------------------
4204 class QueryNewPaletteEvent(Event
):
4206 return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4207 def __init__(self
, *args
, **kwargs
):
4208 """__init__(int winid=0) -> QueryNewPaletteEvent"""
4209 newobj
= _core
.new_QueryNewPaletteEvent(*args
, **kwargs
)
4210 self
.this
= newobj
.this
4213 def SetPaletteRealized(*args
, **kwargs
):
4214 """SetPaletteRealized(bool realized)"""
4215 return _core
.QueryNewPaletteEvent_SetPaletteRealized(*args
, **kwargs
)
4217 def GetPaletteRealized(*args
, **kwargs
):
4218 """GetPaletteRealized() -> bool"""
4219 return _core
.QueryNewPaletteEvent_GetPaletteRealized(*args
, **kwargs
)
4222 class QueryNewPaletteEventPtr(QueryNewPaletteEvent
):
4223 def __init__(self
, this
):
4225 if not hasattr(self
,"thisown"): self
.thisown
= 0
4226 self
.__class
__ = QueryNewPaletteEvent
4227 _core
.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr
)
4229 #---------------------------------------------------------------------------
4231 class NavigationKeyEvent(Event
):
4233 return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4234 def __init__(self
, *args
, **kwargs
):
4235 """__init__() -> NavigationKeyEvent"""
4236 newobj
= _core
.new_NavigationKeyEvent(*args
, **kwargs
)
4237 self
.this
= newobj
.this
4240 def GetDirection(*args
, **kwargs
):
4241 """GetDirection() -> bool"""
4242 return _core
.NavigationKeyEvent_GetDirection(*args
, **kwargs
)
4244 def SetDirection(*args
, **kwargs
):
4245 """SetDirection(bool bForward)"""
4246 return _core
.NavigationKeyEvent_SetDirection(*args
, **kwargs
)
4248 def IsWindowChange(*args
, **kwargs
):
4249 """IsWindowChange() -> bool"""
4250 return _core
.NavigationKeyEvent_IsWindowChange(*args
, **kwargs
)
4252 def SetWindowChange(*args
, **kwargs
):
4253 """SetWindowChange(bool bIs)"""
4254 return _core
.NavigationKeyEvent_SetWindowChange(*args
, **kwargs
)
4256 def GetCurrentFocus(*args
, **kwargs
):
4257 """GetCurrentFocus() -> Window"""
4258 return _core
.NavigationKeyEvent_GetCurrentFocus(*args
, **kwargs
)
4260 def SetCurrentFocus(*args
, **kwargs
):
4261 """SetCurrentFocus(Window win)"""
4262 return _core
.NavigationKeyEvent_SetCurrentFocus(*args
, **kwargs
)
4265 class NavigationKeyEventPtr(NavigationKeyEvent
):
4266 def __init__(self
, this
):
4268 if not hasattr(self
,"thisown"): self
.thisown
= 0
4269 self
.__class
__ = NavigationKeyEvent
4270 _core
.NavigationKeyEvent_swigregister(NavigationKeyEventPtr
)
4272 #---------------------------------------------------------------------------
4274 class WindowCreateEvent(CommandEvent
):
4276 return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4277 def __init__(self
, *args
, **kwargs
):
4278 """__init__(Window win=None) -> WindowCreateEvent"""
4279 newobj
= _core
.new_WindowCreateEvent(*args
, **kwargs
)
4280 self
.this
= newobj
.this
4283 def GetWindow(*args
, **kwargs
):
4284 """GetWindow() -> Window"""
4285 return _core
.WindowCreateEvent_GetWindow(*args
, **kwargs
)
4288 class WindowCreateEventPtr(WindowCreateEvent
):
4289 def __init__(self
, this
):
4291 if not hasattr(self
,"thisown"): self
.thisown
= 0
4292 self
.__class
__ = WindowCreateEvent
4293 _core
.WindowCreateEvent_swigregister(WindowCreateEventPtr
)
4295 class WindowDestroyEvent(CommandEvent
):
4297 return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4298 def __init__(self
, *args
, **kwargs
):
4299 """__init__(Window win=None) -> WindowDestroyEvent"""
4300 newobj
= _core
.new_WindowDestroyEvent(*args
, **kwargs
)
4301 self
.this
= newobj
.this
4304 def GetWindow(*args
, **kwargs
):
4305 """GetWindow() -> Window"""
4306 return _core
.WindowDestroyEvent_GetWindow(*args
, **kwargs
)
4309 class WindowDestroyEventPtr(WindowDestroyEvent
):
4310 def __init__(self
, this
):
4312 if not hasattr(self
,"thisown"): self
.thisown
= 0
4313 self
.__class
__ = WindowDestroyEvent
4314 _core
.WindowDestroyEvent_swigregister(WindowDestroyEventPtr
)
4316 #---------------------------------------------------------------------------
4318 class ContextMenuEvent(CommandEvent
):
4320 return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4321 def __init__(self
, *args
, **kwargs
):
4322 """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent"""
4323 newobj
= _core
.new_ContextMenuEvent(*args
, **kwargs
)
4324 self
.this
= newobj
.this
4327 def GetPosition(*args
, **kwargs
):
4328 """GetPosition() -> Point"""
4329 return _core
.ContextMenuEvent_GetPosition(*args
, **kwargs
)
4331 def SetPosition(*args
, **kwargs
):
4332 """SetPosition(Point pos)"""
4333 return _core
.ContextMenuEvent_SetPosition(*args
, **kwargs
)
4336 class ContextMenuEventPtr(ContextMenuEvent
):
4337 def __init__(self
, this
):
4339 if not hasattr(self
,"thisown"): self
.thisown
= 0
4340 self
.__class
__ = ContextMenuEvent
4341 _core
.ContextMenuEvent_swigregister(ContextMenuEventPtr
)
4343 #---------------------------------------------------------------------------
4345 IDLE_PROCESS_ALL
= _core
.IDLE_PROCESS_ALL
4346 IDLE_PROCESS_SPECIFIED
= _core
.IDLE_PROCESS_SPECIFIED
4347 class IdleEvent(Event
):
4349 return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4350 def __init__(self
, *args
, **kwargs
):
4351 """__init__() -> IdleEvent"""
4352 newobj
= _core
.new_IdleEvent(*args
, **kwargs
)
4353 self
.this
= newobj
.this
4356 def RequestMore(*args
, **kwargs
):
4357 """RequestMore(bool needMore=True)"""
4358 return _core
.IdleEvent_RequestMore(*args
, **kwargs
)
4360 def MoreRequested(*args
, **kwargs
):
4361 """MoreRequested() -> bool"""
4362 return _core
.IdleEvent_MoreRequested(*args
, **kwargs
)
4364 def SetMode(*args
, **kwargs
):
4365 """SetMode(int mode)"""
4366 return _core
.IdleEvent_SetMode(*args
, **kwargs
)
4368 SetMode
= staticmethod(SetMode
)
4369 def GetMode(*args
, **kwargs
):
4370 """GetMode() -> int"""
4371 return _core
.IdleEvent_GetMode(*args
, **kwargs
)
4373 GetMode
= staticmethod(GetMode
)
4374 def CanSend(*args
, **kwargs
):
4375 """CanSend(Window win) -> bool"""
4376 return _core
.IdleEvent_CanSend(*args
, **kwargs
)
4378 CanSend
= staticmethod(CanSend
)
4380 class IdleEventPtr(IdleEvent
):
4381 def __init__(self
, this
):
4383 if not hasattr(self
,"thisown"): self
.thisown
= 0
4384 self
.__class
__ = IdleEvent
4385 _core
.IdleEvent_swigregister(IdleEventPtr
)
4387 def IdleEvent_SetMode(*args
, **kwargs
):
4388 """IdleEvent_SetMode(int mode)"""
4389 return _core
.IdleEvent_SetMode(*args
, **kwargs
)
4391 def IdleEvent_GetMode(*args
, **kwargs
):
4392 """IdleEvent_GetMode() -> int"""
4393 return _core
.IdleEvent_GetMode(*args
, **kwargs
)
4395 def IdleEvent_CanSend(*args
, **kwargs
):
4396 """IdleEvent_CanSend(Window win) -> bool"""
4397 return _core
.IdleEvent_CanSend(*args
, **kwargs
)
4399 #---------------------------------------------------------------------------
4401 class PyEvent(Event
):
4403 return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4404 def __init__(self
, *args
, **kwargs
):
4405 """__init__(int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent"""
4406 newobj
= _core
.new_PyEvent(*args
, **kwargs
)
4407 self
.this
= newobj
.this
4412 def __del__(self
, destroy
=_core
.delete_PyEvent
):
4415 if self
.thisown
: destroy(self
)
4418 def SetSelf(*args
, **kwargs
):
4419 """SetSelf(PyObject self)"""
4420 return _core
.PyEvent_SetSelf(*args
, **kwargs
)
4422 def GetSelf(*args
, **kwargs
):
4423 """GetSelf() -> PyObject"""
4424 return _core
.PyEvent_GetSelf(*args
, **kwargs
)
4427 class PyEventPtr(PyEvent
):
4428 def __init__(self
, this
):
4430 if not hasattr(self
,"thisown"): self
.thisown
= 0
4431 self
.__class
__ = PyEvent
4432 _core
.PyEvent_swigregister(PyEventPtr
)
4434 class PyCommandEvent(CommandEvent
):
4436 return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4437 def __init__(self
, *args
, **kwargs
):
4438 """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent"""
4439 newobj
= _core
.new_PyCommandEvent(*args
, **kwargs
)
4440 self
.this
= newobj
.this
4445 def __del__(self
, destroy
=_core
.delete_PyCommandEvent
):
4448 if self
.thisown
: destroy(self
)
4451 def SetSelf(*args
, **kwargs
):
4452 """SetSelf(PyObject self)"""
4453 return _core
.PyCommandEvent_SetSelf(*args
, **kwargs
)
4455 def GetSelf(*args
, **kwargs
):
4456 """GetSelf() -> PyObject"""
4457 return _core
.PyCommandEvent_GetSelf(*args
, **kwargs
)
4460 class PyCommandEventPtr(PyCommandEvent
):
4461 def __init__(self
, this
):
4463 if not hasattr(self
,"thisown"): self
.thisown
= 0
4464 self
.__class
__ = PyCommandEvent
4465 _core
.PyCommandEvent_swigregister(PyCommandEventPtr
)
4467 #---------------------------------------------------------------------------
4469 PYAPP_ASSERT_SUPPRESS
= _core
.PYAPP_ASSERT_SUPPRESS
4470 PYAPP_ASSERT_EXCEPTION
= _core
.PYAPP_ASSERT_EXCEPTION
4471 PYAPP_ASSERT_DIALOG
= _core
.PYAPP_ASSERT_DIALOG
4472 PYAPP_ASSERT_LOG
= _core
.PYAPP_ASSERT_LOG
4473 PRINT_WINDOWS
= _core
.PRINT_WINDOWS
4474 PRINT_POSTSCRIPT
= _core
.PRINT_POSTSCRIPT
4475 class PyApp(EvtHandler
):
4477 return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4478 def __init__(self
, *args
, **kwargs
):
4482 Create a new application object, starting the bootstrap process.
4484 newobj
= _core
.new_PyApp(*args
, **kwargs
)
4485 self
.this
= newobj
.this
4488 self
._setCallbackInfo
(self
, PyApp
)
4489 self
._setOORInfo
(self
)
4491 def __del__(self
, destroy
=_core
.delete_PyApp
):
4494 if self
.thisown
: destroy(self
)
4497 def _setCallbackInfo(*args
, **kwargs
):
4498 """_setCallbackInfo(PyObject self, PyObject _class)"""
4499 return _core
.PyApp__setCallbackInfo(*args
, **kwargs
)
4501 def GetAppName(*args
, **kwargs
):
4503 GetAppName() -> String
4505 Get the application name.
4507 return _core
.PyApp_GetAppName(*args
, **kwargs
)
4509 def SetAppName(*args
, **kwargs
):
4511 SetAppName(String name)
4513 Set the application name. This value may be used automatically
4514 by wx.Config and such.
4516 return _core
.PyApp_SetAppName(*args
, **kwargs
)
4518 def GetClassName(*args
, **kwargs
):
4520 GetClassName() -> String
4522 Get the application's class name.
4524 return _core
.PyApp_GetClassName(*args
, **kwargs
)
4526 def SetClassName(*args
, **kwargs
):
4528 SetClassName(String name)
4530 Set the application's class name. This value may be used for X-resources if
4531 applicable for the platform
4533 return _core
.PyApp_SetClassName(*args
, **kwargs
)
4535 def GetVendorName(*args
, **kwargs
):
4537 GetVendorName() -> String
4539 Get the application's vendor name.
4541 return _core
.PyApp_GetVendorName(*args
, **kwargs
)
4543 def SetVendorName(*args
, **kwargs
):
4545 SetVendorName(String name)
4547 Set the application's vendor name. This value may be used automatically
4548 by wx.Config and such.
4550 return _core
.PyApp_SetVendorName(*args
, **kwargs
)
4552 def GetTraits(*args
, **kwargs
):
4554 GetTraits() -> wxAppTraits
4556 Create the app traits object to which we delegate for everything which either
4557 should be configurable by the user (then he can change the default behaviour
4558 simply by overriding CreateTraits() and returning his own traits object) or
4559 which is GUI/console dependent as then wx.AppTraits allows us to abstract the
4560 differences behind the common facade
4562 return _core
.PyApp_GetTraits(*args
, **kwargs
)
4564 def ProcessPendingEvents(*args
, **kwargs
):
4566 ProcessPendingEvents()
4568 Process all events in the Pending Events list -- it is necessary to call this
4569 function to process posted events. This happens during each event loop
4572 return _core
.PyApp_ProcessPendingEvents(*args
, **kwargs
)
4574 def Yield(*args
, **kwargs
):
4576 Yield(bool onlyIfNeeded=False) -> bool
4578 Process all currently pending events right now, instead of waiting until
4579 return to the event loop. It is an error to call Yield() recursively unless
4580 the value of onlyIfNeeded is True.
4582 WARNING: This function is dangerous as it can lead to unexpected
4583 reentrancies (i.e. when called from an event handler it
4584 may result in calling the same event handler again), use
4585 with _extreme_ care or, better, don't use at all!
4588 return _core
.PyApp_Yield(*args
, **kwargs
)
4590 def WakeUpIdle(*args
, **kwargs
):
4594 Make sure that idle events are sent again
4596 return _core
.PyApp_WakeUpIdle(*args
, **kwargs
)
4598 def MainLoop(*args
, **kwargs
):
4602 Execute the main GUI loop, the function returns when the loop ends.
4604 return _core
.PyApp_MainLoop(*args
, **kwargs
)
4606 def Exit(*args
, **kwargs
):
4610 Exit the main loop thus terminating the application.
4612 return _core
.PyApp_Exit(*args
, **kwargs
)
4614 def ExitMainLoop(*args
, **kwargs
):
4618 Exit the main GUI loop during the next iteration (i.e. it does not
4619 stop the program immediately!)
4621 return _core
.PyApp_ExitMainLoop(*args
, **kwargs
)
4623 def Pending(*args
, **kwargs
):
4627 Returns True if there are unprocessed events in the event queue.
4629 return _core
.PyApp_Pending(*args
, **kwargs
)
4631 def Dispatch(*args
, **kwargs
):
4635 Process the first event in the event queue (blocks until an event
4636 appears if there are none currently)
4638 return _core
.PyApp_Dispatch(*args
, **kwargs
)
4640 def ProcessIdle(*args
, **kwargs
):
4642 ProcessIdle() -> bool
4644 Called from the MainLoop when the application becomes idle and sends an
4645 IdleEvent to all interested parties. Returns True is more idle events are
4646 needed, False if not.
4648 return _core
.PyApp_ProcessIdle(*args
, **kwargs
)
4650 def SendIdleEvents(*args
, **kwargs
):
4652 SendIdleEvents(Window win, IdleEvent event) -> bool
4654 Send idle event to window and all subwindows. Returns True if more idle time
4657 return _core
.PyApp_SendIdleEvents(*args
, **kwargs
)
4659 def IsActive(*args
, **kwargs
):
4663 Return True if our app has focus.
4665 return _core
.PyApp_IsActive(*args
, **kwargs
)
4667 def SetTopWindow(*args
, **kwargs
):
4669 SetTopWindow(Window win)
4671 Set the "main" top level window
4673 return _core
.PyApp_SetTopWindow(*args
, **kwargs
)
4675 def GetTopWindow(*args
, **kwargs
):
4677 GetTopWindow() -> Window
4679 Return the "main" top level window (if it hadn't been set previously with
4680 SetTopWindow(), will return just some top level window and, if there not any,
4683 return _core
.PyApp_GetTopWindow(*args
, **kwargs
)
4685 def SetExitOnFrameDelete(*args
, **kwargs
):
4687 SetExitOnFrameDelete(bool flag)
4689 Control the exit behaviour: by default, the program will exit the main loop
4690 (and so, usually, terminate) when the last top-level program window is
4691 deleted. Beware that if you disable this behaviour (with
4692 SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop() explicitly
4696 return _core
.PyApp_SetExitOnFrameDelete(*args
, **kwargs
)
4698 def GetExitOnFrameDelete(*args
, **kwargs
):
4700 GetExitOnFrameDelete() -> bool
4702 Get the current exit behaviour setting.
4704 return _core
.PyApp_GetExitOnFrameDelete(*args
, **kwargs
)
4706 def SetUseBestVisual(*args
, **kwargs
):
4708 SetUseBestVisual(bool flag)
4710 Set whether the app should try to use the best available visual on systems
4711 where more than one is available, (Sun, SGI, XFree86 4, etc.)
4713 return _core
.PyApp_SetUseBestVisual(*args
, **kwargs
)
4715 def GetUseBestVisual(*args
, **kwargs
):
4717 GetUseBestVisual() -> bool
4719 Get current UseBestVisual setting.
4721 return _core
.PyApp_GetUseBestVisual(*args
, **kwargs
)
4723 def SetPrintMode(*args
, **kwargs
):
4724 """SetPrintMode(int mode)"""
4725 return _core
.PyApp_SetPrintMode(*args
, **kwargs
)
4727 def GetPrintMode(*args
, **kwargs
):
4728 """GetPrintMode() -> int"""
4729 return _core
.PyApp_GetPrintMode(*args
, **kwargs
)
4731 def SetAssertMode(*args
, **kwargs
):
4733 SetAssertMode(int mode)
4735 Set the OnAssert behaviour for debug and hybrid builds. The following flags
4736 may be or'd together:
4738 wx.PYAPP_ASSERT_SUPPRESS Don't do anything
4739 wx.PYAPP_ASSERT_EXCEPTION Turn it into a Python exception if possible (default)
4740 wx.PYAPP_ASSERT_DIALOG Display a message dialog
4741 wx.PYAPP_ASSERT_LOG Write the assertion info to the wx.Log
4744 return _core
.PyApp_SetAssertMode(*args
, **kwargs
)
4746 def GetAssertMode(*args
, **kwargs
):
4748 GetAssertMode() -> int
4750 Get the current OnAssert behaviour setting.
4752 return _core
.PyApp_GetAssertMode(*args
, **kwargs
)
4754 def GetMacSupportPCMenuShortcuts(*args
, **kwargs
):
4755 """GetMacSupportPCMenuShortcuts() -> bool"""
4756 return _core
.PyApp_GetMacSupportPCMenuShortcuts(*args
, **kwargs
)
4758 GetMacSupportPCMenuShortcuts
= staticmethod(GetMacSupportPCMenuShortcuts
)
4759 def GetMacAboutMenuItemId(*args
, **kwargs
):
4760 """GetMacAboutMenuItemId() -> long"""
4761 return _core
.PyApp_GetMacAboutMenuItemId(*args
, **kwargs
)
4763 GetMacAboutMenuItemId
= staticmethod(GetMacAboutMenuItemId
)
4764 def GetMacPreferencesMenuItemId(*args
, **kwargs
):
4765 """GetMacPreferencesMenuItemId() -> long"""
4766 return _core
.PyApp_GetMacPreferencesMenuItemId(*args
, **kwargs
)
4768 GetMacPreferencesMenuItemId
= staticmethod(GetMacPreferencesMenuItemId
)
4769 def GetMacExitMenuItemId(*args
, **kwargs
):
4770 """GetMacExitMenuItemId() -> long"""
4771 return _core
.PyApp_GetMacExitMenuItemId(*args
, **kwargs
)
4773 GetMacExitMenuItemId
= staticmethod(GetMacExitMenuItemId
)
4774 def GetMacHelpMenuTitleName(*args
, **kwargs
):
4775 """GetMacHelpMenuTitleName() -> String"""
4776 return _core
.PyApp_GetMacHelpMenuTitleName(*args
, **kwargs
)
4778 GetMacHelpMenuTitleName
= staticmethod(GetMacHelpMenuTitleName
)
4779 def SetMacSupportPCMenuShortcuts(*args
, **kwargs
):
4780 """SetMacSupportPCMenuShortcuts(bool val)"""
4781 return _core
.PyApp_SetMacSupportPCMenuShortcuts(*args
, **kwargs
)
4783 SetMacSupportPCMenuShortcuts
= staticmethod(SetMacSupportPCMenuShortcuts
)
4784 def SetMacAboutMenuItemId(*args
, **kwargs
):
4785 """SetMacAboutMenuItemId(long val)"""
4786 return _core
.PyApp_SetMacAboutMenuItemId(*args
, **kwargs
)
4788 SetMacAboutMenuItemId
= staticmethod(SetMacAboutMenuItemId
)
4789 def SetMacPreferencesMenuItemId(*args
, **kwargs
):
4790 """SetMacPreferencesMenuItemId(long val)"""
4791 return _core
.PyApp_SetMacPreferencesMenuItemId(*args
, **kwargs
)
4793 SetMacPreferencesMenuItemId
= staticmethod(SetMacPreferencesMenuItemId
)
4794 def SetMacExitMenuItemId(*args
, **kwargs
):
4795 """SetMacExitMenuItemId(long val)"""
4796 return _core
.PyApp_SetMacExitMenuItemId(*args
, **kwargs
)
4798 SetMacExitMenuItemId
= staticmethod(SetMacExitMenuItemId
)
4799 def SetMacHelpMenuTitleName(*args
, **kwargs
):
4800 """SetMacHelpMenuTitleName(String val)"""
4801 return _core
.PyApp_SetMacHelpMenuTitleName(*args
, **kwargs
)
4803 SetMacHelpMenuTitleName
= staticmethod(SetMacHelpMenuTitleName
)
4804 def _BootstrapApp(*args
, **kwargs
):
4808 For internal use only
4810 return _core
.PyApp__BootstrapApp(*args
, **kwargs
)
4812 def GetComCtl32Version(*args
, **kwargs
):
4814 GetComCtl32Version() -> int
4816 Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or
4817 0 if it wasn't found at all. Raises an exception on non-Windows
4820 return _core
.PyApp_GetComCtl32Version(*args
, **kwargs
)
4822 GetComCtl32Version
= staticmethod(GetComCtl32Version
)
4824 class PyAppPtr(PyApp
):
4825 def __init__(self
, this
):
4827 if not hasattr(self
,"thisown"): self
.thisown
= 0
4828 self
.__class
__ = PyApp
4829 _core
.PyApp_swigregister(PyAppPtr
)
4831 def PyApp_GetMacSupportPCMenuShortcuts(*args
, **kwargs
):
4832 """PyApp_GetMacSupportPCMenuShortcuts() -> bool"""
4833 return _core
.PyApp_GetMacSupportPCMenuShortcuts(*args
, **kwargs
)
4835 def PyApp_GetMacAboutMenuItemId(*args
, **kwargs
):
4836 """PyApp_GetMacAboutMenuItemId() -> long"""
4837 return _core
.PyApp_GetMacAboutMenuItemId(*args
, **kwargs
)
4839 def PyApp_GetMacPreferencesMenuItemId(*args
, **kwargs
):
4840 """PyApp_GetMacPreferencesMenuItemId() -> long"""
4841 return _core
.PyApp_GetMacPreferencesMenuItemId(*args
, **kwargs
)
4843 def PyApp_GetMacExitMenuItemId(*args
, **kwargs
):
4844 """PyApp_GetMacExitMenuItemId() -> long"""
4845 return _core
.PyApp_GetMacExitMenuItemId(*args
, **kwargs
)
4847 def PyApp_GetMacHelpMenuTitleName(*args
, **kwargs
):
4848 """PyApp_GetMacHelpMenuTitleName() -> String"""
4849 return _core
.PyApp_GetMacHelpMenuTitleName(*args
, **kwargs
)
4851 def PyApp_SetMacSupportPCMenuShortcuts(*args
, **kwargs
):
4852 """PyApp_SetMacSupportPCMenuShortcuts(bool val)"""
4853 return _core
.PyApp_SetMacSupportPCMenuShortcuts(*args
, **kwargs
)
4855 def PyApp_SetMacAboutMenuItemId(*args
, **kwargs
):
4856 """PyApp_SetMacAboutMenuItemId(long val)"""
4857 return _core
.PyApp_SetMacAboutMenuItemId(*args
, **kwargs
)
4859 def PyApp_SetMacPreferencesMenuItemId(*args
, **kwargs
):
4860 """PyApp_SetMacPreferencesMenuItemId(long val)"""
4861 return _core
.PyApp_SetMacPreferencesMenuItemId(*args
, **kwargs
)
4863 def PyApp_SetMacExitMenuItemId(*args
, **kwargs
):
4864 """PyApp_SetMacExitMenuItemId(long val)"""
4865 return _core
.PyApp_SetMacExitMenuItemId(*args
, **kwargs
)
4867 def PyApp_SetMacHelpMenuTitleName(*args
, **kwargs
):
4868 """PyApp_SetMacHelpMenuTitleName(String val)"""
4869 return _core
.PyApp_SetMacHelpMenuTitleName(*args
, **kwargs
)
4871 def PyApp_GetComCtl32Version(*args
, **kwargs
):
4873 PyApp_GetComCtl32Version() -> int
4875 Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or
4876 0 if it wasn't found at all. Raises an exception on non-Windows
4879 return _core
.PyApp_GetComCtl32Version(*args
, **kwargs
)
4881 #---------------------------------------------------------------------------
4884 def Exit(*args
, **kwargs
):
4888 Force an exit of the application. Convenience for wx.GetApp().Exit()
4890 return _core
.Exit(*args
, **kwargs
)
4892 def Yield(*args
, **kwargs
):
4896 Yield to other apps/messages. Convenience for wx.GetApp().Yield()
4898 return _core
.Yield(*args
, **kwargs
)
4900 def YieldIfNeeded(*args
, **kwargs
):
4902 YieldIfNeeded() -> bool
4904 Yield to other apps/messages. Convenience for wx.GetApp().Yield(True)
4906 return _core
.YieldIfNeeded(*args
, **kwargs
)
4908 def SafeYield(*args
, **kwargs
):
4910 SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool
4912 This function is similar to wx.Yield, except that it disables the user input
4913 to all program windows before calling wx.Yield and re-enables it again
4914 afterwards. If win is not None, this window will remain enabled, allowing the
4915 implementation of some limited user interaction.
4917 Returns the result of the call to wx.Yield.
4919 return _core
.SafeYield(*args
, **kwargs
)
4921 def WakeUpIdle(*args
, **kwargs
):
4925 Cause the message queue to become empty again, so idle events will be sent.
4927 return _core
.WakeUpIdle(*args
, **kwargs
)
4929 def PostEvent(*args
, **kwargs
):
4931 PostEvent(EvtHandler dest, Event event)
4933 Send an event to a window or other wx.EvtHandler to be processed later.
4935 return _core
.PostEvent(*args
, **kwargs
)
4937 def App_CleanUp(*args
, **kwargs
):
4941 For internal use only, it is used to cleanup after wxWindows when Python shuts down.
4943 return _core
.App_CleanUp(*args
, **kwargs
)
4945 def GetApp(*args
, **kwargs
):
4949 Return a reference to the current wx.App object.
4951 return _core
.GetApp(*args
, **kwargs
)
4952 #----------------------------------------------------------------------
4954 class PyOnDemandOutputWindow
:
4956 A class that can be used for redirecting Python's stdout and
4957 stderr streams. It will do nothing until something is wrriten to
4958 the stream at which point it will create a Frame with a text area
4959 and write the text there.
4961 def __init__(self
, title
= "wxPython: stdout/stderr"):
4966 def SetParent(self
, parent
):
4967 """Set the window to be used as the popup Frame's parent."""
4968 self
.parent
= parent
4971 def CreateOutputWindow(self
, st
):
4972 self
.frame
= wx
.Frame(self
.parent
, -1, self
.title
,
4973 style
=wx
.DEFAULT_FRAME_STYLE | wx
.NO_FULL_REPAINT_ON_RESIZE
)
4974 self
.text
= wx
.TextCtrl(self
.frame
, -1, "",
4975 style
= wx
.TE_MULTILINE | wx
.TE_READONLY
)
4976 self
.text
.AppendText(st
)
4977 self
.frame
.SetSize((450, 300))
4978 self
.frame
.Show(True)
4979 EVT_CLOSE(self
.frame
, self
.OnCloseWindow
)
4982 def OnCloseWindow(self
, event
):
4983 if self
.frame
is not None:
4984 self
.frame
.Destroy()
4989 # These methods provide the file-like output behaviour.
4990 def write(self
, text
):
4992 Create the output window if needed and write the string to it.
4993 If not called in the context of the gui thread then uses
4994 CallAfter to do the work there.
4996 if self
.frame
is None:
4997 if not wx
.Thread_IsMain():
4998 wx
.CallAfter(self
.CreateOutputWindow
, text
)
5000 self
.CreateOutputWindow(text
)
5002 if not wx
.Thread_IsMain():
5003 wx
.CallAfter(self
.text
.AppendText
, text
)
5005 self
.text
.AppendText(text
)
5009 if self
.frame
is not None:
5010 wx
.CallAfter(self
.frame
.Close
)
5014 #----------------------------------------------------------------------
5016 _defRedirect
= (wx
.Platform
== '__WXMSW__' or wx
.Platform
== '__WXMAC__')
5018 class App(wx
.PyApp
):
5020 The main application class. Derive from this and implement an OnInit
5021 method that creates a frame and then calls self.SetTopWindow(frame)
5023 outputWindowClass
= PyOnDemandOutputWindow
5025 def __init__(self
, redirect
=_defRedirect
, filename
=None, useBestVisual
=False):
5026 wx
.PyApp
.__init
__(self
)
5028 if wx
.Platform
== "__WXMAC__":
5031 if not MacOS
.WMAvailable():
5033 This program needs access to the screen. Please run with 'pythonw',
5034 not 'python', and only when you are logged in on the main display of
5040 # This has to be done before OnInit
5041 self
.SetUseBestVisual(useBestVisual
)
5043 # Set the default handler for SIGINT. This fixes a problem
5044 # where if Ctrl-C is pressed in the console that started this
5045 # app then it will not appear to do anything, (not even send
5046 # KeyboardInterrupt???) but will later segfault on exit. By
5047 # setting the default handler then the app will exit, as
5048 # expected (depending on platform.)
5051 signal
.signal(signal
.SIGINT
, signal
.SIG_DFL
)
5055 # Save and redirect the stdio to a window?
5056 self
.stdioWin
= None
5057 self
.saveStdio
= (_sys
.stdout
, _sys
.stderr
)
5059 self
.RedirectStdio(filename
)
5061 # This finishes the initialization of wxWindows and then calls
5062 # the OnInit that should be present in the derived class
5063 self
._BootstrapApp
()
5068 self
.RestoreStdio() # Just in case the MainLoop was overridden
5073 def SetTopWindow(self
, frame
):
5074 """Set the \"main\" top level window"""
5076 self
.stdioWin
.SetParent(frame
)
5077 wx
.PyApp
.SetTopWindow(self
, frame
)
5081 """Execute the main GUI event loop"""
5082 wx
.PyApp
.MainLoop(self
)
5086 def RedirectStdio(self
, filename
=None):
5087 """Redirect sys.stdout and sys.stderr to a file or a popup window."""
5089 _sys
.stdout
= _sys
.stderr
= open(filename
, 'a')
5091 self
.stdioWin
= self
.outputWindowClass()
5092 _sys
.stdout
= _sys
.stderr
= self
.stdioWin
5095 def RestoreStdio(self
):
5096 _sys
.stdout
, _sys
.stderr
= self
.saveStdio
5100 # change from wxPyApp_ to wxApp_
5101 App_GetMacSupportPCMenuShortcuts
= _core
.PyApp_GetMacSupportPCMenuShortcuts
5102 App_GetMacAboutMenuItemId
= _core
.PyApp_GetMacAboutMenuItemId
5103 App_GetMacPreferencesMenuItemId
= _core
.PyApp_GetMacPreferencesMenuItemId
5104 App_GetMacExitMenuItemId
= _core
.PyApp_GetMacExitMenuItemId
5105 App_GetMacHelpMenuTitleName
= _core
.PyApp_GetMacHelpMenuTitleName
5106 App_SetMacSupportPCMenuShortcuts
= _core
.PyApp_SetMacSupportPCMenuShortcuts
5107 App_SetMacAboutMenuItemId
= _core
.PyApp_SetMacAboutMenuItemId
5108 App_SetMacPreferencesMenuItemId
= _core
.PyApp_SetMacPreferencesMenuItemId
5109 App_SetMacExitMenuItemId
= _core
.PyApp_SetMacExitMenuItemId
5110 App_SetMacHelpMenuTitleName
= _core
.PyApp_SetMacHelpMenuTitleName
5111 App_GetComCtl32Version
= _core
.PyApp_GetComCtl32Version
5113 #----------------------------------------------------------------------------
5115 class PySimpleApp(wx
.App
):
5117 A simple application class. You can just create one of these and
5118 then then make your top level windows later, and not have to worry
5121 def __init__(self
, redirect
=False, filename
=None, useBestVisual
=False):
5122 wx
.App
.__init
__(self
, redirect
, filename
, useBestVisual
)
5125 wx
.InitAllImageHandlers()
5129 # Is anybody using this one?
5130 class PyWidgetTester(wx
.App
):
5131 def __init__(self
, size
= (250, 100)):
5133 wx
.App
.__init
__(self
, 0)
5136 self
.frame
= wx
.Frame(None, -1, "Widget Tester", pos
=(0,0), size
=self
.size
)
5137 self
.SetTopWindow(self
.frame
)
5140 def SetWidget(self
, widgetClass
, *args
):
5141 w
= widgetClass(self
.frame
, *args
)
5142 self
.frame
.Show(True)
5144 #----------------------------------------------------------------------------
5145 # DO NOT hold any other references to this object. This is how we
5146 # know when to cleanup system resources that wxWin is holding. When
5147 # the sys module is unloaded, the refcount on sys.__wxPythonCleanup
5148 # goes to zero and it calls the wxApp_CleanUp function.
5150 class __wxPyCleanup
:
5152 self
.cleanup
= _core
.App_CleanUp
5156 _sys
.__wxPythonCleanup
= __wxPyCleanup()
5158 ## # another possible solution, but it gets called too early...
5159 ## if sys.version[0] == '2':
5161 ## atexit.register(_core.wxApp_CleanUp)
5163 ## sys.exitfunc = _core.wxApp_CleanUp
5166 #----------------------------------------------------------------------------
5168 #---------------------------------------------------------------------------
5170 class AcceleratorEntry(object):
5172 return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5173 def __init__(self
, *args
, **kwargs
):
5174 """__init__(int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry"""
5175 newobj
= _core
.new_AcceleratorEntry(*args
, **kwargs
)
5176 self
.this
= newobj
.this
5179 def __del__(self
, destroy
=_core
.delete_AcceleratorEntry
):
5182 if self
.thisown
: destroy(self
)
5185 def Set(*args
, **kwargs
):
5186 """Set(int flags, int keyCode, int cmd, MenuItem item=None)"""
5187 return _core
.AcceleratorEntry_Set(*args
, **kwargs
)
5189 def SetMenuItem(*args
, **kwargs
):
5190 """SetMenuItem(MenuItem item)"""
5191 return _core
.AcceleratorEntry_SetMenuItem(*args
, **kwargs
)
5193 def GetMenuItem(*args
, **kwargs
):
5194 """GetMenuItem() -> MenuItem"""
5195 return _core
.AcceleratorEntry_GetMenuItem(*args
, **kwargs
)
5197 def GetFlags(*args
, **kwargs
):
5198 """GetFlags() -> int"""
5199 return _core
.AcceleratorEntry_GetFlags(*args
, **kwargs
)
5201 def GetKeyCode(*args
, **kwargs
):
5202 """GetKeyCode() -> int"""
5203 return _core
.AcceleratorEntry_GetKeyCode(*args
, **kwargs
)
5205 def GetCommand(*args
, **kwargs
):
5206 """GetCommand() -> int"""
5207 return _core
.AcceleratorEntry_GetCommand(*args
, **kwargs
)
5210 class AcceleratorEntryPtr(AcceleratorEntry
):
5211 def __init__(self
, this
):
5213 if not hasattr(self
,"thisown"): self
.thisown
= 0
5214 self
.__class
__ = AcceleratorEntry
5215 _core
.AcceleratorEntry_swigregister(AcceleratorEntryPtr
)
5217 class AcceleratorTable(Object
):
5219 return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5220 def __init__(self
, *args
, **kwargs
):
5222 __init__(entries) -> AcceleratorTable
5224 Construct an AcceleratorTable from a list of AcceleratorEntry items or
5225 3-tuples (flags, keyCode, cmdID)
5227 newobj
= _core
.new_AcceleratorTable(*args
, **kwargs
)
5228 self
.this
= newobj
.this
5231 def __del__(self
, destroy
=_core
.delete_AcceleratorTable
):
5234 if self
.thisown
: destroy(self
)
5237 def Ok(*args
, **kwargs
):
5239 return _core
.AcceleratorTable_Ok(*args
, **kwargs
)
5242 class AcceleratorTablePtr(AcceleratorTable
):
5243 def __init__(self
, this
):
5245 if not hasattr(self
,"thisown"): self
.thisown
= 0
5246 self
.__class
__ = AcceleratorTable
5247 _core
.AcceleratorTable_swigregister(AcceleratorTablePtr
)
5250 def GetAccelFromString(*args
, **kwargs
):
5251 """GetAccelFromString(String label) -> AcceleratorEntry"""
5252 return _core
.GetAccelFromString(*args
, **kwargs
)
5253 #---------------------------------------------------------------------------
5255 class VisualAttributes(object):
5256 """struct containing all the visual attributes of a control"""
5258 return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5259 def __init__(self
, *args
, **kwargs
):
5261 __init__() -> VisualAttributes
5263 struct containing all the visual attributes of a control
5265 newobj
= _core
.new_VisualAttributes(*args
, **kwargs
)
5266 self
.this
= newobj
.this
5269 def __del__(self
, destroy
=_core
.delete_VisualAttributes
):
5272 if self
.thisown
: destroy(self
)
5275 font
= property(_core
.VisualAttributes_font_get
, _core
.VisualAttributes_font_set
)
5276 colFg
= property(_core
.VisualAttributes_colFg_get
, _core
.VisualAttributes_colFg_set
)
5277 colBg
= property(_core
.VisualAttributes_colBg_get
, _core
.VisualAttributes_colBg_set
)
5279 class VisualAttributesPtr(VisualAttributes
):
5280 def __init__(self
, this
):
5282 if not hasattr(self
,"thisown"): self
.thisown
= 0
5283 self
.__class
__ = VisualAttributes
5284 _core
.VisualAttributes_swigregister(VisualAttributesPtr
)
5285 NullAcceleratorTable
= cvar
.NullAcceleratorTable
5286 PanelNameStr
= cvar
.PanelNameStr
5288 WINDOW_VARIANT_NORMAL
= _core
.WINDOW_VARIANT_NORMAL
5289 WINDOW_VARIANT_SMALL
= _core
.WINDOW_VARIANT_SMALL
5290 WINDOW_VARIANT_MINI
= _core
.WINDOW_VARIANT_MINI
5291 WINDOW_VARIANT_LARGE
= _core
.WINDOW_VARIANT_LARGE
5292 WINDOW_VARIANT_MAX
= _core
.WINDOW_VARIANT_MAX
5293 class Window(EvtHandler
):
5295 wx.Window is the base class for all windows and represents any visible
5296 object on the screen. All controls, top level windows and so on are
5297 wx.Windows. Sizers and device contexts are not however, as they don't
5298 appear on screen themselves.
5302 return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5303 def __init__(self
, *args
, **kwargs
):
5305 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
5306 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window
5308 Construct and show a generic Window.
5310 newobj
= _core
.new_Window(*args
, **kwargs
)
5311 self
.this
= newobj
.this
5314 self
._setOORInfo
(self
)
5316 def Create(*args
, **kwargs
):
5318 Create(Window parent, int id=-1, Point pos=DefaultPosition,
5319 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
5321 Create the GUI part of the Window for 2-phase creation mode.
5323 return _core
.Window_Create(*args
, **kwargs
)
5325 def Close(*args
, **kwargs
):
5327 Close(bool force=False) -> bool
5329 This function simply generates a EVT_CLOSE event whose handler usually
5330 tries to close the window. It doesn't close the window itself,
5331 however. If force is False (the default) then the window's close
5332 handler will be allowed to veto the destruction of the window.
5334 Usually Close is only used with the top level windows (wx.Frame and
5335 wx.Dialog classes) as the others are not supposed to have any special
5338 The close handler should check whether the window is being deleted
5339 forcibly, using wx.CloseEvent.GetForce, in which case it should
5340 destroy the window using wx.Window.Destroy.
5342 Note that calling Close does not guarantee that the window will be
5343 destroyed; but it provides a way to simulate a manual close of a
5344 window, which may or may not be implemented by destroying the
5345 window. The default EVT_CLOSE handler for wx.Dialog does not
5346 necessarily delete the dialog, since it will simply simulate an
5347 wxID_CANCEL event which is handled by the appropriate button event
5348 handler and may do anything at all.
5350 To guarantee that the window will be destroyed, call wx.Window.Destroy
5353 return _core
.Window_Close(*args
, **kwargs
)
5355 def Destroy(*args
, **kwargs
):
5359 Destroys the window safely. Frames and dialogs are not destroyed
5360 immediately when this function is called -- they are added to a list
5361 of windows to be deleted on idle time, when all the window's events
5362 have been processed. This prevents problems with events being sent to
5363 non-existent windows.
5365 Returns True if the window has either been successfully deleted, or it
5366 has been added to the list of windows pending real deletion.
5368 return _core
.Window_Destroy(*args
, **kwargs
)
5370 def DestroyChildren(*args
, **kwargs
):
5372 DestroyChildren() -> bool
5374 Destroys all children of a window. Called automatically by the destructor.
5376 return _core
.Window_DestroyChildren(*args
, **kwargs
)
5378 def IsBeingDeleted(*args
, **kwargs
):
5380 IsBeingDeleted() -> bool
5382 Is the window in the process of being deleted?
5384 return _core
.Window_IsBeingDeleted(*args
, **kwargs
)
5386 def SetTitle(*args
, **kwargs
):
5388 SetTitle(String title)
5390 Sets the window's title. Applicable only to frames and dialogs.
5392 return _core
.Window_SetTitle(*args
, **kwargs
)
5394 def GetTitle(*args
, **kwargs
):
5396 GetTitle() -> String
5398 Gets the window's title. Applicable only to frames and dialogs.
5400 return _core
.Window_GetTitle(*args
, **kwargs
)
5402 def SetLabel(*args
, **kwargs
):
5404 SetLabel(String label)
5406 Set the text which the window shows in its label if applicable.
5408 return _core
.Window_SetLabel(*args
, **kwargs
)
5410 def GetLabel(*args
, **kwargs
):
5412 GetLabel() -> String
5414 Generic way of getting a label from any window, for
5415 identification purposes. The interpretation of this function
5416 differs from class to class. For frames and dialogs, the value
5417 returned is the title. For buttons or static text controls, it is
5418 the button text. This function can be useful for meta-programs
5419 such as testing tools or special-needs access programs)which
5420 need to identify windows by name.
5422 return _core
.Window_GetLabel(*args
, **kwargs
)
5424 def SetName(*args
, **kwargs
):
5426 SetName(String name)
5428 Sets the window's name. The window name is used for ressource
5429 setting in X, it is not the same as the window title/label
5431 return _core
.Window_SetName(*args
, **kwargs
)
5433 def GetName(*args
, **kwargs
):
5437 Returns the windows name. This name is not guaranteed to be
5438 unique; it is up to the programmer to supply an appropriate name
5439 in the window constructor or via wx.Window.SetName.
5441 return _core
.Window_GetName(*args
, **kwargs
)
5443 def SetWindowVariant(*args
, **kwargs
):
5445 SetWindowVariant(int variant)
5447 Sets the variant of the window/font size to use for this window,
5448 if the platform supports variants, for example, wxMac. Variant values are:
5450 wx.WINDOW_VARIANT_NORMAL Normal size
5451 wx.WINDOW_VARIANT_SMALL Smaller size (about 25 % smaller than normal)
5452 wx.WINDOW_VARIANT_MINI Mini size (about 33 % smaller than normal)
5453 wx.WINDOW_VARIANT_LARGE Large size (about 25 % larger than normal)
5456 return _core
.Window_SetWindowVariant(*args
, **kwargs
)
5458 def GetWindowVariant(*args
, **kwargs
):
5459 """GetWindowVariant() -> int"""
5460 return _core
.Window_GetWindowVariant(*args
, **kwargs
)
5462 def SetId(*args
, **kwargs
):
5466 Sets the identifier of the window. Each window has an integer
5467 identifier. If the application has not provided one, an identifier
5468 will be generated. Normally, the identifier should be provided on
5469 creation and should not be modified subsequently.
5471 return _core
.Window_SetId(*args
, **kwargs
)
5473 def GetId(*args
, **kwargs
):
5477 Returns the identifier of the window. Each window has an integer
5478 identifier. If the application has not provided one (or the default Id
5479 -1 is used) then an unique identifier with a negative value will be
5482 return _core
.Window_GetId(*args
, **kwargs
)
5484 def NewControlId(*args
, **kwargs
):
5486 NewControlId() -> int
5488 Generate a control id for the controls which were not given one.
5490 return _core
.Window_NewControlId(*args
, **kwargs
)
5492 NewControlId
= staticmethod(NewControlId
)
5493 def NextControlId(*args
, **kwargs
):
5495 NextControlId(int winid) -> int
5497 Get the id of the control following the one with the given
5500 return _core
.Window_NextControlId(*args
, **kwargs
)
5502 NextControlId
= staticmethod(NextControlId
)
5503 def PrevControlId(*args
, **kwargs
):
5505 PrevControlId(int winid) -> int
5507 Get the id of the control preceding the one with the given
5510 return _core
.Window_PrevControlId(*args
, **kwargs
)
5512 PrevControlId
= staticmethod(PrevControlId
)
5513 def SetSize(*args
, **kwargs
):
5517 Sets the size of the window in pixels.
5519 return _core
.Window_SetSize(*args
, **kwargs
)
5521 def SetDimensions(*args
, **kwargs
):
5523 SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
5525 Sets the position and size of the window in pixels. The sizeFlags
5526 parameter indicates the interpretation of the other params if they are
5527 -1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
5528 shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
5529 used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
5530 dimensions of -1 and less to be interpreted as real dimensions, not
5533 return _core
.Window_SetDimensions(*args
, **kwargs
)
5535 def SetRect(*args
, **kwargs
):
5537 SetRect(Rect rect, int sizeFlags=SIZE_AUTO)
5539 Sets the position and size of the window in pixels using a wx.Rect.
5541 return _core
.Window_SetRect(*args
, **kwargs
)
5543 def SetSizeWH(*args
, **kwargs
):
5545 SetSizeWH(int width, int height)
5547 Sets the size of the window in pixels.
5549 return _core
.Window_SetSizeWH(*args
, **kwargs
)
5551 def Move(*args
, **kwargs
):
5553 Move(Point pt, int flags=SIZE_USE_EXISTING)
5555 Moves the window to the given position.
5557 return _core
.Window_Move(*args
, **kwargs
)
5560 def MoveXY(*args
, **kwargs
):
5562 MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)
5564 Moves the window to the given position.
5566 return _core
.Window_MoveXY(*args
, **kwargs
)
5568 def Raise(*args
, **kwargs
):
5572 Raises the window to the top of the window hierarchy if it is a
5573 managed window (dialog or frame).
5575 return _core
.Window_Raise(*args
, **kwargs
)
5577 def Lower(*args
, **kwargs
):
5581 Lowers the window to the bottom of the window hierarchy if it is a
5582 managed window (dialog or frame).
5584 return _core
.Window_Lower(*args
, **kwargs
)
5586 def SetClientSize(*args
, **kwargs
):
5588 SetClientSize(Size size)
5590 This sets the size of the window client area in pixels. Using this
5591 function to size a window tends to be more device-independent than
5592 wx.Window.SetSize, since the application need not worry about what
5593 dimensions the border or title bar have when trying to fit the window
5594 around panel items, for example.
5596 return _core
.Window_SetClientSize(*args
, **kwargs
)
5598 def SetClientSizeWH(*args
, **kwargs
):
5600 SetClientSizeWH(int width, int height)
5602 This sets the size of the window client area in pixels. Using this
5603 function to size a window tends to be more device-independent than
5604 wx.Window.SetSize, since the application need not worry about what
5605 dimensions the border or title bar have when trying to fit the window
5606 around panel items, for example.
5608 return _core
.Window_SetClientSizeWH(*args
, **kwargs
)
5610 def SetClientRect(*args
, **kwargs
):
5612 SetClientRect(Rect rect)
5614 This sets the size of the window client area in pixels. Using this
5615 function to size a window tends to be more device-independent than
5616 wx.Window.SetSize, since the application need not worry about what
5617 dimensions the border or title bar have when trying to fit the window
5618 around panel items, for example.
5620 return _core
.Window_SetClientRect(*args
, **kwargs
)
5622 def GetPosition(*args
, **kwargs
):
5624 GetPosition() -> Point
5626 Get the window's position.
5628 return _core
.Window_GetPosition(*args
, **kwargs
)
5630 def GetPositionTuple(*args
, **kwargs
):
5632 GetPositionTuple() -> (x,y)
5634 Get the window's position.
5636 return _core
.Window_GetPositionTuple(*args
, **kwargs
)
5638 def GetSize(*args
, **kwargs
):
5642 Get the window size.
5644 return _core
.Window_GetSize(*args
, **kwargs
)
5646 def GetSizeTuple(*args
, **kwargs
):
5648 GetSizeTuple() -> (width, height)
5650 Get the window size.
5652 return _core
.Window_GetSizeTuple(*args
, **kwargs
)
5654 def GetRect(*args
, **kwargs
):
5658 Returns the size and position of the window as a wx.Rect object.
5660 return _core
.Window_GetRect(*args
, **kwargs
)
5662 def GetClientSize(*args
, **kwargs
):
5664 GetClientSize() -> Size
5666 This gets the size of the window's 'client area' in pixels. The client
5667 area is the area which may be drawn on by the programmer, excluding
5668 title bar, border, scrollbars, etc.
5670 return _core
.Window_GetClientSize(*args
, **kwargs
)
5672 def GetClientSizeTuple(*args
, **kwargs
):
5674 GetClientSizeTuple() -> (width, height)
5676 This gets the size of the window's 'client area' in pixels. The client
5677 area is the area which may be drawn on by the programmer, excluding
5678 title bar, border, scrollbars, etc.
5680 return _core
.Window_GetClientSizeTuple(*args
, **kwargs
)
5682 def GetClientAreaOrigin(*args
, **kwargs
):
5684 GetClientAreaOrigin() -> Point
5686 Get the origin of the client area of the window relative to the
5687 window's top left corner (the client area may be shifted because of
5688 the borders, scrollbars, other decorations...)
5690 return _core
.Window_GetClientAreaOrigin(*args
, **kwargs
)
5692 def GetClientRect(*args
, **kwargs
):
5694 GetClientRect() -> Rect
5696 Get the client area position and size as a wx.Rect object.
5698 return _core
.Window_GetClientRect(*args
, **kwargs
)
5700 def GetBestSize(*args
, **kwargs
):
5702 GetBestSize() -> Size
5704 This functions returns the best acceptable minimal size for the
5705 window, if applicable. For example, for a static text control, it will be
5706 the minimal size such that the control label is not truncated. For
5707 windows containing subwindows (suzh aswx.Panel), the size returned
5708 by this function will be the same as the size the window would have
5709 had after calling Fit.
5711 return _core
.Window_GetBestSize(*args
, **kwargs
)
5713 def GetBestSizeTuple(*args
, **kwargs
):
5715 GetBestSizeTuple() -> (width, height)
5717 This functions returns the best acceptable minimal size for the
5718 window, if applicable. For example, for a static text control, it will be
5719 the minimal size such that the control label is not truncated. For
5720 windows containing subwindows (suzh aswx.Panel), the size returned
5721 by this function will be the same as the size the window would have
5722 had after calling Fit.
5724 return _core
.Window_GetBestSizeTuple(*args
, **kwargs
)
5726 def GetAdjustedBestSize(*args
, **kwargs
):
5728 GetAdjustedBestSize() -> Size
5730 This method is similar to GetBestSize, except in one
5731 thing. GetBestSize should return the minimum untruncated size of the
5732 window, while this method will return the largest of BestSize and any
5733 user specified minimum size. ie. it is the minimum size the window
5734 should currently be drawn at, not the minimal size it can possibly
5737 return _core
.Window_GetAdjustedBestSize(*args
, **kwargs
)
5739 def Center(*args
, **kwargs
):
5741 Center(int direction=BOTH)
5743 Centers the window. The parameter specifies the direction for
5744 cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
5745 also include wx.CENTER_ON_SCREEN flag if you want to center the window
5746 on the entire screen and not on its parent window. If it is a
5747 top-level window and has no parent then it will always be centered
5748 relative to the screen.
5750 return _core
.Window_Center(*args
, **kwargs
)
5753 def CenterOnScreen(*args
, **kwargs
):
5755 CenterOnScreen(int dir=BOTH)
5757 Center on screen (only works for top level windows)
5759 return _core
.Window_CenterOnScreen(*args
, **kwargs
)
5761 CentreOnScreen
= CenterOnScreen
5762 def CenterOnParent(*args
, **kwargs
):
5764 CenterOnParent(int dir=BOTH)
5766 Center with respect to the the parent window
5768 return _core
.Window_CenterOnParent(*args
, **kwargs
)
5770 CentreOnParent
= CenterOnParent
5771 def Fit(*args
, **kwargs
):
5775 Sizes the window so that it fits around its subwindows. This function
5776 won't do anything if there are no subwindows and will only really work
5777 correctly if sizers are used for the subwindows layout. Also, if the
5778 window has exactly one subwindow it is better (faster and the result
5779 is more precise as Fit adds some margin to account for fuzziness of
5780 its calculations) to call window.SetClientSize(child.GetSize())
5781 instead of calling Fit.
5783 return _core
.Window_Fit(*args
, **kwargs
)
5785 def FitInside(*args
, **kwargs
):
5789 Similar to Fit, but sizes the interior (virtual) size of a
5790 window. Mainly useful with scrolled windows to reset scrollbars after
5791 sizing changes that do not trigger a size event, and/or scrolled
5792 windows without an interior sizer. This function similarly won't do
5793 anything if there are no subwindows.
5795 return _core
.Window_FitInside(*args
, **kwargs
)
5797 def SetSizeHints(*args
):
5799 SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
5801 SetSizeHints(Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
5803 Allows specification of minimum and maximum window sizes, and window
5804 size increments. If a pair of values is not set (or set to -1), the
5805 default values will be used. If this function is called, the user
5806 will not be able to size the window outside the given bounds. The
5807 resizing increments are only significant under Motif or Xt.
5809 return _core
.Window_SetSizeHints(*args
)
5811 def SetVirtualSizeHints(*args
):
5813 SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
5814 SetVirtualSizeHints(Size minSize, Size maxSize=DefaultSize)
5816 Allows specification of minimum and maximum virtual window sizes. If a
5817 pair of values is not set (or set to -1), the default values will be
5818 used. If this function is called, the user will not be able to size
5819 the virtual area of the window outside the given bounds.
5821 return _core
.Window_SetVirtualSizeHints(*args
)
5823 def GetMinWidth(*args
, **kwargs
):
5824 """GetMinWidth() -> int"""
5825 return _core
.Window_GetMinWidth(*args
, **kwargs
)
5827 def GetMinHeight(*args
, **kwargs
):
5828 """GetMinHeight() -> int"""
5829 return _core
.Window_GetMinHeight(*args
, **kwargs
)
5831 def GetMaxWidth(*args
, **kwargs
):
5832 """GetMaxWidth() -> int"""
5833 return _core
.Window_GetMaxWidth(*args
, **kwargs
)
5835 def GetMaxHeight(*args
, **kwargs
):
5836 """GetMaxHeight() -> int"""
5837 return _core
.Window_GetMaxHeight(*args
, **kwargs
)
5839 def GetMaxSize(*args
, **kwargs
):
5840 """GetMaxSize() -> Size"""
5841 return _core
.Window_GetMaxSize(*args
, **kwargs
)
5843 def GetMinSize(*args
, **kwargs
):
5844 """GetMinSize() -> Size"""
5845 return _core
.Window_GetMinSize(*args
, **kwargs
)
5847 def SetVirtualSize(*args
, **kwargs
):
5849 SetVirtualSize(Size size)
5851 Set the the virtual size of a window in pixels. For most windows this
5852 is just the client area of the window, but for some like scrolled
5853 windows it is more or less independent of the screen window size.
5855 return _core
.Window_SetVirtualSize(*args
, **kwargs
)
5857 def SetVirtualSizeWH(*args
, **kwargs
):
5859 SetVirtualSizeWH(int w, int h)
5861 Set the the virtual size of a window in pixels. For most windows this
5862 is just the client area of the window, but for some like scrolled
5863 windows it is more or less independent of the screen window size.
5865 return _core
.Window_SetVirtualSizeWH(*args
, **kwargs
)
5867 def GetVirtualSize(*args
, **kwargs
):
5869 GetVirtualSize() -> Size
5871 Get the the virtual size of the window in pixels. For most windows
5872 this is just the client area of the window, but for some like scrolled
5873 windows it is more or less independent of the screen window size.
5875 return _core
.Window_GetVirtualSize(*args
, **kwargs
)
5877 def GetVirtualSizeTuple(*args
, **kwargs
):
5879 GetVirtualSizeTuple() -> (width, height)
5881 Get the the virtual size of the window in pixels. For most windows
5882 this is just the client area of the window, but for some like scrolled
5883 windows it is more or less independent of the screen window size.
5885 return _core
.Window_GetVirtualSizeTuple(*args
, **kwargs
)
5887 def GetBestVirtualSize(*args
, **kwargs
):
5889 GetBestVirtualSize() -> Size
5891 Return the largest of ClientSize and BestSize (as determined by a
5892 sizer, interior children, or other means)
5894 return _core
.Window_GetBestVirtualSize(*args
, **kwargs
)
5896 def Show(*args
, **kwargs
):
5898 Show(bool show=True) -> bool
5900 Shows or hides the window. You may need to call Raise for a top level
5901 window if you want to bring it to top, although this is not needed if
5902 Show is called immediately after the frame creation. Returns True if
5903 the window has been shown or hidden or False if nothing was done
5904 because it already was in the requested state.
5906 return _core
.Window_Show(*args
, **kwargs
)
5908 def Hide(*args
, **kwargs
):
5912 Equivalent to calling Show(False).
5914 return _core
.Window_Hide(*args
, **kwargs
)
5916 def Enable(*args
, **kwargs
):
5918 Enable(bool enable=True) -> bool
5920 Enable or disable the window for user input. Note that when a parent
5921 window is disabled, all of its children are disabled as well and they
5922 are reenabled again when the parent is. Returns true if the window
5923 has been enabled or disabled, false if nothing was done, i.e. if the
5924 window had already been in the specified state.
5926 return _core
.Window_Enable(*args
, **kwargs
)
5928 def Disable(*args
, **kwargs
):
5932 Disables the window, same as Enable(false).
5934 return _core
.Window_Disable(*args
, **kwargs
)
5936 def IsShown(*args
, **kwargs
):
5940 Returns true if the window is shown, false if it has been hidden.
5942 return _core
.Window_IsShown(*args
, **kwargs
)
5944 def IsEnabled(*args
, **kwargs
):
5948 Returns true if the window is enabled for input, false otherwise.
5950 return _core
.Window_IsEnabled(*args
, **kwargs
)
5952 def SetWindowStyleFlag(*args
, **kwargs
):
5954 SetWindowStyleFlag(long style)
5956 Sets the style of the window. Please note that some styles cannot be
5957 changed after the window creation and that Refresh() might be called
5958 after changing the others for the change to take place immediately.
5960 return _core
.Window_SetWindowStyleFlag(*args
, **kwargs
)
5962 def GetWindowStyleFlag(*args
, **kwargs
):
5964 GetWindowStyleFlag() -> long
5966 Gets the window style that was passed to the constructor or Create
5969 return _core
.Window_GetWindowStyleFlag(*args
, **kwargs
)
5971 SetWindowStyle
= SetWindowStyleFlag
; GetWindowStyle
= GetWindowStyleFlag
5972 def HasFlag(*args
, **kwargs
):
5974 HasFlag(int flag) -> bool
5976 Test if the given style is set for this window.
5978 return _core
.Window_HasFlag(*args
, **kwargs
)
5980 def IsRetained(*args
, **kwargs
):
5982 IsRetained() -> bool
5984 Returns true if the window is retained, false otherwise. Retained
5985 windows are only available on X platforms.
5987 return _core
.Window_IsRetained(*args
, **kwargs
)
5989 def SetExtraStyle(*args
, **kwargs
):
5991 SetExtraStyle(long exStyle)
5993 Sets the extra style bits for the window. Extra styles are the less
5994 often used style bits which can't be set with the constructor or with
5995 SetWindowStyleFlag()
5997 return _core
.Window_SetExtraStyle(*args
, **kwargs
)
5999 def GetExtraStyle(*args
, **kwargs
):
6001 GetExtraStyle() -> long
6003 Returns the extra style bits for the window.
6005 return _core
.Window_GetExtraStyle(*args
, **kwargs
)
6007 def MakeModal(*args
, **kwargs
):
6009 MakeModal(bool modal=True)
6011 Disables all other windows in the application so that the user can
6012 only interact with this window. Passing False will reverse this
6015 return _core
.Window_MakeModal(*args
, **kwargs
)
6017 def SetThemeEnabled(*args
, **kwargs
):
6019 SetThemeEnabled(bool enableTheme)
6021 This function tells a window if it should use the system's "theme"
6022 code to draw the windows' background instead if its own background
6023 drawing code. This will only have an effect on platforms that support
6024 the notion of themes in user defined windows. One such platform is
6025 GTK+ where windows can have (very colourful) backgrounds defined by a
6026 user's selected theme.
6028 Dialogs, notebook pages and the status bar have this flag set to true
6029 by default so that the default look and feel is simulated best.
6031 return _core
.Window_SetThemeEnabled(*args
, **kwargs
)
6033 def GetThemeEnabled(*args
, **kwargs
):
6035 GetThemeEnabled() -> bool
6037 Return the themeEnabled flag.
6039 return _core
.Window_GetThemeEnabled(*args
, **kwargs
)
6041 def SetFocus(*args
, **kwargs
):
6045 Set's the focus to this window, allowing it to receive keyboard input.
6047 return _core
.Window_SetFocus(*args
, **kwargs
)
6049 def SetFocusFromKbd(*args
, **kwargs
):
6053 Set focus to this window as the result of a keyboard action. Normally
6054 only called internally.
6056 return _core
.Window_SetFocusFromKbd(*args
, **kwargs
)
6058 def FindFocus(*args
, **kwargs
):
6060 FindFocus() -> Window
6062 Returns the window or control that currently has the keyboard focus,
6065 return _core
.Window_FindFocus(*args
, **kwargs
)
6067 FindFocus
= staticmethod(FindFocus
)
6068 def AcceptsFocus(*args
, **kwargs
):
6070 AcceptsFocus() -> bool
6072 Can this window have focus?
6074 return _core
.Window_AcceptsFocus(*args
, **kwargs
)
6076 def AcceptsFocusFromKeyboard(*args
, **kwargs
):
6078 AcceptsFocusFromKeyboard() -> bool
6080 Can this window be given focus by keyboard navigation? if not, the
6081 only way to give it focus (provided it accepts it at all) is to click
6084 return _core
.Window_AcceptsFocusFromKeyboard(*args
, **kwargs
)
6086 def GetDefaultItem(*args
, **kwargs
):
6088 GetDefaultItem() -> Window
6090 Get the default child of this parent, i.e. the one which is activated
6091 by pressing <Enter> such as the OK button on a wx.Dialog.
6093 return _core
.Window_GetDefaultItem(*args
, **kwargs
)
6095 def SetDefaultItem(*args
, **kwargs
):
6097 SetDefaultItem(Window child) -> Window
6099 Set this child as default, return the old default.
6101 return _core
.Window_SetDefaultItem(*args
, **kwargs
)
6103 def SetTmpDefaultItem(*args
, **kwargs
):
6105 SetTmpDefaultItem(Window win)
6107 Set this child as temporary default
6109 return _core
.Window_SetTmpDefaultItem(*args
, **kwargs
)
6111 def GetChildren(*args
, **kwargs
):
6113 GetChildren() -> PyObject
6115 Returns a list of the window's children. NOTE: Currently this is a
6116 copy of the child window list maintained by the window, so the return
6117 value of this function is only valid as long as the window's children
6120 return _core
.Window_GetChildren(*args
, **kwargs
)
6122 def GetParent(*args
, **kwargs
):
6124 GetParent() -> Window
6126 Returns the parent window of this window, or None if there isn't one.
6128 return _core
.Window_GetParent(*args
, **kwargs
)
6130 def GetGrandParent(*args
, **kwargs
):
6132 GetGrandParent() -> Window
6134 Returns the parent of the parent of this window, or None if there isn't one.
6136 return _core
.Window_GetGrandParent(*args
, **kwargs
)
6138 def IsTopLevel(*args
, **kwargs
):
6140 IsTopLevel() -> bool
6142 Returns true if the given window is a top-level one. Currently all
6143 frames and dialogs are always considered to be top-level windows (even
6144 if they have a parent window).
6146 return _core
.Window_IsTopLevel(*args
, **kwargs
)
6148 def Reparent(*args
, **kwargs
):
6150 Reparent(Window newParent) -> bool
6152 Reparents the window, i.e the window will be removed from its current
6153 parent window (e.g. a non-standard toolbar in a wxFrame) and then
6154 re-inserted into another. Available on Windows and GTK. Returns True
6155 if the parent was changed, False otherwise (error or newParent ==
6158 return _core
.Window_Reparent(*args
, **kwargs
)
6160 def AddChild(*args
, **kwargs
):
6162 AddChild(Window child)
6164 Adds a child window. This is called automatically by window creation
6165 functions so should not be required by the application programmer.
6167 return _core
.Window_AddChild(*args
, **kwargs
)
6169 def RemoveChild(*args
, **kwargs
):
6171 RemoveChild(Window child)
6173 Removes a child window. This is called automatically by window
6174 deletion functions so should not be required by the application
6177 return _core
.Window_RemoveChild(*args
, **kwargs
)
6179 def FindWindowById(*args
, **kwargs
):
6181 FindWindowById(long winid) -> Window
6183 Find a chld of this window by window ID
6185 return _core
.Window_FindWindowById(*args
, **kwargs
)
6187 def FindWindowByName(*args
, **kwargs
):
6189 FindWindowByName(String name) -> Window
6191 Find a child of this window by name
6193 return _core
.Window_FindWindowByName(*args
, **kwargs
)
6195 def GetEventHandler(*args
, **kwargs
):
6197 GetEventHandler() -> EvtHandler
6199 Returns the event handler for this window. By default, the window is
6200 its own event handler.
6202 return _core
.Window_GetEventHandler(*args
, **kwargs
)
6204 def SetEventHandler(*args
, **kwargs
):
6206 SetEventHandler(EvtHandler handler)
6208 Sets the event handler for this window. An event handler is an object
6209 that is capable of processing the events sent to a window. By default,
6210 the window is its own event handler, but an application may wish to
6211 substitute another, for example to allow central implementation of
6212 event-handling for a variety of different window classes.
6214 It is usually better to use wx.Window.PushEventHandler since this sets
6215 up a chain of event handlers, where an event not handled by one event
6216 handler is handed to the next one in the chain.
6218 return _core
.Window_SetEventHandler(*args
, **kwargs
)
6220 def PushEventHandler(*args
, **kwargs
):
6222 PushEventHandler(EvtHandler handler)
6224 Pushes this event handler onto the event handler stack for the window.
6225 An event handler is an object that is capable of processing the events
6226 sent to a window. By default, the window is its own event handler, but
6227 an application may wish to substitute another, for example to allow
6228 central implementation of event-handling for a variety of different
6231 wx.Window.PushEventHandler allows an application to set up a chain of
6232 event handlers, where an event not handled by one event handler is
6233 handed to the next one in the chain. Use wx.Window.PopEventHandler to
6234 remove the event handler.
6236 return _core
.Window_PushEventHandler(*args
, **kwargs
)
6238 def PopEventHandler(*args
, **kwargs
):
6240 PopEventHandler(bool deleteHandler=False) -> EvtHandler
6242 Removes and returns the top-most event handler on the event handler
6243 stack. If deleteHandler is True then the wx.EvtHandler object will be
6244 destroyed after it is popped.
6246 return _core
.Window_PopEventHandler(*args
, **kwargs
)
6248 def RemoveEventHandler(*args
, **kwargs
):
6250 RemoveEventHandler(EvtHandler handler) -> bool
6252 Find the given handler in the event handler chain and remove (but
6253 not delete) it from the event handler chain, return True if it was
6254 found and False otherwise (this also results in an assert failure so
6255 this function should only be called when the handler is supposed to
6258 return _core
.Window_RemoveEventHandler(*args
, **kwargs
)
6260 def SetValidator(*args
, **kwargs
):
6262 SetValidator(Validator validator)
6264 Deletes the current validator (if any) and sets the window validator,
6265 having called wx.Validator.Clone to create a new validator of this
6268 return _core
.Window_SetValidator(*args
, **kwargs
)
6270 def GetValidator(*args
, **kwargs
):
6272 GetValidator() -> Validator
6274 Returns a pointer to the current validator for the window, or None if
6277 return _core
.Window_GetValidator(*args
, **kwargs
)
6279 def Validate(*args
, **kwargs
):
6283 Validates the current values of the child controls using their
6284 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY
6285 extra style flag set, the method will also call Validate() of all
6286 child windows. Returns false if any of the validations failed.
6288 return _core
.Window_Validate(*args
, **kwargs
)
6290 def TransferDataToWindow(*args
, **kwargs
):
6292 TransferDataToWindow() -> bool
6294 Transfers values to child controls from data areas specified by
6295 their validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY
6296 extra style flag set, the method will also call
6297 TransferDataToWindow() of all child windows.
6299 return _core
.Window_TransferDataToWindow(*args
, **kwargs
)
6301 def TransferDataFromWindow(*args
, **kwargs
):
6303 TransferDataFromWindow() -> bool
6305 Transfers values from child controls to data areas specified by
6306 their validators. Returns false if a transfer failed. If the
6307 window has wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the
6308 method will also call TransferDataFromWindow() of all child
6311 return _core
.Window_TransferDataFromWindow(*args
, **kwargs
)
6313 def InitDialog(*args
, **kwargs
):
6317 Sends an EVT_INIT_DIALOG event, whose handler usually transfers
6318 data to the dialog via validators.
6320 return _core
.Window_InitDialog(*args
, **kwargs
)
6322 def SetAcceleratorTable(*args
, **kwargs
):
6324 SetAcceleratorTable(AcceleratorTable accel)
6326 Sets the accelerator table for this window.
6328 return _core
.Window_SetAcceleratorTable(*args
, **kwargs
)
6330 def GetAcceleratorTable(*args
, **kwargs
):
6332 GetAcceleratorTable() -> AcceleratorTable
6334 Gets the accelerator table for this window.
6336 return _core
.Window_GetAcceleratorTable(*args
, **kwargs
)
6338 def RegisterHotKey(*args
, **kwargs
):
6340 RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool
6342 Registers a system wide hotkey. Every time the user presses the hotkey
6343 registered here, this window will receive a hotkey event. It will
6344 receive the event even if the application is in the background and
6345 does not have the input focus because the user is working with some
6346 other application. To bind an event handler function to this hotkey
6347 use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
6348 hotkey was registered successfully.
6350 return _core
.Window_RegisterHotKey(*args
, **kwargs
)
6352 def UnregisterHotKey(*args
, **kwargs
):
6354 UnregisterHotKey(int hotkeyId) -> bool
6356 Unregisters a system wide hotkey.
6358 return _core
.Window_UnregisterHotKey(*args
, **kwargs
)
6360 def ConvertDialogPointToPixels(*args
, **kwargs
):
6362 ConvertDialogPointToPixels(Point pt) -> Point
6364 Converts a point or size from dialog units to pixels. Dialog units
6365 are used for maintaining a dialog's proportions even if the font
6366 changes. For the x dimension, the dialog units are multiplied by the
6367 average character width and then divided by 4. For the y dimension,
6368 the dialog units are multiplied by the average character height and
6371 return _core
.Window_ConvertDialogPointToPixels(*args
, **kwargs
)
6373 def ConvertDialogSizeToPixels(*args
, **kwargs
):
6375 ConvertDialogSizeToPixels(Size sz) -> Size
6377 Converts a point or size from dialog units to pixels. Dialog units
6378 are used for maintaining a dialog's proportions even if the font
6379 changes. For the x dimension, the dialog units are multiplied by the
6380 average character width and then divided by 4. For the y dimension,
6381 the dialog units are multiplied by the average character height and
6384 return _core
.Window_ConvertDialogSizeToPixels(*args
, **kwargs
)
6386 def DLG_PNT(*args
, **kwargs
):
6388 DLG_PNT(Point pt) -> Point
6390 Converts a point or size from dialog units to pixels. Dialog units
6391 are used for maintaining a dialog's proportions even if the font
6392 changes. For the x dimension, the dialog units are multiplied by the
6393 average character width and then divided by 4. For the y dimension,
6394 the dialog units are multiplied by the average character height and
6397 return _core
.Window_DLG_PNT(*args
, **kwargs
)
6399 def DLG_SZE(*args
, **kwargs
):
6401 DLG_SZE(Size sz) -> Size
6403 Converts a point or size from dialog units to pixels. Dialog units
6404 are used for maintaining a dialog's proportions even if the font
6405 changes. For the x dimension, the dialog units are multiplied by the
6406 average character width and then divided by 4. For the y dimension,
6407 the dialog units are multiplied by the average character height and
6410 return _core
.Window_DLG_SZE(*args
, **kwargs
)
6412 def ConvertPixelPointToDialog(*args
, **kwargs
):
6413 """ConvertPixelPointToDialog(Point pt) -> Point"""
6414 return _core
.Window_ConvertPixelPointToDialog(*args
, **kwargs
)
6416 def ConvertPixelSizeToDialog(*args
, **kwargs
):
6417 """ConvertPixelSizeToDialog(Size sz) -> Size"""
6418 return _core
.Window_ConvertPixelSizeToDialog(*args
, **kwargs
)
6420 def WarpPointer(*args
, **kwargs
):
6422 WarpPointer(int x, int y)
6424 Moves the pointer to the given position on the window.
6426 NOTE: This function is not supported under Mac because Apple Human
6427 Interface Guidelines forbid moving the mouse cursor programmatically.
6429 return _core
.Window_WarpPointer(*args
, **kwargs
)
6431 def CaptureMouse(*args
, **kwargs
):
6435 Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
6436 release the capture.
6438 Note that wxWindows maintains the stack of windows having captured the
6439 mouse and when the mouse is released the capture returns to the window
6440 which had had captured it previously and it is only really released if
6441 there were no previous window. In particular, this means that you must
6442 release the mouse as many times as you capture it.
6444 return _core
.Window_CaptureMouse(*args
, **kwargs
)
6446 def ReleaseMouse(*args
, **kwargs
):
6450 Releases mouse input captured with wx.Window.CaptureMouse.
6452 return _core
.Window_ReleaseMouse(*args
, **kwargs
)
6454 def GetCapture(*args
, **kwargs
):
6456 GetCapture() -> Window
6458 Returns the window which currently captures the mouse or None
6460 return _core
.Window_GetCapture(*args
, **kwargs
)
6462 GetCapture
= staticmethod(GetCapture
)
6463 def HasCapture(*args
, **kwargs
):
6465 HasCapture() -> bool
6467 Returns true if this window has the current mouse capture.
6469 return _core
.Window_HasCapture(*args
, **kwargs
)
6471 def Refresh(*args
, **kwargs
):
6473 Refresh(bool eraseBackground=True, Rect rect=None)
6475 Mark the specified rectangle (or the whole window) as "dirty" so it
6476 will be repainted. Causes an EVT_PAINT event to be generated and sent
6479 return _core
.Window_Refresh(*args
, **kwargs
)
6481 def RefreshRect(*args
, **kwargs
):
6483 RefreshRect(Rect rect)
6485 Redraws the contents of the given rectangle: the area inside it will
6486 be repainted. This is the same as Refresh but has a nicer syntax.
6488 return _core
.Window_RefreshRect(*args
, **kwargs
)
6490 def Update(*args
, **kwargs
):
6494 Calling this method immediately repaints the invalidated area of the
6495 window instead of waiting for the EVT_PAINT event to happen, (normally
6496 this would usually only happen when the flow of control returns to the
6497 event loop.) Notice that this function doesn't refresh the window and
6498 does nothing if the window has been already repainted. Use Refresh
6499 first if you want to immediately redraw the window (or some portion of
6500 it) unconditionally.
6502 return _core
.Window_Update(*args
, **kwargs
)
6504 def ClearBackground(*args
, **kwargs
):
6508 Clears the window by filling it with the current background
6509 colour. Does not cause an erase background event to be generated.
6511 return _core
.Window_ClearBackground(*args
, **kwargs
)
6513 def Freeze(*args
, **kwargs
):
6517 Freezes the window or, in other words, prevents any updates from taking place
6518 on screen, the window is not redrawn at all. Thaw must be called to reenable
6519 window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
6520 being delayed until all the nesting has been undone.
6522 This method is useful for visual appearance optimization (for example,
6523 it is a good idea to use it before inserting large amount of text into
6524 a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
6525 for all controls so it is mostly just a hint to wxWindows and not a
6526 mandatory directive.
6528 return _core
.Window_Freeze(*args
, **kwargs
)
6530 def Thaw(*args
, **kwargs
):
6534 Reenables window updating after a previous call to Freeze. Calls to
6535 Freeze/Thaw may be nested, so Thaw must be called the same number of times
6536 that Freeze was before the window will be updated.
6538 return _core
.Window_Thaw(*args
, **kwargs
)
6540 def PrepareDC(*args
, **kwargs
):
6544 Call this function to prepare the device context for drawing a
6545 scrolled image. It sets the device origin according to the current
6548 return _core
.Window_PrepareDC(*args
, **kwargs
)
6550 def GetUpdateRegion(*args
, **kwargs
):
6552 GetUpdateRegion() -> Region
6554 Returns the region specifying which parts of the window have been
6555 damaged. Should only be called within an EVT_PAINT handler.
6557 return _core
.Window_GetUpdateRegion(*args
, **kwargs
)
6559 def GetUpdateClientRect(*args
, **kwargs
):
6561 GetUpdateClientRect() -> Rect
6563 Get the update rectangle region bounding box in client coords.
6565 return _core
.Window_GetUpdateClientRect(*args
, **kwargs
)
6567 def IsExposed(*args
, **kwargs
):
6569 IsExposed(int x, int y, int w=1, int h=1) -> bool
6571 Returns true if the given point or rectangle area has been exposed
6572 since the last repaint. Call this in an paint event handler to
6573 optimize redrawing by only redrawing those areas, which have been
6576 return _core
.Window_IsExposed(*args
, **kwargs
)
6578 def IsExposedPoint(*args
, **kwargs
):
6580 IsExposedPoint(Point pt) -> bool
6582 Returns true if the given point or rectangle area has been exposed
6583 since the last repaint. Call this in an paint event handler to
6584 optimize redrawing by only redrawing those areas, which have been
6587 return _core
.Window_IsExposedPoint(*args
, **kwargs
)
6589 def IsExposedRect(*args
, **kwargs
):
6591 IsExposedRect(Rect rect) -> bool
6593 Returns true if the given point or rectangle area has been exposed
6594 since the last repaint. Call this in an paint event handler to
6595 optimize redrawing by only redrawing those areas, which have been
6598 return _core
.Window_IsExposedRect(*args
, **kwargs
)
6600 def GetDefaultAttributes(*args
, **kwargs
):
6602 GetDefaultAttributes() -> VisualAttributes
6604 Get the default attributes for an instance of this class. This
6605 is useful if you want to use the same font or colour in your own
6606 control as in a standard control -- which is a much better idea
6607 than hard coding specific colours or fonts which might look
6608 completely out of place on the users system, especially if it
6611 return _core
.Window_GetDefaultAttributes(*args
, **kwargs
)
6613 def GetClassDefaultAttributes(*args
, **kwargs
):
6615 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
6617 Get the default attributes for this class. This is useful if
6618 you want to use the same font or colour in your own control as
6619 in a standard control -- which is a much better idea than hard
6620 coding specific colours or fonts which might look completely out
6621 of place on the users system, especially if it uses themes.
6623 The variant parameter is only relevant under Mac currently and is
6624 ignore under other platforms. Under Mac, it will change the size of the
6625 returned font. See SetWindowVariant for more about this.
6627 return _core
.Window_GetClassDefaultAttributes(*args
, **kwargs
)
6629 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
6630 def SetBackgroundColour(*args
, **kwargs
):
6632 SetBackgroundColour(Colour colour) -> bool
6634 Sets the background colour of the window. Returns True if the colour
6635 was changed. The background colour is usually painted by the default
6636 EVT_ERASE_BACKGROUND event handler function under Windows and
6637 automatically under GTK.
6639 Note that setting the background colour does not cause an immediate
6640 refresh, so you may wish to call ClearBackground or Refresh after
6641 calling this function.
6643 Use this function with care under GTK+ as the new appearance of the
6644 window might not look equally well when used with themes, i.e GTK+'s
6645 ability to change its look as the user wishes with run-time loadable
6648 return _core
.Window_SetBackgroundColour(*args
, **kwargs
)
6650 def SetForegroundColour(*args
, **kwargs
):
6652 SetForegroundColour(Colour colour) -> bool
6654 Sets the foreground colour of the window. Returns True is the colour
6655 was changed. The interpretation of foreground colour is dependent on
6656 the window class; it may be the text colour or other colour, or it may
6659 return _core
.Window_SetForegroundColour(*args
, **kwargs
)
6661 def GetBackgroundColour(*args
, **kwargs
):
6663 GetBackgroundColour() -> Colour
6665 Returns the background colour of the window.
6667 return _core
.Window_GetBackgroundColour(*args
, **kwargs
)
6669 def GetForegroundColour(*args
, **kwargs
):
6671 GetForegroundColour() -> Colour
6673 Returns the foreground colour of the window. The interpretation of
6674 foreground colour is dependent on the window class; it may be the text
6675 colour or other colour, or it may not be used at all.
6677 return _core
.Window_GetForegroundColour(*args
, **kwargs
)
6679 def SetCursor(*args
, **kwargs
):
6681 SetCursor(Cursor cursor) -> bool
6683 Sets the window's cursor. Notice that the window cursor also sets it
6684 for the children of the window implicitly.
6686 The cursor may be wx.NullCursor in which case the window cursor will
6687 be reset back to default.
6689 return _core
.Window_SetCursor(*args
, **kwargs
)
6691 def GetCursor(*args
, **kwargs
):
6693 GetCursor() -> Cursor
6695 Return the cursor associated with this window.
6697 return _core
.Window_GetCursor(*args
, **kwargs
)
6699 def SetFont(*args
, **kwargs
):
6701 SetFont(Font font) -> bool
6703 Sets the font for this window.
6705 return _core
.Window_SetFont(*args
, **kwargs
)
6707 def GetFont(*args
, **kwargs
):
6711 Returns the default font used for this window.
6713 return _core
.Window_GetFont(*args
, **kwargs
)
6715 def SetCaret(*args
, **kwargs
):
6717 SetCaret(Caret caret)
6719 Sets the caret associated with the window.
6721 return _core
.Window_SetCaret(*args
, **kwargs
)
6723 def GetCaret(*args
, **kwargs
):
6727 Returns the caret associated with the window.
6729 return _core
.Window_GetCaret(*args
, **kwargs
)
6731 def GetCharHeight(*args
, **kwargs
):
6733 GetCharHeight() -> int
6735 Get the (average) character size for the current font.
6737 return _core
.Window_GetCharHeight(*args
, **kwargs
)
6739 def GetCharWidth(*args
, **kwargs
):
6741 GetCharWidth() -> int
6743 Get the (average) character size for the current font.
6745 return _core
.Window_GetCharWidth(*args
, **kwargs
)
6747 def GetTextExtent(*args
, **kwargs
):
6749 GetTextExtent(String string) -> (width, height)
6751 Get the width and height of the text using the current font.
6753 return _core
.Window_GetTextExtent(*args
, **kwargs
)
6755 def GetFullTextExtent(*args
, **kwargs
):
6757 GetFullTextExtent(String string, Font font=None) ->
6758 (width, height, descent, externalLeading)
6760 Get the width, height, decent and leading of the text using the
6761 current or specified font.
6763 return _core
.Window_GetFullTextExtent(*args
, **kwargs
)
6765 def ClientToScreenXY(*args
, **kwargs
):
6767 ClientToScreenXY(int x, int y) -> (x,y)
6769 Converts to screen coordinates from coordinates relative to this window.
6771 return _core
.Window_ClientToScreenXY(*args
, **kwargs
)
6773 def ScreenToClientXY(*args
, **kwargs
):
6775 ScreenToClientXY(int x, int y) -> (x,y)
6777 Converts from screen to client window coordinates.
6779 return _core
.Window_ScreenToClientXY(*args
, **kwargs
)
6781 def ClientToScreen(*args
, **kwargs
):
6783 ClientToScreen(Point pt) -> Point
6785 Converts to screen coordinates from coordinates relative to this window.
6787 return _core
.Window_ClientToScreen(*args
, **kwargs
)
6789 def ScreenToClient(*args
, **kwargs
):
6791 ScreenToClient(Point pt) -> Point
6793 Converts from screen to client window coordinates.
6795 return _core
.Window_ScreenToClient(*args
, **kwargs
)
6797 def HitTestXY(*args
, **kwargs
):
6799 HitTestXY(int x, int y) -> int
6801 Test where the given (in client coords) point lies
6803 return _core
.Window_HitTestXY(*args
, **kwargs
)
6805 def HitTest(*args
, **kwargs
):
6807 HitTest(Point pt) -> int
6809 Test where the given (in client coords) point lies
6811 return _core
.Window_HitTest(*args
, **kwargs
)
6813 def GetBorder(*args
):
6815 GetBorder(long flags) -> int
6818 Get border for the flags of this window
6820 return _core
.Window_GetBorder(*args
)
6822 def UpdateWindowUI(*args
, **kwargs
):
6824 UpdateWindowUI(long flags=UPDATE_UI_NONE)
6826 This function sends EVT_UPDATE_UI events to the window. The particular
6827 implementation depends on the window; for example a wx.ToolBar will
6828 send an update UI event for each toolbar button, and a wx.Frame will
6829 send an update UI event for each menubar menu item. You can call this
6830 function from your application to ensure that your UI is up-to-date at
6831 a particular point in time (as far as your EVT_UPDATE_UI handlers are
6832 concerned). This may be necessary if you have called
6833 wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to
6834 limit the overhead that wxWindows incurs by sending update UI events
6837 The flags should be a bitlist of one or more of the following values:
6839 wx.UPDATE_UI_NONE No particular value
6840 wx.UPDATE_UI_RECURSE Call the function for descendants
6841 wx.UPDATE_UI_FROMIDLE Invoked from OnIdle
6843 If you are calling this function from an OnIdle function, make sure
6844 you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to
6845 only update the UI elements that need to be updated in idle time. Some
6846 windows update their elements only when necessary, for example when a
6847 menu is about to be shown. The following is an example of how to call
6848 UpdateWindowUI from an idle function.
6850 def OnIdle(self, evt):
6851 if wx.UpdateUIEvent.CanUpdate(self):
6852 self.UpdateWindowUI(wx.UPDATE_UI_FROMIDLE);
6855 return _core
.Window_UpdateWindowUI(*args
, **kwargs
)
6857 def PopupMenuXY(*args
, **kwargs
):
6859 PopupMenuXY(Menu menu, int x, int y) -> bool
6861 Pops up the given menu at the specified coordinates, relative to this
6862 window, and returns control when the user has dismissed the menu. If a
6863 menu item is selected, the corresponding menu event is generated and
6864 will be processed as usual.
6866 return _core
.Window_PopupMenuXY(*args
, **kwargs
)
6868 def PopupMenu(*args
, **kwargs
):
6870 PopupMenu(Menu menu, Point pos) -> bool
6872 Pops up the given menu at the specified coordinates, relative to this
6873 window, and returns control when the user has dismissed the menu. If a
6874 menu item is selected, the corresponding menu event is generated and
6875 will be processed as usual.
6877 return _core
.Window_PopupMenu(*args
, **kwargs
)
6879 def GetHandle(*args
, **kwargs
):
6883 Returns the platform-specific handle (as a long integer) of the
6884 physical window. Currently on wxMac it returns the handle of the
6885 toplevel parent of the window.
6887 return _core
.Window_GetHandle(*args
, **kwargs
)
6889 def HasScrollbar(*args
, **kwargs
):
6891 HasScrollbar(int orient) -> bool
6893 Does the window have the scrollbar for this orientation?
6895 return _core
.Window_HasScrollbar(*args
, **kwargs
)
6897 def SetScrollbar(*args
, **kwargs
):
6899 SetScrollbar(int orientation, int pos, int thumbvisible, int range,
6902 Sets the scrollbar properties of a built-in scrollbar.
6904 orientation: Determines the scrollbar whose page size is to be
6905 set. May be wx.HORIZONTAL or wx.VERTICAL.
6907 position: The position of the scrollbar in scroll units.
6909 thumbSize: The size of the thumb, or visible portion of the
6910 scrollbar, in scroll units.
6912 range: The maximum position of the scrollbar.
6914 refresh: True to redraw the scrollbar, false otherwise.
6916 return _core
.Window_SetScrollbar(*args
, **kwargs
)
6918 def SetScrollPos(*args
, **kwargs
):
6920 SetScrollPos(int orientation, int pos, bool refresh=True)
6922 Sets the position of one of the built-in scrollbars.
6924 return _core
.Window_SetScrollPos(*args
, **kwargs
)
6926 def GetScrollPos(*args
, **kwargs
):
6928 GetScrollPos(int orientation) -> int
6930 Returns the built-in scrollbar position.
6932 return _core
.Window_GetScrollPos(*args
, **kwargs
)
6934 def GetScrollThumb(*args
, **kwargs
):
6936 GetScrollThumb(int orientation) -> int
6938 Returns the built-in scrollbar thumb size.
6940 return _core
.Window_GetScrollThumb(*args
, **kwargs
)
6942 def GetScrollRange(*args
, **kwargs
):
6944 GetScrollRange(int orientation) -> int
6946 Returns the built-in scrollbar range.
6948 return _core
.Window_GetScrollRange(*args
, **kwargs
)
6950 def ScrollWindow(*args
, **kwargs
):
6952 ScrollWindow(int dx, int dy, Rect rect=None)
6954 Physically scrolls the pixels in the window and move child windows
6955 accordingly. Use this function to optimise your scrolling
6956 implementations, to minimise the area that must be redrawn. Note that
6957 it is rarely required to call this function from a user program.
6959 dx: Amount to scroll horizontally.
6961 dy: Amount to scroll vertically.
6963 rect: Rectangle to invalidate. If this is None, the whole window
6964 is invalidated. If you pass a rectangle corresponding to the
6965 area of the window exposed by the scroll, your painting
6966 handler can optimize painting by checking for the
6969 return _core
.Window_ScrollWindow(*args
, **kwargs
)
6971 def ScrollLines(*args
, **kwargs
):
6973 ScrollLines(int lines) -> bool
6975 If the platform and window class supports it, scrolls the window by
6976 the given number of lines down, if lines is positive, or up if lines
6977 is negative. Returns True if the window was scrolled, False if it was
6978 already on top/bottom and nothing was done.
6980 return _core
.Window_ScrollLines(*args
, **kwargs
)
6982 def ScrollPages(*args
, **kwargs
):
6984 ScrollPages(int pages) -> bool
6986 If the platform and window class supports it, scrolls the window by
6987 the given number of pages down, if pages is positive, or up if pages
6988 is negative. Returns True if the window was scrolled, False if it was
6989 already on top/bottom and nothing was done.
6991 return _core
.Window_ScrollPages(*args
, **kwargs
)
6993 def LineUp(*args
, **kwargs
):
6997 This is just a wrapper for ScrollLines(-1).
6999 return _core
.Window_LineUp(*args
, **kwargs
)
7001 def LineDown(*args
, **kwargs
):
7005 This is just a wrapper for ScrollLines(1).
7007 return _core
.Window_LineDown(*args
, **kwargs
)
7009 def PageUp(*args
, **kwargs
):
7013 This is just a wrapper for ScrollPages(-1).
7015 return _core
.Window_PageUp(*args
, **kwargs
)
7017 def PageDown(*args
, **kwargs
):
7021 This is just a wrapper for ScrollPages(1).
7023 return _core
.Window_PageDown(*args
, **kwargs
)
7025 def SetHelpText(*args
, **kwargs
):
7027 SetHelpText(String text)
7029 Sets the help text to be used as context-sensitive help for this
7030 window. Note that the text is actually stored by the current
7031 wxHelpProvider implementation, and not in the window object itself.
7033 return _core
.Window_SetHelpText(*args
, **kwargs
)
7035 def SetHelpTextForId(*args
, **kwargs
):
7037 SetHelpTextForId(String text)
7039 Associate this help text with all windows with the same id as this
7042 return _core
.Window_SetHelpTextForId(*args
, **kwargs
)
7044 def GetHelpText(*args
, **kwargs
):
7046 GetHelpText() -> String
7048 Gets the help text to be used as context-sensitive help for this
7049 window. Note that the text is actually stored by the current
7050 wxHelpProvider implementation, and not in the window object itself.
7052 return _core
.Window_GetHelpText(*args
, **kwargs
)
7054 def SetToolTipString(*args
, **kwargs
):
7056 SetToolTipString(String tip)
7058 Attach a tooltip to the window.
7060 return _core
.Window_SetToolTipString(*args
, **kwargs
)
7062 def SetToolTip(*args
, **kwargs
):
7064 SetToolTip(ToolTip tip)
7066 Attach a tooltip to the window.
7068 return _core
.Window_SetToolTip(*args
, **kwargs
)
7070 def GetToolTip(*args
, **kwargs
):
7072 GetToolTip() -> ToolTip
7074 get the associated tooltip or None if none
7076 return _core
.Window_GetToolTip(*args
, **kwargs
)
7078 def SetDropTarget(*args
, **kwargs
):
7080 SetDropTarget(DropTarget dropTarget)
7082 Associates a drop target with this window. If the window already has
7083 a drop target, it is deleted.
7085 return _core
.Window_SetDropTarget(*args
, **kwargs
)
7087 def GetDropTarget(*args
, **kwargs
):
7089 GetDropTarget() -> DropTarget
7091 Returns the associated drop target, which may be None.
7093 return _core
.Window_GetDropTarget(*args
, **kwargs
)
7095 def SetConstraints(*args
, **kwargs
):
7097 SetConstraints(LayoutConstraints constraints)
7099 Sets the window to have the given layout constraints. If an existing
7100 layout constraints object is already owned by the window, it will be
7101 deleted. Pass None to disassociate and delete the window's current
7104 You must call SetAutoLayout to tell a window to use the constraints
7105 automatically in its default EVT_SIZE handler; otherwise, you must
7106 handle EVT_SIZE yourself and call Layout() explicitly. When setting
7107 both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
7110 return _core
.Window_SetConstraints(*args
, **kwargs
)
7112 def GetConstraints(*args
, **kwargs
):
7114 GetConstraints() -> LayoutConstraints
7116 Returns a pointer to the window's layout constraints, or None if there
7119 return _core
.Window_GetConstraints(*args
, **kwargs
)
7121 def SetAutoLayout(*args
, **kwargs
):
7123 SetAutoLayout(bool autoLayout)
7125 Determines whether the Layout function will be called automatically
7126 when the window is resized. It is called implicitly by SetSizer but
7127 if you use SetConstraints you should call it manually or otherwise the
7128 window layout won't be correctly updated when its size changes.
7130 return _core
.Window_SetAutoLayout(*args
, **kwargs
)
7132 def GetAutoLayout(*args
, **kwargs
):
7134 GetAutoLayout() -> bool
7136 Returns the current autoLayout setting
7138 return _core
.Window_GetAutoLayout(*args
, **kwargs
)
7140 def Layout(*args
, **kwargs
):
7144 Invokes the constraint-based layout algorithm or the sizer-based
7145 algorithm for this window. See SetAutoLayout: when auto layout is on,
7146 this function gets called automatically by the default EVT_SIZE
7147 handler when the window is resized.
7149 return _core
.Window_Layout(*args
, **kwargs
)
7151 def SetSizer(*args
, **kwargs
):
7153 SetSizer(Sizer sizer, bool deleteOld=True)
7155 Sets the window to have the given layout sizer. The window will then
7156 own the object, and will take care of its deletion. If an existing
7157 layout sizer object is already owned by the window, it will be deleted
7158 if the deleteOld parameter is true. Note that this function will also
7159 call SetAutoLayout implicitly with a True parameter if the sizer is
7160 non-NoneL and False otherwise.
7162 return _core
.Window_SetSizer(*args
, **kwargs
)
7164 def SetSizerAndFit(*args
, **kwargs
):
7166 SetSizerAndFit(Sizer sizer, bool deleteOld=True)
7168 The same as SetSizer, except it also sets the size hints for the
7169 window based on the sizer's minimum size.
7171 return _core
.Window_SetSizerAndFit(*args
, **kwargs
)
7173 def GetSizer(*args
, **kwargs
):
7177 Return the sizer associated with the window by a previous call to
7178 SetSizer or None if there isn't one.
7180 return _core
.Window_GetSizer(*args
, **kwargs
)
7182 def SetContainingSizer(*args
, **kwargs
):
7184 SetContainingSizer(Sizer sizer)
7186 This normally does not need to be called by application code. It is
7187 called internally when a window is added to a sizer, and is used so
7188 the window can remove itself from the sizer when it is destroyed.
7190 return _core
.Window_SetContainingSizer(*args
, **kwargs
)
7192 def GetContainingSizer(*args
, **kwargs
):
7194 GetContainingSizer() -> Sizer
7196 Return the sizer that this window is a member of, if any, otherwise None.
7198 return _core
.Window_GetContainingSizer(*args
, **kwargs
)
7200 def PostCreate(self
, pre
):
7202 Phase 3 of the 2-phase create <wink!>
7203 Call this method after precreating the window with the 2-phase create method.
7205 self
.this
= pre
.this
7206 self
.thisown
= pre
.thisown
7208 if hasattr(self
, '_setOORInfo'):
7209 self
._setOORInfo
(self
)
7210 if hasattr(self
, '_setCallbackInfo'):
7211 self
._setCallbackInfo
(self
, self
.__class
__)
7214 class WindowPtr(Window
):
7215 def __init__(self
, this
):
7217 if not hasattr(self
,"thisown"): self
.thisown
= 0
7218 self
.__class
__ = Window
7219 _core
.Window_swigregister(WindowPtr
)
7221 def PreWindow(*args
, **kwargs
):
7223 PreWindow() -> Window
7225 Precreate a Window for 2-phase creation.
7227 val
= _core
.new_PreWindow(*args
, **kwargs
)
7231 def Window_NewControlId(*args
, **kwargs
):
7233 Window_NewControlId() -> int
7235 Generate a control id for the controls which were not given one.
7237 return _core
.Window_NewControlId(*args
, **kwargs
)
7239 def Window_NextControlId(*args
, **kwargs
):
7241 Window_NextControlId(int winid) -> int
7243 Get the id of the control following the one with the given
7246 return _core
.Window_NextControlId(*args
, **kwargs
)
7248 def Window_PrevControlId(*args
, **kwargs
):
7250 Window_PrevControlId(int winid) -> int
7252 Get the id of the control preceding the one with the given
7255 return _core
.Window_PrevControlId(*args
, **kwargs
)
7257 def Window_FindFocus(*args
, **kwargs
):
7259 Window_FindFocus() -> Window
7261 Returns the window or control that currently has the keyboard focus,
7264 return _core
.Window_FindFocus(*args
, **kwargs
)
7266 def Window_GetCapture(*args
, **kwargs
):
7268 Window_GetCapture() -> Window
7270 Returns the window which currently captures the mouse or None
7272 return _core
.Window_GetCapture(*args
, **kwargs
)
7274 def Window_GetClassDefaultAttributes(*args
, **kwargs
):
7276 Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
7278 Get the default attributes for this class. This is useful if
7279 you want to use the same font or colour in your own control as
7280 in a standard control -- which is a much better idea than hard
7281 coding specific colours or fonts which might look completely out
7282 of place on the users system, especially if it uses themes.
7284 The variant parameter is only relevant under Mac currently and is
7285 ignore under other platforms. Under Mac, it will change the size of the
7286 returned font. See SetWindowVariant for more about this.
7288 return _core
.Window_GetClassDefaultAttributes(*args
, **kwargs
)
7290 def DLG_PNT(win
, point_or_x
, y
=None):
7292 Convenience function for converting a Point or (x,y) in
7293 dialog units to pixel units.
7296 return win
.ConvertDialogPointToPixels(point_or_x
)
7298 return win
.ConvertDialogPointToPixels(wx
.Point(point_or_x
, y
))
7300 def DLG_SZE(win
, size_width
, height
=None):
7302 Convenience function for converting a Size or (w,h) in
7303 dialog units to pixel units.
7306 return win
.ConvertDialogSizeToPixels(size_width
)
7308 return win
.ConvertDialogSizeToPixels(wx
.Size(size_width
, height
))
7311 def FindWindowById(*args
, **kwargs
):
7313 FindWindowById(long id, Window parent=None) -> Window
7315 Find the first window in the application with the given id. If parent
7316 is None, the search will start from all top-level frames and dialog
7317 boxes; if non-None, the search will be limited to the given window
7318 hierarchy. The search is recursive in both cases.
7320 return _core
.FindWindowById(*args
, **kwargs
)
7322 def FindWindowByName(*args
, **kwargs
):
7324 FindWindowByName(String name, Window parent=None) -> Window
7326 Find a window by its name (as given in a window constructor or Create
7327 function call). If parent is None, the search will start from all
7328 top-level frames and dialog boxes; if non-None, the search will be
7329 limited to the given window hierarchy. The search is recursive in both
7332 If no window with such name is found, wx.FindWindowByLabel is called.
7334 return _core
.FindWindowByName(*args
, **kwargs
)
7336 def FindWindowByLabel(*args
, **kwargs
):
7338 FindWindowByLabel(String label, Window parent=None) -> Window
7340 Find a window by its label. Depending on the type of window, the label
7341 may be a window title or panel item label. If parent is None, the
7342 search will start from all top-level frames and dialog boxes; if
7343 non-None, the search will be limited to the given window
7344 hierarchy. The search is recursive in both cases.
7346 return _core
.FindWindowByLabel(*args
, **kwargs
)
7348 def Window_FromHWND(*args
, **kwargs
):
7349 """Window_FromHWND(Window parent, unsigned long _hWnd) -> Window"""
7350 return _core
.Window_FromHWND(*args
, **kwargs
)
7351 #---------------------------------------------------------------------------
7353 class Validator(EvtHandler
):
7355 return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
7356 def __init__(self
, *args
, **kwargs
):
7357 """__init__() -> Validator"""
7358 newobj
= _core
.new_Validator(*args
, **kwargs
)
7359 self
.this
= newobj
.this
7362 self
._setOORInfo
(self
)
7364 def Clone(*args
, **kwargs
):
7365 """Clone() -> Validator"""
7366 return _core
.Validator_Clone(*args
, **kwargs
)
7368 def Validate(*args
, **kwargs
):
7369 """Validate(Window parent) -> bool"""
7370 return _core
.Validator_Validate(*args
, **kwargs
)
7372 def TransferToWindow(*args
, **kwargs
):
7373 """TransferToWindow() -> bool"""
7374 return _core
.Validator_TransferToWindow(*args
, **kwargs
)
7376 def TransferFromWindow(*args
, **kwargs
):
7377 """TransferFromWindow() -> bool"""
7378 return _core
.Validator_TransferFromWindow(*args
, **kwargs
)
7380 def GetWindow(*args
, **kwargs
):
7381 """GetWindow() -> Window"""
7382 return _core
.Validator_GetWindow(*args
, **kwargs
)
7384 def SetWindow(*args
, **kwargs
):
7385 """SetWindow(Window window)"""
7386 return _core
.Validator_SetWindow(*args
, **kwargs
)
7388 def IsSilent(*args
, **kwargs
):
7389 """IsSilent() -> bool"""
7390 return _core
.Validator_IsSilent(*args
, **kwargs
)
7392 IsSilent
= staticmethod(IsSilent
)
7393 def SetBellOnError(*args
, **kwargs
):
7394 """SetBellOnError(int doIt=True)"""
7395 return _core
.Validator_SetBellOnError(*args
, **kwargs
)
7397 SetBellOnError
= staticmethod(SetBellOnError
)
7399 class ValidatorPtr(Validator
):
7400 def __init__(self
, this
):
7402 if not hasattr(self
,"thisown"): self
.thisown
= 0
7403 self
.__class
__ = Validator
7404 _core
.Validator_swigregister(ValidatorPtr
)
7406 def Validator_IsSilent(*args
, **kwargs
):
7407 """Validator_IsSilent() -> bool"""
7408 return _core
.Validator_IsSilent(*args
, **kwargs
)
7410 def Validator_SetBellOnError(*args
, **kwargs
):
7411 """Validator_SetBellOnError(int doIt=True)"""
7412 return _core
.Validator_SetBellOnError(*args
, **kwargs
)
7414 class PyValidator(Validator
):
7416 return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
7417 def __init__(self
, *args
, **kwargs
):
7418 """__init__() -> PyValidator"""
7419 newobj
= _core
.new_PyValidator(*args
, **kwargs
)
7420 self
.this
= newobj
.this
7424 self
._setCallbackInfo
(self
, PyValidator
, 1)
7425 self
._setOORInfo
(self
)
7427 def _setCallbackInfo(*args
, **kwargs
):
7428 """_setCallbackInfo(PyObject self, PyObject _class, int incref=True)"""
7429 return _core
.PyValidator__setCallbackInfo(*args
, **kwargs
)
7432 class PyValidatorPtr(PyValidator
):
7433 def __init__(self
, this
):
7435 if not hasattr(self
,"thisown"): self
.thisown
= 0
7436 self
.__class
__ = PyValidator
7437 _core
.PyValidator_swigregister(PyValidatorPtr
)
7439 #---------------------------------------------------------------------------
7441 class Menu(EvtHandler
):
7443 return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
7444 def __init__(self
, *args
, **kwargs
):
7445 """__init__(String title=EmptyString, long style=0) -> Menu"""
7446 newobj
= _core
.new_Menu(*args
, **kwargs
)
7447 self
.this
= newobj
.this
7450 self
._setOORInfo
(self
)
7452 def Append(*args
, **kwargs
):
7453 """Append(int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem"""
7454 return _core
.Menu_Append(*args
, **kwargs
)
7456 def AppendSeparator(*args
, **kwargs
):
7457 """AppendSeparator() -> MenuItem"""
7458 return _core
.Menu_AppendSeparator(*args
, **kwargs
)
7460 def AppendCheckItem(*args
, **kwargs
):
7461 """AppendCheckItem(int id, String text, String help=EmptyString) -> MenuItem"""
7462 return _core
.Menu_AppendCheckItem(*args
, **kwargs
)
7464 def AppendRadioItem(*args
, **kwargs
):
7465 """AppendRadioItem(int id, String text, String help=EmptyString) -> MenuItem"""
7466 return _core
.Menu_AppendRadioItem(*args
, **kwargs
)
7468 def AppendMenu(*args
, **kwargs
):
7469 """AppendMenu(int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
7470 return _core
.Menu_AppendMenu(*args
, **kwargs
)
7472 def AppendItem(*args
, **kwargs
):
7473 """AppendItem(MenuItem item) -> MenuItem"""
7474 return _core
.Menu_AppendItem(*args
, **kwargs
)
7476 def Break(*args
, **kwargs
):
7478 return _core
.Menu_Break(*args
, **kwargs
)
7480 def InsertItem(*args
, **kwargs
):
7481 """InsertItem(size_t pos, MenuItem item) -> MenuItem"""
7482 return _core
.Menu_InsertItem(*args
, **kwargs
)
7484 def Insert(*args
, **kwargs
):
7486 Insert(size_t pos, int id, String text, String help=EmptyString,
7487 int kind=ITEM_NORMAL) -> MenuItem
7489 return _core
.Menu_Insert(*args
, **kwargs
)
7491 def InsertSeparator(*args
, **kwargs
):
7492 """InsertSeparator(size_t pos) -> MenuItem"""
7493 return _core
.Menu_InsertSeparator(*args
, **kwargs
)
7495 def InsertCheckItem(*args
, **kwargs
):
7496 """InsertCheckItem(size_t pos, int id, String text, String help=EmptyString) -> MenuItem"""
7497 return _core
.Menu_InsertCheckItem(*args
, **kwargs
)
7499 def InsertRadioItem(*args
, **kwargs
):
7500 """InsertRadioItem(size_t pos, int id, String text, String help=EmptyString) -> MenuItem"""
7501 return _core
.Menu_InsertRadioItem(*args
, **kwargs
)
7503 def InsertMenu(*args
, **kwargs
):
7504 """InsertMenu(size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
7505 return _core
.Menu_InsertMenu(*args
, **kwargs
)
7507 def PrependItem(*args
, **kwargs
):
7508 """PrependItem(MenuItem item) -> MenuItem"""
7509 return _core
.Menu_PrependItem(*args
, **kwargs
)
7511 def Prepend(*args
, **kwargs
):
7512 """Prepend(int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem"""
7513 return _core
.Menu_Prepend(*args
, **kwargs
)
7515 def PrependSeparator(*args
, **kwargs
):
7516 """PrependSeparator() -> MenuItem"""
7517 return _core
.Menu_PrependSeparator(*args
, **kwargs
)
7519 def PrependCheckItem(*args
, **kwargs
):
7520 """PrependCheckItem(int id, String text, String help=EmptyString) -> MenuItem"""
7521 return _core
.Menu_PrependCheckItem(*args
, **kwargs
)
7523 def PrependRadioItem(*args
, **kwargs
):
7524 """PrependRadioItem(int id, String text, String help=EmptyString) -> MenuItem"""
7525 return _core
.Menu_PrependRadioItem(*args
, **kwargs
)
7527 def PrependMenu(*args
, **kwargs
):
7528 """PrependMenu(int id, String text, Menu submenu, String help=EmptyString) -> MenuItem"""
7529 return _core
.Menu_PrependMenu(*args
, **kwargs
)
7531 def Remove(*args
, **kwargs
):
7532 """Remove(int id) -> MenuItem"""
7533 return _core
.Menu_Remove(*args
, **kwargs
)
7535 def RemoveItem(*args
, **kwargs
):
7536 """RemoveItem(MenuItem item) -> MenuItem"""
7537 return _core
.Menu_RemoveItem(*args
, **kwargs
)
7539 def Delete(*args
, **kwargs
):
7540 """Delete(int id) -> bool"""
7541 return _core
.Menu_Delete(*args
, **kwargs
)
7543 def DeleteItem(*args
, **kwargs
):
7544 """DeleteItem(MenuItem item) -> bool"""
7545 return _core
.Menu_DeleteItem(*args
, **kwargs
)
7547 def Destroy(*args
, **kwargs
):
7551 Deletes the C++ object this Python object is a proxy for.
7553 return _core
.Menu_Destroy(*args
, **kwargs
)
7555 def DestroyId(*args
, **kwargs
):
7557 DestroyId(int id) -> bool
7559 Deletes the C++ object this Python object is a proxy for.
7561 return _core
.Menu_DestroyId(*args
, **kwargs
)
7563 def DestroyItem(*args
, **kwargs
):
7565 DestroyItem(MenuItem item) -> bool
7567 Deletes the C++ object this Python object is a proxy for.
7569 return _core
.Menu_DestroyItem(*args
, **kwargs
)
7571 def GetMenuItemCount(*args
, **kwargs
):
7572 """GetMenuItemCount() -> size_t"""
7573 return _core
.Menu_GetMenuItemCount(*args
, **kwargs
)
7575 def GetMenuItems(*args
, **kwargs
):
7576 """GetMenuItems() -> PyObject"""
7577 return _core
.Menu_GetMenuItems(*args
, **kwargs
)
7579 def FindItem(*args
, **kwargs
):
7580 """FindItem(String item) -> int"""
7581 return _core
.Menu_FindItem(*args
, **kwargs
)
7583 def FindItemById(*args
, **kwargs
):
7584 """FindItemById(int id) -> MenuItem"""
7585 return _core
.Menu_FindItemById(*args
, **kwargs
)
7587 def FindItemByPosition(*args
, **kwargs
):
7588 """FindItemByPosition(size_t position) -> MenuItem"""
7589 return _core
.Menu_FindItemByPosition(*args
, **kwargs
)
7591 def Enable(*args
, **kwargs
):
7592 """Enable(int id, bool enable)"""
7593 return _core
.Menu_Enable(*args
, **kwargs
)
7595 def IsEnabled(*args
, **kwargs
):
7596 """IsEnabled(int id) -> bool"""
7597 return _core
.Menu_IsEnabled(*args
, **kwargs
)
7599 def Check(*args
, **kwargs
):
7600 """Check(int id, bool check)"""
7601 return _core
.Menu_Check(*args
, **kwargs
)
7603 def IsChecked(*args
, **kwargs
):
7604 """IsChecked(int id) -> bool"""
7605 return _core
.Menu_IsChecked(*args
, **kwargs
)
7607 def SetLabel(*args
, **kwargs
):
7608 """SetLabel(int id, String label)"""
7609 return _core
.Menu_SetLabel(*args
, **kwargs
)
7611 def GetLabel(*args
, **kwargs
):
7612 """GetLabel(int id) -> String"""
7613 return _core
.Menu_GetLabel(*args
, **kwargs
)
7615 def SetHelpString(*args
, **kwargs
):
7616 """SetHelpString(int id, String helpString)"""
7617 return _core
.Menu_SetHelpString(*args
, **kwargs
)
7619 def GetHelpString(*args
, **kwargs
):
7620 """GetHelpString(int id) -> String"""
7621 return _core
.Menu_GetHelpString(*args
, **kwargs
)
7623 def SetTitle(*args
, **kwargs
):
7624 """SetTitle(String title)"""
7625 return _core
.Menu_SetTitle(*args
, **kwargs
)
7627 def GetTitle(*args
, **kwargs
):
7628 """GetTitle() -> String"""
7629 return _core
.Menu_GetTitle(*args
, **kwargs
)
7631 def SetEventHandler(*args
, **kwargs
):
7632 """SetEventHandler(EvtHandler handler)"""
7633 return _core
.Menu_SetEventHandler(*args
, **kwargs
)
7635 def GetEventHandler(*args
, **kwargs
):
7636 """GetEventHandler() -> EvtHandler"""
7637 return _core
.Menu_GetEventHandler(*args
, **kwargs
)
7639 def SetInvokingWindow(*args
, **kwargs
):
7640 """SetInvokingWindow(Window win)"""
7641 return _core
.Menu_SetInvokingWindow(*args
, **kwargs
)
7643 def GetInvokingWindow(*args
, **kwargs
):
7644 """GetInvokingWindow() -> Window"""
7645 return _core
.Menu_GetInvokingWindow(*args
, **kwargs
)
7647 def GetStyle(*args
, **kwargs
):
7648 """GetStyle() -> long"""
7649 return _core
.Menu_GetStyle(*args
, **kwargs
)
7651 def UpdateUI(*args
, **kwargs
):
7652 """UpdateUI(EvtHandler source=None)"""
7653 return _core
.Menu_UpdateUI(*args
, **kwargs
)
7655 def GetMenuBar(*args
, **kwargs
):
7656 """GetMenuBar() -> MenuBar"""
7657 return _core
.Menu_GetMenuBar(*args
, **kwargs
)
7659 def Attach(*args
, **kwargs
):
7660 """Attach(wxMenuBarBase menubar)"""
7661 return _core
.Menu_Attach(*args
, **kwargs
)
7663 def Detach(*args
, **kwargs
):
7665 return _core
.Menu_Detach(*args
, **kwargs
)
7667 def IsAttached(*args
, **kwargs
):
7668 """IsAttached() -> bool"""
7669 return _core
.Menu_IsAttached(*args
, **kwargs
)
7671 def SetParent(*args
, **kwargs
):
7672 """SetParent(Menu parent)"""
7673 return _core
.Menu_SetParent(*args
, **kwargs
)
7675 def GetParent(*args
, **kwargs
):
7676 """GetParent() -> Menu"""
7677 return _core
.Menu_GetParent(*args
, **kwargs
)
7680 class MenuPtr(Menu
):
7681 def __init__(self
, this
):
7683 if not hasattr(self
,"thisown"): self
.thisown
= 0
7684 self
.__class
__ = Menu
7685 _core
.Menu_swigregister(MenuPtr
)
7686 DefaultValidator
= cvar
.DefaultValidator
7688 #---------------------------------------------------------------------------
7690 class MenuBar(Window
):
7692 return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
7693 def __init__(self
, *args
, **kwargs
):
7694 """__init__(long style=0) -> MenuBar"""
7695 newobj
= _core
.new_MenuBar(*args
, **kwargs
)
7696 self
.this
= newobj
.this
7699 self
._setOORInfo
(self
)
7701 def Append(*args
, **kwargs
):
7702 """Append(Menu menu, String title) -> bool"""
7703 return _core
.MenuBar_Append(*args
, **kwargs
)
7705 def Insert(*args
, **kwargs
):
7706 """Insert(size_t pos, Menu menu, String title) -> bool"""
7707 return _core
.MenuBar_Insert(*args
, **kwargs
)
7709 def GetMenuCount(*args
, **kwargs
):
7710 """GetMenuCount() -> size_t"""
7711 return _core
.MenuBar_GetMenuCount(*args
, **kwargs
)
7713 def GetMenu(*args
, **kwargs
):
7714 """GetMenu(size_t pos) -> Menu"""
7715 return _core
.MenuBar_GetMenu(*args
, **kwargs
)
7717 def Replace(*args
, **kwargs
):
7718 """Replace(size_t pos, Menu menu, String title) -> Menu"""
7719 return _core
.MenuBar_Replace(*args
, **kwargs
)
7721 def Remove(*args
, **kwargs
):
7722 """Remove(size_t pos) -> Menu"""
7723 return _core
.MenuBar_Remove(*args
, **kwargs
)
7725 def EnableTop(*args
, **kwargs
):
7726 """EnableTop(size_t pos, bool enable)"""
7727 return _core
.MenuBar_EnableTop(*args
, **kwargs
)
7729 def IsEnabledTop(*args
, **kwargs
):
7730 """IsEnabledTop(size_t pos) -> bool"""
7731 return _core
.MenuBar_IsEnabledTop(*args
, **kwargs
)
7733 def SetLabelTop(*args
, **kwargs
):
7734 """SetLabelTop(size_t pos, String label)"""
7735 return _core
.MenuBar_SetLabelTop(*args
, **kwargs
)
7737 def GetLabelTop(*args
, **kwargs
):
7738 """GetLabelTop(size_t pos) -> String"""
7739 return _core
.MenuBar_GetLabelTop(*args
, **kwargs
)
7741 def FindMenuItem(*args
, **kwargs
):
7742 """FindMenuItem(String menu, String item) -> int"""
7743 return _core
.MenuBar_FindMenuItem(*args
, **kwargs
)
7745 def FindItemById(*args
, **kwargs
):
7746 """FindItemById(int id) -> MenuItem"""
7747 return _core
.MenuBar_FindItemById(*args
, **kwargs
)
7749 def FindMenu(*args
, **kwargs
):
7750 """FindMenu(String title) -> int"""
7751 return _core
.MenuBar_FindMenu(*args
, **kwargs
)
7753 def Enable(*args
, **kwargs
):
7754 """Enable(int id, bool enable)"""
7755 return _core
.MenuBar_Enable(*args
, **kwargs
)
7757 def Check(*args
, **kwargs
):
7758 """Check(int id, bool check)"""
7759 return _core
.MenuBar_Check(*args
, **kwargs
)
7761 def IsChecked(*args
, **kwargs
):
7762 """IsChecked(int id) -> bool"""
7763 return _core
.MenuBar_IsChecked(*args
, **kwargs
)
7765 def IsEnabled(*args
, **kwargs
):
7766 """IsEnabled(int id) -> bool"""
7767 return _core
.MenuBar_IsEnabled(*args
, **kwargs
)
7769 def SetLabel(*args
, **kwargs
):
7770 """SetLabel(int id, String label)"""
7771 return _core
.MenuBar_SetLabel(*args
, **kwargs
)
7773 def GetLabel(*args
, **kwargs
):
7774 """GetLabel(int id) -> String"""
7775 return _core
.MenuBar_GetLabel(*args
, **kwargs
)
7777 def SetHelpString(*args
, **kwargs
):
7778 """SetHelpString(int id, String helpString)"""
7779 return _core
.MenuBar_SetHelpString(*args
, **kwargs
)
7781 def GetHelpString(*args
, **kwargs
):
7782 """GetHelpString(int id) -> String"""
7783 return _core
.MenuBar_GetHelpString(*args
, **kwargs
)
7785 def GetFrame(*args
, **kwargs
):
7786 """GetFrame() -> wxFrame"""
7787 return _core
.MenuBar_GetFrame(*args
, **kwargs
)
7789 def IsAttached(*args
, **kwargs
):
7790 """IsAttached() -> bool"""
7791 return _core
.MenuBar_IsAttached(*args
, **kwargs
)
7793 def Attach(*args
, **kwargs
):
7794 """Attach(wxFrame frame)"""
7795 return _core
.MenuBar_Attach(*args
, **kwargs
)
7797 def Detach(*args
, **kwargs
):
7799 return _core
.MenuBar_Detach(*args
, **kwargs
)
7802 class MenuBarPtr(MenuBar
):
7803 def __init__(self
, this
):
7805 if not hasattr(self
,"thisown"): self
.thisown
= 0
7806 self
.__class
__ = MenuBar
7807 _core
.MenuBar_swigregister(MenuBarPtr
)
7809 #---------------------------------------------------------------------------
7811 class MenuItem(Object
):
7813 return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
7814 def __init__(self
, *args
, **kwargs
):
7816 __init__(Menu parentMenu=None, int id=ID_SEPARATOR, String text=EmptyString,
7817 String help=EmptyString, int kind=ITEM_NORMAL,
7818 Menu subMenu=None) -> MenuItem
7820 newobj
= _core
.new_MenuItem(*args
, **kwargs
)
7821 self
.this
= newobj
.this
7824 def GetMenu(*args
, **kwargs
):
7825 """GetMenu() -> Menu"""
7826 return _core
.MenuItem_GetMenu(*args
, **kwargs
)
7828 def SetMenu(*args
, **kwargs
):
7829 """SetMenu(Menu menu)"""
7830 return _core
.MenuItem_SetMenu(*args
, **kwargs
)
7832 def SetId(*args
, **kwargs
):
7834 return _core
.MenuItem_SetId(*args
, **kwargs
)
7836 def GetId(*args
, **kwargs
):
7837 """GetId() -> int"""
7838 return _core
.MenuItem_GetId(*args
, **kwargs
)
7840 def IsSeparator(*args
, **kwargs
):
7841 """IsSeparator() -> bool"""
7842 return _core
.MenuItem_IsSeparator(*args
, **kwargs
)
7844 def SetText(*args
, **kwargs
):
7845 """SetText(String str)"""
7846 return _core
.MenuItem_SetText(*args
, **kwargs
)
7848 def GetLabel(*args
, **kwargs
):
7849 """GetLabel() -> String"""
7850 return _core
.MenuItem_GetLabel(*args
, **kwargs
)
7852 def GetText(*args
, **kwargs
):
7853 """GetText() -> String"""
7854 return _core
.MenuItem_GetText(*args
, **kwargs
)
7856 def GetLabelFromText(*args
, **kwargs
):
7857 """GetLabelFromText(String text) -> String"""
7858 return _core
.MenuItem_GetLabelFromText(*args
, **kwargs
)
7860 GetLabelFromText
= staticmethod(GetLabelFromText
)
7861 def GetKind(*args
, **kwargs
):
7862 """GetKind() -> int"""
7863 return _core
.MenuItem_GetKind(*args
, **kwargs
)
7865 def SetCheckable(*args
, **kwargs
):
7866 """SetCheckable(bool checkable)"""
7867 return _core
.MenuItem_SetCheckable(*args
, **kwargs
)
7869 def IsCheckable(*args
, **kwargs
):
7870 """IsCheckable() -> bool"""
7871 return _core
.MenuItem_IsCheckable(*args
, **kwargs
)
7873 def IsSubMenu(*args
, **kwargs
):
7874 """IsSubMenu() -> bool"""
7875 return _core
.MenuItem_IsSubMenu(*args
, **kwargs
)
7877 def SetSubMenu(*args
, **kwargs
):
7878 """SetSubMenu(Menu menu)"""
7879 return _core
.MenuItem_SetSubMenu(*args
, **kwargs
)
7881 def GetSubMenu(*args
, **kwargs
):
7882 """GetSubMenu() -> Menu"""
7883 return _core
.MenuItem_GetSubMenu(*args
, **kwargs
)
7885 def Enable(*args
, **kwargs
):
7886 """Enable(bool enable=True)"""
7887 return _core
.MenuItem_Enable(*args
, **kwargs
)
7889 def IsEnabled(*args
, **kwargs
):
7890 """IsEnabled() -> bool"""
7891 return _core
.MenuItem_IsEnabled(*args
, **kwargs
)
7893 def Check(*args
, **kwargs
):
7894 """Check(bool check=True)"""
7895 return _core
.MenuItem_Check(*args
, **kwargs
)
7897 def IsChecked(*args
, **kwargs
):
7898 """IsChecked() -> bool"""
7899 return _core
.MenuItem_IsChecked(*args
, **kwargs
)
7901 def Toggle(*args
, **kwargs
):
7903 return _core
.MenuItem_Toggle(*args
, **kwargs
)
7905 def SetHelp(*args
, **kwargs
):
7906 """SetHelp(String str)"""
7907 return _core
.MenuItem_SetHelp(*args
, **kwargs
)
7909 def GetHelp(*args
, **kwargs
):
7910 """GetHelp() -> String"""
7911 return _core
.MenuItem_GetHelp(*args
, **kwargs
)
7913 def GetAccel(*args
, **kwargs
):
7914 """GetAccel() -> AcceleratorEntry"""
7915 return _core
.MenuItem_GetAccel(*args
, **kwargs
)
7917 def SetAccel(*args
, **kwargs
):
7918 """SetAccel(AcceleratorEntry accel)"""
7919 return _core
.MenuItem_SetAccel(*args
, **kwargs
)
7921 def GetDefaultMarginWidth(*args
, **kwargs
):
7922 """GetDefaultMarginWidth() -> int"""
7923 return _core
.MenuItem_GetDefaultMarginWidth(*args
, **kwargs
)
7925 GetDefaultMarginWidth
= staticmethod(GetDefaultMarginWidth
)
7926 def SetBitmap(*args
, **kwargs
):
7927 """SetBitmap(Bitmap bitmap)"""
7928 return _core
.MenuItem_SetBitmap(*args
, **kwargs
)
7930 def GetBitmap(*args
, **kwargs
):
7931 """GetBitmap() -> Bitmap"""
7932 return _core
.MenuItem_GetBitmap(*args
, **kwargs
)
7935 class MenuItemPtr(MenuItem
):
7936 def __init__(self
, this
):
7938 if not hasattr(self
,"thisown"): self
.thisown
= 0
7939 self
.__class
__ = MenuItem
7940 _core
.MenuItem_swigregister(MenuItemPtr
)
7942 def MenuItem_GetLabelFromText(*args
, **kwargs
):
7943 """MenuItem_GetLabelFromText(String text) -> String"""
7944 return _core
.MenuItem_GetLabelFromText(*args
, **kwargs
)
7946 def MenuItem_GetDefaultMarginWidth(*args
, **kwargs
):
7947 """MenuItem_GetDefaultMarginWidth() -> int"""
7948 return _core
.MenuItem_GetDefaultMarginWidth(*args
, **kwargs
)
7950 #---------------------------------------------------------------------------
7952 class Control(Window
):
7954 This is the base class for a control or 'widget'.
7956 A control is generally a small window which processes user input and/or
7957 displays one or more item of data.
7960 return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
7961 def __init__(self
, *args
, **kwargs
):
7963 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
7964 long style=0, Validator validator=DefaultValidator,
7965 String name=ControlNameStr) -> Control
7967 Create a Control. Normally you should only call this from a
7968 subclass' __init__ as a plain old wx.Control is not very useful.
7970 newobj
= _core
.new_Control(*args
, **kwargs
)
7971 self
.this
= newobj
.this
7974 self
._setOORInfo
(self
)
7976 def Create(*args
, **kwargs
):
7978 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
7979 long style=0, Validator validator=DefaultValidator,
7980 String name=ControlNameStr) -> bool
7982 Do the 2nd phase and create the GUI control.
7984 return _core
.Control_Create(*args
, **kwargs
)
7986 def Command(*args
, **kwargs
):
7988 Command(CommandEvent event)
7990 Simulates the effect of the user issuing a command to the
7991 item. See wx.CommandEvent.
7993 return _core
.Control_Command(*args
, **kwargs
)
7995 def GetLabel(*args
, **kwargs
):
7997 GetLabel() -> String
7999 Return a control's text.
8001 return _core
.Control_GetLabel(*args
, **kwargs
)
8003 def SetLabel(*args
, **kwargs
):
8005 SetLabel(String label)
8007 Sets the item's text.
8009 return _core
.Control_SetLabel(*args
, **kwargs
)
8011 def GetClassDefaultAttributes(*args
, **kwargs
):
8013 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
8015 Get the default attributes for this class. This is useful if
8016 you want to use the same font or colour in your own control as
8017 in a standard control -- which is a much better idea than hard
8018 coding specific colours or fonts which might look completely out
8019 of place on the users system, especially if it uses themes.
8021 The variant parameter is only relevant under Mac currently and is
8022 ignore under other platforms. Under Mac, it will change the size of the
8023 returned font. See SetWindowVariant for more about this.
8025 return _core
.Control_GetClassDefaultAttributes(*args
, **kwargs
)
8027 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
8029 class ControlPtr(Control
):
8030 def __init__(self
, this
):
8032 if not hasattr(self
,"thisown"): self
.thisown
= 0
8033 self
.__class
__ = Control
8034 _core
.Control_swigregister(ControlPtr
)
8035 ControlNameStr
= cvar
.ControlNameStr
8037 def PreControl(*args
, **kwargs
):
8039 PreControl() -> Control
8041 Precreate a Control control for 2-phase creation
8043 val
= _core
.new_PreControl(*args
, **kwargs
)
8047 def Control_GetClassDefaultAttributes(*args
, **kwargs
):
8049 Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
8051 Get the default attributes for this class. This is useful if
8052 you want to use the same font or colour in your own control as
8053 in a standard control -- which is a much better idea than hard
8054 coding specific colours or fonts which might look completely out
8055 of place on the users system, especially if it uses themes.
8057 The variant parameter is only relevant under Mac currently and is
8058 ignore under other platforms. Under Mac, it will change the size of the
8059 returned font. See SetWindowVariant for more about this.
8061 return _core
.Control_GetClassDefaultAttributes(*args
, **kwargs
)
8063 #---------------------------------------------------------------------------
8065 class ItemContainer(object):
8067 wx.ItemContainer defines an interface which is implemented by all
8068 controls which have string subitems, each of which may be
8069 selected, such as wx.ListBox, wx.CheckListBox, wx.Choice and
8070 wx.ComboBox (which implements an extended interface deriving from
8073 It defines the methods for accessing the control's items and
8074 although each of the derived classes implements them differently,
8075 they still all conform to the same interface.
8077 The items in a wx.ItemContainer have (non empty) string labels
8078 and, optionally, client data associated with them.
8081 def __init__(self
): raise RuntimeError, "No constructor defined"
8083 return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8084 def Append(*args
, **kwargs
):
8086 Append(String item, PyObject clientData=None) -> int
8088 Adds the item to the control, associating the given data with the
8089 item if not None. The return value is the index of the newly
8090 added item which may be different from the last one if the
8091 control is sorted (e.g. has wx.LB_SORT or wx.CB_SORT style).
8093 return _core
.ItemContainer_Append(*args
, **kwargs
)
8095 def AppendItems(*args
, **kwargs
):
8097 AppendItems(wxArrayString strings)
8099 Apend several items at once to the control. Notice that calling
8100 this method may be much faster than appending the items one by
8101 one if you need to add a lot of items.
8103 return _core
.ItemContainer_AppendItems(*args
, **kwargs
)
8105 def Insert(*args
, **kwargs
):
8107 Insert(String item, int pos, PyObject clientData=None) -> int
8109 Insert an item into the control before the item at the pos index,
8110 optionally associating some data object with the item.
8112 return _core
.ItemContainer_Insert(*args
, **kwargs
)
8114 def Clear(*args
, **kwargs
):
8118 Removes all items from the control.
8120 return _core
.ItemContainer_Clear(*args
, **kwargs
)
8122 def Delete(*args
, **kwargs
):
8126 Deletes the item at the zero-based index 'n' from the control.
8127 Note that it is an error (signalled by a PyAssertionError
8128 exception if enabled) to remove an item with the index negative
8129 or greater or equal than the number of items in the control.
8131 return _core
.ItemContainer_Delete(*args
, **kwargs
)
8133 def GetCount(*args
, **kwargs
):
8137 Returns the number of items in the control.
8139 return _core
.ItemContainer_GetCount(*args
, **kwargs
)
8141 def IsEmpty(*args
, **kwargs
):
8145 Returns True if the control is empty or False if it has some items.
8147 return _core
.ItemContainer_IsEmpty(*args
, **kwargs
)
8149 def GetString(*args
, **kwargs
):
8151 GetString(int n) -> String
8153 Returns the label of the item with the given index.
8155 return _core
.ItemContainer_GetString(*args
, **kwargs
)
8157 def GetStrings(*args
, **kwargs
):
8158 """GetStrings() -> wxArrayString"""
8159 return _core
.ItemContainer_GetStrings(*args
, **kwargs
)
8161 def SetString(*args
, **kwargs
):
8163 SetString(int n, String s)
8165 Sets the label for the given item.
8167 return _core
.ItemContainer_SetString(*args
, **kwargs
)
8169 def FindString(*args
, **kwargs
):
8171 FindString(String s) -> int
8173 Finds an item whose label matches the given string. Returns the
8174 zero-based position of the item, or wx.NOT_FOUND if the string
8177 return _core
.ItemContainer_FindString(*args
, **kwargs
)
8179 def Select(*args
, **kwargs
):
8183 Sets the item at index 'n' to be the selected item.
8185 return _core
.ItemContainer_Select(*args
, **kwargs
)
8187 SetSelection
= Select
8188 def GetSelection(*args
, **kwargs
):
8190 GetSelection() -> int
8192 Returns the index of the selected item or wx.NOT_FOUND if no item is selected.
8194 return _core
.ItemContainer_GetSelection(*args
, **kwargs
)
8196 def GetStringSelection(*args
, **kwargs
):
8198 GetStringSelection() -> String
8200 Returns the label of the selected item or an empty string if no item is selected.
8202 return _core
.ItemContainer_GetStringSelection(*args
, **kwargs
)
8204 def GetClientData(*args
, **kwargs
):
8206 GetClientData(int n) -> PyObject
8208 Returns the client data associated with the given item, (if any.)
8210 return _core
.ItemContainer_GetClientData(*args
, **kwargs
)
8212 def SetClientData(*args
, **kwargs
):
8214 SetClientData(int n, PyObject clientData)
8216 Associate the given client data with the item at position n.
8218 return _core
.ItemContainer_SetClientData(*args
, **kwargs
)
8221 class ItemContainerPtr(ItemContainer
):
8222 def __init__(self
, this
):
8224 if not hasattr(self
,"thisown"): self
.thisown
= 0
8225 self
.__class
__ = ItemContainer
8226 _core
.ItemContainer_swigregister(ItemContainerPtr
)
8228 #---------------------------------------------------------------------------
8230 class ControlWithItems(Control
,ItemContainer
):
8232 wx.ControlWithItems combines the wx.ItemContainer class with the
8233 wx.Control class, and is used for the base class of various
8234 controls that have items.
8236 def __init__(self
): raise RuntimeError, "No constructor defined"
8238 return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8240 class ControlWithItemsPtr(ControlWithItems
):
8241 def __init__(self
, this
):
8243 if not hasattr(self
,"thisown"): self
.thisown
= 0
8244 self
.__class
__ = ControlWithItems
8245 _core
.ControlWithItems_swigregister(ControlWithItemsPtr
)
8247 #---------------------------------------------------------------------------
8249 class SizerItem(Object
):
8251 return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8252 def __init__(self
, *args
, **kwargs
):
8253 """__init__() -> SizerItem"""
8254 newobj
= _core
.new_SizerItem(*args
, **kwargs
)
8255 self
.this
= newobj
.this
8258 def DeleteWindows(*args
, **kwargs
):
8259 """DeleteWindows()"""
8260 return _core
.SizerItem_DeleteWindows(*args
, **kwargs
)
8262 def DetachSizer(*args
, **kwargs
):
8264 return _core
.SizerItem_DetachSizer(*args
, **kwargs
)
8266 def GetSize(*args
, **kwargs
):
8267 """GetSize() -> Size"""
8268 return _core
.SizerItem_GetSize(*args
, **kwargs
)
8270 def CalcMin(*args
, **kwargs
):
8271 """CalcMin() -> Size"""
8272 return _core
.SizerItem_CalcMin(*args
, **kwargs
)
8274 def SetDimension(*args
, **kwargs
):
8275 """SetDimension(Point pos, Size size)"""
8276 return _core
.SizerItem_SetDimension(*args
, **kwargs
)
8278 def GetMinSize(*args
, **kwargs
):
8279 """GetMinSize() -> Size"""
8280 return _core
.SizerItem_GetMinSize(*args
, **kwargs
)
8282 def SetInitSize(*args
, **kwargs
):
8283 """SetInitSize(int x, int y)"""
8284 return _core
.SizerItem_SetInitSize(*args
, **kwargs
)
8286 def SetRatioWH(*args
, **kwargs
):
8287 """SetRatioWH(int width, int height)"""
8288 return _core
.SizerItem_SetRatioWH(*args
, **kwargs
)
8290 def SetRatioSize(*args
, **kwargs
):
8291 """SetRatioSize(Size size)"""
8292 return _core
.SizerItem_SetRatioSize(*args
, **kwargs
)
8294 def SetRatio(*args
, **kwargs
):
8295 """SetRatio(float ratio)"""
8296 return _core
.SizerItem_SetRatio(*args
, **kwargs
)
8298 def GetRatio(*args
, **kwargs
):
8299 """GetRatio() -> float"""
8300 return _core
.SizerItem_GetRatio(*args
, **kwargs
)
8302 def IsWindow(*args
, **kwargs
):
8303 """IsWindow() -> bool"""
8304 return _core
.SizerItem_IsWindow(*args
, **kwargs
)
8306 def IsSizer(*args
, **kwargs
):
8307 """IsSizer() -> bool"""
8308 return _core
.SizerItem_IsSizer(*args
, **kwargs
)
8310 def IsSpacer(*args
, **kwargs
):
8311 """IsSpacer() -> bool"""
8312 return _core
.SizerItem_IsSpacer(*args
, **kwargs
)
8314 def SetProportion(*args
, **kwargs
):
8315 """SetProportion(int proportion)"""
8316 return _core
.SizerItem_SetProportion(*args
, **kwargs
)
8318 def GetProportion(*args
, **kwargs
):
8319 """GetProportion() -> int"""
8320 return _core
.SizerItem_GetProportion(*args
, **kwargs
)
8322 SetOption
= SetProportion
8323 GetOption
= GetProportion
8324 def SetFlag(*args
, **kwargs
):
8325 """SetFlag(int flag)"""
8326 return _core
.SizerItem_SetFlag(*args
, **kwargs
)
8328 def GetFlag(*args
, **kwargs
):
8329 """GetFlag() -> int"""
8330 return _core
.SizerItem_GetFlag(*args
, **kwargs
)
8332 def SetBorder(*args
, **kwargs
):
8333 """SetBorder(int border)"""
8334 return _core
.SizerItem_SetBorder(*args
, **kwargs
)
8336 def GetBorder(*args
, **kwargs
):
8337 """GetBorder() -> int"""
8338 return _core
.SizerItem_GetBorder(*args
, **kwargs
)
8340 def GetWindow(*args
, **kwargs
):
8341 """GetWindow() -> Window"""
8342 return _core
.SizerItem_GetWindow(*args
, **kwargs
)
8344 def SetWindow(*args
, **kwargs
):
8345 """SetWindow(Window window)"""
8346 return _core
.SizerItem_SetWindow(*args
, **kwargs
)
8348 def GetSizer(*args
, **kwargs
):
8349 """GetSizer() -> Sizer"""
8350 return _core
.SizerItem_GetSizer(*args
, **kwargs
)
8352 def SetSizer(*args
, **kwargs
):
8353 """SetSizer(Sizer sizer)"""
8354 return _core
.SizerItem_SetSizer(*args
, **kwargs
)
8356 def GetSpacer(*args
, **kwargs
):
8357 """GetSpacer() -> Size"""
8358 return _core
.SizerItem_GetSpacer(*args
, **kwargs
)
8360 def SetSpacer(*args
, **kwargs
):
8361 """SetSpacer(Size size)"""
8362 return _core
.SizerItem_SetSpacer(*args
, **kwargs
)
8364 def Show(*args
, **kwargs
):
8365 """Show(bool show)"""
8366 return _core
.SizerItem_Show(*args
, **kwargs
)
8368 def IsShown(*args
, **kwargs
):
8369 """IsShown() -> bool"""
8370 return _core
.SizerItem_IsShown(*args
, **kwargs
)
8372 def GetPosition(*args
, **kwargs
):
8373 """GetPosition() -> Point"""
8374 return _core
.SizerItem_GetPosition(*args
, **kwargs
)
8376 def GetUserData(*args
, **kwargs
):
8377 """GetUserData() -> PyObject"""
8378 return _core
.SizerItem_GetUserData(*args
, **kwargs
)
8381 class SizerItemPtr(SizerItem
):
8382 def __init__(self
, this
):
8384 if not hasattr(self
,"thisown"): self
.thisown
= 0
8385 self
.__class
__ = SizerItem
8386 _core
.SizerItem_swigregister(SizerItemPtr
)
8388 def SizerItemSpacer(*args
, **kwargs
):
8390 SizerItemSpacer(int width, int height, int proportion, int flag, int border,
8391 Object userData) -> SizerItem
8393 val
= _core
.new_SizerItemSpacer(*args
, **kwargs
)
8397 def SizerItemWindow(*args
, **kwargs
):
8399 SizerItemWindow(Window window, int proportion, int flag, int border,
8400 Object userData) -> SizerItem
8402 val
= _core
.new_SizerItemWindow(*args
, **kwargs
)
8406 def SizerItemSizer(*args
, **kwargs
):
8408 SizerItemSizer(Sizer sizer, int proportion, int flag, int border,
8409 Object userData) -> SizerItem
8411 val
= _core
.new_SizerItemSizer(*args
, **kwargs
)
8415 class Sizer(Object
):
8416 def __init__(self
): raise RuntimeError, "No constructor defined"
8418 return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8419 def _setOORInfo(*args
, **kwargs
):
8420 """_setOORInfo(PyObject _self)"""
8421 return _core
.Sizer__setOORInfo(*args
, **kwargs
)
8423 def Add(*args
, **kwargs
):
8425 Add(PyObject item, int proportion=0, int flag=0, int border=0,
8426 PyObject userData=None)
8428 return _core
.Sizer_Add(*args
, **kwargs
)
8430 def Insert(*args
, **kwargs
):
8432 Insert(int before, PyObject item, int proportion=0, int flag=0,
8433 int border=0, PyObject userData=None)
8435 return _core
.Sizer_Insert(*args
, **kwargs
)
8437 def Prepend(*args
, **kwargs
):
8439 Prepend(PyObject item, int proportion=0, int flag=0, int border=0,
8440 PyObject userData=None)
8442 return _core
.Sizer_Prepend(*args
, **kwargs
)
8444 def Remove(*args
, **kwargs
):
8445 """Remove(PyObject item) -> bool"""
8446 return _core
.Sizer_Remove(*args
, **kwargs
)
8448 def _SetItemMinSize(*args
, **kwargs
):
8449 """_SetItemMinSize(PyObject item, Size size)"""
8450 return _core
.Sizer__SetItemMinSize(*args
, **kwargs
)
8452 def AddItem(*args
, **kwargs
):
8453 """AddItem(SizerItem item)"""
8454 return _core
.Sizer_AddItem(*args
, **kwargs
)
8456 def InsertItem(*args
, **kwargs
):
8457 """InsertItem(size_t index, SizerItem item)"""
8458 return _core
.Sizer_InsertItem(*args
, **kwargs
)
8460 def PrependItem(*args
, **kwargs
):
8461 """PrependItem(SizerItem item)"""
8462 return _core
.Sizer_PrependItem(*args
, **kwargs
)
8464 def AddMany(self
, widgets
):
8465 for childinfo
in widgets
:
8466 if type(childinfo
) != type(()) or (len(childinfo
) == 2 and type(childinfo
[0]) == type(1)):
8467 childinfo
= (childinfo
, )
8468 self
.Add(*childinfo
)
8470 # for backwards compatibility only, please do not use in new code
8471 AddWindow
= AddSizer
= AddSpacer
= Add
8472 PrependWindow
= PrependSizer
= PrependSpacer
= Prepend
8473 InsertWindow
= InsertSizer
= InsertSpacer
= Insert
8474 RemoveWindow
= RemoveSizer
= RemovePos
= Remove
8477 def SetItemMinSize(self
, item
, *args
):
8479 return self
._SetItemMinSize
(item
, args
)
8481 return self
._SetItemMinSize
(item
, args
[0])
8483 def SetDimension(*args
, **kwargs
):
8484 """SetDimension(int x, int y, int width, int height)"""
8485 return _core
.Sizer_SetDimension(*args
, **kwargs
)
8487 def SetMinSize(*args
, **kwargs
):
8488 """SetMinSize(Size size)"""
8489 return _core
.Sizer_SetMinSize(*args
, **kwargs
)
8491 def GetSize(*args
, **kwargs
):
8492 """GetSize() -> Size"""
8493 return _core
.Sizer_GetSize(*args
, **kwargs
)
8495 def GetPosition(*args
, **kwargs
):
8496 """GetPosition() -> Point"""
8497 return _core
.Sizer_GetPosition(*args
, **kwargs
)
8499 def GetMinSize(*args
, **kwargs
):
8500 """GetMinSize() -> Size"""
8501 return _core
.Sizer_GetMinSize(*args
, **kwargs
)
8503 def GetSizeTuple(self
):
8504 return self
.GetSize().asTuple()
8505 def GetPositionTuple(self
):
8506 return self
.GetPosition().asTuple()
8507 def GetMinSizeTuple(self
):
8508 return self
.GetMinSize().asTuple()
8510 def RecalcSizes(*args
, **kwargs
):
8512 return _core
.Sizer_RecalcSizes(*args
, **kwargs
)
8514 def CalcMin(*args
, **kwargs
):
8515 """CalcMin() -> Size"""
8516 return _core
.Sizer_CalcMin(*args
, **kwargs
)
8518 def Layout(*args
, **kwargs
):
8520 return _core
.Sizer_Layout(*args
, **kwargs
)
8522 def Fit(*args
, **kwargs
):
8523 """Fit(Window window) -> Size"""
8524 return _core
.Sizer_Fit(*args
, **kwargs
)
8526 def FitInside(*args
, **kwargs
):
8527 """FitInside(Window window)"""
8528 return _core
.Sizer_FitInside(*args
, **kwargs
)
8530 def SetSizeHints(*args
, **kwargs
):
8531 """SetSizeHints(Window window)"""
8532 return _core
.Sizer_SetSizeHints(*args
, **kwargs
)
8534 def SetVirtualSizeHints(*args
, **kwargs
):
8535 """SetVirtualSizeHints(Window window)"""
8536 return _core
.Sizer_SetVirtualSizeHints(*args
, **kwargs
)
8538 def Clear(*args
, **kwargs
):
8539 """Clear(bool delete_windows=False)"""
8540 return _core
.Sizer_Clear(*args
, **kwargs
)
8542 def DeleteWindows(*args
, **kwargs
):
8543 """DeleteWindows()"""
8544 return _core
.Sizer_DeleteWindows(*args
, **kwargs
)
8546 def GetChildren(*args
, **kwargs
):
8547 """GetChildren() -> PyObject"""
8548 return _core
.Sizer_GetChildren(*args
, **kwargs
)
8550 def Show(*args
, **kwargs
):
8551 """Show(PyObject item, bool show=True)"""
8552 return _core
.Sizer_Show(*args
, **kwargs
)
8554 def Hide(*args
, **kwargs
):
8555 """Hide(PyObject item)"""
8556 return _core
.Sizer_Hide(*args
, **kwargs
)
8558 def IsShown(*args
, **kwargs
):
8559 """IsShown(PyObject item) -> bool"""
8560 return _core
.Sizer_IsShown(*args
, **kwargs
)
8562 def ShowItems(*args
, **kwargs
):
8563 """ShowItems(bool show)"""
8564 return _core
.Sizer_ShowItems(*args
, **kwargs
)
8567 class SizerPtr(Sizer
):
8568 def __init__(self
, this
):
8570 if not hasattr(self
,"thisown"): self
.thisown
= 0
8571 self
.__class
__ = Sizer
8572 _core
.Sizer_swigregister(SizerPtr
)
8574 class PySizer(Sizer
):
8576 return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8577 def __init__(self
, *args
, **kwargs
):
8578 """__init__() -> PySizer"""
8579 newobj
= _core
.new_PySizer(*args
, **kwargs
)
8580 self
.this
= newobj
.this
8583 self
._setCallbackInfo
(self
, PySizer
);self
._setOORInfo
(self
)
8585 def _setCallbackInfo(*args
, **kwargs
):
8586 """_setCallbackInfo(PyObject self, PyObject _class)"""
8587 return _core
.PySizer__setCallbackInfo(*args
, **kwargs
)
8590 class PySizerPtr(PySizer
):
8591 def __init__(self
, this
):
8593 if not hasattr(self
,"thisown"): self
.thisown
= 0
8594 self
.__class
__ = PySizer
8595 _core
.PySizer_swigregister(PySizerPtr
)
8597 #---------------------------------------------------------------------------
8599 class BoxSizer(Sizer
):
8601 return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8602 def __init__(self
, *args
, **kwargs
):
8603 """__init__(int orient=HORIZONTAL) -> BoxSizer"""
8604 newobj
= _core
.new_BoxSizer(*args
, **kwargs
)
8605 self
.this
= newobj
.this
8608 self
._setOORInfo
(self
)
8610 def GetOrientation(*args
, **kwargs
):
8611 """GetOrientation() -> int"""
8612 return _core
.BoxSizer_GetOrientation(*args
, **kwargs
)
8614 def SetOrientation(*args
, **kwargs
):
8615 """SetOrientation(int orient)"""
8616 return _core
.BoxSizer_SetOrientation(*args
, **kwargs
)
8618 def RecalcSizes(*args
, **kwargs
):
8620 return _core
.BoxSizer_RecalcSizes(*args
, **kwargs
)
8622 def CalcMin(*args
, **kwargs
):
8623 """CalcMin() -> Size"""
8624 return _core
.BoxSizer_CalcMin(*args
, **kwargs
)
8627 class BoxSizerPtr(BoxSizer
):
8628 def __init__(self
, this
):
8630 if not hasattr(self
,"thisown"): self
.thisown
= 0
8631 self
.__class
__ = BoxSizer
8632 _core
.BoxSizer_swigregister(BoxSizerPtr
)
8634 #---------------------------------------------------------------------------
8636 class StaticBoxSizer(BoxSizer
):
8638 return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8639 def __init__(self
, *args
, **kwargs
):
8640 """__init__(wxStaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer"""
8641 newobj
= _core
.new_StaticBoxSizer(*args
, **kwargs
)
8642 self
.this
= newobj
.this
8645 self
._setOORInfo
(self
)
8647 def GetStaticBox(*args
, **kwargs
):
8648 """GetStaticBox() -> wxStaticBox"""
8649 return _core
.StaticBoxSizer_GetStaticBox(*args
, **kwargs
)
8651 def RecalcSizes(*args
, **kwargs
):
8653 return _core
.StaticBoxSizer_RecalcSizes(*args
, **kwargs
)
8655 def CalcMin(*args
, **kwargs
):
8656 """CalcMin() -> Size"""
8657 return _core
.StaticBoxSizer_CalcMin(*args
, **kwargs
)
8660 class StaticBoxSizerPtr(StaticBoxSizer
):
8661 def __init__(self
, this
):
8663 if not hasattr(self
,"thisown"): self
.thisown
= 0
8664 self
.__class
__ = StaticBoxSizer
8665 _core
.StaticBoxSizer_swigregister(StaticBoxSizerPtr
)
8667 #---------------------------------------------------------------------------
8669 class GridSizer(Sizer
):
8671 return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8672 def __init__(self
, *args
, **kwargs
):
8673 """__init__(int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer"""
8674 newobj
= _core
.new_GridSizer(*args
, **kwargs
)
8675 self
.this
= newobj
.this
8678 self
._setOORInfo
(self
)
8680 def RecalcSizes(*args
, **kwargs
):
8682 return _core
.GridSizer_RecalcSizes(*args
, **kwargs
)
8684 def CalcMin(*args
, **kwargs
):
8685 """CalcMin() -> Size"""
8686 return _core
.GridSizer_CalcMin(*args
, **kwargs
)
8688 def SetCols(*args
, **kwargs
):
8689 """SetCols(int cols)"""
8690 return _core
.GridSizer_SetCols(*args
, **kwargs
)
8692 def SetRows(*args
, **kwargs
):
8693 """SetRows(int rows)"""
8694 return _core
.GridSizer_SetRows(*args
, **kwargs
)
8696 def SetVGap(*args
, **kwargs
):
8697 """SetVGap(int gap)"""
8698 return _core
.GridSizer_SetVGap(*args
, **kwargs
)
8700 def SetHGap(*args
, **kwargs
):
8701 """SetHGap(int gap)"""
8702 return _core
.GridSizer_SetHGap(*args
, **kwargs
)
8704 def GetCols(*args
, **kwargs
):
8705 """GetCols() -> int"""
8706 return _core
.GridSizer_GetCols(*args
, **kwargs
)
8708 def GetRows(*args
, **kwargs
):
8709 """GetRows() -> int"""
8710 return _core
.GridSizer_GetRows(*args
, **kwargs
)
8712 def GetVGap(*args
, **kwargs
):
8713 """GetVGap() -> int"""
8714 return _core
.GridSizer_GetVGap(*args
, **kwargs
)
8716 def GetHGap(*args
, **kwargs
):
8717 """GetHGap() -> int"""
8718 return _core
.GridSizer_GetHGap(*args
, **kwargs
)
8721 class GridSizerPtr(GridSizer
):
8722 def __init__(self
, this
):
8724 if not hasattr(self
,"thisown"): self
.thisown
= 0
8725 self
.__class
__ = GridSizer
8726 _core
.GridSizer_swigregister(GridSizerPtr
)
8728 #---------------------------------------------------------------------------
8730 FLEX_GROWMODE_NONE
= _core
.FLEX_GROWMODE_NONE
8731 FLEX_GROWMODE_SPECIFIED
= _core
.FLEX_GROWMODE_SPECIFIED
8732 FLEX_GROWMODE_ALL
= _core
.FLEX_GROWMODE_ALL
8733 class FlexGridSizer(GridSizer
):
8735 return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8736 def __init__(self
, *args
, **kwargs
):
8737 """__init__(int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer"""
8738 newobj
= _core
.new_FlexGridSizer(*args
, **kwargs
)
8739 self
.this
= newobj
.this
8742 self
._setOORInfo
(self
)
8744 def RecalcSizes(*args
, **kwargs
):
8746 return _core
.FlexGridSizer_RecalcSizes(*args
, **kwargs
)
8748 def CalcMin(*args
, **kwargs
):
8749 """CalcMin() -> Size"""
8750 return _core
.FlexGridSizer_CalcMin(*args
, **kwargs
)
8752 def AddGrowableRow(*args
, **kwargs
):
8753 """AddGrowableRow(size_t idx, int proportion=0)"""
8754 return _core
.FlexGridSizer_AddGrowableRow(*args
, **kwargs
)
8756 def RemoveGrowableRow(*args
, **kwargs
):
8757 """RemoveGrowableRow(size_t idx)"""
8758 return _core
.FlexGridSizer_RemoveGrowableRow(*args
, **kwargs
)
8760 def AddGrowableCol(*args
, **kwargs
):
8761 """AddGrowableCol(size_t idx, int proportion=0)"""
8762 return _core
.FlexGridSizer_AddGrowableCol(*args
, **kwargs
)
8764 def RemoveGrowableCol(*args
, **kwargs
):
8765 """RemoveGrowableCol(size_t idx)"""
8766 return _core
.FlexGridSizer_RemoveGrowableCol(*args
, **kwargs
)
8768 def SetFlexibleDirection(*args
, **kwargs
):
8769 """SetFlexibleDirection(int direction)"""
8770 return _core
.FlexGridSizer_SetFlexibleDirection(*args
, **kwargs
)
8772 def GetFlexibleDirection(*args
, **kwargs
):
8773 """GetFlexibleDirection() -> int"""
8774 return _core
.FlexGridSizer_GetFlexibleDirection(*args
, **kwargs
)
8776 def SetNonFlexibleGrowMode(*args
, **kwargs
):
8777 """SetNonFlexibleGrowMode(int mode)"""
8778 return _core
.FlexGridSizer_SetNonFlexibleGrowMode(*args
, **kwargs
)
8780 def GetNonFlexibleGrowMode(*args
, **kwargs
):
8781 """GetNonFlexibleGrowMode() -> int"""
8782 return _core
.FlexGridSizer_GetNonFlexibleGrowMode(*args
, **kwargs
)
8784 def GetRowHeights(*args
, **kwargs
):
8785 """GetRowHeights() -> wxArrayInt"""
8786 return _core
.FlexGridSizer_GetRowHeights(*args
, **kwargs
)
8788 def GetColWidths(*args
, **kwargs
):
8789 """GetColWidths() -> wxArrayInt"""
8790 return _core
.FlexGridSizer_GetColWidths(*args
, **kwargs
)
8793 class FlexGridSizerPtr(FlexGridSizer
):
8794 def __init__(self
, this
):
8796 if not hasattr(self
,"thisown"): self
.thisown
= 0
8797 self
.__class
__ = FlexGridSizer
8798 _core
.FlexGridSizer_swigregister(FlexGridSizerPtr
)
8800 #---------------------------------------------------------------------------
8802 class GBPosition(object):
8804 return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8805 def __init__(self
, *args
, **kwargs
):
8806 """__init__(int row=0, int col=0) -> GBPosition"""
8807 newobj
= _core
.new_GBPosition(*args
, **kwargs
)
8808 self
.this
= newobj
.this
8811 def GetRow(*args
, **kwargs
):
8812 """GetRow() -> int"""
8813 return _core
.GBPosition_GetRow(*args
, **kwargs
)
8815 def GetCol(*args
, **kwargs
):
8816 """GetCol() -> int"""
8817 return _core
.GBPosition_GetCol(*args
, **kwargs
)
8819 def SetRow(*args
, **kwargs
):
8820 """SetRow(int row)"""
8821 return _core
.GBPosition_SetRow(*args
, **kwargs
)
8823 def SetCol(*args
, **kwargs
):
8824 """SetCol(int col)"""
8825 return _core
.GBPosition_SetCol(*args
, **kwargs
)
8827 def __eq__(*args
, **kwargs
):
8828 """__eq__(GBPosition other) -> bool"""
8829 return _core
.GBPosition___eq__(*args
, **kwargs
)
8831 def __ne__(*args
, **kwargs
):
8832 """__ne__(GBPosition other) -> bool"""
8833 return _core
.GBPosition___ne__(*args
, **kwargs
)
8835 def Set(*args
, **kwargs
):
8836 """Set(int row=0, int col=0)"""
8837 return _core
.GBPosition_Set(*args
, **kwargs
)
8839 def Get(*args
, **kwargs
):
8840 """Get() -> PyObject"""
8841 return _core
.GBPosition_Get(*args
, **kwargs
)
8844 def __str__(self
): return str(self
.Get())
8845 def __repr__(self
): return 'wx.GBPosition'+str(self
.Get())
8846 def __len__(self
): return len(self
.Get())
8847 def __getitem__(self
, index
): return self
.Get()[index
]
8848 def __setitem__(self
, index
, val
):
8849 if index
== 0: self
.SetRow(val
)
8850 elif index
== 1: self
.SetCol(val
)
8851 else: raise IndexError
8852 def __nonzero__(self
): return self
.Get() != (0,0)
8853 __safe_for_unpickling__
= True
8854 def __reduce__(self
): return (wx
.GBPosition
, self
.Get())
8856 row
= property(GetRow
, SetRow
)
8857 col
= property(GetCol
, SetCol
)
8860 class GBPositionPtr(GBPosition
):
8861 def __init__(self
, this
):
8863 if not hasattr(self
,"thisown"): self
.thisown
= 0
8864 self
.__class
__ = GBPosition
8865 _core
.GBPosition_swigregister(GBPositionPtr
)
8867 class GBSpan(object):
8869 return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8870 def __init__(self
, *args
, **kwargs
):
8871 """__init__(int rowspan=1, int colspan=1) -> GBSpan"""
8872 newobj
= _core
.new_GBSpan(*args
, **kwargs
)
8873 self
.this
= newobj
.this
8876 def GetRowspan(*args
, **kwargs
):
8877 """GetRowspan() -> int"""
8878 return _core
.GBSpan_GetRowspan(*args
, **kwargs
)
8880 def GetColspan(*args
, **kwargs
):
8881 """GetColspan() -> int"""
8882 return _core
.GBSpan_GetColspan(*args
, **kwargs
)
8884 def SetRowspan(*args
, **kwargs
):
8885 """SetRowspan(int rowspan)"""
8886 return _core
.GBSpan_SetRowspan(*args
, **kwargs
)
8888 def SetColspan(*args
, **kwargs
):
8889 """SetColspan(int colspan)"""
8890 return _core
.GBSpan_SetColspan(*args
, **kwargs
)
8892 def __eq__(*args
, **kwargs
):
8893 """__eq__(GBSpan other) -> bool"""
8894 return _core
.GBSpan___eq__(*args
, **kwargs
)
8896 def __ne__(*args
, **kwargs
):
8897 """__ne__(GBSpan other) -> bool"""
8898 return _core
.GBSpan___ne__(*args
, **kwargs
)
8900 def Set(*args
, **kwargs
):
8901 """Set(int rowspan=1, int colspan=1)"""
8902 return _core
.GBSpan_Set(*args
, **kwargs
)
8904 def Get(*args
, **kwargs
):
8905 """Get() -> PyObject"""
8906 return _core
.GBSpan_Get(*args
, **kwargs
)
8909 def __str__(self
): return str(self
.Get())
8910 def __repr__(self
): return 'wx.GBSpan'+str(self
.Get())
8911 def __len__(self
): return len(self
.Get())
8912 def __getitem__(self
, index
): return self
.Get()[index
]
8913 def __setitem__(self
, index
, val
):
8914 if index
== 0: self
.SetRowspan(val
)
8915 elif index
== 1: self
.SetColspan(val
)
8916 else: raise IndexError
8917 def __nonzero__(self
): return self
.Get() != (0,0)
8918 __safe_for_unpickling__
= True
8919 def __reduce__(self
): return (wx
.GBSpan
, self
.Get())
8921 rowspan
= property(GetRowspan
, SetRowspan
)
8922 colspan
= property(GetColspan
, SetColspan
)
8925 class GBSpanPtr(GBSpan
):
8926 def __init__(self
, this
):
8928 if not hasattr(self
,"thisown"): self
.thisown
= 0
8929 self
.__class
__ = GBSpan
8930 _core
.GBSpan_swigregister(GBSpanPtr
)
8932 class GBSizerItem(SizerItem
):
8934 return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
8935 def __init__(self
, *args
, **kwargs
):
8936 """__init__() -> GBSizerItem"""
8937 newobj
= _core
.new_GBSizerItem(*args
, **kwargs
)
8938 self
.this
= newobj
.this
8941 def GetPos(*args
, **kwargs
):
8942 """GetPos() -> GBPosition"""
8943 return _core
.GBSizerItem_GetPos(*args
, **kwargs
)
8945 def GetPosTuple(self
): return self
.GetPos().Get()
8946 def GetSpan(*args
, **kwargs
):
8947 """GetSpan() -> GBSpan"""
8948 return _core
.GBSizerItem_GetSpan(*args
, **kwargs
)
8950 def GetSpanTuple(self
): return self
.GetSpan().Get()
8951 def SetPos(*args
, **kwargs
):
8952 """SetPos(GBPosition pos) -> bool"""
8953 return _core
.GBSizerItem_SetPos(*args
, **kwargs
)
8955 def SetSpan(*args
, **kwargs
):
8956 """SetSpan(GBSpan span) -> bool"""
8957 return _core
.GBSizerItem_SetSpan(*args
, **kwargs
)
8959 def Intersects(*args
):
8961 Intersects(GBSizerItem other) -> bool
8962 Intersects(GBPosition pos, GBSpan span) -> bool
8964 return _core
.GBSizerItem_Intersects(*args
)
8966 def GetEndPos(*args
, **kwargs
):
8967 """GetEndPos(int row, int col)"""
8968 return _core
.GBSizerItem_GetEndPos(*args
, **kwargs
)
8970 def GetGBSizer(*args
, **kwargs
):
8971 """GetGBSizer() -> GridBagSizer"""
8972 return _core
.GBSizerItem_GetGBSizer(*args
, **kwargs
)
8974 def SetGBSizer(*args
, **kwargs
):
8975 """SetGBSizer(GridBagSizer sizer)"""
8976 return _core
.GBSizerItem_SetGBSizer(*args
, **kwargs
)
8979 class GBSizerItemPtr(GBSizerItem
):
8980 def __init__(self
, this
):
8982 if not hasattr(self
,"thisown"): self
.thisown
= 0
8983 self
.__class
__ = GBSizerItem
8984 _core
.GBSizerItem_swigregister(GBSizerItemPtr
)
8985 DefaultSpan
= cvar
.DefaultSpan
8987 def GBSizerItemWindow(*args
, **kwargs
):
8989 GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag,
8990 int border, Object userData) -> GBSizerItem
8992 val
= _core
.new_GBSizerItemWindow(*args
, **kwargs
)
8996 def GBSizerItemSizer(*args
, **kwargs
):
8998 GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag,
8999 int border, Object userData) -> GBSizerItem
9001 val
= _core
.new_GBSizerItemSizer(*args
, **kwargs
)
9005 def GBSizerItemSpacer(*args
, **kwargs
):
9007 GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span,
9008 int flag, int border, Object userData) -> GBSizerItem
9010 val
= _core
.new_GBSizerItemSpacer(*args
, **kwargs
)
9014 class GridBagSizer(FlexGridSizer
):
9016 return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
9017 def __init__(self
, *args
, **kwargs
):
9018 """__init__(int vgap=0, int hgap=0) -> GridBagSizer"""
9019 newobj
= _core
.new_GridBagSizer(*args
, **kwargs
)
9020 self
.this
= newobj
.this
9023 def Add(*args
, **kwargs
):
9025 Add(PyObject item, GBPosition pos, GBSpan span=DefaultSpan,
9026 int flag=0, int border=0, PyObject userData=None) -> bool
9028 return _core
.GridBagSizer_Add(*args
, **kwargs
)
9030 def AddItem(*args
, **kwargs
):
9031 """AddItem(GBSizerItem item) -> bool"""
9032 return _core
.GridBagSizer_AddItem(*args
, **kwargs
)
9034 def GetEmptyCellSize(*args
, **kwargs
):
9035 """GetEmptyCellSize() -> Size"""
9036 return _core
.GridBagSizer_GetEmptyCellSize(*args
, **kwargs
)
9038 def SetEmptyCellSize(*args
, **kwargs
):
9039 """SetEmptyCellSize(Size sz)"""
9040 return _core
.GridBagSizer_SetEmptyCellSize(*args
, **kwargs
)
9042 def GetItemPosition(*args
):
9044 GetItemPosition(Window window) -> GBPosition
9045 GetItemPosition(Sizer sizer) -> GBPosition
9046 GetItemPosition(size_t index) -> GBPosition
9048 return _core
.GridBagSizer_GetItemPosition(*args
)
9050 def SetItemPosition(*args
):
9052 SetItemPosition(Window window, GBPosition pos) -> bool
9053 SetItemPosition(Sizer sizer, GBPosition pos) -> bool
9054 SetItemPosition(size_t index, GBPosition pos) -> bool
9056 return _core
.GridBagSizer_SetItemPosition(*args
)
9058 def GetItemSpan(*args
):
9060 GetItemSpan(Window window) -> GBSpan
9061 GetItemSpan(Sizer sizer) -> GBSpan
9062 GetItemSpan(size_t index) -> GBSpan
9064 return _core
.GridBagSizer_GetItemSpan(*args
)
9066 def SetItemSpan(*args
):
9068 SetItemSpan(Window window, GBSpan span) -> bool
9069 SetItemSpan(Sizer sizer, GBSpan span) -> bool
9070 SetItemSpan(size_t index, GBSpan span) -> bool
9072 return _core
.GridBagSizer_SetItemSpan(*args
)
9074 def FindItem(*args
):
9076 FindItem(Window window) -> GBSizerItem
9077 FindItem(Sizer sizer) -> GBSizerItem
9079 return _core
.GridBagSizer_FindItem(*args
)
9081 def FindItemAtPosition(*args
, **kwargs
):
9082 """FindItemAtPosition(GBPosition pos) -> GBSizerItem"""
9083 return _core
.GridBagSizer_FindItemAtPosition(*args
, **kwargs
)
9085 def FindItemAtPoint(*args
, **kwargs
):
9086 """FindItemAtPoint(Point pt) -> GBSizerItem"""
9087 return _core
.GridBagSizer_FindItemAtPoint(*args
, **kwargs
)
9089 def FindItemWithData(*args
, **kwargs
):
9090 """FindItemWithData(Object userData) -> GBSizerItem"""
9091 return _core
.GridBagSizer_FindItemWithData(*args
, **kwargs
)
9093 def RecalcSizes(*args
, **kwargs
):
9095 return _core
.GridBagSizer_RecalcSizes(*args
, **kwargs
)
9097 def CalcMin(*args
, **kwargs
):
9098 """CalcMin() -> Size"""
9099 return _core
.GridBagSizer_CalcMin(*args
, **kwargs
)
9101 def CheckForIntersection(*args
):
9103 CheckForIntersection(GBSizerItem item, GBSizerItem excludeItem=None) -> bool
9104 CheckForIntersection(GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool
9106 return _core
.GridBagSizer_CheckForIntersection(*args
)
9109 class GridBagSizerPtr(GridBagSizer
):
9110 def __init__(self
, this
):
9112 if not hasattr(self
,"thisown"): self
.thisown
= 0
9113 self
.__class
__ = GridBagSizer
9114 _core
.GridBagSizer_swigregister(GridBagSizerPtr
)
9116 #---------------------------------------------------------------------------
9121 Bottom
= _core
.Bottom
9123 Height
= _core
.Height
9124 Centre
= _core
.Centre
9125 Center
= _core
.Center
9126 CentreX
= _core
.CentreX
9127 CentreY
= _core
.CentreY
9128 Unconstrained
= _core
.Unconstrained
9130 PercentOf
= _core
.PercentOf
9133 LeftOf
= _core
.LeftOf
9134 RightOf
= _core
.RightOf
9135 SameAs
= _core
.SameAs
9136 Absolute
= _core
.Absolute
9137 class IndividualLayoutConstraint(Object
):
9139 Objects of this class are stored in the wx.LayoutConstraint class as one of
9140 eight possible constraints that a window can be involved in. You will never
9141 need to create an instance of wx.IndividualLayoutConstraint, rather you should
9142 use create a wx.LayoutContstraints instance and use the individual contstraints
9145 Constraints are initially set to have the relationship wx.Unconstrained, which
9146 means that their values should be calculated by looking at known constraints.
9148 The Edge specifies the type of edge or dimension of a window.
9152 wx.Left The left edge.
9153 wx.Top The top edge.
9154 wx.Right The right edge.
9155 wx.Bottom The bottom edge.
9156 wx.CentreX The x-coordinate of the centre of the window.
9157 wx.CentreY The y-coordinate of the centre of the window.
9160 The Relationship specifies the relationship that this edge or dimension has
9161 with another specified edge or dimension. Normally, the user doesn't use these
9162 directly because functions such as Below and RightOf are a convenience for
9163 using the more general Set function.
9167 wx.Unconstrained The edge or dimension is unconstrained
9168 (the default for edges.)
9169 wx.AsIs The edge or dimension is to be taken from the current
9170 window position or size (the default for dimensions.)
9171 wx.Above The edge should be above another edge.
9172 wx.Below The edge should be below another edge.
9173 wx.LeftOf The edge should be to the left of another edge.
9174 wx.RightOf The edge should be to the right of another edge.
9175 wx.SameAs The edge or dimension should be the same as another edge
9177 wx.PercentOf The edge or dimension should be a percentage of another
9179 wx.Absolute The edge or dimension should be a given absolute value.
9183 def __init__(self
): raise RuntimeError, "No constructor defined"
9185 return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
9186 def Set(*args
, **kwargs
):
9187 """Set(int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN)"""
9188 return _core
.IndividualLayoutConstraint_Set(*args
, **kwargs
)
9190 def LeftOf(*args
, **kwargs
):
9192 LeftOf(Window sibling, int marg=0)
9194 Sibling relationship
9196 return _core
.IndividualLayoutConstraint_LeftOf(*args
, **kwargs
)
9198 def RightOf(*args
, **kwargs
):
9200 RightOf(Window sibling, int marg=0)
9202 Sibling relationship
9204 return _core
.IndividualLayoutConstraint_RightOf(*args
, **kwargs
)
9206 def Above(*args
, **kwargs
):
9208 Above(Window sibling, int marg=0)
9210 Sibling relationship
9212 return _core
.IndividualLayoutConstraint_Above(*args
, **kwargs
)
9214 def Below(*args
, **kwargs
):
9216 Below(Window sibling, int marg=0)
9218 Sibling relationship
9220 return _core
.IndividualLayoutConstraint_Below(*args
, **kwargs
)
9222 def SameAs(*args
, **kwargs
):
9224 SameAs(Window otherW, int edge, int marg=0)
9226 'Same edge' alignment
9228 return _core
.IndividualLayoutConstraint_SameAs(*args
, **kwargs
)
9230 def PercentOf(*args
, **kwargs
):
9232 PercentOf(Window otherW, int wh, int per)
9234 The edge is a percentage of the other window's edge
9236 return _core
.IndividualLayoutConstraint_PercentOf(*args
, **kwargs
)
9238 def Absolute(*args
, **kwargs
):
9242 Edge has absolute value
9244 return _core
.IndividualLayoutConstraint_Absolute(*args
, **kwargs
)
9246 def Unconstrained(*args
, **kwargs
):
9250 Dimension is unconstrained
9252 return _core
.IndividualLayoutConstraint_Unconstrained(*args
, **kwargs
)
9254 def AsIs(*args
, **kwargs
):
9258 Dimension is 'as is' (use current size settings)
9260 return _core
.IndividualLayoutConstraint_AsIs(*args
, **kwargs
)
9262 def GetOtherWindow(*args
, **kwargs
):
9263 """GetOtherWindow() -> Window"""
9264 return _core
.IndividualLayoutConstraint_GetOtherWindow(*args
, **kwargs
)
9266 def GetMyEdge(*args
, **kwargs
):
9267 """GetMyEdge() -> int"""
9268 return _core
.IndividualLayoutConstraint_GetMyEdge(*args
, **kwargs
)
9270 def SetEdge(*args
, **kwargs
):
9271 """SetEdge(int which)"""
9272 return _core
.IndividualLayoutConstraint_SetEdge(*args
, **kwargs
)
9274 def SetValue(*args
, **kwargs
):
9275 """SetValue(int v)"""
9276 return _core
.IndividualLayoutConstraint_SetValue(*args
, **kwargs
)
9278 def GetMargin(*args
, **kwargs
):
9279 """GetMargin() -> int"""
9280 return _core
.IndividualLayoutConstraint_GetMargin(*args
, **kwargs
)
9282 def SetMargin(*args
, **kwargs
):
9283 """SetMargin(int m)"""
9284 return _core
.IndividualLayoutConstraint_SetMargin(*args
, **kwargs
)
9286 def GetValue(*args
, **kwargs
):
9287 """GetValue() -> int"""
9288 return _core
.IndividualLayoutConstraint_GetValue(*args
, **kwargs
)
9290 def GetPercent(*args
, **kwargs
):
9291 """GetPercent() -> int"""
9292 return _core
.IndividualLayoutConstraint_GetPercent(*args
, **kwargs
)
9294 def GetOtherEdge(*args
, **kwargs
):
9295 """GetOtherEdge() -> int"""
9296 return _core
.IndividualLayoutConstraint_GetOtherEdge(*args
, **kwargs
)
9298 def GetDone(*args
, **kwargs
):
9299 """GetDone() -> bool"""
9300 return _core
.IndividualLayoutConstraint_GetDone(*args
, **kwargs
)
9302 def SetDone(*args
, **kwargs
):
9303 """SetDone(bool d)"""
9304 return _core
.IndividualLayoutConstraint_SetDone(*args
, **kwargs
)
9306 def GetRelationship(*args
, **kwargs
):
9307 """GetRelationship() -> int"""
9308 return _core
.IndividualLayoutConstraint_GetRelationship(*args
, **kwargs
)
9310 def SetRelationship(*args
, **kwargs
):
9311 """SetRelationship(int r)"""
9312 return _core
.IndividualLayoutConstraint_SetRelationship(*args
, **kwargs
)
9314 def ResetIfWin(*args
, **kwargs
):
9316 ResetIfWin(Window otherW) -> bool
9318 Reset constraint if it mentions otherWin
9320 return _core
.IndividualLayoutConstraint_ResetIfWin(*args
, **kwargs
)
9322 def SatisfyConstraint(*args
, **kwargs
):
9324 SatisfyConstraint(LayoutConstraints constraints, Window win) -> bool
9326 Try to satisfy constraint
9328 return _core
.IndividualLayoutConstraint_SatisfyConstraint(*args
, **kwargs
)
9330 def GetEdge(*args
, **kwargs
):
9332 GetEdge(int which, Window thisWin, Window other) -> int
9334 Get the value of this edge or dimension, or if this
9335 is not determinable, -1.
9337 return _core
.IndividualLayoutConstraint_GetEdge(*args
, **kwargs
)
9340 class IndividualLayoutConstraintPtr(IndividualLayoutConstraint
):
9341 def __init__(self
, this
):
9343 if not hasattr(self
,"thisown"): self
.thisown
= 0
9344 self
.__class
__ = IndividualLayoutConstraint
9345 _core
.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr
)
9347 class LayoutConstraints(Object
):
9349 Note: constraints are now deprecated and you should use sizers instead.
9351 Objects of this class can be associated with a window to define its layout
9352 constraints, with respect to siblings or its parent.
9354 The class consists of the following eight constraints of class
9355 wx.IndividualLayoutConstraint, some or all of which should be accessed
9356 directly to set the appropriate constraints.
9358 * left: represents the left hand edge of the window
9359 * right: represents the right hand edge of the window
9360 * top: represents the top edge of the window
9361 * bottom: represents the bottom edge of the window
9362 * width: represents the width of the window
9363 * height: represents the height of the window
9364 * centreX: represents the horizontal centre point of the window
9365 * centreY: represents the vertical centre point of the window
9367 Most constraints are initially set to have the relationship wxUnconstrained,
9368 which means that their values should be calculated by looking at known
9369 constraints. The exceptions are width and height, which are set to wxAsIs to
9370 ensure that if the user does not specify a constraint, the existing width and
9371 height will be used, to be compatible with panel items which often have take a
9372 default size. If the constraint is wxAsIs, the dimension will not be changed.
9376 return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
9377 left
= property(_core
.LayoutConstraints_left_get
)
9378 top
= property(_core
.LayoutConstraints_top_get
)
9379 right
= property(_core
.LayoutConstraints_right_get
)
9380 bottom
= property(_core
.LayoutConstraints_bottom_get
)
9381 width
= property(_core
.LayoutConstraints_width_get
)
9382 height
= property(_core
.LayoutConstraints_height_get
)
9383 centreX
= property(_core
.LayoutConstraints_centreX_get
)
9384 centreY
= property(_core
.LayoutConstraints_centreY_get
)
9385 def __init__(self
, *args
, **kwargs
):
9386 """__init__() -> LayoutConstraints"""
9387 newobj
= _core
.new_LayoutConstraints(*args
, **kwargs
)
9388 self
.this
= newobj
.this
9391 def SatisfyConstraints(*args
, **kwargs
):
9392 """SatisfyConstraints(Window win) -> (areSatisfied, noChanges)"""
9393 return _core
.LayoutConstraints_SatisfyConstraints(*args
, **kwargs
)
9395 def AreSatisfied(*args
, **kwargs
):
9396 """AreSatisfied() -> bool"""
9397 return _core
.LayoutConstraints_AreSatisfied(*args
, **kwargs
)
9400 class LayoutConstraintsPtr(LayoutConstraints
):
9401 def __init__(self
, this
):
9403 if not hasattr(self
,"thisown"): self
.thisown
= 0
9404 self
.__class
__ = LayoutConstraints
9405 _core
.LayoutConstraints_swigregister(LayoutConstraintsPtr
)
9407 #----------------------------------------------------------------------------
9409 # Use Python's bool constants if available, make some if not
9413 __builtins__
.True = 1==1
9414 __builtins__
.False = 1==0
9415 def bool(value
): return not not value
9416 __builtins__
.bool = bool
9420 # workarounds for bad wxRTTI names
9421 __wxPyPtrTypeMap
['wxGauge95'] = 'wxGauge'
9422 __wxPyPtrTypeMap
['wxSlider95'] = 'wxSlider'
9423 __wxPyPtrTypeMap
['wxStatusBar95'] = 'wxStatusBar'
9426 #----------------------------------------------------------------------------
9427 # Load version numbers from __version__... Ensure that major and minor
9428 # versions are the same for both wxPython and wxWindows.
9430 from __version__
import *
9431 __version__
= VERSION_STRING
9433 assert MAJOR_VERSION
== _core
.MAJOR_VERSION
, "wxPython/wxWindows version mismatch"
9434 assert MINOR_VERSION
== _core
.MINOR_VERSION
, "wxPython/wxWindows version mismatch"
9435 if RELEASE_VERSION
!= _core
.RELEASE_VERSION
:
9437 warnings
.warn("wxPython/wxWindows release number mismatch")
9439 #----------------------------------------------------------------------------
9441 class PyDeadObjectError(AttributeError):
9444 class _wxPyDeadObject(object):
9446 Instances of wx objects that are OOR capable will have their __class__
9447 changed to this class when the C++ object is deleted. This should help
9448 prevent crashes due to referencing a bogus C++ pointer.
9450 reprStr
= "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)"
9451 attrStr
= "The C++ part of the %s object has been deleted, attribute access no longer allowed."
9454 if not hasattr(self
, "_name"):
9455 self
._name
= "[unknown]"
9456 return self
.reprStr
% self
._name
9458 def __getattr__(self
, *args
):
9459 if not hasattr(self
, "_name"):
9460 self
._name
= "[unknown]"
9461 raise PyDeadObjectError(self
.attrStr
% self
._name
)
9463 def __nonzero__(self
):
9468 class PyUnbornObjectError(AttributeError):
9471 class _wxPyUnbornObject(object):
9473 Some stock objects are created when the wx.core module is
9474 imported, but their C++ instance is not created until the wx.App
9475 object is created and initialized. These object instances will
9476 temporarily have their __class__ changed to this class so an
9477 exception will be raised if they are used before the C++ instance
9481 reprStr
= "wxPython wrapper for UNBORN object! (The C++ object is not initialized yet.)"
9482 attrStr
= "The C++ part of this object has not been initialized, attribute access not allowed."
9485 #if not hasattr(self, "_name"):
9486 # self._name = "[unknown]"
9487 return self
.reprStr
#% self._name
9489 def __getattr__(self
, *args
):
9490 #if not hasattr(self, "_name"):
9491 # self._name = "[unknown]"
9492 raise PyUnbornObjectError(self
.attrStr
) # % self._name )
9494 def __nonzero__(self
):
9498 #----------------------------------------------------------------------------
9499 _wxPyCallAfterId
= None
9501 def CallAfter(callable, *args
, **kw
):
9503 Call the specified function after the current and pending event
9504 handlers have been completed. This is also good for making GUI
9505 method calls from non-GUI threads.
9508 assert app
, 'No wxApp created yet'
9510 global _wxPyCallAfterId
9511 if _wxPyCallAfterId
is None:
9512 _wxPyCallAfterId
= wx
.NewEventType()
9513 app
.Connect(-1, -1, _wxPyCallAfterId
,
9514 lambda event
: event
.callable(*event
.args
, **event
.kw
) )
9516 evt
.SetEventType(_wxPyCallAfterId
)
9517 evt
.callable = callable
9520 wx
.PostEvent(app
, evt
)
9523 #----------------------------------------------------------------------------
9528 A convenience class for wx.Timer, that calls the given callable
9529 object once after the given amount of milliseconds, passing any
9530 positional or keyword args. The return value of the callable is
9531 availbale after it has been run with the GetResult method.
9533 If you don't need to get the return value or restart the timer
9534 then there is no need to hold a reference to this object. It will
9535 hold a reference to itself while the timer is running (the timer
9536 has a reference to self.Notify) but the cycle will be broken when
9537 the timer completes, automatically cleaning up the wx.FutureCall
9540 def __init__(self
, millis
, callable, *args
, **kwargs
):
9541 self
.millis
= millis
9542 self
.callable = callable
9543 self
.SetArgs(*args
, **kwargs
)
9545 self
.running
= False
9555 def Start(self
, millis
=None, *args
, **kwargs
):
9560 if millis
is not None:
9561 self
.millis
= millis
9563 self
.SetArgs(*args
, **kwargs
)
9565 self
.timer
= wx
.PyTimer(self
.Notify
)
9566 self
.timer
.Start(self
.millis
, wx
.TIMER_ONE_SHOT
)
9573 Stop and destroy the timer.
9575 if self
.timer
is not None:
9580 def GetInterval(self
):
9581 if self
.timer
is not None:
9582 return self
.timer
.GetInterval()
9587 def IsRunning(self
):
9588 return self
.timer
is not None and self
.timer
.IsRunning()
9591 def SetArgs(self
, *args
, **kwargs
):
9593 (Re)set the args passed to the callable object. This is
9594 useful in conjunction with Restart if you want to schedule a
9595 new call to the same callable object but with different
9599 self
.kwargs
= kwargs
9605 def GetResult(self
):
9610 The timer has expired so call the callable.
9612 if self
.callable and getattr(self
.callable, 'im_self', True):
9614 self
.running
= False
9615 self
.result
= self
.callable(*self
.args
, **self
.kwargs
)
9617 if not self
.running
:
9618 # if it wasn't restarted, then cleanup
9619 wx
.CallAfter(self
.Stop
)
9622 #----------------------------------------------------------------------------
9623 #----------------------------------------------------------------------------
9625 # Import other modules in this package that should show up in the
9626 # "core" wx namespace
9628 from windows
import *
9629 from controls
import *
9633 # Fixup the stock objects since they can't be used yet. (They will be
9634 # restored in wx.PyApp.OnInit.)
9635 _core
._wxPyFixStockObjects
()
9637 #----------------------------------------------------------------------------
9638 #----------------------------------------------------------------------------