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__
] 
  16 #---------------------------------------------------------------------------- 
  18 def _deprecated(callable, msg
=None): 
  20     Create a wrapper function that will raise a DeprecationWarning 
  21     before calling the callable. 
  24         msg 
= "%s is deprecated" % callable 
  25     def deprecatedWrapper(*args
, **kwargs
): 
  27         warnings
.warn(msg
, DeprecationWarning, stacklevel
=2) 
  28         return callable(*args
, **kwargs
) 
  29     deprecatedWrapper
.__doc
__ = msg
 
  30     return deprecatedWrapper
 
  33 #---------------------------------------------------------------------------- 
  35 NOT_FOUND 
= _core_
.NOT_FOUND
 
  36 VSCROLL 
= _core_
.VSCROLL
 
  37 HSCROLL 
= _core_
.HSCROLL
 
  38 CAPTION 
= _core_
.CAPTION
 
  39 DOUBLE_BORDER 
= _core_
.DOUBLE_BORDER
 
  40 SUNKEN_BORDER 
= _core_
.SUNKEN_BORDER
 
  41 RAISED_BORDER 
= _core_
.RAISED_BORDER
 
  42 BORDER 
= _core_
.BORDER
 
  43 SIMPLE_BORDER 
= _core_
.SIMPLE_BORDER
 
  44 STATIC_BORDER 
= _core_
.STATIC_BORDER
 
  45 TRANSPARENT_WINDOW 
= _core_
.TRANSPARENT_WINDOW
 
  46 NO_BORDER 
= _core_
.NO_BORDER
 
  47 TAB_TRAVERSAL 
= _core_
.TAB_TRAVERSAL
 
  48 WANTS_CHARS 
= _core_
.WANTS_CHARS
 
  49 POPUP_WINDOW 
= _core_
.POPUP_WINDOW
 
  50 CENTER_FRAME 
= _core_
.CENTER_FRAME
 
  51 CENTRE_ON_SCREEN 
= _core_
.CENTRE_ON_SCREEN
 
  52 CENTER_ON_SCREEN 
= _core_
.CENTER_ON_SCREEN
 
  53 ED_CLIENT_MARGIN 
= _core_
.ED_CLIENT_MARGIN
 
  54 ED_BUTTONS_BOTTOM 
= _core_
.ED_BUTTONS_BOTTOM
 
  55 ED_BUTTONS_RIGHT 
= _core_
.ED_BUTTONS_RIGHT
 
  56 ED_STATIC_LINE 
= _core_
.ED_STATIC_LINE
 
  57 EXT_DIALOG_STYLE 
= _core_
.EXT_DIALOG_STYLE
 
  58 CLIP_CHILDREN 
= _core_
.CLIP_CHILDREN
 
  59 CLIP_SIBLINGS 
= _core_
.CLIP_SIBLINGS
 
  60 ALWAYS_SHOW_SB 
= _core_
.ALWAYS_SHOW_SB
 
  61 RETAINED 
= _core_
.RETAINED
 
  62 BACKINGSTORE 
= _core_
.BACKINGSTORE
 
  63 COLOURED 
= _core_
.COLOURED
 
  64 FIXED_LENGTH 
= _core_
.FIXED_LENGTH
 
  65 LB_NEEDED_SB 
= _core_
.LB_NEEDED_SB
 
  66 LB_ALWAYS_SB 
= _core_
.LB_ALWAYS_SB
 
  67 LB_SORT 
= _core_
.LB_SORT
 
  68 LB_SINGLE 
= _core_
.LB_SINGLE
 
  69 LB_MULTIPLE 
= _core_
.LB_MULTIPLE
 
  70 LB_EXTENDED 
= _core_
.LB_EXTENDED
 
  71 LB_OWNERDRAW 
= _core_
.LB_OWNERDRAW
 
  72 LB_HSCROLL 
= _core_
.LB_HSCROLL
 
  73 PROCESS_ENTER 
= _core_
.PROCESS_ENTER
 
  74 PASSWORD 
= _core_
.PASSWORD
 
  75 CB_SIMPLE 
= _core_
.CB_SIMPLE
 
  76 CB_DROPDOWN 
= _core_
.CB_DROPDOWN
 
  77 CB_SORT 
= _core_
.CB_SORT
 
  78 CB_READONLY 
= _core_
.CB_READONLY
 
  79 RA_HORIZONTAL 
= _core_
.RA_HORIZONTAL
 
  80 RA_VERTICAL 
= _core_
.RA_VERTICAL
 
  81 RA_SPECIFY_ROWS 
= _core_
.RA_SPECIFY_ROWS
 
  82 RA_SPECIFY_COLS 
= _core_
.RA_SPECIFY_COLS
 
  83 RB_GROUP 
= _core_
.RB_GROUP
 
  84 RB_SINGLE 
= _core_
.RB_SINGLE
 
  85 SL_HORIZONTAL 
= _core_
.SL_HORIZONTAL
 
  86 SL_VERTICAL 
= _core_
.SL_VERTICAL
 
  87 SL_AUTOTICKS 
= _core_
.SL_AUTOTICKS
 
  88 SL_LABELS 
= _core_
.SL_LABELS
 
  89 SL_LEFT 
= _core_
.SL_LEFT
 
  90 SL_TOP 
= _core_
.SL_TOP
 
  91 SL_RIGHT 
= _core_
.SL_RIGHT
 
  92 SL_BOTTOM 
= _core_
.SL_BOTTOM
 
  93 SL_BOTH 
= _core_
.SL_BOTH
 
  94 SL_SELRANGE 
= _core_
.SL_SELRANGE
 
  95 SB_HORIZONTAL 
= _core_
.SB_HORIZONTAL
 
  96 SB_VERTICAL 
= _core_
.SB_VERTICAL
 
  97 ST_SIZEGRIP 
= _core_
.ST_SIZEGRIP
 
  98 ST_NO_AUTORESIZE 
= _core_
.ST_NO_AUTORESIZE
 
  99 FLOOD_SURFACE 
= _core_
.FLOOD_SURFACE
 
 100 FLOOD_BORDER 
= _core_
.FLOOD_BORDER
 
 101 ODDEVEN_RULE 
= _core_
.ODDEVEN_RULE
 
 102 WINDING_RULE 
= _core_
.WINDING_RULE
 
 103 TOOL_TOP 
= _core_
.TOOL_TOP
 
 104 TOOL_BOTTOM 
= _core_
.TOOL_BOTTOM
 
 105 TOOL_LEFT 
= _core_
.TOOL_LEFT
 
 106 TOOL_RIGHT 
= _core_
.TOOL_RIGHT
 
 108 YES_NO 
= _core_
.YES_NO
 
 109 CANCEL 
= _core_
.CANCEL
 
 112 NO_DEFAULT 
= _core_
.NO_DEFAULT
 
 113 YES_DEFAULT 
= _core_
.YES_DEFAULT
 
 114 ICON_EXCLAMATION 
= _core_
.ICON_EXCLAMATION
 
 115 ICON_HAND 
= _core_
.ICON_HAND
 
 116 ICON_QUESTION 
= _core_
.ICON_QUESTION
 
 117 ICON_INFORMATION 
= _core_
.ICON_INFORMATION
 
 118 ICON_STOP 
= _core_
.ICON_STOP
 
 119 ICON_ASTERISK 
= _core_
.ICON_ASTERISK
 
 120 ICON_MASK 
= _core_
.ICON_MASK
 
 121 ICON_WARNING 
= _core_
.ICON_WARNING
 
 122 ICON_ERROR 
= _core_
.ICON_ERROR
 
 123 FORWARD 
= _core_
.FORWARD
 
 124 BACKWARD 
= _core_
.BACKWARD
 
 129 SIZE_AUTO_WIDTH 
= _core_
.SIZE_AUTO_WIDTH
 
 130 SIZE_AUTO_HEIGHT 
= _core_
.SIZE_AUTO_HEIGHT
 
 131 SIZE_AUTO 
= _core_
.SIZE_AUTO
 
 132 SIZE_USE_EXISTING 
= _core_
.SIZE_USE_EXISTING
 
 133 SIZE_ALLOW_MINUS_ONE 
= _core_
.SIZE_ALLOW_MINUS_ONE
 
 134 PORTRAIT 
= _core_
.PORTRAIT
 
 135 LANDSCAPE 
= _core_
.LANDSCAPE
 
 136 PRINT_QUALITY_HIGH 
= _core_
.PRINT_QUALITY_HIGH
 
 137 PRINT_QUALITY_MEDIUM 
= _core_
.PRINT_QUALITY_MEDIUM
 
 138 PRINT_QUALITY_LOW 
= _core_
.PRINT_QUALITY_LOW
 
 139 PRINT_QUALITY_DRAFT 
= _core_
.PRINT_QUALITY_DRAFT
 
 140 ID_ANY 
= _core_
.ID_ANY
 
 141 ID_SEPARATOR 
= _core_
.ID_SEPARATOR
 
 142 ID_LOWEST 
= _core_
.ID_LOWEST
 
 143 ID_OPEN 
= _core_
.ID_OPEN
 
 144 ID_CLOSE 
= _core_
.ID_CLOSE
 
 145 ID_NEW 
= _core_
.ID_NEW
 
 146 ID_SAVE 
= _core_
.ID_SAVE
 
 147 ID_SAVEAS 
= _core_
.ID_SAVEAS
 
 148 ID_REVERT 
= _core_
.ID_REVERT
 
 149 ID_EXIT 
= _core_
.ID_EXIT
 
 150 ID_UNDO 
= _core_
.ID_UNDO
 
 151 ID_REDO 
= _core_
.ID_REDO
 
 152 ID_HELP 
= _core_
.ID_HELP
 
 153 ID_PRINT 
= _core_
.ID_PRINT
 
 154 ID_PRINT_SETUP 
= _core_
.ID_PRINT_SETUP
 
 155 ID_PREVIEW 
= _core_
.ID_PREVIEW
 
 156 ID_ABOUT 
= _core_
.ID_ABOUT
 
 157 ID_HELP_CONTENTS 
= _core_
.ID_HELP_CONTENTS
 
 158 ID_HELP_COMMANDS 
= _core_
.ID_HELP_COMMANDS
 
 159 ID_HELP_PROCEDURES 
= _core_
.ID_HELP_PROCEDURES
 
 160 ID_HELP_CONTEXT 
= _core_
.ID_HELP_CONTEXT
 
 161 ID_CLOSE_ALL 
= _core_
.ID_CLOSE_ALL
 
 162 ID_PREFERENCES 
= _core_
.ID_PREFERENCES
 
 163 ID_CUT 
= _core_
.ID_CUT
 
 164 ID_COPY 
= _core_
.ID_COPY
 
 165 ID_PASTE 
= _core_
.ID_PASTE
 
 166 ID_CLEAR 
= _core_
.ID_CLEAR
 
 167 ID_FIND 
= _core_
.ID_FIND
 
 168 ID_DUPLICATE 
= _core_
.ID_DUPLICATE
 
 169 ID_SELECTALL 
= _core_
.ID_SELECTALL
 
 170 ID_DELETE 
= _core_
.ID_DELETE
 
 171 ID_REPLACE 
= _core_
.ID_REPLACE
 
 172 ID_REPLACE_ALL 
= _core_
.ID_REPLACE_ALL
 
 173 ID_PROPERTIES 
= _core_
.ID_PROPERTIES
 
 174 ID_VIEW_DETAILS 
= _core_
.ID_VIEW_DETAILS
 
 175 ID_VIEW_LARGEICONS 
= _core_
.ID_VIEW_LARGEICONS
 
 176 ID_VIEW_SMALLICONS 
= _core_
.ID_VIEW_SMALLICONS
 
 177 ID_VIEW_LIST 
= _core_
.ID_VIEW_LIST
 
 178 ID_VIEW_SORTDATE 
= _core_
.ID_VIEW_SORTDATE
 
 179 ID_VIEW_SORTNAME 
= _core_
.ID_VIEW_SORTNAME
 
 180 ID_VIEW_SORTSIZE 
= _core_
.ID_VIEW_SORTSIZE
 
 181 ID_VIEW_SORTTYPE 
= _core_
.ID_VIEW_SORTTYPE
 
 182 ID_FILE1 
= _core_
.ID_FILE1
 
 183 ID_FILE2 
= _core_
.ID_FILE2
 
 184 ID_FILE3 
= _core_
.ID_FILE3
 
 185 ID_FILE4 
= _core_
.ID_FILE4
 
 186 ID_FILE5 
= _core_
.ID_FILE5
 
 187 ID_FILE6 
= _core_
.ID_FILE6
 
 188 ID_FILE7 
= _core_
.ID_FILE7
 
 189 ID_FILE8 
= _core_
.ID_FILE8
 
 190 ID_FILE9 
= _core_
.ID_FILE9
 
 192 ID_CANCEL 
= _core_
.ID_CANCEL
 
 193 ID_APPLY 
= _core_
.ID_APPLY
 
 194 ID_YES 
= _core_
.ID_YES
 
 196 ID_STATIC 
= _core_
.ID_STATIC
 
 197 ID_FORWARD 
= _core_
.ID_FORWARD
 
 198 ID_BACKWARD 
= _core_
.ID_BACKWARD
 
 199 ID_DEFAULT 
= _core_
.ID_DEFAULT
 
 200 ID_MORE 
= _core_
.ID_MORE
 
 201 ID_SETUP 
= _core_
.ID_SETUP
 
 202 ID_RESET 
= _core_
.ID_RESET
 
 203 ID_CONTEXT_HELP 
= _core_
.ID_CONTEXT_HELP
 
 204 ID_YESTOALL 
= _core_
.ID_YESTOALL
 
 205 ID_NOTOALL 
= _core_
.ID_NOTOALL
 
 206 ID_ABORT 
= _core_
.ID_ABORT
 
 207 ID_RETRY 
= _core_
.ID_RETRY
 
 208 ID_IGNORE 
= _core_
.ID_IGNORE
 
 209 ID_ADD 
= _core_
.ID_ADD
 
 210 ID_REMOVE 
= _core_
.ID_REMOVE
 
 212 ID_DOWN 
= _core_
.ID_DOWN
 
 213 ID_HOME 
= _core_
.ID_HOME
 
 214 ID_REFRESH 
= _core_
.ID_REFRESH
 
 215 ID_STOP 
= _core_
.ID_STOP
 
 216 ID_INDEX 
= _core_
.ID_INDEX
 
 217 ID_BOLD 
= _core_
.ID_BOLD
 
 218 ID_ITALIC 
= _core_
.ID_ITALIC
 
 219 ID_JUSTIFY_CENTER 
= _core_
.ID_JUSTIFY_CENTER
 
 220 ID_JUSTIFY_FILL 
= _core_
.ID_JUSTIFY_FILL
 
 221 ID_JUSTIFY_RIGHT 
= _core_
.ID_JUSTIFY_RIGHT
 
 222 ID_JUSTIFY_LEFT 
= _core_
.ID_JUSTIFY_LEFT
 
 223 ID_UNDERLINE 
= _core_
.ID_UNDERLINE
 
 224 ID_INDENT 
= _core_
.ID_INDENT
 
 225 ID_UNINDENT 
= _core_
.ID_UNINDENT
 
 226 ID_ZOOM_100 
= _core_
.ID_ZOOM_100
 
 227 ID_ZOOM_FIT 
= _core_
.ID_ZOOM_FIT
 
 228 ID_ZOOM_IN 
= _core_
.ID_ZOOM_IN
 
 229 ID_ZOOM_OUT 
= _core_
.ID_ZOOM_OUT
 
 230 ID_UNDELETE 
= _core_
.ID_UNDELETE
 
 231 ID_REVERT_TO_SAVED 
= _core_
.ID_REVERT_TO_SAVED
 
 232 ID_HIGHEST 
= _core_
.ID_HIGHEST
 
 235 HIDE_READONLY 
= _core_
.HIDE_READONLY
 
 236 OVERWRITE_PROMPT 
= _core_
.OVERWRITE_PROMPT
 
 237 FILE_MUST_EXIST 
= _core_
.FILE_MUST_EXIST
 
 238 MULTIPLE 
= _core_
.MULTIPLE
 
 239 CHANGE_DIR 
= _core_
.CHANGE_DIR
 
 240 ACCEL_ALT 
= _core_
.ACCEL_ALT
 
 241 ACCEL_CTRL 
= _core_
.ACCEL_CTRL
 
 242 ACCEL_SHIFT 
= _core_
.ACCEL_SHIFT
 
 243 ACCEL_NORMAL 
= _core_
.ACCEL_NORMAL
 
 244 PD_AUTO_HIDE 
= _core_
.PD_AUTO_HIDE
 
 245 PD_APP_MODAL 
= _core_
.PD_APP_MODAL
 
 246 PD_CAN_ABORT 
= _core_
.PD_CAN_ABORT
 
 247 PD_ELAPSED_TIME 
= _core_
.PD_ELAPSED_TIME
 
 248 PD_ESTIMATED_TIME 
= _core_
.PD_ESTIMATED_TIME
 
 249 PD_REMAINING_TIME 
= _core_
.PD_REMAINING_TIME
 
 250 DD_NEW_DIR_BUTTON 
= _core_
.DD_NEW_DIR_BUTTON
 
 251 DD_DEFAULT_STYLE 
= _core_
.DD_DEFAULT_STYLE
 
 252 MENU_TEAROFF 
= _core_
.MENU_TEAROFF
 
 253 MB_DOCKABLE 
= _core_
.MB_DOCKABLE
 
 254 NO_FULL_REPAINT_ON_RESIZE 
= _core_
.NO_FULL_REPAINT_ON_RESIZE
 
 255 FULL_REPAINT_ON_RESIZE 
= _core_
.FULL_REPAINT_ON_RESIZE
 
 256 LI_HORIZONTAL 
= _core_
.LI_HORIZONTAL
 
 257 LI_VERTICAL 
= _core_
.LI_VERTICAL
 
 258 WS_EX_VALIDATE_RECURSIVELY 
= _core_
.WS_EX_VALIDATE_RECURSIVELY
 
 259 WS_EX_BLOCK_EVENTS 
= _core_
.WS_EX_BLOCK_EVENTS
 
 260 WS_EX_TRANSIENT 
= _core_
.WS_EX_TRANSIENT
 
 261 WS_EX_THEMED_BACKGROUND 
= _core_
.WS_EX_THEMED_BACKGROUND
 
 262 WS_EX_PROCESS_IDLE 
= _core_
.WS_EX_PROCESS_IDLE
 
 263 WS_EX_PROCESS_UI_UPDATES 
= _core_
.WS_EX_PROCESS_UI_UPDATES
 
 264 MM_TEXT 
= _core_
.MM_TEXT
 
 265 MM_LOMETRIC 
= _core_
.MM_LOMETRIC
 
 266 MM_HIMETRIC 
= _core_
.MM_HIMETRIC
 
 267 MM_LOENGLISH 
= _core_
.MM_LOENGLISH
 
 268 MM_HIENGLISH 
= _core_
.MM_HIENGLISH
 
 269 MM_TWIPS 
= _core_
.MM_TWIPS
 
 270 MM_ISOTROPIC 
= _core_
.MM_ISOTROPIC
 
 271 MM_ANISOTROPIC 
= _core_
.MM_ANISOTROPIC
 
 272 MM_POINTS 
= _core_
.MM_POINTS
 
 273 MM_METRIC 
= _core_
.MM_METRIC
 
 274 CENTRE 
= _core_
.CENTRE
 
 275 CENTER 
= _core_
.CENTER
 
 276 HORIZONTAL 
= _core_
.HORIZONTAL
 
 277 VERTICAL 
= _core_
.VERTICAL
 
 284 BOTTOM 
= _core_
.BOTTOM
 
 290 ALIGN_NOT 
= _core_
.ALIGN_NOT
 
 291 ALIGN_CENTER_HORIZONTAL 
= _core_
.ALIGN_CENTER_HORIZONTAL
 
 292 ALIGN_CENTRE_HORIZONTAL 
= _core_
.ALIGN_CENTRE_HORIZONTAL
 
 293 ALIGN_LEFT 
= _core_
.ALIGN_LEFT
 
 294 ALIGN_TOP 
= _core_
.ALIGN_TOP
 
 295 ALIGN_RIGHT 
= _core_
.ALIGN_RIGHT
 
 296 ALIGN_BOTTOM 
= _core_
.ALIGN_BOTTOM
 
 297 ALIGN_CENTER_VERTICAL 
= _core_
.ALIGN_CENTER_VERTICAL
 
 298 ALIGN_CENTRE_VERTICAL 
= _core_
.ALIGN_CENTRE_VERTICAL
 
 299 ALIGN_CENTER 
= _core_
.ALIGN_CENTER
 
 300 ALIGN_CENTRE 
= _core_
.ALIGN_CENTRE
 
 301 ALIGN_MASK 
= _core_
.ALIGN_MASK
 
 302 STRETCH_NOT 
= _core_
.STRETCH_NOT
 
 303 SHRINK 
= _core_
.SHRINK
 
 305 EXPAND 
= _core_
.EXPAND
 
 306 SHAPED 
= _core_
.SHAPED
 
 307 FIXED_MINSIZE 
= _core_
.FIXED_MINSIZE
 
 309 ADJUST_MINSIZE 
= _core_
.ADJUST_MINSIZE
 
 310 BORDER_DEFAULT 
= _core_
.BORDER_DEFAULT
 
 311 BORDER_NONE 
= _core_
.BORDER_NONE
 
 312 BORDER_STATIC 
= _core_
.BORDER_STATIC
 
 313 BORDER_SIMPLE 
= _core_
.BORDER_SIMPLE
 
 314 BORDER_RAISED 
= _core_
.BORDER_RAISED
 
 315 BORDER_SUNKEN 
= _core_
.BORDER_SUNKEN
 
 316 BORDER_DOUBLE 
= _core_
.BORDER_DOUBLE
 
 317 BORDER_MASK 
= _core_
.BORDER_MASK
 
 318 BG_STYLE_SYSTEM 
= _core_
.BG_STYLE_SYSTEM
 
 319 BG_STYLE_COLOUR 
= _core_
.BG_STYLE_COLOUR
 
 320 BG_STYLE_CUSTOM 
= _core_
.BG_STYLE_CUSTOM
 
 321 DEFAULT 
= _core_
.DEFAULT
 
 322 DECORATIVE 
= _core_
.DECORATIVE
 
 324 SCRIPT 
= _core_
.SCRIPT
 
 326 MODERN 
= _core_
.MODERN
 
 327 TELETYPE 
= _core_
.TELETYPE
 
 328 VARIABLE 
= _core_
.VARIABLE
 
 330 NORMAL 
= _core_
.NORMAL
 
 333 ITALIC 
= _core_
.ITALIC
 
 337 LONG_DASH 
= _core_
.LONG_DASH
 
 338 SHORT_DASH 
= _core_
.SHORT_DASH
 
 339 DOT_DASH 
= _core_
.DOT_DASH
 
 340 USER_DASH 
= _core_
.USER_DASH
 
 341 TRANSPARENT 
= _core_
.TRANSPARENT
 
 342 STIPPLE 
= _core_
.STIPPLE
 
 343 BDIAGONAL_HATCH 
= _core_
.BDIAGONAL_HATCH
 
 344 CROSSDIAG_HATCH 
= _core_
.CROSSDIAG_HATCH
 
 345 FDIAGONAL_HATCH 
= _core_
.FDIAGONAL_HATCH
 
 346 CROSS_HATCH 
= _core_
.CROSS_HATCH
 
 347 HORIZONTAL_HATCH 
= _core_
.HORIZONTAL_HATCH
 
 348 VERTICAL_HATCH 
= _core_
.VERTICAL_HATCH
 
 349 JOIN_BEVEL 
= _core_
.JOIN_BEVEL
 
 350 JOIN_MITER 
= _core_
.JOIN_MITER
 
 351 JOIN_ROUND 
= _core_
.JOIN_ROUND
 
 352 CAP_ROUND 
= _core_
.CAP_ROUND
 
 353 CAP_PROJECTING 
= _core_
.CAP_PROJECTING
 
 354 CAP_BUTT 
= _core_
.CAP_BUTT
 
 357 INVERT 
= _core_
.INVERT
 
 358 OR_REVERSE 
= _core_
.OR_REVERSE
 
 359 AND_REVERSE 
= _core_
.AND_REVERSE
 
 362 AND_INVERT 
= _core_
.AND_INVERT
 
 366 SRC_INVERT 
= _core_
.SRC_INVERT
 
 367 OR_INVERT 
= _core_
.OR_INVERT
 
 371 WXK_BACK 
= _core_
.WXK_BACK
 
 372 WXK_TAB 
= _core_
.WXK_TAB
 
 373 WXK_RETURN 
= _core_
.WXK_RETURN
 
 374 WXK_ESCAPE 
= _core_
.WXK_ESCAPE
 
 375 WXK_SPACE 
= _core_
.WXK_SPACE
 
 376 WXK_DELETE 
= _core_
.WXK_DELETE
 
 377 WXK_START 
= _core_
.WXK_START
 
 378 WXK_LBUTTON 
= _core_
.WXK_LBUTTON
 
 379 WXK_RBUTTON 
= _core_
.WXK_RBUTTON
 
 380 WXK_CANCEL 
= _core_
.WXK_CANCEL
 
 381 WXK_MBUTTON 
= _core_
.WXK_MBUTTON
 
 382 WXK_CLEAR 
= _core_
.WXK_CLEAR
 
 383 WXK_SHIFT 
= _core_
.WXK_SHIFT
 
 384 WXK_ALT 
= _core_
.WXK_ALT
 
 385 WXK_CONTROL 
= _core_
.WXK_CONTROL
 
 386 WXK_MENU 
= _core_
.WXK_MENU
 
 387 WXK_PAUSE 
= _core_
.WXK_PAUSE
 
 388 WXK_CAPITAL 
= _core_
.WXK_CAPITAL
 
 389 WXK_PRIOR 
= _core_
.WXK_PRIOR
 
 390 WXK_NEXT 
= _core_
.WXK_NEXT
 
 391 WXK_END 
= _core_
.WXK_END
 
 392 WXK_HOME 
= _core_
.WXK_HOME
 
 393 WXK_LEFT 
= _core_
.WXK_LEFT
 
 394 WXK_UP 
= _core_
.WXK_UP
 
 395 WXK_RIGHT 
= _core_
.WXK_RIGHT
 
 396 WXK_DOWN 
= _core_
.WXK_DOWN
 
 397 WXK_SELECT 
= _core_
.WXK_SELECT
 
 398 WXK_PRINT 
= _core_
.WXK_PRINT
 
 399 WXK_EXECUTE 
= _core_
.WXK_EXECUTE
 
 400 WXK_SNAPSHOT 
= _core_
.WXK_SNAPSHOT
 
 401 WXK_INSERT 
= _core_
.WXK_INSERT
 
 402 WXK_HELP 
= _core_
.WXK_HELP
 
 403 WXK_NUMPAD0 
= _core_
.WXK_NUMPAD0
 
 404 WXK_NUMPAD1 
= _core_
.WXK_NUMPAD1
 
 405 WXK_NUMPAD2 
= _core_
.WXK_NUMPAD2
 
 406 WXK_NUMPAD3 
= _core_
.WXK_NUMPAD3
 
 407 WXK_NUMPAD4 
= _core_
.WXK_NUMPAD4
 
 408 WXK_NUMPAD5 
= _core_
.WXK_NUMPAD5
 
 409 WXK_NUMPAD6 
= _core_
.WXK_NUMPAD6
 
 410 WXK_NUMPAD7 
= _core_
.WXK_NUMPAD7
 
 411 WXK_NUMPAD8 
= _core_
.WXK_NUMPAD8
 
 412 WXK_NUMPAD9 
= _core_
.WXK_NUMPAD9
 
 413 WXK_MULTIPLY 
= _core_
.WXK_MULTIPLY
 
 414 WXK_ADD 
= _core_
.WXK_ADD
 
 415 WXK_SEPARATOR 
= _core_
.WXK_SEPARATOR
 
 416 WXK_SUBTRACT 
= _core_
.WXK_SUBTRACT
 
 417 WXK_DECIMAL 
= _core_
.WXK_DECIMAL
 
 418 WXK_DIVIDE 
= _core_
.WXK_DIVIDE
 
 419 WXK_F1 
= _core_
.WXK_F1
 
 420 WXK_F2 
= _core_
.WXK_F2
 
 421 WXK_F3 
= _core_
.WXK_F3
 
 422 WXK_F4 
= _core_
.WXK_F4
 
 423 WXK_F5 
= _core_
.WXK_F5
 
 424 WXK_F6 
= _core_
.WXK_F6
 
 425 WXK_F7 
= _core_
.WXK_F7
 
 426 WXK_F8 
= _core_
.WXK_F8
 
 427 WXK_F9 
= _core_
.WXK_F9
 
 428 WXK_F10 
= _core_
.WXK_F10
 
 429 WXK_F11 
= _core_
.WXK_F11
 
 430 WXK_F12 
= _core_
.WXK_F12
 
 431 WXK_F13 
= _core_
.WXK_F13
 
 432 WXK_F14 
= _core_
.WXK_F14
 
 433 WXK_F15 
= _core_
.WXK_F15
 
 434 WXK_F16 
= _core_
.WXK_F16
 
 435 WXK_F17 
= _core_
.WXK_F17
 
 436 WXK_F18 
= _core_
.WXK_F18
 
 437 WXK_F19 
= _core_
.WXK_F19
 
 438 WXK_F20 
= _core_
.WXK_F20
 
 439 WXK_F21 
= _core_
.WXK_F21
 
 440 WXK_F22 
= _core_
.WXK_F22
 
 441 WXK_F23 
= _core_
.WXK_F23
 
 442 WXK_F24 
= _core_
.WXK_F24
 
 443 WXK_NUMLOCK 
= _core_
.WXK_NUMLOCK
 
 444 WXK_SCROLL 
= _core_
.WXK_SCROLL
 
 445 WXK_PAGEUP 
= _core_
.WXK_PAGEUP
 
 446 WXK_PAGEDOWN 
= _core_
.WXK_PAGEDOWN
 
 447 WXK_NUMPAD_SPACE 
= _core_
.WXK_NUMPAD_SPACE
 
 448 WXK_NUMPAD_TAB 
= _core_
.WXK_NUMPAD_TAB
 
 449 WXK_NUMPAD_ENTER 
= _core_
.WXK_NUMPAD_ENTER
 
 450 WXK_NUMPAD_F1 
= _core_
.WXK_NUMPAD_F1
 
 451 WXK_NUMPAD_F2 
= _core_
.WXK_NUMPAD_F2
 
 452 WXK_NUMPAD_F3 
= _core_
.WXK_NUMPAD_F3
 
 453 WXK_NUMPAD_F4 
= _core_
.WXK_NUMPAD_F4
 
 454 WXK_NUMPAD_HOME 
= _core_
.WXK_NUMPAD_HOME
 
 455 WXK_NUMPAD_LEFT 
= _core_
.WXK_NUMPAD_LEFT
 
 456 WXK_NUMPAD_UP 
= _core_
.WXK_NUMPAD_UP
 
 457 WXK_NUMPAD_RIGHT 
= _core_
.WXK_NUMPAD_RIGHT
 
 458 WXK_NUMPAD_DOWN 
= _core_
.WXK_NUMPAD_DOWN
 
 459 WXK_NUMPAD_PRIOR 
= _core_
.WXK_NUMPAD_PRIOR
 
 460 WXK_NUMPAD_PAGEUP 
= _core_
.WXK_NUMPAD_PAGEUP
 
 461 WXK_NUMPAD_NEXT 
= _core_
.WXK_NUMPAD_NEXT
 
 462 WXK_NUMPAD_PAGEDOWN 
= _core_
.WXK_NUMPAD_PAGEDOWN
 
 463 WXK_NUMPAD_END 
= _core_
.WXK_NUMPAD_END
 
 464 WXK_NUMPAD_BEGIN 
= _core_
.WXK_NUMPAD_BEGIN
 
 465 WXK_NUMPAD_INSERT 
= _core_
.WXK_NUMPAD_INSERT
 
 466 WXK_NUMPAD_DELETE 
= _core_
.WXK_NUMPAD_DELETE
 
 467 WXK_NUMPAD_EQUAL 
= _core_
.WXK_NUMPAD_EQUAL
 
 468 WXK_NUMPAD_MULTIPLY 
= _core_
.WXK_NUMPAD_MULTIPLY
 
 469 WXK_NUMPAD_ADD 
= _core_
.WXK_NUMPAD_ADD
 
 470 WXK_NUMPAD_SEPARATOR 
= _core_
.WXK_NUMPAD_SEPARATOR
 
 471 WXK_NUMPAD_SUBTRACT 
= _core_
.WXK_NUMPAD_SUBTRACT
 
 472 WXK_NUMPAD_DECIMAL 
= _core_
.WXK_NUMPAD_DECIMAL
 
 473 WXK_NUMPAD_DIVIDE 
= _core_
.WXK_NUMPAD_DIVIDE
 
 474 WXK_WINDOWS_LEFT 
= _core_
.WXK_WINDOWS_LEFT
 
 475 WXK_WINDOWS_RIGHT 
= _core_
.WXK_WINDOWS_RIGHT
 
 476 WXK_WINDOWS_MENU 
= _core_
.WXK_WINDOWS_MENU
 
 477 PAPER_NONE 
= _core_
.PAPER_NONE
 
 478 PAPER_LETTER 
= _core_
.PAPER_LETTER
 
 479 PAPER_LEGAL 
= _core_
.PAPER_LEGAL
 
 480 PAPER_A4 
= _core_
.PAPER_A4
 
 481 PAPER_CSHEET 
= _core_
.PAPER_CSHEET
 
 482 PAPER_DSHEET 
= _core_
.PAPER_DSHEET
 
 483 PAPER_ESHEET 
= _core_
.PAPER_ESHEET
 
 484 PAPER_LETTERSMALL 
= _core_
.PAPER_LETTERSMALL
 
 485 PAPER_TABLOID 
= _core_
.PAPER_TABLOID
 
 486 PAPER_LEDGER 
= _core_
.PAPER_LEDGER
 
 487 PAPER_STATEMENT 
= _core_
.PAPER_STATEMENT
 
 488 PAPER_EXECUTIVE 
= _core_
.PAPER_EXECUTIVE
 
 489 PAPER_A3 
= _core_
.PAPER_A3
 
 490 PAPER_A4SMALL 
= _core_
.PAPER_A4SMALL
 
 491 PAPER_A5 
= _core_
.PAPER_A5
 
 492 PAPER_B4 
= _core_
.PAPER_B4
 
 493 PAPER_B5 
= _core_
.PAPER_B5
 
 494 PAPER_FOLIO 
= _core_
.PAPER_FOLIO
 
 495 PAPER_QUARTO 
= _core_
.PAPER_QUARTO
 
 496 PAPER_10X14 
= _core_
.PAPER_10X14
 
 497 PAPER_11X17 
= _core_
.PAPER_11X17
 
 498 PAPER_NOTE 
= _core_
.PAPER_NOTE
 
 499 PAPER_ENV_9 
= _core_
.PAPER_ENV_9
 
 500 PAPER_ENV_10 
= _core_
.PAPER_ENV_10
 
 501 PAPER_ENV_11 
= _core_
.PAPER_ENV_11
 
 502 PAPER_ENV_12 
= _core_
.PAPER_ENV_12
 
 503 PAPER_ENV_14 
= _core_
.PAPER_ENV_14
 
 504 PAPER_ENV_DL 
= _core_
.PAPER_ENV_DL
 
 505 PAPER_ENV_C5 
= _core_
.PAPER_ENV_C5
 
 506 PAPER_ENV_C3 
= _core_
.PAPER_ENV_C3
 
 507 PAPER_ENV_C4 
= _core_
.PAPER_ENV_C4
 
 508 PAPER_ENV_C6 
= _core_
.PAPER_ENV_C6
 
 509 PAPER_ENV_C65 
= _core_
.PAPER_ENV_C65
 
 510 PAPER_ENV_B4 
= _core_
.PAPER_ENV_B4
 
 511 PAPER_ENV_B5 
= _core_
.PAPER_ENV_B5
 
 512 PAPER_ENV_B6 
= _core_
.PAPER_ENV_B6
 
 513 PAPER_ENV_ITALY 
= _core_
.PAPER_ENV_ITALY
 
 514 PAPER_ENV_MONARCH 
= _core_
.PAPER_ENV_MONARCH
 
 515 PAPER_ENV_PERSONAL 
= _core_
.PAPER_ENV_PERSONAL
 
 516 PAPER_FANFOLD_US 
= _core_
.PAPER_FANFOLD_US
 
 517 PAPER_FANFOLD_STD_GERMAN 
= _core_
.PAPER_FANFOLD_STD_GERMAN
 
 518 PAPER_FANFOLD_LGL_GERMAN 
= _core_
.PAPER_FANFOLD_LGL_GERMAN
 
 519 PAPER_ISO_B4 
= _core_
.PAPER_ISO_B4
 
 520 PAPER_JAPANESE_POSTCARD 
= _core_
.PAPER_JAPANESE_POSTCARD
 
 521 PAPER_9X11 
= _core_
.PAPER_9X11
 
 522 PAPER_10X11 
= _core_
.PAPER_10X11
 
 523 PAPER_15X11 
= _core_
.PAPER_15X11
 
 524 PAPER_ENV_INVITE 
= _core_
.PAPER_ENV_INVITE
 
 525 PAPER_LETTER_EXTRA 
= _core_
.PAPER_LETTER_EXTRA
 
 526 PAPER_LEGAL_EXTRA 
= _core_
.PAPER_LEGAL_EXTRA
 
 527 PAPER_TABLOID_EXTRA 
= _core_
.PAPER_TABLOID_EXTRA
 
 528 PAPER_A4_EXTRA 
= _core_
.PAPER_A4_EXTRA
 
 529 PAPER_LETTER_TRANSVERSE 
= _core_
.PAPER_LETTER_TRANSVERSE
 
 530 PAPER_A4_TRANSVERSE 
= _core_
.PAPER_A4_TRANSVERSE
 
 531 PAPER_LETTER_EXTRA_TRANSVERSE 
= _core_
.PAPER_LETTER_EXTRA_TRANSVERSE
 
 532 PAPER_A_PLUS 
= _core_
.PAPER_A_PLUS
 
 533 PAPER_B_PLUS 
= _core_
.PAPER_B_PLUS
 
 534 PAPER_LETTER_PLUS 
= _core_
.PAPER_LETTER_PLUS
 
 535 PAPER_A4_PLUS 
= _core_
.PAPER_A4_PLUS
 
 536 PAPER_A5_TRANSVERSE 
= _core_
.PAPER_A5_TRANSVERSE
 
 537 PAPER_B5_TRANSVERSE 
= _core_
.PAPER_B5_TRANSVERSE
 
 538 PAPER_A3_EXTRA 
= _core_
.PAPER_A3_EXTRA
 
 539 PAPER_A5_EXTRA 
= _core_
.PAPER_A5_EXTRA
 
 540 PAPER_B5_EXTRA 
= _core_
.PAPER_B5_EXTRA
 
 541 PAPER_A2 
= _core_
.PAPER_A2
 
 542 PAPER_A3_TRANSVERSE 
= _core_
.PAPER_A3_TRANSVERSE
 
 543 PAPER_A3_EXTRA_TRANSVERSE 
= _core_
.PAPER_A3_EXTRA_TRANSVERSE
 
 544 DUPLEX_SIMPLEX 
= _core_
.DUPLEX_SIMPLEX
 
 545 DUPLEX_HORIZONTAL 
= _core_
.DUPLEX_HORIZONTAL
 
 546 DUPLEX_VERTICAL 
= _core_
.DUPLEX_VERTICAL
 
 547 ITEM_SEPARATOR 
= _core_
.ITEM_SEPARATOR
 
 548 ITEM_NORMAL 
= _core_
.ITEM_NORMAL
 
 549 ITEM_CHECK 
= _core_
.ITEM_CHECK
 
 550 ITEM_RADIO 
= _core_
.ITEM_RADIO
 
 551 ITEM_MAX 
= _core_
.ITEM_MAX
 
 552 HT_NOWHERE 
= _core_
.HT_NOWHERE
 
 553 HT_SCROLLBAR_FIRST 
= _core_
.HT_SCROLLBAR_FIRST
 
 554 HT_SCROLLBAR_ARROW_LINE_1 
= _core_
.HT_SCROLLBAR_ARROW_LINE_1
 
 555 HT_SCROLLBAR_ARROW_LINE_2 
= _core_
.HT_SCROLLBAR_ARROW_LINE_2
 
 556 HT_SCROLLBAR_ARROW_PAGE_1 
= _core_
.HT_SCROLLBAR_ARROW_PAGE_1
 
 557 HT_SCROLLBAR_ARROW_PAGE_2 
= _core_
.HT_SCROLLBAR_ARROW_PAGE_2
 
 558 HT_SCROLLBAR_THUMB 
= _core_
.HT_SCROLLBAR_THUMB
 
 559 HT_SCROLLBAR_BAR_1 
= _core_
.HT_SCROLLBAR_BAR_1
 
 560 HT_SCROLLBAR_BAR_2 
= _core_
.HT_SCROLLBAR_BAR_2
 
 561 HT_SCROLLBAR_LAST 
= _core_
.HT_SCROLLBAR_LAST
 
 562 HT_WINDOW_OUTSIDE 
= _core_
.HT_WINDOW_OUTSIDE
 
 563 HT_WINDOW_INSIDE 
= _core_
.HT_WINDOW_INSIDE
 
 564 HT_WINDOW_VERT_SCROLLBAR 
= _core_
.HT_WINDOW_VERT_SCROLLBAR
 
 565 HT_WINDOW_HORZ_SCROLLBAR 
= _core_
.HT_WINDOW_HORZ_SCROLLBAR
 
 566 HT_WINDOW_CORNER 
= _core_
.HT_WINDOW_CORNER
 
 567 HT_MAX 
= _core_
.HT_MAX
 
 568 MOD_NONE 
= _core_
.MOD_NONE
 
 569 MOD_ALT 
= _core_
.MOD_ALT
 
 570 MOD_CONTROL 
= _core_
.MOD_CONTROL
 
 571 MOD_SHIFT 
= _core_
.MOD_SHIFT
 
 572 MOD_WIN 
= _core_
.MOD_WIN
 
 573 UPDATE_UI_NONE 
= _core_
.UPDATE_UI_NONE
 
 574 UPDATE_UI_RECURSE 
= _core_
.UPDATE_UI_RECURSE
 
 575 UPDATE_UI_FROMIDLE 
= _core_
.UPDATE_UI_FROMIDLE
 
 576 #--------------------------------------------------------------------------- 
 578 class Object(object): 
 580     The base class for most wx objects, although in wxPython not 
 581     much functionality is needed nor exposed. 
 583     def __init__(self
): raise RuntimeError, "No constructor defined" 
 585         return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 586     def GetClassName(*args
, **kwargs
): 
 588         GetClassName(self) -> String 
 590         Returns the class name of the C++ class using wxRTTI. 
 592         return _core_
.Object_GetClassName(*args
, **kwargs
) 
 594     def Destroy(*args
, **kwargs
): 
 598         Deletes the C++ object this Python object is a proxy for. 
 600         return _core_
.Object_Destroy(*args
, **kwargs
) 
 603 class ObjectPtr(Object
): 
 604     def __init__(self
, this
): 
 606         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 607         self
.__class
__ = Object
 
 608 _core_
.Object_swigregister(ObjectPtr
) 
 609 _wxPySetDictionary 
= _core_
._wxPySetDictionary
 
 611 _wxPyFixStockObjects 
= _core_
._wxPyFixStockObjects
 
 614 EmptyString 
= cvar
.EmptyString
 
 616 #--------------------------------------------------------------------------- 
 618 BITMAP_TYPE_INVALID 
= _core_
.BITMAP_TYPE_INVALID
 
 619 BITMAP_TYPE_BMP 
= _core_
.BITMAP_TYPE_BMP
 
 620 BITMAP_TYPE_ICO 
= _core_
.BITMAP_TYPE_ICO
 
 621 BITMAP_TYPE_CUR 
= _core_
.BITMAP_TYPE_CUR
 
 622 BITMAP_TYPE_XBM 
= _core_
.BITMAP_TYPE_XBM
 
 623 BITMAP_TYPE_XBM_DATA 
= _core_
.BITMAP_TYPE_XBM_DATA
 
 624 BITMAP_TYPE_XPM 
= _core_
.BITMAP_TYPE_XPM
 
 625 BITMAP_TYPE_XPM_DATA 
= _core_
.BITMAP_TYPE_XPM_DATA
 
 626 BITMAP_TYPE_TIF 
= _core_
.BITMAP_TYPE_TIF
 
 627 BITMAP_TYPE_GIF 
= _core_
.BITMAP_TYPE_GIF
 
 628 BITMAP_TYPE_PNG 
= _core_
.BITMAP_TYPE_PNG
 
 629 BITMAP_TYPE_JPEG 
= _core_
.BITMAP_TYPE_JPEG
 
 630 BITMAP_TYPE_PNM 
= _core_
.BITMAP_TYPE_PNM
 
 631 BITMAP_TYPE_PCX 
= _core_
.BITMAP_TYPE_PCX
 
 632 BITMAP_TYPE_PICT 
= _core_
.BITMAP_TYPE_PICT
 
 633 BITMAP_TYPE_ICON 
= _core_
.BITMAP_TYPE_ICON
 
 634 BITMAP_TYPE_ANI 
= _core_
.BITMAP_TYPE_ANI
 
 635 BITMAP_TYPE_IFF 
= _core_
.BITMAP_TYPE_IFF
 
 636 BITMAP_TYPE_MACCURSOR 
= _core_
.BITMAP_TYPE_MACCURSOR
 
 637 BITMAP_TYPE_ANY 
= _core_
.BITMAP_TYPE_ANY
 
 638 CURSOR_NONE 
= _core_
.CURSOR_NONE
 
 639 CURSOR_ARROW 
= _core_
.CURSOR_ARROW
 
 640 CURSOR_RIGHT_ARROW 
= _core_
.CURSOR_RIGHT_ARROW
 
 641 CURSOR_BULLSEYE 
= _core_
.CURSOR_BULLSEYE
 
 642 CURSOR_CHAR 
= _core_
.CURSOR_CHAR
 
 643 CURSOR_CROSS 
= _core_
.CURSOR_CROSS
 
 644 CURSOR_HAND 
= _core_
.CURSOR_HAND
 
 645 CURSOR_IBEAM 
= _core_
.CURSOR_IBEAM
 
 646 CURSOR_LEFT_BUTTON 
= _core_
.CURSOR_LEFT_BUTTON
 
 647 CURSOR_MAGNIFIER 
= _core_
.CURSOR_MAGNIFIER
 
 648 CURSOR_MIDDLE_BUTTON 
= _core_
.CURSOR_MIDDLE_BUTTON
 
 649 CURSOR_NO_ENTRY 
= _core_
.CURSOR_NO_ENTRY
 
 650 CURSOR_PAINT_BRUSH 
= _core_
.CURSOR_PAINT_BRUSH
 
 651 CURSOR_PENCIL 
= _core_
.CURSOR_PENCIL
 
 652 CURSOR_POINT_LEFT 
= _core_
.CURSOR_POINT_LEFT
 
 653 CURSOR_POINT_RIGHT 
= _core_
.CURSOR_POINT_RIGHT
 
 654 CURSOR_QUESTION_ARROW 
= _core_
.CURSOR_QUESTION_ARROW
 
 655 CURSOR_RIGHT_BUTTON 
= _core_
.CURSOR_RIGHT_BUTTON
 
 656 CURSOR_SIZENESW 
= _core_
.CURSOR_SIZENESW
 
 657 CURSOR_SIZENS 
= _core_
.CURSOR_SIZENS
 
 658 CURSOR_SIZENWSE 
= _core_
.CURSOR_SIZENWSE
 
 659 CURSOR_SIZEWE 
= _core_
.CURSOR_SIZEWE
 
 660 CURSOR_SIZING 
= _core_
.CURSOR_SIZING
 
 661 CURSOR_SPRAYCAN 
= _core_
.CURSOR_SPRAYCAN
 
 662 CURSOR_WAIT 
= _core_
.CURSOR_WAIT
 
 663 CURSOR_WATCH 
= _core_
.CURSOR_WATCH
 
 664 CURSOR_BLANK 
= _core_
.CURSOR_BLANK
 
 665 CURSOR_DEFAULT 
= _core_
.CURSOR_DEFAULT
 
 666 CURSOR_COPY_ARROW 
= _core_
.CURSOR_COPY_ARROW
 
 667 CURSOR_ARROWWAIT 
= _core_
.CURSOR_ARROWWAIT
 
 668 CURSOR_MAX 
= _core_
.CURSOR_MAX
 
 669 #--------------------------------------------------------------------------- 
 673     wx.Size is a useful data structure used to represent the size of 
 674     something.  It simply contians integer width and height proprtites. 
 675     In most places in wxPython where a wx.Size is expected a 
 676     (width,height) tuple can be used instead. 
 679         return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 680     width 
= property(_core_
.Size_width_get
, _core_
.Size_width_set
) 
 681     height 
= property(_core_
.Size_height_get
, _core_
.Size_height_set
) 
 682     x 
= width
; y 
= height 
 
 683     def __init__(self
, *args
, **kwargs
): 
 685         __init__(self, int w=0, int h=0) -> Size 
 687         Creates a size object. 
 689         newobj 
= _core_
.new_Size(*args
, **kwargs
) 
 690         self
.this 
= newobj
.this
 
 693     def __del__(self
, destroy
=_core_
.delete_Size
): 
 696             if self
.thisown
: destroy(self
) 
 699     def __eq__(*args
, **kwargs
): 
 701         __eq__(self, Size sz) -> bool 
 703         Test for equality of wx.Size objects. 
 705         return _core_
.Size___eq__(*args
, **kwargs
) 
 707     def __ne__(*args
, **kwargs
): 
 709         __ne__(self, Size sz) -> bool 
 713         return _core_
.Size___ne__(*args
, **kwargs
) 
 715     def __add__(*args
, **kwargs
): 
 717         __add__(self, Size sz) -> Size 
 719         Add sz's proprties to this and return the result. 
 721         return _core_
.Size___add__(*args
, **kwargs
) 
 723     def __sub__(*args
, **kwargs
): 
 725         __sub__(self, Size sz) -> Size 
 727         Subtract sz's properties from this and return the result. 
 729         return _core_
.Size___sub__(*args
, **kwargs
) 
 731     def IncTo(*args
, **kwargs
): 
 735         Increments this object so that both of its dimensions are not less 
 736         than the corresponding dimensions of the size. 
 738         return _core_
.Size_IncTo(*args
, **kwargs
) 
 740     def DecTo(*args
, **kwargs
): 
 744         Decrements this object so that both of its dimensions are not greater 
 745         than the corresponding dimensions of the size. 
 747         return _core_
.Size_DecTo(*args
, **kwargs
) 
 749     def Set(*args
, **kwargs
): 
 751         Set(self, int w, int h) 
 753         Set both width and height. 
 755         return _core_
.Size_Set(*args
, **kwargs
) 
 757     def SetWidth(*args
, **kwargs
): 
 758         """SetWidth(self, int w)""" 
 759         return _core_
.Size_SetWidth(*args
, **kwargs
) 
 761     def SetHeight(*args
, **kwargs
): 
 762         """SetHeight(self, int h)""" 
 763         return _core_
.Size_SetHeight(*args
, **kwargs
) 
 765     def GetWidth(*args
, **kwargs
): 
 766         """GetWidth(self) -> int""" 
 767         return _core_
.Size_GetWidth(*args
, **kwargs
) 
 769     def GetHeight(*args
, **kwargs
): 
 770         """GetHeight(self) -> int""" 
 771         return _core_
.Size_GetHeight(*args
, **kwargs
) 
 773     def IsFullySpecified(*args
, **kwargs
): 
 775         IsFullySpecified(self) -> bool 
 777         Returns True if both components of the size are non-default values. 
 779         return _core_
.Size_IsFullySpecified(*args
, **kwargs
) 
 781     def SetDefaults(*args
, **kwargs
): 
 783         SetDefaults(self, Size size) 
 785         Combine this size with the other one replacing the default components 
 786         of this object (i.e. equal to -1) with those of the other. 
 788         return _core_
.Size_SetDefaults(*args
, **kwargs
) 
 790     def Get(*args
, **kwargs
): 
 792         Get() -> (width,height) 
 794         Returns the width and height properties as a tuple. 
 796         return _core_
.Size_Get(*args
, **kwargs
) 
 798     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
 799     def __str__(self
):                   return str(self
.Get()) 
 800     def __repr__(self
):                  return 'wx.Size'+str(self
.Get()) 
 801     def __len__(self
):                   return len(self
.Get()) 
 802     def __getitem__(self
, index
):        return self
.Get()[index
] 
 803     def __setitem__(self
, index
, val
): 
 804         if index 
== 0: self
.width 
= val
 
 805         elif index 
== 1: self
.height 
= val
 
 806         else: raise IndexError 
 807     def __nonzero__(self
):               return self
.Get() != (0,0) 
 808     __safe_for_unpickling__ 
= True 
 809     def __reduce__(self
):                return (wx
.Size
, self
.Get()) 
 813     def __init__(self
, this
): 
 815         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 816         self
.__class
__ = Size
 
 817 _core_
.Size_swigregister(SizePtr
) 
 819 #--------------------------------------------------------------------------- 
 821 class RealPoint(object): 
 823     A data structure for representing a point or position with floating 
 824     point x and y properties.  In wxPython most places that expect a 
 825     wx.RealPoint can also accept a (x,y) tuple. 
 828         return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 829     x 
= property(_core_
.RealPoint_x_get
, _core_
.RealPoint_x_set
) 
 830     y 
= property(_core_
.RealPoint_y_get
, _core_
.RealPoint_y_set
) 
 831     def __init__(self
, *args
, **kwargs
): 
 833         __init__(self, double x=0.0, double y=0.0) -> RealPoint 
 835         Create a wx.RealPoint object 
 837         newobj 
= _core_
.new_RealPoint(*args
, **kwargs
) 
 838         self
.this 
= newobj
.this
 
 841     def __del__(self
, destroy
=_core_
.delete_RealPoint
): 
 844             if self
.thisown
: destroy(self
) 
 847     def __eq__(*args
, **kwargs
): 
 849         __eq__(self, RealPoint pt) -> bool 
 851         Test for equality of wx.RealPoint objects. 
 853         return _core_
.RealPoint___eq__(*args
, **kwargs
) 
 855     def __ne__(*args
, **kwargs
): 
 857         __ne__(self, RealPoint pt) -> bool 
 859         Test for inequality of wx.RealPoint objects. 
 861         return _core_
.RealPoint___ne__(*args
, **kwargs
) 
 863     def __add__(*args
, **kwargs
): 
 865         __add__(self, RealPoint pt) -> RealPoint 
 867         Add pt's proprties to this and return the result. 
 869         return _core_
.RealPoint___add__(*args
, **kwargs
) 
 871     def __sub__(*args
, **kwargs
): 
 873         __sub__(self, RealPoint pt) -> RealPoint 
 875         Subtract pt's proprties from this and return the result 
 877         return _core_
.RealPoint___sub__(*args
, **kwargs
) 
 879     def Set(*args
, **kwargs
): 
 881         Set(self, double x, double y) 
 883         Set both the x and y properties 
 885         return _core_
.RealPoint_Set(*args
, **kwargs
) 
 887     def Get(*args
, **kwargs
): 
 891         Return the x and y properties as a tuple.  
 893         return _core_
.RealPoint_Get(*args
, **kwargs
) 
 895     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
 896     def __str__(self
):                   return str(self
.Get()) 
 897     def __repr__(self
):                  return 'wx.RealPoint'+str(self
.Get()) 
 898     def __len__(self
):                   return len(self
.Get()) 
 899     def __getitem__(self
, index
):        return self
.Get()[index
] 
 900     def __setitem__(self
, index
, val
): 
 901         if index 
== 0: self
.x 
= val
 
 902         elif index 
== 1: self
.y 
= val
 
 903         else: raise IndexError 
 904     def __nonzero__(self
):               return self
.Get() != (0.0, 0.0) 
 905     __safe_for_unpickling__ 
= True 
 906     def __reduce__(self
):                return (wx
.RealPoint
, self
.Get()) 
 909 class RealPointPtr(RealPoint
): 
 910     def __init__(self
, this
): 
 912         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 913         self
.__class
__ = RealPoint
 
 914 _core_
.RealPoint_swigregister(RealPointPtr
) 
 916 #--------------------------------------------------------------------------- 
 920     A data structure for representing a point or position with integer x 
 921     and y properties.  Most places in wxPython that expect a wx.Point can 
 922     also accept a (x,y) tuple. 
 925         return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 926     x 
= property(_core_
.Point_x_get
, _core_
.Point_x_set
) 
 927     y 
= property(_core_
.Point_y_get
, _core_
.Point_y_set
) 
 928     def __init__(self
, *args
, **kwargs
): 
 930         __init__(self, int x=0, int y=0) -> Point 
 932         Create a wx.Point object 
 934         newobj 
= _core_
.new_Point(*args
, **kwargs
) 
 935         self
.this 
= newobj
.this
 
 938     def __del__(self
, destroy
=_core_
.delete_Point
): 
 941             if self
.thisown
: destroy(self
) 
 944     def __eq__(*args
, **kwargs
): 
 946         __eq__(self, Point pt) -> bool 
 948         Test for equality of wx.Point objects. 
 950         return _core_
.Point___eq__(*args
, **kwargs
) 
 952     def __ne__(*args
, **kwargs
): 
 954         __ne__(self, Point pt) -> bool 
 956         Test for inequality of wx.Point objects. 
 958         return _core_
.Point___ne__(*args
, **kwargs
) 
 960     def __add__(*args
, **kwargs
): 
 962         __add__(self, Point pt) -> Point 
 964         Add pt's proprties to this and return the result. 
 966         return _core_
.Point___add__(*args
, **kwargs
) 
 968     def __sub__(*args
, **kwargs
): 
 970         __sub__(self, Point pt) -> Point 
 972         Subtract pt's proprties from this and return the result 
 974         return _core_
.Point___sub__(*args
, **kwargs
) 
 976     def __iadd__(*args
, **kwargs
): 
 978         __iadd__(self, Point pt) -> Point 
 980         Add pt to this object. 
 982         return _core_
.Point___iadd__(*args
, **kwargs
) 
 984     def __isub__(*args
, **kwargs
): 
 986         __isub__(self, Point pt) -> Point 
 988         Subtract pt from this object. 
 990         return _core_
.Point___isub__(*args
, **kwargs
) 
 992     def Set(*args
, **kwargs
): 
 994         Set(self, long x, long y) 
 996         Set both the x and y properties 
 998         return _core_
.Point_Set(*args
, **kwargs
) 
1000     def Get(*args
, **kwargs
): 
1004         Return the x and y properties as a tuple.  
1006         return _core_
.Point_Get(*args
, **kwargs
) 
1008     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
1009     def __str__(self
):                   return str(self
.Get()) 
1010     def __repr__(self
):                  return 'wx.Point'+str(self
.Get()) 
1011     def __len__(self
):                   return len(self
.Get()) 
1012     def __getitem__(self
, index
):        return self
.Get()[index
] 
1013     def __setitem__(self
, index
, val
): 
1014         if index 
== 0: self
.x 
= val
 
1015         elif index 
== 1: self
.y 
= val
 
1016         else: raise IndexError 
1017     def __nonzero__(self
):               return self
.Get() != (0,0) 
1018     __safe_for_unpickling__ 
= True 
1019     def __reduce__(self
):                return (wx
.Point
, self
.Get()) 
1022 class PointPtr(Point
): 
1023     def __init__(self
, this
): 
1025         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1026         self
.__class
__ = Point
 
1027 _core_
.Point_swigregister(PointPtr
) 
1029 #--------------------------------------------------------------------------- 
1033     A class for representing and manipulating rectangles.  It has x, y, 
1034     width and height properties.  In wxPython most palces that expect a 
1035     wx.Rect can also accept a (x,y,width,height) tuple. 
1038         return "<%s.%s; proxy of C++ wxRect instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1039     def __init__(self
, *args
, **kwargs
): 
1041         __init__(self, int x=0, int y=0, int width=0, int height=0) -> Rect 
1043         Create a new Rect object. 
1045         newobj 
= _core_
.new_Rect(*args
, **kwargs
) 
1046         self
.this 
= newobj
.this
 
1049     def __del__(self
, destroy
=_core_
.delete_Rect
): 
1052             if self
.thisown
: destroy(self
) 
1055     def GetX(*args
, **kwargs
): 
1056         """GetX(self) -> int""" 
1057         return _core_
.Rect_GetX(*args
, **kwargs
) 
1059     def SetX(*args
, **kwargs
): 
1060         """SetX(self, int x)""" 
1061         return _core_
.Rect_SetX(*args
, **kwargs
) 
1063     def GetY(*args
, **kwargs
): 
1064         """GetY(self) -> int""" 
1065         return _core_
.Rect_GetY(*args
, **kwargs
) 
1067     def SetY(*args
, **kwargs
): 
1068         """SetY(self, int y)""" 
1069         return _core_
.Rect_SetY(*args
, **kwargs
) 
1071     def GetWidth(*args
, **kwargs
): 
1072         """GetWidth(self) -> int""" 
1073         return _core_
.Rect_GetWidth(*args
, **kwargs
) 
1075     def SetWidth(*args
, **kwargs
): 
1076         """SetWidth(self, int w)""" 
1077         return _core_
.Rect_SetWidth(*args
, **kwargs
) 
1079     def GetHeight(*args
, **kwargs
): 
1080         """GetHeight(self) -> int""" 
1081         return _core_
.Rect_GetHeight(*args
, **kwargs
) 
1083     def SetHeight(*args
, **kwargs
): 
1084         """SetHeight(self, int h)""" 
1085         return _core_
.Rect_SetHeight(*args
, **kwargs
) 
1087     def GetPosition(*args
, **kwargs
): 
1088         """GetPosition(self) -> Point""" 
1089         return _core_
.Rect_GetPosition(*args
, **kwargs
) 
1091     def SetPosition(*args
, **kwargs
): 
1092         """SetPosition(self, Point p)""" 
1093         return _core_
.Rect_SetPosition(*args
, **kwargs
) 
1095     def GetSize(*args
, **kwargs
): 
1096         """GetSize(self) -> Size""" 
1097         return _core_
.Rect_GetSize(*args
, **kwargs
) 
1099     def SetSize(*args
, **kwargs
): 
1100         """SetSize(self, Size s)""" 
1101         return _core_
.Rect_SetSize(*args
, **kwargs
) 
1103     def GetTopLeft(*args
, **kwargs
): 
1104         """GetTopLeft(self) -> Point""" 
1105         return _core_
.Rect_GetTopLeft(*args
, **kwargs
) 
1107     def SetTopLeft(*args
, **kwargs
): 
1108         """SetTopLeft(self, Point p)""" 
1109         return _core_
.Rect_SetTopLeft(*args
, **kwargs
) 
1111     def GetBottomRight(*args
, **kwargs
): 
1112         """GetBottomRight(self) -> Point""" 
1113         return _core_
.Rect_GetBottomRight(*args
, **kwargs
) 
1115     def SetBottomRight(*args
, **kwargs
): 
1116         """SetBottomRight(self, Point p)""" 
1117         return _core_
.Rect_SetBottomRight(*args
, **kwargs
) 
1119     def GetLeft(*args
, **kwargs
): 
1120         """GetLeft(self) -> int""" 
1121         return _core_
.Rect_GetLeft(*args
, **kwargs
) 
1123     def GetTop(*args
, **kwargs
): 
1124         """GetTop(self) -> int""" 
1125         return _core_
.Rect_GetTop(*args
, **kwargs
) 
1127     def GetBottom(*args
, **kwargs
): 
1128         """GetBottom(self) -> int""" 
1129         return _core_
.Rect_GetBottom(*args
, **kwargs
) 
1131     def GetRight(*args
, **kwargs
): 
1132         """GetRight(self) -> int""" 
1133         return _core_
.Rect_GetRight(*args
, **kwargs
) 
1135     def SetLeft(*args
, **kwargs
): 
1136         """SetLeft(self, int left)""" 
1137         return _core_
.Rect_SetLeft(*args
, **kwargs
) 
1139     def SetRight(*args
, **kwargs
): 
1140         """SetRight(self, int right)""" 
1141         return _core_
.Rect_SetRight(*args
, **kwargs
) 
1143     def SetTop(*args
, **kwargs
): 
1144         """SetTop(self, int top)""" 
1145         return _core_
.Rect_SetTop(*args
, **kwargs
) 
1147     def SetBottom(*args
, **kwargs
): 
1148         """SetBottom(self, int bottom)""" 
1149         return _core_
.Rect_SetBottom(*args
, **kwargs
) 
1151     position 
= property(GetPosition
, SetPosition
) 
1152     size 
= property(GetSize
, SetSize
) 
1153     left 
= property(GetLeft
, SetLeft
) 
1154     right 
= property(GetRight
, SetRight
) 
1155     top 
= property(GetTop
, SetTop
) 
1156     bottom 
= property(GetBottom
, SetBottom
) 
1158     def Inflate(*args
, **kwargs
): 
1160         Inflate(self, int dx, int dy) -> Rect 
1162         Increase the rectangle size by dx in x direction and dy in y 
1163         direction. Both or one of) parameters may be negative to decrease the 
1166         return _core_
.Rect_Inflate(*args
, **kwargs
) 
1168     def Deflate(*args
, **kwargs
): 
1170         Deflate(self, int dx, int dy) -> Rect 
1172         Decrease the rectangle size by dx in x direction and dy in y 
1173         direction. Both or one of) parameters may be negative to increase the 
1174         rectngle size. This method is the opposite of Inflate. 
1176         return _core_
.Rect_Deflate(*args
, **kwargs
) 
1178     def OffsetXY(*args
, **kwargs
): 
1180         OffsetXY(self, int dx, int dy) 
1182         Moves the rectangle by the specified offset. If dx is positive, the 
1183         rectangle is moved to the right, if dy is positive, it is moved to the 
1184         bottom, otherwise it is moved to the left or top respectively. 
1186         return _core_
.Rect_OffsetXY(*args
, **kwargs
) 
1188     def Offset(*args
, **kwargs
): 
1190         Offset(self, Point pt) 
1192         Same as OffsetXY but uses dx,dy from Point 
1194         return _core_
.Rect_Offset(*args
, **kwargs
) 
1196     def Intersect(*args
, **kwargs
): 
1198         Intersect(self, Rect rect) -> Rect 
1200         Return the intersectsion of this rectangle and rect. 
1202         return _core_
.Rect_Intersect(*args
, **kwargs
) 
1204     def __add__(*args
, **kwargs
): 
1206         __add__(self, Rect rect) -> Rect 
1208         Add the properties of rect to this rectangle and return the result. 
1210         return _core_
.Rect___add__(*args
, **kwargs
) 
1212     def __iadd__(*args
, **kwargs
): 
1214         __iadd__(self, Rect rect) -> Rect 
1216         Add the properties of rect to this rectangle, updating this rectangle. 
1218         return _core_
.Rect___iadd__(*args
, **kwargs
) 
1220     def __eq__(*args
, **kwargs
): 
1222         __eq__(self, Rect rect) -> bool 
1226         return _core_
.Rect___eq__(*args
, **kwargs
) 
1228     def __ne__(*args
, **kwargs
): 
1230         __ne__(self, Rect rect) -> bool 
1232         Test for inequality. 
1234         return _core_
.Rect___ne__(*args
, **kwargs
) 
1236     def InsideXY(*args
, **kwargs
): 
1238         InsideXY(self, int x, int y) -> bool 
1240         Return True if the point is (not strcitly) inside the rect. 
1242         return _core_
.Rect_InsideXY(*args
, **kwargs
) 
1244     def Inside(*args
, **kwargs
): 
1246         Inside(self, Point pt) -> bool 
1248         Return True if the point is (not strcitly) inside the rect. 
1250         return _core_
.Rect_Inside(*args
, **kwargs
) 
1252     def Intersects(*args
, **kwargs
): 
1254         Intersects(self, Rect rect) -> bool 
1256         Returns True if the rectangles have a non empty intersection. 
1258         return _core_
.Rect_Intersects(*args
, **kwargs
) 
1260     x 
= property(_core_
.Rect_x_get
, _core_
.Rect_x_set
) 
1261     y 
= property(_core_
.Rect_y_get
, _core_
.Rect_y_set
) 
1262     width 
= property(_core_
.Rect_width_get
, _core_
.Rect_width_set
) 
1263     height 
= property(_core_
.Rect_height_get
, _core_
.Rect_height_set
) 
1264     def Set(*args
, **kwargs
): 
1266         Set(self, int x=0, int y=0, int width=0, int height=0) 
1268         Set all rectangle properties. 
1270         return _core_
.Rect_Set(*args
, **kwargs
) 
1272     def Get(*args
, **kwargs
): 
1274         Get() -> (x,y,width,height) 
1276         Return the rectangle properties as a tuple. 
1278         return _core_
.Rect_Get(*args
, **kwargs
) 
1280     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
1281     def __str__(self
):                   return str(self
.Get()) 
1282     def __repr__(self
):                  return 'wx.Rect'+str(self
.Get()) 
1283     def __len__(self
):                   return len(self
.Get()) 
1284     def __getitem__(self
, index
):        return self
.Get()[index
] 
1285     def __setitem__(self
, index
, val
): 
1286         if index 
== 0: self
.x 
= val
 
1287         elif index 
== 1: self
.y 
= val
 
1288         elif index 
== 2: self
.width 
= val
 
1289         elif index 
== 3: self
.height 
= val
 
1290         else: raise IndexError 
1291     def __nonzero__(self
):               return self
.Get() != (0,0,0,0) 
1292     __safe_for_unpickling__ 
= True 
1293     def __reduce__(self
):                return (wx
.Rect
, self
.Get()) 
1296 class RectPtr(Rect
): 
1297     def __init__(self
, this
): 
1299         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1300         self
.__class
__ = Rect
 
1301 _core_
.Rect_swigregister(RectPtr
) 
1303 def RectPP(*args
, **kwargs
): 
1305     RectPP(Point topLeft, Point bottomRight) -> Rect 
1307     Create a new Rect object from Points representing two corners. 
1309     val 
= _core_
.new_RectPP(*args
, **kwargs
) 
1313 def RectPS(*args
, **kwargs
): 
1315     RectPS(Point pos, Size size) -> Rect 
1317     Create a new Rect from a position and size. 
1319     val 
= _core_
.new_RectPS(*args
, **kwargs
) 
1324 def IntersectRect(*args
, **kwargs
): 
1326     IntersectRect(Rect r1, Rect r2) -> Rect 
1328     Calculate and return the intersection of r1 and r2. 
1330     return _core_
.IntersectRect(*args
, **kwargs
) 
1331 #--------------------------------------------------------------------------- 
1333 class Point2D(object): 
1335     wx.Point2Ds represent a point or a vector in a 2d coordinate system 
1336     with floating point values. 
1339         return "<%s.%s; proxy of C++ wxPoint2D instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1340     def __init__(self
, *args
, **kwargs
): 
1342         __init__(self, double x=0.0, double y=0.0) -> Point2D 
1344         Create a w.Point2D object. 
1346         newobj 
= _core_
.new_Point2D(*args
, **kwargs
) 
1347         self
.this 
= newobj
.this
 
1350     def GetFloor(*args
, **kwargs
): 
1356         return _core_
.Point2D_GetFloor(*args
, **kwargs
) 
1358     def GetRounded(*args
, **kwargs
): 
1360         GetRounded() -> (x,y) 
1364         return _core_
.Point2D_GetRounded(*args
, **kwargs
) 
1366     def GetVectorLength(*args
, **kwargs
): 
1367         """GetVectorLength(self) -> double""" 
1368         return _core_
.Point2D_GetVectorLength(*args
, **kwargs
) 
1370     def GetVectorAngle(*args
, **kwargs
): 
1371         """GetVectorAngle(self) -> double""" 
1372         return _core_
.Point2D_GetVectorAngle(*args
, **kwargs
) 
1374     def SetVectorLength(*args
, **kwargs
): 
1375         """SetVectorLength(self, double length)""" 
1376         return _core_
.Point2D_SetVectorLength(*args
, **kwargs
) 
1378     def SetVectorAngle(*args
, **kwargs
): 
1379         """SetVectorAngle(self, double degrees)""" 
1380         return _core_
.Point2D_SetVectorAngle(*args
, **kwargs
) 
1382     def SetPolarCoordinates(self
, angle
, length
): 
1383         self
.SetVectorLength(length
) 
1384         self
.SetVectorAngle(angle
) 
1385     def Normalize(self
): 
1386         self
.SetVectorLength(1.0) 
1388     def GetDistance(*args
, **kwargs
): 
1389         """GetDistance(self, Point2D pt) -> double""" 
1390         return _core_
.Point2D_GetDistance(*args
, **kwargs
) 
1392     def GetDistanceSquare(*args
, **kwargs
): 
1393         """GetDistanceSquare(self, Point2D pt) -> double""" 
1394         return _core_
.Point2D_GetDistanceSquare(*args
, **kwargs
) 
1396     def GetDotProduct(*args
, **kwargs
): 
1397         """GetDotProduct(self, Point2D vec) -> double""" 
1398         return _core_
.Point2D_GetDotProduct(*args
, **kwargs
) 
1400     def GetCrossProduct(*args
, **kwargs
): 
1401         """GetCrossProduct(self, Point2D vec) -> double""" 
1402         return _core_
.Point2D_GetCrossProduct(*args
, **kwargs
) 
1404     def __neg__(*args
, **kwargs
): 
1406         __neg__(self) -> Point2D 
1408         the reflection of this point 
1410         return _core_
.Point2D___neg__(*args
, **kwargs
) 
1412     def __iadd__(*args
, **kwargs
): 
1413         """__iadd__(self, Point2D pt) -> Point2D""" 
1414         return _core_
.Point2D___iadd__(*args
, **kwargs
) 
1416     def __isub__(*args
, **kwargs
): 
1417         """__isub__(self, Point2D pt) -> Point2D""" 
1418         return _core_
.Point2D___isub__(*args
, **kwargs
) 
1420     def __imul__(*args
, **kwargs
): 
1421         """__imul__(self, Point2D pt) -> Point2D""" 
1422         return _core_
.Point2D___imul__(*args
, **kwargs
) 
1424     def __idiv__(*args
, **kwargs
): 
1425         """__idiv__(self, Point2D pt) -> Point2D""" 
1426         return _core_
.Point2D___idiv__(*args
, **kwargs
) 
1428     def __eq__(*args
, **kwargs
): 
1430         __eq__(self, Point2D pt) -> bool 
1434         return _core_
.Point2D___eq__(*args
, **kwargs
) 
1436     def __ne__(*args
, **kwargs
): 
1438         __ne__(self, Point2D pt) -> bool 
1442         return _core_
.Point2D___ne__(*args
, **kwargs
) 
1444     x 
= property(_core_
.Point2D_x_get
, _core_
.Point2D_x_set
) 
1445     y 
= property(_core_
.Point2D_y_get
, _core_
.Point2D_y_set
) 
1446     def Set(*args
, **kwargs
): 
1447         """Set(self, double x=0, double y=0)""" 
1448         return _core_
.Point2D_Set(*args
, **kwargs
) 
1450     def Get(*args
, **kwargs
): 
1454         Return x and y properties as a tuple. 
1456         return _core_
.Point2D_Get(*args
, **kwargs
) 
1458     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
1459     def __str__(self
):                   return str(self
.Get()) 
1460     def __repr__(self
):                  return 'wx.Point2D'+str(self
.Get()) 
1461     def __len__(self
):                   return len(self
.Get()) 
1462     def __getitem__(self
, index
):        return self
.Get()[index
] 
1463     def __setitem__(self
, index
, val
): 
1464         if index 
== 0: self
.x 
= val
 
1465         elif index 
== 1: self
.y 
= val
 
1466         else: raise IndexError 
1467     def __nonzero__(self
):               return self
.Get() != (0.0, 0.0) 
1468     __safe_for_unpickling__ 
= True 
1469     def __reduce__(self
):                return (wx
.Point2D
, self
.Get()) 
1472 class Point2DPtr(Point2D
): 
1473     def __init__(self
, this
): 
1475         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1476         self
.__class
__ = Point2D
 
1477 _core_
.Point2D_swigregister(Point2DPtr
) 
1479 def Point2DCopy(*args
, **kwargs
): 
1481     Point2DCopy(Point2D pt) -> Point2D 
1483     Create a w.Point2D object. 
1485     val 
= _core_
.new_Point2DCopy(*args
, **kwargs
) 
1489 def Point2DFromPoint(*args
, **kwargs
): 
1491     Point2DFromPoint(Point pt) -> Point2D 
1493     Create a w.Point2D object. 
1495     val 
= _core_
.new_Point2DFromPoint(*args
, **kwargs
) 
1499 #--------------------------------------------------------------------------- 
1501 FromStart 
= _core_
.FromStart
 
1502 FromCurrent 
= _core_
.FromCurrent
 
1503 FromEnd 
= _core_
.FromEnd
 
1504 class InputStream(object): 
1506         return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1507     def __init__(self
, *args
, **kwargs
): 
1508         """__init__(self, PyObject p) -> InputStream""" 
1509         newobj 
= _core_
.new_InputStream(*args
, **kwargs
) 
1510         self
.this 
= newobj
.this
 
1513     def close(*args
, **kwargs
): 
1515         return _core_
.InputStream_close(*args
, **kwargs
) 
1517     def flush(*args
, **kwargs
): 
1519         return _core_
.InputStream_flush(*args
, **kwargs
) 
1521     def eof(*args
, **kwargs
): 
1522         """eof(self) -> bool""" 
1523         return _core_
.InputStream_eof(*args
, **kwargs
) 
1525     def read(*args
, **kwargs
): 
1526         """read(self, int size=-1) -> PyObject""" 
1527         return _core_
.InputStream_read(*args
, **kwargs
) 
1529     def readline(*args
, **kwargs
): 
1530         """readline(self, int size=-1) -> PyObject""" 
1531         return _core_
.InputStream_readline(*args
, **kwargs
) 
1533     def readlines(*args
, **kwargs
): 
1534         """readlines(self, int sizehint=-1) -> PyObject""" 
1535         return _core_
.InputStream_readlines(*args
, **kwargs
) 
1537     def seek(*args
, **kwargs
): 
1538         """seek(self, int offset, int whence=0)""" 
1539         return _core_
.InputStream_seek(*args
, **kwargs
) 
1541     def tell(*args
, **kwargs
): 
1542         """tell(self) -> int""" 
1543         return _core_
.InputStream_tell(*args
, **kwargs
) 
1545     def Peek(*args
, **kwargs
): 
1546         """Peek(self) -> char""" 
1547         return _core_
.InputStream_Peek(*args
, **kwargs
) 
1549     def GetC(*args
, **kwargs
): 
1550         """GetC(self) -> char""" 
1551         return _core_
.InputStream_GetC(*args
, **kwargs
) 
1553     def LastRead(*args
, **kwargs
): 
1554         """LastRead(self) -> size_t""" 
1555         return _core_
.InputStream_LastRead(*args
, **kwargs
) 
1557     def CanRead(*args
, **kwargs
): 
1558         """CanRead(self) -> bool""" 
1559         return _core_
.InputStream_CanRead(*args
, **kwargs
) 
1561     def Eof(*args
, **kwargs
): 
1562         """Eof(self) -> bool""" 
1563         return _core_
.InputStream_Eof(*args
, **kwargs
) 
1565     def Ungetch(*args
, **kwargs
): 
1566         """Ungetch(self, char c) -> bool""" 
1567         return _core_
.InputStream_Ungetch(*args
, **kwargs
) 
1569     def SeekI(*args
, **kwargs
): 
1570         """SeekI(self, long pos, int mode=FromStart) -> long""" 
1571         return _core_
.InputStream_SeekI(*args
, **kwargs
) 
1573     def TellI(*args
, **kwargs
): 
1574         """TellI(self) -> long""" 
1575         return _core_
.InputStream_TellI(*args
, **kwargs
) 
1578 class InputStreamPtr(InputStream
): 
1579     def __init__(self
, this
): 
1581         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1582         self
.__class
__ = InputStream
 
1583 _core_
.InputStream_swigregister(InputStreamPtr
) 
1584 DefaultPosition 
= cvar
.DefaultPosition
 
1585 DefaultSize 
= cvar
.DefaultSize
 
1587 class OutputStream(object): 
1588     def __init__(self
): raise RuntimeError, "No constructor defined" 
1590         return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1591     def write(*args
, **kwargs
): 
1592         """write(self, PyObject obj)""" 
1593         return _core_
.OutputStream_write(*args
, **kwargs
) 
1596 class OutputStreamPtr(OutputStream
): 
1597     def __init__(self
, this
): 
1599         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1600         self
.__class
__ = OutputStream
 
1601 _core_
.OutputStream_swigregister(OutputStreamPtr
) 
1603 #--------------------------------------------------------------------------- 
1605 class FSFile(Object
): 
1607         return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1608     def __init__(self
, *args
, **kwargs
): 
1610         __init__(self, InputStream stream, String loc, String mimetype, String anchor,  
1611             DateTime modif) -> FSFile 
1613         newobj 
= _core_
.new_FSFile(*args
, **kwargs
) 
1614         self
.this 
= newobj
.this
 
1617         self
.thisown 
= 0   # It will normally be deleted by the user of the wxFileSystem 
1619     def __del__(self
, destroy
=_core_
.delete_FSFile
): 
1622             if self
.thisown
: destroy(self
) 
1625     def GetStream(*args
, **kwargs
): 
1626         """GetStream(self) -> InputStream""" 
1627         return _core_
.FSFile_GetStream(*args
, **kwargs
) 
1629     def GetMimeType(*args
, **kwargs
): 
1630         """GetMimeType(self) -> String""" 
1631         return _core_
.FSFile_GetMimeType(*args
, **kwargs
) 
1633     def GetLocation(*args
, **kwargs
): 
1634         """GetLocation(self) -> String""" 
1635         return _core_
.FSFile_GetLocation(*args
, **kwargs
) 
1637     def GetAnchor(*args
, **kwargs
): 
1638         """GetAnchor(self) -> String""" 
1639         return _core_
.FSFile_GetAnchor(*args
, **kwargs
) 
1641     def GetModificationTime(*args
, **kwargs
): 
1642         """GetModificationTime(self) -> DateTime""" 
1643         return _core_
.FSFile_GetModificationTime(*args
, **kwargs
) 
1646 class FSFilePtr(FSFile
): 
1647     def __init__(self
, this
): 
1649         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1650         self
.__class
__ = FSFile
 
1651 _core_
.FSFile_swigregister(FSFilePtr
) 
1653 class CPPFileSystemHandler(object): 
1654     def __init__(self
): raise RuntimeError, "No constructor defined" 
1656         return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1658 class CPPFileSystemHandlerPtr(CPPFileSystemHandler
): 
1659     def __init__(self
, this
): 
1661         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1662         self
.__class
__ = CPPFileSystemHandler
 
1663 _core_
.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr
) 
1665 class FileSystemHandler(CPPFileSystemHandler
): 
1667         return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1668     def __init__(self
, *args
, **kwargs
): 
1669         """__init__(self) -> FileSystemHandler""" 
1670         newobj 
= _core_
.new_FileSystemHandler(*args
, **kwargs
) 
1671         self
.this 
= newobj
.this
 
1674         self
._setCallbackInfo
(self
, FileSystemHandler
) 
1676     def _setCallbackInfo(*args
, **kwargs
): 
1677         """_setCallbackInfo(self, PyObject self, PyObject _class)""" 
1678         return _core_
.FileSystemHandler__setCallbackInfo(*args
, **kwargs
) 
1680     def CanOpen(*args
, **kwargs
): 
1681         """CanOpen(self, String location) -> bool""" 
1682         return _core_
.FileSystemHandler_CanOpen(*args
, **kwargs
) 
1684     def OpenFile(*args
, **kwargs
): 
1685         """OpenFile(self, FileSystem fs, String location) -> FSFile""" 
1686         return _core_
.FileSystemHandler_OpenFile(*args
, **kwargs
) 
1688     def FindFirst(*args
, **kwargs
): 
1689         """FindFirst(self, String spec, int flags=0) -> String""" 
1690         return _core_
.FileSystemHandler_FindFirst(*args
, **kwargs
) 
1692     def FindNext(*args
, **kwargs
): 
1693         """FindNext(self) -> String""" 
1694         return _core_
.FileSystemHandler_FindNext(*args
, **kwargs
) 
1696     def GetProtocol(*args
, **kwargs
): 
1697         """GetProtocol(self, String location) -> String""" 
1698         return _core_
.FileSystemHandler_GetProtocol(*args
, **kwargs
) 
1700     def GetLeftLocation(*args
, **kwargs
): 
1701         """GetLeftLocation(self, String location) -> String""" 
1702         return _core_
.FileSystemHandler_GetLeftLocation(*args
, **kwargs
) 
1704     def GetAnchor(*args
, **kwargs
): 
1705         """GetAnchor(self, String location) -> String""" 
1706         return _core_
.FileSystemHandler_GetAnchor(*args
, **kwargs
) 
1708     def GetRightLocation(*args
, **kwargs
): 
1709         """GetRightLocation(self, String location) -> String""" 
1710         return _core_
.FileSystemHandler_GetRightLocation(*args
, **kwargs
) 
1712     def GetMimeTypeFromExt(*args
, **kwargs
): 
1713         """GetMimeTypeFromExt(self, String location) -> String""" 
1714         return _core_
.FileSystemHandler_GetMimeTypeFromExt(*args
, **kwargs
) 
1717 class FileSystemHandlerPtr(FileSystemHandler
): 
1718     def __init__(self
, this
): 
1720         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1721         self
.__class
__ = FileSystemHandler
 
1722 _core_
.FileSystemHandler_swigregister(FileSystemHandlerPtr
) 
1724 class FileSystem(Object
): 
1726         return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1727     def __init__(self
, *args
, **kwargs
): 
1728         """__init__(self) -> FileSystem""" 
1729         newobj 
= _core_
.new_FileSystem(*args
, **kwargs
) 
1730         self
.this 
= newobj
.this
 
1733     def __del__(self
, destroy
=_core_
.delete_FileSystem
): 
1736             if self
.thisown
: destroy(self
) 
1739     def ChangePathTo(*args
, **kwargs
): 
1740         """ChangePathTo(self, String location, bool is_dir=False)""" 
1741         return _core_
.FileSystem_ChangePathTo(*args
, **kwargs
) 
1743     def GetPath(*args
, **kwargs
): 
1744         """GetPath(self) -> String""" 
1745         return _core_
.FileSystem_GetPath(*args
, **kwargs
) 
1747     def OpenFile(*args
, **kwargs
): 
1748         """OpenFile(self, String location) -> FSFile""" 
1749         return _core_
.FileSystem_OpenFile(*args
, **kwargs
) 
1751     def FindFirst(*args
, **kwargs
): 
1752         """FindFirst(self, String spec, int flags=0) -> String""" 
1753         return _core_
.FileSystem_FindFirst(*args
, **kwargs
) 
1755     def FindNext(*args
, **kwargs
): 
1756         """FindNext(self) -> String""" 
1757         return _core_
.FileSystem_FindNext(*args
, **kwargs
) 
1759     def AddHandler(*args
, **kwargs
): 
1760         """AddHandler(CPPFileSystemHandler handler)""" 
1761         return _core_
.FileSystem_AddHandler(*args
, **kwargs
) 
1763     AddHandler 
= staticmethod(AddHandler
) 
1764     def CleanUpHandlers(*args
, **kwargs
): 
1765         """CleanUpHandlers()""" 
1766         return _core_
.FileSystem_CleanUpHandlers(*args
, **kwargs
) 
1768     CleanUpHandlers 
= staticmethod(CleanUpHandlers
) 
1769     def FileNameToURL(*args
, **kwargs
): 
1770         """FileNameToURL(String filename) -> String""" 
1771         return _core_
.FileSystem_FileNameToURL(*args
, **kwargs
) 
1773     FileNameToURL 
= staticmethod(FileNameToURL
) 
1775 class FileSystemPtr(FileSystem
): 
1776     def __init__(self
, this
): 
1778         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1779         self
.__class
__ = FileSystem
 
1780 _core_
.FileSystem_swigregister(FileSystemPtr
) 
1782 def FileSystem_AddHandler(*args
, **kwargs
): 
1783     """FileSystem_AddHandler(CPPFileSystemHandler handler)""" 
1784     return _core_
.FileSystem_AddHandler(*args
, **kwargs
) 
1786 def FileSystem_CleanUpHandlers(*args
, **kwargs
): 
1787     """FileSystem_CleanUpHandlers()""" 
1788     return _core_
.FileSystem_CleanUpHandlers(*args
, **kwargs
) 
1790 def FileSystem_FileNameToURL(*args
, **kwargs
): 
1791     """FileSystem_FileNameToURL(String filename) -> String""" 
1792     return _core_
.FileSystem_FileNameToURL(*args
, **kwargs
) 
1795 def FileSystem_URLToFileName(*args
, **kwargs
): 
1796     """FileSystem_URLToFileName(String url) -> String""" 
1797     return _core_
.FileSystem_URLToFileName(*args
, **kwargs
) 
1798 class InternetFSHandler(CPPFileSystemHandler
): 
1800         return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1801     def __init__(self
, *args
, **kwargs
): 
1802         """__init__(self) -> InternetFSHandler""" 
1803         newobj 
= _core_
.new_InternetFSHandler(*args
, **kwargs
) 
1804         self
.this 
= newobj
.this
 
1807     def CanOpen(*args
, **kwargs
): 
1808         """CanOpen(self, String location) -> bool""" 
1809         return _core_
.InternetFSHandler_CanOpen(*args
, **kwargs
) 
1811     def OpenFile(*args
, **kwargs
): 
1812         """OpenFile(self, FileSystem fs, String location) -> FSFile""" 
1813         return _core_
.InternetFSHandler_OpenFile(*args
, **kwargs
) 
1816 class InternetFSHandlerPtr(InternetFSHandler
): 
1817     def __init__(self
, this
): 
1819         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1820         self
.__class
__ = InternetFSHandler
 
1821 _core_
.InternetFSHandler_swigregister(InternetFSHandlerPtr
) 
1823 class ZipFSHandler(CPPFileSystemHandler
): 
1825         return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1826     def __init__(self
, *args
, **kwargs
): 
1827         """__init__(self) -> ZipFSHandler""" 
1828         newobj 
= _core_
.new_ZipFSHandler(*args
, **kwargs
) 
1829         self
.this 
= newobj
.this
 
1832     def CanOpen(*args
, **kwargs
): 
1833         """CanOpen(self, String location) -> bool""" 
1834         return _core_
.ZipFSHandler_CanOpen(*args
, **kwargs
) 
1836     def OpenFile(*args
, **kwargs
): 
1837         """OpenFile(self, FileSystem fs, String location) -> FSFile""" 
1838         return _core_
.ZipFSHandler_OpenFile(*args
, **kwargs
) 
1840     def FindFirst(*args
, **kwargs
): 
1841         """FindFirst(self, String spec, int flags=0) -> String""" 
1842         return _core_
.ZipFSHandler_FindFirst(*args
, **kwargs
) 
1844     def FindNext(*args
, **kwargs
): 
1845         """FindNext(self) -> String""" 
1846         return _core_
.ZipFSHandler_FindNext(*args
, **kwargs
) 
1849 class ZipFSHandlerPtr(ZipFSHandler
): 
1850     def __init__(self
, this
): 
1852         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1853         self
.__class
__ = ZipFSHandler
 
1854 _core_
.ZipFSHandler_swigregister(ZipFSHandlerPtr
) 
1857 def __wxMemoryFSHandler_AddFile_wxImage(*args
, **kwargs
): 
1858     """__wxMemoryFSHandler_AddFile_wxImage(String filename, Image image, long type)""" 
1859     return _core_
.__wxMemoryFSHandler
_AddFile
_wxImage
(*args
, **kwargs
) 
1861 def __wxMemoryFSHandler_AddFile_wxBitmap(*args
, **kwargs
): 
1862     """__wxMemoryFSHandler_AddFile_wxBitmap(String filename, Bitmap bitmap, long type)""" 
1863     return _core_
.__wxMemoryFSHandler
_AddFile
_wxBitmap
(*args
, **kwargs
) 
1865 def __wxMemoryFSHandler_AddFile_Data(*args
, **kwargs
): 
1866     """__wxMemoryFSHandler_AddFile_Data(String filename, PyObject data)""" 
1867     return _core_
.__wxMemoryFSHandler
_AddFile
_Data
(*args
, **kwargs
) 
1868 def MemoryFSHandler_AddFile(filename
, a
, b
=''): 
1869     if isinstance(a
, wx
.Image
): 
1870         __wxMemoryFSHandler_AddFile_wxImage(filename
, a
, b
) 
1871     elif isinstance(a
, wx
.Bitmap
): 
1872         __wxMemoryFSHandler_AddFile_wxBitmap(filename
, a
, b
) 
1873     elif type(a
) == str: 
1874         __wxMemoryFSHandler_AddFile_Data(filename
, a
) 
1875     else: raise TypeError, 'wx.Image, wx.Bitmap or string expected' 
1877 class MemoryFSHandler(CPPFileSystemHandler
): 
1879         return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1880     def __init__(self
, *args
, **kwargs
): 
1881         """__init__(self) -> MemoryFSHandler""" 
1882         newobj 
= _core_
.new_MemoryFSHandler(*args
, **kwargs
) 
1883         self
.this 
= newobj
.this
 
1886     def RemoveFile(*args
, **kwargs
): 
1887         """RemoveFile(String filename)""" 
1888         return _core_
.MemoryFSHandler_RemoveFile(*args
, **kwargs
) 
1890     RemoveFile 
= staticmethod(RemoveFile
) 
1891     AddFile 
= staticmethod(MemoryFSHandler_AddFile
)  
1892     def CanOpen(*args
, **kwargs
): 
1893         """CanOpen(self, String location) -> bool""" 
1894         return _core_
.MemoryFSHandler_CanOpen(*args
, **kwargs
) 
1896     def OpenFile(*args
, **kwargs
): 
1897         """OpenFile(self, FileSystem fs, String location) -> FSFile""" 
1898         return _core_
.MemoryFSHandler_OpenFile(*args
, **kwargs
) 
1900     def FindFirst(*args
, **kwargs
): 
1901         """FindFirst(self, String spec, int flags=0) -> String""" 
1902         return _core_
.MemoryFSHandler_FindFirst(*args
, **kwargs
) 
1904     def FindNext(*args
, **kwargs
): 
1905         """FindNext(self) -> String""" 
1906         return _core_
.MemoryFSHandler_FindNext(*args
, **kwargs
) 
1909 class MemoryFSHandlerPtr(MemoryFSHandler
): 
1910     def __init__(self
, this
): 
1912         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1913         self
.__class
__ = MemoryFSHandler
 
1914 _core_
.MemoryFSHandler_swigregister(MemoryFSHandlerPtr
) 
1916 def MemoryFSHandler_RemoveFile(*args
, **kwargs
): 
1917     """MemoryFSHandler_RemoveFile(String filename)""" 
1918     return _core_
.MemoryFSHandler_RemoveFile(*args
, **kwargs
) 
1920 #--------------------------------------------------------------------------- 
1922 class ImageHandler(Object
): 
1923     def __init__(self
): raise RuntimeError, "No constructor defined" 
1925         return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1926     def GetName(*args
, **kwargs
): 
1927         """GetName(self) -> String""" 
1928         return _core_
.ImageHandler_GetName(*args
, **kwargs
) 
1930     def GetExtension(*args
, **kwargs
): 
1931         """GetExtension(self) -> String""" 
1932         return _core_
.ImageHandler_GetExtension(*args
, **kwargs
) 
1934     def GetType(*args
, **kwargs
): 
1935         """GetType(self) -> long""" 
1936         return _core_
.ImageHandler_GetType(*args
, **kwargs
) 
1938     def GetMimeType(*args
, **kwargs
): 
1939         """GetMimeType(self) -> String""" 
1940         return _core_
.ImageHandler_GetMimeType(*args
, **kwargs
) 
1942     def CanRead(*args
, **kwargs
): 
1943         """CanRead(self, String name) -> bool""" 
1944         return _core_
.ImageHandler_CanRead(*args
, **kwargs
) 
1946     def SetName(*args
, **kwargs
): 
1947         """SetName(self, String name)""" 
1948         return _core_
.ImageHandler_SetName(*args
, **kwargs
) 
1950     def SetExtension(*args
, **kwargs
): 
1951         """SetExtension(self, String extension)""" 
1952         return _core_
.ImageHandler_SetExtension(*args
, **kwargs
) 
1954     def SetType(*args
, **kwargs
): 
1955         """SetType(self, long type)""" 
1956         return _core_
.ImageHandler_SetType(*args
, **kwargs
) 
1958     def SetMimeType(*args
, **kwargs
): 
1959         """SetMimeType(self, String mimetype)""" 
1960         return _core_
.ImageHandler_SetMimeType(*args
, **kwargs
) 
1963 class ImageHandlerPtr(ImageHandler
): 
1964     def __init__(self
, this
): 
1966         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1967         self
.__class
__ = ImageHandler
 
1968 _core_
.ImageHandler_swigregister(ImageHandlerPtr
) 
1970 class ImageHistogram(object): 
1972         return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1973     def __init__(self
, *args
, **kwargs
): 
1974         """__init__(self) -> ImageHistogram""" 
1975         newobj 
= _core_
.new_ImageHistogram(*args
, **kwargs
) 
1976         self
.this 
= newobj
.this
 
1979     def MakeKey(*args
, **kwargs
): 
1981         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     MakeKey 
= staticmethod(MakeKey
) 
1988     def FindFirstUnusedColour(*args
, **kwargs
): 
1990         FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) 
1992         Find first colour that is not used in the image and has higher RGB 
1993         values than startR, startG, startB.  Returns a tuple consisting of a 
1994         success flag and rgb values. 
1996         return _core_
.ImageHistogram_FindFirstUnusedColour(*args
, **kwargs
) 
1999 class ImageHistogramPtr(ImageHistogram
): 
2000     def __init__(self
, this
): 
2002         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2003         self
.__class
__ = ImageHistogram
 
2004 _core_
.ImageHistogram_swigregister(ImageHistogramPtr
) 
2006 def ImageHistogram_MakeKey(*args
, **kwargs
): 
2008     ImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long 
2010     Get the key in the histogram for the given RGB values 
2012     return _core_
.ImageHistogram_MakeKey(*args
, **kwargs
) 
2014 class Image(Object
): 
2016         return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2017     def __init__(self
, *args
, **kwargs
): 
2018         """__init__(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" 
2019         newobj 
= _core_
.new_Image(*args
, **kwargs
) 
2020         self
.this 
= newobj
.this
 
2023     def __del__(self
, destroy
=_core_
.delete_Image
): 
2026             if self
.thisown
: destroy(self
) 
2029     def Create(*args
, **kwargs
): 
2030         """Create(self, int width, int height)""" 
2031         return _core_
.Image_Create(*args
, **kwargs
) 
2033     def Destroy(*args
, **kwargs
): 
2037         Deletes the C++ object this Python object is a proxy for. 
2039         return _core_
.Image_Destroy(*args
, **kwargs
) 
2041     def Scale(*args
, **kwargs
): 
2042         """Scale(self, int width, int height) -> Image""" 
2043         return _core_
.Image_Scale(*args
, **kwargs
) 
2045     def ShrinkBy(*args
, **kwargs
): 
2046         """ShrinkBy(self, int xFactor, int yFactor) -> Image""" 
2047         return _core_
.Image_ShrinkBy(*args
, **kwargs
) 
2049     def Rescale(*args
, **kwargs
): 
2050         """Rescale(self, int width, int height) -> Image""" 
2051         return _core_
.Image_Rescale(*args
, **kwargs
) 
2053     def SetRGB(*args
, **kwargs
): 
2054         """SetRGB(self, int x, int y, unsigned char r, unsigned char g, unsigned char b)""" 
2055         return _core_
.Image_SetRGB(*args
, **kwargs
) 
2057     def GetRed(*args
, **kwargs
): 
2058         """GetRed(self, int x, int y) -> unsigned char""" 
2059         return _core_
.Image_GetRed(*args
, **kwargs
) 
2061     def GetGreen(*args
, **kwargs
): 
2062         """GetGreen(self, int x, int y) -> unsigned char""" 
2063         return _core_
.Image_GetGreen(*args
, **kwargs
) 
2065     def GetBlue(*args
, **kwargs
): 
2066         """GetBlue(self, int x, int y) -> unsigned char""" 
2067         return _core_
.Image_GetBlue(*args
, **kwargs
) 
2069     def SetAlpha(*args
, **kwargs
): 
2070         """SetAlpha(self, int x, int y, unsigned char alpha)""" 
2071         return _core_
.Image_SetAlpha(*args
, **kwargs
) 
2073     def GetAlpha(*args
, **kwargs
): 
2074         """GetAlpha(self, int x, int y) -> unsigned char""" 
2075         return _core_
.Image_GetAlpha(*args
, **kwargs
) 
2077     def HasAlpha(*args
, **kwargs
): 
2078         """HasAlpha(self) -> bool""" 
2079         return _core_
.Image_HasAlpha(*args
, **kwargs
) 
2081     def FindFirstUnusedColour(*args
, **kwargs
): 
2083         FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) 
2085         Find first colour that is not used in the image and has higher RGB 
2086         values than startR, startG, startB.  Returns a tuple consisting of a 
2087         success flag and rgb values. 
2089         return _core_
.Image_FindFirstUnusedColour(*args
, **kwargs
) 
2091     def ConvertAlphaToMask(*args
, **kwargs
): 
2093         ConvertAlphaToMask(self, byte threshold=128) -> bool 
2095         If the image has alpha channel, this method converts it to mask. All pixels 
2096         with alpha value less than ``threshold`` are replaced with mask colour and the 
2097         alpha channel is removed. Mask colour is chosen automatically using 
2098         `FindFirstUnusedColour`. 
2100         If the image image doesn't have alpha channel, ConvertAlphaToMask does 
2103         return _core_
.Image_ConvertAlphaToMask(*args
, **kwargs
) 
2105     def SetMaskFromImage(*args
, **kwargs
): 
2106         """SetMaskFromImage(self, Image mask, byte mr, byte mg, byte mb) -> bool""" 
2107         return _core_
.Image_SetMaskFromImage(*args
, **kwargs
) 
2109     def CanRead(*args
, **kwargs
): 
2110         """CanRead(String name) -> bool""" 
2111         return _core_
.Image_CanRead(*args
, **kwargs
) 
2113     CanRead 
= staticmethod(CanRead
) 
2114     def GetImageCount(*args
, **kwargs
): 
2115         """GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" 
2116         return _core_
.Image_GetImageCount(*args
, **kwargs
) 
2118     GetImageCount 
= staticmethod(GetImageCount
) 
2119     def LoadFile(*args
, **kwargs
): 
2120         """LoadFile(self, String name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" 
2121         return _core_
.Image_LoadFile(*args
, **kwargs
) 
2123     def LoadMimeFile(*args
, **kwargs
): 
2124         """LoadMimeFile(self, String name, String mimetype, int index=-1) -> bool""" 
2125         return _core_
.Image_LoadMimeFile(*args
, **kwargs
) 
2127     def SaveFile(*args
, **kwargs
): 
2128         """SaveFile(self, String name, int type) -> bool""" 
2129         return _core_
.Image_SaveFile(*args
, **kwargs
) 
2131     def SaveMimeFile(*args
, **kwargs
): 
2132         """SaveMimeFile(self, String name, String mimetype) -> bool""" 
2133         return _core_
.Image_SaveMimeFile(*args
, **kwargs
) 
2135     def CanReadStream(*args
, **kwargs
): 
2136         """CanReadStream(InputStream stream) -> bool""" 
2137         return _core_
.Image_CanReadStream(*args
, **kwargs
) 
2139     CanReadStream 
= staticmethod(CanReadStream
) 
2140     def LoadStream(*args
, **kwargs
): 
2141         """LoadStream(self, InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" 
2142         return _core_
.Image_LoadStream(*args
, **kwargs
) 
2144     def LoadMimeStream(*args
, **kwargs
): 
2145         """LoadMimeStream(self, InputStream stream, String mimetype, int index=-1) -> bool""" 
2146         return _core_
.Image_LoadMimeStream(*args
, **kwargs
) 
2148     def Ok(*args
, **kwargs
): 
2149         """Ok(self) -> bool""" 
2150         return _core_
.Image_Ok(*args
, **kwargs
) 
2152     def GetWidth(*args
, **kwargs
): 
2153         """GetWidth(self) -> int""" 
2154         return _core_
.Image_GetWidth(*args
, **kwargs
) 
2156     def GetHeight(*args
, **kwargs
): 
2157         """GetHeight(self) -> int""" 
2158         return _core_
.Image_GetHeight(*args
, **kwargs
) 
2160     def GetSize(*args
, **kwargs
): 
2161         """GetSize(self) -> Size""" 
2162         return _core_
.Image_GetSize(*args
, **kwargs
) 
2164     def GetSubImage(*args
, **kwargs
): 
2165         """GetSubImage(self, Rect rect) -> Image""" 
2166         return _core_
.Image_GetSubImage(*args
, **kwargs
) 
2168     def Copy(*args
, **kwargs
): 
2169         """Copy(self) -> Image""" 
2170         return _core_
.Image_Copy(*args
, **kwargs
) 
2172     def Paste(*args
, **kwargs
): 
2173         """Paste(self, Image image, int x, int y)""" 
2174         return _core_
.Image_Paste(*args
, **kwargs
) 
2176     def GetData(*args
, **kwargs
): 
2177         """GetData(self) -> PyObject""" 
2178         return _core_
.Image_GetData(*args
, **kwargs
) 
2180     def SetData(*args
, **kwargs
): 
2181         """SetData(self, PyObject data)""" 
2182         return _core_
.Image_SetData(*args
, **kwargs
) 
2184     def GetDataBuffer(*args
, **kwargs
): 
2185         """GetDataBuffer(self) -> PyObject""" 
2186         return _core_
.Image_GetDataBuffer(*args
, **kwargs
) 
2188     def SetDataBuffer(*args
, **kwargs
): 
2189         """SetDataBuffer(self, PyObject data)""" 
2190         return _core_
.Image_SetDataBuffer(*args
, **kwargs
) 
2192     def GetAlphaData(*args
, **kwargs
): 
2193         """GetAlphaData(self) -> PyObject""" 
2194         return _core_
.Image_GetAlphaData(*args
, **kwargs
) 
2196     def SetAlphaData(*args
, **kwargs
): 
2197         """SetAlphaData(self, PyObject data)""" 
2198         return _core_
.Image_SetAlphaData(*args
, **kwargs
) 
2200     def GetAlphaBuffer(*args
, **kwargs
): 
2201         """GetAlphaBuffer(self) -> PyObject""" 
2202         return _core_
.Image_GetAlphaBuffer(*args
, **kwargs
) 
2204     def SetAlphaBuffer(*args
, **kwargs
): 
2205         """SetAlphaBuffer(self, PyObject data)""" 
2206         return _core_
.Image_SetAlphaBuffer(*args
, **kwargs
) 
2208     def SetMaskColour(*args
, **kwargs
): 
2209         """SetMaskColour(self, unsigned char r, unsigned char g, unsigned char b)""" 
2210         return _core_
.Image_SetMaskColour(*args
, **kwargs
) 
2212     def GetMaskRed(*args
, **kwargs
): 
2213         """GetMaskRed(self) -> unsigned char""" 
2214         return _core_
.Image_GetMaskRed(*args
, **kwargs
) 
2216     def GetMaskGreen(*args
, **kwargs
): 
2217         """GetMaskGreen(self) -> unsigned char""" 
2218         return _core_
.Image_GetMaskGreen(*args
, **kwargs
) 
2220     def GetMaskBlue(*args
, **kwargs
): 
2221         """GetMaskBlue(self) -> unsigned char""" 
2222         return _core_
.Image_GetMaskBlue(*args
, **kwargs
) 
2224     def SetMask(*args
, **kwargs
): 
2225         """SetMask(self, bool mask=True)""" 
2226         return _core_
.Image_SetMask(*args
, **kwargs
) 
2228     def HasMask(*args
, **kwargs
): 
2229         """HasMask(self) -> bool""" 
2230         return _core_
.Image_HasMask(*args
, **kwargs
) 
2232     def Rotate(*args
, **kwargs
): 
2234         Rotate(self, double angle, Point centre_of_rotation, bool interpolating=True,  
2235             Point offset_after_rotation=None) -> Image 
2237         return _core_
.Image_Rotate(*args
, **kwargs
) 
2239     def Rotate90(*args
, **kwargs
): 
2240         """Rotate90(self, bool clockwise=True) -> Image""" 
2241         return _core_
.Image_Rotate90(*args
, **kwargs
) 
2243     def Mirror(*args
, **kwargs
): 
2244         """Mirror(self, bool horizontally=True) -> Image""" 
2245         return _core_
.Image_Mirror(*args
, **kwargs
) 
2247     def Replace(*args
, **kwargs
): 
2249         Replace(self, unsigned char r1, unsigned char g1, unsigned char b1,  
2250             unsigned char r2, unsigned char g2, unsigned char b2) 
2252         return _core_
.Image_Replace(*args
, **kwargs
) 
2254     def ConvertToMono(*args
, **kwargs
): 
2255         """ConvertToMono(self, unsigned char r, unsigned char g, unsigned char b) -> Image""" 
2256         return _core_
.Image_ConvertToMono(*args
, **kwargs
) 
2258     def SetOption(*args
, **kwargs
): 
2259         """SetOption(self, String name, String value)""" 
2260         return _core_
.Image_SetOption(*args
, **kwargs
) 
2262     def SetOptionInt(*args
, **kwargs
): 
2263         """SetOptionInt(self, String name, int value)""" 
2264         return _core_
.Image_SetOptionInt(*args
, **kwargs
) 
2266     def GetOption(*args
, **kwargs
): 
2267         """GetOption(self, String name) -> String""" 
2268         return _core_
.Image_GetOption(*args
, **kwargs
) 
2270     def GetOptionInt(*args
, **kwargs
): 
2271         """GetOptionInt(self, String name) -> int""" 
2272         return _core_
.Image_GetOptionInt(*args
, **kwargs
) 
2274     def HasOption(*args
, **kwargs
): 
2275         """HasOption(self, String name) -> bool""" 
2276         return _core_
.Image_HasOption(*args
, **kwargs
) 
2278     def CountColours(*args
, **kwargs
): 
2279         """CountColours(self, unsigned long stopafter=(unsigned long) -1) -> unsigned long""" 
2280         return _core_
.Image_CountColours(*args
, **kwargs
) 
2282     def ComputeHistogram(*args
, **kwargs
): 
2283         """ComputeHistogram(self, ImageHistogram h) -> unsigned long""" 
2284         return _core_
.Image_ComputeHistogram(*args
, **kwargs
) 
2286     def AddHandler(*args
, **kwargs
): 
2287         """AddHandler(ImageHandler handler)""" 
2288         return _core_
.Image_AddHandler(*args
, **kwargs
) 
2290     AddHandler 
= staticmethod(AddHandler
) 
2291     def InsertHandler(*args
, **kwargs
): 
2292         """InsertHandler(ImageHandler handler)""" 
2293         return _core_
.Image_InsertHandler(*args
, **kwargs
) 
2295     InsertHandler 
= staticmethod(InsertHandler
) 
2296     def RemoveHandler(*args
, **kwargs
): 
2297         """RemoveHandler(String name) -> bool""" 
2298         return _core_
.Image_RemoveHandler(*args
, **kwargs
) 
2300     RemoveHandler 
= staticmethod(RemoveHandler
) 
2301     def GetImageExtWildcard(*args
, **kwargs
): 
2302         """GetImageExtWildcard() -> String""" 
2303         return _core_
.Image_GetImageExtWildcard(*args
, **kwargs
) 
2305     GetImageExtWildcard 
= staticmethod(GetImageExtWildcard
) 
2306     def ConvertToBitmap(*args
, **kwargs
): 
2307         """ConvertToBitmap(self, int depth=-1) -> Bitmap""" 
2308         return _core_
.Image_ConvertToBitmap(*args
, **kwargs
) 
2310     def ConvertToMonoBitmap(*args
, **kwargs
): 
2311         """ConvertToMonoBitmap(self, unsigned char red, unsigned char green, unsigned char blue) -> Bitmap""" 
2312         return _core_
.Image_ConvertToMonoBitmap(*args
, **kwargs
) 
2314     def __nonzero__(self
): return self
.Ok()  
2316 class ImagePtr(Image
): 
2317     def __init__(self
, this
): 
2319         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2320         self
.__class
__ = Image
 
2321 _core_
.Image_swigregister(ImagePtr
) 
2323 def ImageFromMime(*args
, **kwargs
): 
2324     """ImageFromMime(String name, String mimetype, int index=-1) -> Image""" 
2325     val 
= _core_
.new_ImageFromMime(*args
, **kwargs
) 
2329 def ImageFromStream(*args
, **kwargs
): 
2330     """ImageFromStream(InputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" 
2331     val 
= _core_
.new_ImageFromStream(*args
, **kwargs
) 
2335 def ImageFromStreamMime(*args
, **kwargs
): 
2336     """ImageFromStreamMime(InputStream stream, String mimetype, int index=-1) -> Image""" 
2337     val 
= _core_
.new_ImageFromStreamMime(*args
, **kwargs
) 
2341 def EmptyImage(*args
, **kwargs
): 
2342     """EmptyImage(int width=0, int height=0, bool clear=True) -> Image""" 
2343     val 
= _core_
.new_EmptyImage(*args
, **kwargs
) 
2347 def ImageFromBitmap(*args
, **kwargs
): 
2348     """ImageFromBitmap(Bitmap bitmap) -> Image""" 
2349     val 
= _core_
.new_ImageFromBitmap(*args
, **kwargs
) 
2353 def ImageFromData(*args
, **kwargs
): 
2354     """ImageFromData(int width, int height, unsigned char data) -> Image""" 
2355     val 
= _core_
.new_ImageFromData(*args
, **kwargs
) 
2359 def Image_CanRead(*args
, **kwargs
): 
2360     """Image_CanRead(String name) -> bool""" 
2361     return _core_
.Image_CanRead(*args
, **kwargs
) 
2363 def Image_GetImageCount(*args
, **kwargs
): 
2364     """Image_GetImageCount(String name, long type=BITMAP_TYPE_ANY) -> int""" 
2365     return _core_
.Image_GetImageCount(*args
, **kwargs
) 
2367 def Image_CanReadStream(*args
, **kwargs
): 
2368     """Image_CanReadStream(InputStream stream) -> bool""" 
2369     return _core_
.Image_CanReadStream(*args
, **kwargs
) 
2371 def Image_AddHandler(*args
, **kwargs
): 
2372     """Image_AddHandler(ImageHandler handler)""" 
2373     return _core_
.Image_AddHandler(*args
, **kwargs
) 
2375 def Image_InsertHandler(*args
, **kwargs
): 
2376     """Image_InsertHandler(ImageHandler handler)""" 
2377     return _core_
.Image_InsertHandler(*args
, **kwargs
) 
2379 def Image_RemoveHandler(*args
, **kwargs
): 
2380     """Image_RemoveHandler(String name) -> bool""" 
2381     return _core_
.Image_RemoveHandler(*args
, **kwargs
) 
2383 def Image_GetImageExtWildcard(*args
, **kwargs
): 
2384     """Image_GetImageExtWildcard() -> String""" 
2385     return _core_
.Image_GetImageExtWildcard(*args
, **kwargs
) 
2387 def InitAllImageHandlers(): 
2389     The former functionality of InitAllImageHanders is now done internal to 
2390     the _core_ extension module and so this function has become a simple NOP. 
2394 IMAGE_RESOLUTION_INCHES 
= _core_
.IMAGE_RESOLUTION_INCHES
 
2395 IMAGE_RESOLUTION_CM 
= _core_
.IMAGE_RESOLUTION_CM
 
2396 BMP_24BPP 
= _core_
.BMP_24BPP
 
2397 BMP_8BPP 
= _core_
.BMP_8BPP
 
2398 BMP_8BPP_GREY 
= _core_
.BMP_8BPP_GREY
 
2399 BMP_8BPP_GRAY 
= _core_
.BMP_8BPP_GRAY
 
2400 BMP_8BPP_RED 
= _core_
.BMP_8BPP_RED
 
2401 BMP_8BPP_PALETTE 
= _core_
.BMP_8BPP_PALETTE
 
2402 BMP_4BPP 
= _core_
.BMP_4BPP
 
2403 BMP_1BPP 
= _core_
.BMP_1BPP
 
2404 BMP_1BPP_BW 
= _core_
.BMP_1BPP_BW
 
2405 class BMPHandler(ImageHandler
): 
2407         return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2408     def __init__(self
, *args
, **kwargs
): 
2409         """__init__(self) -> BMPHandler""" 
2410         newobj 
= _core_
.new_BMPHandler(*args
, **kwargs
) 
2411         self
.this 
= newobj
.this
 
2415 class BMPHandlerPtr(BMPHandler
): 
2416     def __init__(self
, this
): 
2418         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2419         self
.__class
__ = BMPHandler
 
2420 _core_
.BMPHandler_swigregister(BMPHandlerPtr
) 
2421 NullImage 
= cvar
.NullImage
 
2422 IMAGE_OPTION_BMP_FORMAT 
= cvar
.IMAGE_OPTION_BMP_FORMAT
 
2423 IMAGE_OPTION_CUR_HOTSPOT_X 
= cvar
.IMAGE_OPTION_CUR_HOTSPOT_X
 
2424 IMAGE_OPTION_CUR_HOTSPOT_Y 
= cvar
.IMAGE_OPTION_CUR_HOTSPOT_Y
 
2425 IMAGE_OPTION_RESOLUTION 
= cvar
.IMAGE_OPTION_RESOLUTION
 
2426 IMAGE_OPTION_RESOLUTIONUNIT 
= cvar
.IMAGE_OPTION_RESOLUTIONUNIT
 
2428 class ICOHandler(BMPHandler
): 
2430         return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2431     def __init__(self
, *args
, **kwargs
): 
2432         """__init__(self) -> ICOHandler""" 
2433         newobj 
= _core_
.new_ICOHandler(*args
, **kwargs
) 
2434         self
.this 
= newobj
.this
 
2438 class ICOHandlerPtr(ICOHandler
): 
2439     def __init__(self
, this
): 
2441         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2442         self
.__class
__ = ICOHandler
 
2443 _core_
.ICOHandler_swigregister(ICOHandlerPtr
) 
2445 class CURHandler(ICOHandler
): 
2447         return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2448     def __init__(self
, *args
, **kwargs
): 
2449         """__init__(self) -> CURHandler""" 
2450         newobj 
= _core_
.new_CURHandler(*args
, **kwargs
) 
2451         self
.this 
= newobj
.this
 
2455 class CURHandlerPtr(CURHandler
): 
2456     def __init__(self
, this
): 
2458         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2459         self
.__class
__ = CURHandler
 
2460 _core_
.CURHandler_swigregister(CURHandlerPtr
) 
2462 class ANIHandler(CURHandler
): 
2464         return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2465     def __init__(self
, *args
, **kwargs
): 
2466         """__init__(self) -> ANIHandler""" 
2467         newobj 
= _core_
.new_ANIHandler(*args
, **kwargs
) 
2468         self
.this 
= newobj
.this
 
2472 class ANIHandlerPtr(ANIHandler
): 
2473     def __init__(self
, this
): 
2475         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2476         self
.__class
__ = ANIHandler
 
2477 _core_
.ANIHandler_swigregister(ANIHandlerPtr
) 
2479 class PNGHandler(ImageHandler
): 
2481         return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2482     def __init__(self
, *args
, **kwargs
): 
2483         """__init__(self) -> PNGHandler""" 
2484         newobj 
= _core_
.new_PNGHandler(*args
, **kwargs
) 
2485         self
.this 
= newobj
.this
 
2489 class PNGHandlerPtr(PNGHandler
): 
2490     def __init__(self
, this
): 
2492         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2493         self
.__class
__ = PNGHandler
 
2494 _core_
.PNGHandler_swigregister(PNGHandlerPtr
) 
2496 class GIFHandler(ImageHandler
): 
2498         return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2499     def __init__(self
, *args
, **kwargs
): 
2500         """__init__(self) -> GIFHandler""" 
2501         newobj 
= _core_
.new_GIFHandler(*args
, **kwargs
) 
2502         self
.this 
= newobj
.this
 
2506 class GIFHandlerPtr(GIFHandler
): 
2507     def __init__(self
, this
): 
2509         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2510         self
.__class
__ = GIFHandler
 
2511 _core_
.GIFHandler_swigregister(GIFHandlerPtr
) 
2513 class PCXHandler(ImageHandler
): 
2515         return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2516     def __init__(self
, *args
, **kwargs
): 
2517         """__init__(self) -> PCXHandler""" 
2518         newobj 
= _core_
.new_PCXHandler(*args
, **kwargs
) 
2519         self
.this 
= newobj
.this
 
2523 class PCXHandlerPtr(PCXHandler
): 
2524     def __init__(self
, this
): 
2526         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2527         self
.__class
__ = PCXHandler
 
2528 _core_
.PCXHandler_swigregister(PCXHandlerPtr
) 
2530 class JPEGHandler(ImageHandler
): 
2532         return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2533     def __init__(self
, *args
, **kwargs
): 
2534         """__init__(self) -> JPEGHandler""" 
2535         newobj 
= _core_
.new_JPEGHandler(*args
, **kwargs
) 
2536         self
.this 
= newobj
.this
 
2540 class JPEGHandlerPtr(JPEGHandler
): 
2541     def __init__(self
, this
): 
2543         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2544         self
.__class
__ = JPEGHandler
 
2545 _core_
.JPEGHandler_swigregister(JPEGHandlerPtr
) 
2547 class PNMHandler(ImageHandler
): 
2549         return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2550     def __init__(self
, *args
, **kwargs
): 
2551         """__init__(self) -> PNMHandler""" 
2552         newobj 
= _core_
.new_PNMHandler(*args
, **kwargs
) 
2553         self
.this 
= newobj
.this
 
2557 class PNMHandlerPtr(PNMHandler
): 
2558     def __init__(self
, this
): 
2560         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2561         self
.__class
__ = PNMHandler
 
2562 _core_
.PNMHandler_swigregister(PNMHandlerPtr
) 
2564 class XPMHandler(ImageHandler
): 
2566         return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2567     def __init__(self
, *args
, **kwargs
): 
2568         """__init__(self) -> XPMHandler""" 
2569         newobj 
= _core_
.new_XPMHandler(*args
, **kwargs
) 
2570         self
.this 
= newobj
.this
 
2574 class XPMHandlerPtr(XPMHandler
): 
2575     def __init__(self
, this
): 
2577         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2578         self
.__class
__ = XPMHandler
 
2579 _core_
.XPMHandler_swigregister(XPMHandlerPtr
) 
2581 class TIFFHandler(ImageHandler
): 
2583         return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2584     def __init__(self
, *args
, **kwargs
): 
2585         """__init__(self) -> TIFFHandler""" 
2586         newobj 
= _core_
.new_TIFFHandler(*args
, **kwargs
) 
2587         self
.this 
= newobj
.this
 
2591 class TIFFHandlerPtr(TIFFHandler
): 
2592     def __init__(self
, this
): 
2594         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2595         self
.__class
__ = TIFFHandler
 
2596 _core_
.TIFFHandler_swigregister(TIFFHandlerPtr
) 
2598 QUANTIZE_INCLUDE_WINDOWS_COLOURS 
= _core_
.QUANTIZE_INCLUDE_WINDOWS_COLOURS
 
2599 QUANTIZE_FILL_DESTINATION_IMAGE 
= _core_
.QUANTIZE_FILL_DESTINATION_IMAGE
 
2600 class Quantize(object): 
2601     """Performs quantization, or colour reduction, on a wxImage.""" 
2602     def __init__(self
): raise RuntimeError, "No constructor defined" 
2604         return "<%s.%s; proxy of C++ wxQuantize instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2605     def Quantize(*args
, **kwargs
): 
2607         Quantize(Image src, Image dest, int desiredNoColours=236, int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool 
2609         Reduce the colours in the source image and put the result into the 
2610         destination image, setting the palette in the destination if 
2611         needed. Both images may be the same, to overwrite the source image. 
2613         return _core_
.Quantize_Quantize(*args
, **kwargs
) 
2615     Quantize 
= staticmethod(Quantize
) 
2617 class QuantizePtr(Quantize
): 
2618     def __init__(self
, this
): 
2620         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2621         self
.__class
__ = Quantize
 
2622 _core_
.Quantize_swigregister(QuantizePtr
) 
2624 def Quantize_Quantize(*args
, **kwargs
): 
2626     Quantize_Quantize(Image src, Image dest, int desiredNoColours=236, int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE) -> bool 
2628     Reduce the colours in the source image and put the result into the 
2629     destination image, setting the palette in the destination if 
2630     needed. Both images may be the same, to overwrite the source image. 
2632     return _core_
.Quantize_Quantize(*args
, **kwargs
) 
2634 #--------------------------------------------------------------------------- 
2636 class EvtHandler(Object
): 
2638         return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2639     def __init__(self
, *args
, **kwargs
): 
2640         """__init__(self) -> EvtHandler""" 
2641         newobj 
= _core_
.new_EvtHandler(*args
, **kwargs
) 
2642         self
.this 
= newobj
.this
 
2645     def GetNextHandler(*args
, **kwargs
): 
2646         """GetNextHandler(self) -> EvtHandler""" 
2647         return _core_
.EvtHandler_GetNextHandler(*args
, **kwargs
) 
2649     def GetPreviousHandler(*args
, **kwargs
): 
2650         """GetPreviousHandler(self) -> EvtHandler""" 
2651         return _core_
.EvtHandler_GetPreviousHandler(*args
, **kwargs
) 
2653     def SetNextHandler(*args
, **kwargs
): 
2654         """SetNextHandler(self, EvtHandler handler)""" 
2655         return _core_
.EvtHandler_SetNextHandler(*args
, **kwargs
) 
2657     def SetPreviousHandler(*args
, **kwargs
): 
2658         """SetPreviousHandler(self, EvtHandler handler)""" 
2659         return _core_
.EvtHandler_SetPreviousHandler(*args
, **kwargs
) 
2661     def GetEvtHandlerEnabled(*args
, **kwargs
): 
2662         """GetEvtHandlerEnabled(self) -> bool""" 
2663         return _core_
.EvtHandler_GetEvtHandlerEnabled(*args
, **kwargs
) 
2665     def SetEvtHandlerEnabled(*args
, **kwargs
): 
2666         """SetEvtHandlerEnabled(self, bool enabled)""" 
2667         return _core_
.EvtHandler_SetEvtHandlerEnabled(*args
, **kwargs
) 
2669     def ProcessEvent(*args
, **kwargs
): 
2670         """ProcessEvent(self, Event event) -> bool""" 
2671         return _core_
.EvtHandler_ProcessEvent(*args
, **kwargs
) 
2673     def AddPendingEvent(*args
, **kwargs
): 
2674         """AddPendingEvent(self, Event event)""" 
2675         return _core_
.EvtHandler_AddPendingEvent(*args
, **kwargs
) 
2677     def ProcessPendingEvents(*args
, **kwargs
): 
2678         """ProcessPendingEvents(self)""" 
2679         return _core_
.EvtHandler_ProcessPendingEvents(*args
, **kwargs
) 
2681     def Connect(*args
, **kwargs
): 
2682         """Connect(self, int id, int lastId, int eventType, PyObject func)""" 
2683         return _core_
.EvtHandler_Connect(*args
, **kwargs
) 
2685     def Disconnect(*args
, **kwargs
): 
2686         """Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool""" 
2687         return _core_
.EvtHandler_Disconnect(*args
, **kwargs
) 
2689     def _setOORInfo(*args
, **kwargs
): 
2690         """_setOORInfo(self, PyObject _self)""" 
2691         return _core_
.EvtHandler__setOORInfo(*args
, **kwargs
) 
2693     def Bind(self
, event
, handler
, source
=None, id=wx
.ID_ANY
, id2
=wx
.ID_ANY
): 
2695         Bind an event to an event handler. 
2697         :param event: One of the EVT_* objects that specifies the 
2698                       type of event to bind, 
2700         :param handler: A callable object to be invoked when the 
2701                       event is delivered to self.  Pass None to 
2702                       disconnect an event handler. 
2704         :param source: Sometimes the event originates from a 
2705                       different window than self, but you still 
2706                       want to catch it in self.  (For example, a 
2707                       button event delivered to a frame.)  By 
2708                       passing the source of the event, the event 
2709                       handling system is able to differentiate 
2710                       between the same event type from different 
2713         :param id: Used to spcify the event source by ID instead 
2716         :param id2: Used when it is desirable to bind a handler 
2717                       to a range of IDs, such as with EVT_MENU_RANGE. 
2719         if source 
is not None: 
2721         event
.Bind(self
, id, id2
, handler
)               
2723     def Unbind(self
, event
, source
=None, id=wx
.ID_ANY
, id2
=wx
.ID_ANY
): 
2725         Disconencts the event handler binding for event from self. 
2726         Returns True if successful. 
2728         if source 
is not None: 
2730         return event
.Unbind(self
, id, id2
)               
2733 class EvtHandlerPtr(EvtHandler
): 
2734     def __init__(self
, this
): 
2736         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2737         self
.__class
__ = EvtHandler
 
2738 _core_
.EvtHandler_swigregister(EvtHandlerPtr
) 
2740 #--------------------------------------------------------------------------- 
2742 class PyEventBinder(object): 
2744     Instances of this class are used to bind specific events to event 
2747     def __init__(self
, evtType
, expectedIDs
=0): 
2748         if expectedIDs 
not in [0, 1, 2]: 
2749             raise ValueError, "Invalid number of expectedIDs" 
2750         self
.expectedIDs 
= expectedIDs
 
2752         if type(evtType
) == list or type(evtType
) == tuple: 
2753             self
.evtType 
= evtType
 
2755             self
.evtType 
= [evtType
] 
2758     def Bind(self
, target
, id1
, id2
, function
): 
2759         """Bind this set of event types to target.""" 
2760         for et 
in self
.evtType
: 
2761             target
.Connect(id1
, id2
, et
, function
) 
2764     def Unbind(self
, target
, id1
, id2
): 
2765         """Remove an event binding.""" 
2767         for et 
in self
.evtType
: 
2768             success 
+= target
.Disconnect(id1
, id2
, et
) 
2772     def __call__(self
, *args
): 
2774         For backwards compatibility with the old EVT_* functions. 
2775         Should be called with either (window, func), (window, ID, 
2776         func) or (window, ID1, ID2, func) parameters depending on the 
2779         assert len(args
) == 2 + self
.expectedIDs
 
2783         if self
.expectedIDs 
== 0: 
2785         elif self
.expectedIDs 
== 1: 
2788         elif self
.expectedIDs 
== 2: 
2793             raise ValueError, "Unexpected number of IDs" 
2795         self
.Bind(target
, id1
, id2
, func
) 
2798 # These two are square pegs that don't fit the PyEventBinder hole... 
2799 def EVT_COMMAND(win
, id, cmd
, func
): 
2800     win
.Connect(id, -1, cmd
, func
) 
2801 def EVT_COMMAND_RANGE(win
, id1
, id2
, cmd
, func
): 
2802     win
.Connect(id1
, id2
, cmd
, func
) 
2805 #--------------------------------------------------------------------------- 
2807 #--------------------------------------------------------------------------- 
2809 EVENT_PROPAGATE_NONE 
= _core_
.EVENT_PROPAGATE_NONE
 
2810 EVENT_PROPAGATE_MAX 
= _core_
.EVENT_PROPAGATE_MAX
 
2812 def NewEventType(*args
, **kwargs
): 
2813     """NewEventType() -> wxEventType""" 
2814     return _core_
.NewEventType(*args
, **kwargs
) 
2815 wxEVT_NULL 
= _core_
.wxEVT_NULL
 
2816 wxEVT_FIRST 
= _core_
.wxEVT_FIRST
 
2817 wxEVT_USER_FIRST 
= _core_
.wxEVT_USER_FIRST
 
2818 wxEVT_COMMAND_BUTTON_CLICKED 
= _core_
.wxEVT_COMMAND_BUTTON_CLICKED
 
2819 wxEVT_COMMAND_CHECKBOX_CLICKED 
= _core_
.wxEVT_COMMAND_CHECKBOX_CLICKED
 
2820 wxEVT_COMMAND_CHOICE_SELECTED 
= _core_
.wxEVT_COMMAND_CHOICE_SELECTED
 
2821 wxEVT_COMMAND_LISTBOX_SELECTED 
= _core_
.wxEVT_COMMAND_LISTBOX_SELECTED
 
2822 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED 
= _core_
.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
 
2823 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED 
= _core_
.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
 
2824 wxEVT_COMMAND_MENU_SELECTED 
= _core_
.wxEVT_COMMAND_MENU_SELECTED
 
2825 wxEVT_COMMAND_TOOL_CLICKED 
= _core_
.wxEVT_COMMAND_TOOL_CLICKED
 
2826 wxEVT_COMMAND_SLIDER_UPDATED 
= _core_
.wxEVT_COMMAND_SLIDER_UPDATED
 
2827 wxEVT_COMMAND_RADIOBOX_SELECTED 
= _core_
.wxEVT_COMMAND_RADIOBOX_SELECTED
 
2828 wxEVT_COMMAND_RADIOBUTTON_SELECTED 
= _core_
.wxEVT_COMMAND_RADIOBUTTON_SELECTED
 
2829 wxEVT_COMMAND_SCROLLBAR_UPDATED 
= _core_
.wxEVT_COMMAND_SCROLLBAR_UPDATED
 
2830 wxEVT_COMMAND_VLBOX_SELECTED 
= _core_
.wxEVT_COMMAND_VLBOX_SELECTED
 
2831 wxEVT_COMMAND_COMBOBOX_SELECTED 
= _core_
.wxEVT_COMMAND_COMBOBOX_SELECTED
 
2832 wxEVT_COMMAND_TOOL_RCLICKED 
= _core_
.wxEVT_COMMAND_TOOL_RCLICKED
 
2833 wxEVT_COMMAND_TOOL_ENTER 
= _core_
.wxEVT_COMMAND_TOOL_ENTER
 
2834 wxEVT_LEFT_DOWN 
= _core_
.wxEVT_LEFT_DOWN
 
2835 wxEVT_LEFT_UP 
= _core_
.wxEVT_LEFT_UP
 
2836 wxEVT_MIDDLE_DOWN 
= _core_
.wxEVT_MIDDLE_DOWN
 
2837 wxEVT_MIDDLE_UP 
= _core_
.wxEVT_MIDDLE_UP
 
2838 wxEVT_RIGHT_DOWN 
= _core_
.wxEVT_RIGHT_DOWN
 
2839 wxEVT_RIGHT_UP 
= _core_
.wxEVT_RIGHT_UP
 
2840 wxEVT_MOTION 
= _core_
.wxEVT_MOTION
 
2841 wxEVT_ENTER_WINDOW 
= _core_
.wxEVT_ENTER_WINDOW
 
2842 wxEVT_LEAVE_WINDOW 
= _core_
.wxEVT_LEAVE_WINDOW
 
2843 wxEVT_LEFT_DCLICK 
= _core_
.wxEVT_LEFT_DCLICK
 
2844 wxEVT_MIDDLE_DCLICK 
= _core_
.wxEVT_MIDDLE_DCLICK
 
2845 wxEVT_RIGHT_DCLICK 
= _core_
.wxEVT_RIGHT_DCLICK
 
2846 wxEVT_SET_FOCUS 
= _core_
.wxEVT_SET_FOCUS
 
2847 wxEVT_KILL_FOCUS 
= _core_
.wxEVT_KILL_FOCUS
 
2848 wxEVT_CHILD_FOCUS 
= _core_
.wxEVT_CHILD_FOCUS
 
2849 wxEVT_MOUSEWHEEL 
= _core_
.wxEVT_MOUSEWHEEL
 
2850 wxEVT_NC_LEFT_DOWN 
= _core_
.wxEVT_NC_LEFT_DOWN
 
2851 wxEVT_NC_LEFT_UP 
= _core_
.wxEVT_NC_LEFT_UP
 
2852 wxEVT_NC_MIDDLE_DOWN 
= _core_
.wxEVT_NC_MIDDLE_DOWN
 
2853 wxEVT_NC_MIDDLE_UP 
= _core_
.wxEVT_NC_MIDDLE_UP
 
2854 wxEVT_NC_RIGHT_DOWN 
= _core_
.wxEVT_NC_RIGHT_DOWN
 
2855 wxEVT_NC_RIGHT_UP 
= _core_
.wxEVT_NC_RIGHT_UP
 
2856 wxEVT_NC_MOTION 
= _core_
.wxEVT_NC_MOTION
 
2857 wxEVT_NC_ENTER_WINDOW 
= _core_
.wxEVT_NC_ENTER_WINDOW
 
2858 wxEVT_NC_LEAVE_WINDOW 
= _core_
.wxEVT_NC_LEAVE_WINDOW
 
2859 wxEVT_NC_LEFT_DCLICK 
= _core_
.wxEVT_NC_LEFT_DCLICK
 
2860 wxEVT_NC_MIDDLE_DCLICK 
= _core_
.wxEVT_NC_MIDDLE_DCLICK
 
2861 wxEVT_NC_RIGHT_DCLICK 
= _core_
.wxEVT_NC_RIGHT_DCLICK
 
2862 wxEVT_CHAR 
= _core_
.wxEVT_CHAR
 
2863 wxEVT_CHAR_HOOK 
= _core_
.wxEVT_CHAR_HOOK
 
2864 wxEVT_NAVIGATION_KEY 
= _core_
.wxEVT_NAVIGATION_KEY
 
2865 wxEVT_KEY_DOWN 
= _core_
.wxEVT_KEY_DOWN
 
2866 wxEVT_KEY_UP 
= _core_
.wxEVT_KEY_UP
 
2867 wxEVT_HOTKEY 
= _core_
.wxEVT_HOTKEY
 
2868 wxEVT_SET_CURSOR 
= _core_
.wxEVT_SET_CURSOR
 
2869 wxEVT_SCROLL_TOP 
= _core_
.wxEVT_SCROLL_TOP
 
2870 wxEVT_SCROLL_BOTTOM 
= _core_
.wxEVT_SCROLL_BOTTOM
 
2871 wxEVT_SCROLL_LINEUP 
= _core_
.wxEVT_SCROLL_LINEUP
 
2872 wxEVT_SCROLL_LINEDOWN 
= _core_
.wxEVT_SCROLL_LINEDOWN
 
2873 wxEVT_SCROLL_PAGEUP 
= _core_
.wxEVT_SCROLL_PAGEUP
 
2874 wxEVT_SCROLL_PAGEDOWN 
= _core_
.wxEVT_SCROLL_PAGEDOWN
 
2875 wxEVT_SCROLL_THUMBTRACK 
= _core_
.wxEVT_SCROLL_THUMBTRACK
 
2876 wxEVT_SCROLL_THUMBRELEASE 
= _core_
.wxEVT_SCROLL_THUMBRELEASE
 
2877 wxEVT_SCROLL_ENDSCROLL 
= _core_
.wxEVT_SCROLL_ENDSCROLL
 
2878 wxEVT_SCROLLWIN_TOP 
= _core_
.wxEVT_SCROLLWIN_TOP
 
2879 wxEVT_SCROLLWIN_BOTTOM 
= _core_
.wxEVT_SCROLLWIN_BOTTOM
 
2880 wxEVT_SCROLLWIN_LINEUP 
= _core_
.wxEVT_SCROLLWIN_LINEUP
 
2881 wxEVT_SCROLLWIN_LINEDOWN 
= _core_
.wxEVT_SCROLLWIN_LINEDOWN
 
2882 wxEVT_SCROLLWIN_PAGEUP 
= _core_
.wxEVT_SCROLLWIN_PAGEUP
 
2883 wxEVT_SCROLLWIN_PAGEDOWN 
= _core_
.wxEVT_SCROLLWIN_PAGEDOWN
 
2884 wxEVT_SCROLLWIN_THUMBTRACK 
= _core_
.wxEVT_SCROLLWIN_THUMBTRACK
 
2885 wxEVT_SCROLLWIN_THUMBRELEASE 
= _core_
.wxEVT_SCROLLWIN_THUMBRELEASE
 
2886 wxEVT_SIZE 
= _core_
.wxEVT_SIZE
 
2887 wxEVT_MOVE 
= _core_
.wxEVT_MOVE
 
2888 wxEVT_CLOSE_WINDOW 
= _core_
.wxEVT_CLOSE_WINDOW
 
2889 wxEVT_END_SESSION 
= _core_
.wxEVT_END_SESSION
 
2890 wxEVT_QUERY_END_SESSION 
= _core_
.wxEVT_QUERY_END_SESSION
 
2891 wxEVT_ACTIVATE_APP 
= _core_
.wxEVT_ACTIVATE_APP
 
2892 wxEVT_POWER 
= _core_
.wxEVT_POWER
 
2893 wxEVT_ACTIVATE 
= _core_
.wxEVT_ACTIVATE
 
2894 wxEVT_CREATE 
= _core_
.wxEVT_CREATE
 
2895 wxEVT_DESTROY 
= _core_
.wxEVT_DESTROY
 
2896 wxEVT_SHOW 
= _core_
.wxEVT_SHOW
 
2897 wxEVT_ICONIZE 
= _core_
.wxEVT_ICONIZE
 
2898 wxEVT_MAXIMIZE 
= _core_
.wxEVT_MAXIMIZE
 
2899 wxEVT_MOUSE_CAPTURE_CHANGED 
= _core_
.wxEVT_MOUSE_CAPTURE_CHANGED
 
2900 wxEVT_PAINT 
= _core_
.wxEVT_PAINT
 
2901 wxEVT_ERASE_BACKGROUND 
= _core_
.wxEVT_ERASE_BACKGROUND
 
2902 wxEVT_NC_PAINT 
= _core_
.wxEVT_NC_PAINT
 
2903 wxEVT_PAINT_ICON 
= _core_
.wxEVT_PAINT_ICON
 
2904 wxEVT_MENU_OPEN 
= _core_
.wxEVT_MENU_OPEN
 
2905 wxEVT_MENU_CLOSE 
= _core_
.wxEVT_MENU_CLOSE
 
2906 wxEVT_MENU_HIGHLIGHT 
= _core_
.wxEVT_MENU_HIGHLIGHT
 
2907 wxEVT_CONTEXT_MENU 
= _core_
.wxEVT_CONTEXT_MENU
 
2908 wxEVT_SYS_COLOUR_CHANGED 
= _core_
.wxEVT_SYS_COLOUR_CHANGED
 
2909 wxEVT_DISPLAY_CHANGED 
= _core_
.wxEVT_DISPLAY_CHANGED
 
2910 wxEVT_SETTING_CHANGED 
= _core_
.wxEVT_SETTING_CHANGED
 
2911 wxEVT_QUERY_NEW_PALETTE 
= _core_
.wxEVT_QUERY_NEW_PALETTE
 
2912 wxEVT_PALETTE_CHANGED 
= _core_
.wxEVT_PALETTE_CHANGED
 
2913 wxEVT_DROP_FILES 
= _core_
.wxEVT_DROP_FILES
 
2914 wxEVT_DRAW_ITEM 
= _core_
.wxEVT_DRAW_ITEM
 
2915 wxEVT_MEASURE_ITEM 
= _core_
.wxEVT_MEASURE_ITEM
 
2916 wxEVT_COMPARE_ITEM 
= _core_
.wxEVT_COMPARE_ITEM
 
2917 wxEVT_INIT_DIALOG 
= _core_
.wxEVT_INIT_DIALOG
 
2918 wxEVT_IDLE 
= _core_
.wxEVT_IDLE
 
2919 wxEVT_UPDATE_UI 
= _core_
.wxEVT_UPDATE_UI
 
2920 wxEVT_SIZING 
= _core_
.wxEVT_SIZING
 
2921 wxEVT_MOVING 
= _core_
.wxEVT_MOVING
 
2922 wxEVT_COMMAND_LEFT_CLICK 
= _core_
.wxEVT_COMMAND_LEFT_CLICK
 
2923 wxEVT_COMMAND_LEFT_DCLICK 
= _core_
.wxEVT_COMMAND_LEFT_DCLICK
 
2924 wxEVT_COMMAND_RIGHT_CLICK 
= _core_
.wxEVT_COMMAND_RIGHT_CLICK
 
2925 wxEVT_COMMAND_RIGHT_DCLICK 
= _core_
.wxEVT_COMMAND_RIGHT_DCLICK
 
2926 wxEVT_COMMAND_SET_FOCUS 
= _core_
.wxEVT_COMMAND_SET_FOCUS
 
2927 wxEVT_COMMAND_KILL_FOCUS 
= _core_
.wxEVT_COMMAND_KILL_FOCUS
 
2928 wxEVT_COMMAND_ENTER 
= _core_
.wxEVT_COMMAND_ENTER
 
2930 # Create some event binders 
2931 EVT_SIZE 
= wx
.PyEventBinder( wxEVT_SIZE 
) 
2932 EVT_SIZING 
= wx
.PyEventBinder( wxEVT_SIZING 
) 
2933 EVT_MOVE 
= wx
.PyEventBinder( wxEVT_MOVE 
) 
2934 EVT_MOVING 
= wx
.PyEventBinder( wxEVT_MOVING 
) 
2935 EVT_CLOSE 
= wx
.PyEventBinder( wxEVT_CLOSE_WINDOW 
) 
2936 EVT_END_SESSION 
= wx
.PyEventBinder( wxEVT_END_SESSION 
) 
2937 EVT_QUERY_END_SESSION 
= wx
.PyEventBinder( wxEVT_QUERY_END_SESSION 
) 
2938 EVT_PAINT 
= wx
.PyEventBinder( wxEVT_PAINT 
) 
2939 EVT_NC_PAINT 
= wx
.PyEventBinder( wxEVT_NC_PAINT 
) 
2940 EVT_ERASE_BACKGROUND 
= wx
.PyEventBinder( wxEVT_ERASE_BACKGROUND 
) 
2941 EVT_CHAR 
= wx
.PyEventBinder( wxEVT_CHAR 
) 
2942 EVT_KEY_DOWN 
= wx
.PyEventBinder( wxEVT_KEY_DOWN 
) 
2943 EVT_KEY_UP 
= wx
.PyEventBinder( wxEVT_KEY_UP 
) 
2944 EVT_HOTKEY 
= wx
.PyEventBinder( wxEVT_HOTKEY
, 1)  
2945 EVT_CHAR_HOOK 
= wx
.PyEventBinder( wxEVT_CHAR_HOOK 
) 
2946 EVT_MENU_OPEN 
= wx
.PyEventBinder( wxEVT_MENU_OPEN 
) 
2947 EVT_MENU_CLOSE 
= wx
.PyEventBinder( wxEVT_MENU_CLOSE 
) 
2948 EVT_MENU_HIGHLIGHT 
= wx
.PyEventBinder( wxEVT_MENU_HIGHLIGHT
, 1) 
2949 EVT_MENU_HIGHLIGHT_ALL 
= wx
.PyEventBinder( wxEVT_MENU_HIGHLIGHT 
) 
2950 EVT_SET_FOCUS 
= wx
.PyEventBinder( wxEVT_SET_FOCUS 
) 
2951 EVT_KILL_FOCUS 
= wx
.PyEventBinder( wxEVT_KILL_FOCUS 
) 
2952 EVT_CHILD_FOCUS 
= wx
.PyEventBinder( wxEVT_CHILD_FOCUS 
) 
2953 EVT_ACTIVATE 
= wx
.PyEventBinder( wxEVT_ACTIVATE 
) 
2954 EVT_ACTIVATE_APP 
= wx
.PyEventBinder( wxEVT_ACTIVATE_APP 
) 
2955 EVT_END_SESSION 
= wx
.PyEventBinder( wxEVT_END_SESSION 
) 
2956 EVT_QUERY_END_SESSION 
= wx
.PyEventBinder( wxEVT_QUERY_END_SESSION 
) 
2957 EVT_DROP_FILES 
= wx
.PyEventBinder( wxEVT_DROP_FILES 
) 
2958 EVT_INIT_DIALOG 
= wx
.PyEventBinder( wxEVT_INIT_DIALOG 
) 
2959 EVT_SYS_COLOUR_CHANGED 
= wx
.PyEventBinder( wxEVT_SYS_COLOUR_CHANGED 
) 
2960 EVT_DISPLAY_CHANGED 
= wx
.PyEventBinder( wxEVT_DISPLAY_CHANGED 
) 
2961 EVT_SHOW 
= wx
.PyEventBinder( wxEVT_SHOW 
) 
2962 EVT_MAXIMIZE 
= wx
.PyEventBinder( wxEVT_MAXIMIZE 
) 
2963 EVT_ICONIZE 
= wx
.PyEventBinder( wxEVT_ICONIZE 
) 
2964 EVT_NAVIGATION_KEY 
= wx
.PyEventBinder( wxEVT_NAVIGATION_KEY 
) 
2965 EVT_PALETTE_CHANGED 
= wx
.PyEventBinder( wxEVT_PALETTE_CHANGED 
) 
2966 EVT_QUERY_NEW_PALETTE 
= wx
.PyEventBinder( wxEVT_QUERY_NEW_PALETTE 
) 
2967 EVT_WINDOW_CREATE 
= wx
.PyEventBinder( wxEVT_CREATE 
) 
2968 EVT_WINDOW_DESTROY 
= wx
.PyEventBinder( wxEVT_DESTROY 
) 
2969 EVT_SET_CURSOR 
= wx
.PyEventBinder( wxEVT_SET_CURSOR 
) 
2970 EVT_MOUSE_CAPTURE_CHANGED 
= wx
.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED 
) 
2972 EVT_LEFT_DOWN 
= wx
.PyEventBinder( wxEVT_LEFT_DOWN 
) 
2973 EVT_LEFT_UP 
= wx
.PyEventBinder( wxEVT_LEFT_UP 
) 
2974 EVT_MIDDLE_DOWN 
= wx
.PyEventBinder( wxEVT_MIDDLE_DOWN 
) 
2975 EVT_MIDDLE_UP 
= wx
.PyEventBinder( wxEVT_MIDDLE_UP 
) 
2976 EVT_RIGHT_DOWN 
= wx
.PyEventBinder( wxEVT_RIGHT_DOWN 
) 
2977 EVT_RIGHT_UP 
= wx
.PyEventBinder( wxEVT_RIGHT_UP 
) 
2978 EVT_MOTION 
= wx
.PyEventBinder( wxEVT_MOTION 
) 
2979 EVT_LEFT_DCLICK 
= wx
.PyEventBinder( wxEVT_LEFT_DCLICK 
) 
2980 EVT_MIDDLE_DCLICK 
= wx
.PyEventBinder( wxEVT_MIDDLE_DCLICK 
) 
2981 EVT_RIGHT_DCLICK 
= wx
.PyEventBinder( wxEVT_RIGHT_DCLICK 
) 
2982 EVT_LEAVE_WINDOW 
= wx
.PyEventBinder( wxEVT_LEAVE_WINDOW 
) 
2983 EVT_ENTER_WINDOW 
= wx
.PyEventBinder( wxEVT_ENTER_WINDOW 
) 
2984 EVT_MOUSEWHEEL 
= wx
.PyEventBinder( wxEVT_MOUSEWHEEL 
) 
2986 EVT_MOUSE_EVENTS 
= wx
.PyEventBinder([ wxEVT_LEFT_DOWN
, 
2994                                      wxEVT_MIDDLE_DCLICK
, 
3002 # Scrolling from wxWindow (sent to wxScrolledWindow) 
3003 EVT_SCROLLWIN 
= wx
.PyEventBinder([ wxEVT_SCROLLWIN_TOP
,  
3004                                   wxEVT_SCROLLWIN_BOTTOM
, 
3005                                   wxEVT_SCROLLWIN_LINEUP
, 
3006                                   wxEVT_SCROLLWIN_LINEDOWN
, 
3007                                   wxEVT_SCROLLWIN_PAGEUP
,  
3008                                   wxEVT_SCROLLWIN_PAGEDOWN
, 
3009                                   wxEVT_SCROLLWIN_THUMBTRACK
, 
3010                                   wxEVT_SCROLLWIN_THUMBRELEASE
, 
3013 EVT_SCROLLWIN_TOP 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_TOP 
) 
3014 EVT_SCROLLWIN_BOTTOM 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_BOTTOM 
) 
3015 EVT_SCROLLWIN_LINEUP 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_LINEUP 
) 
3016 EVT_SCROLLWIN_LINEDOWN 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_LINEDOWN 
) 
3017 EVT_SCROLLWIN_PAGEUP 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_PAGEUP 
) 
3018 EVT_SCROLLWIN_PAGEDOWN 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_PAGEDOWN 
) 
3019 EVT_SCROLLWIN_THUMBTRACK 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK 
) 
3020 EVT_SCROLLWIN_THUMBRELEASE 
= wx
.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE 
) 
3022 # Scrolling from wxSlider and wxScrollBar 
3023 EVT_SCROLL 
= wx
.PyEventBinder([ wxEVT_SCROLL_TOP
,  
3024                                wxEVT_SCROLL_BOTTOM
,  
3025                                wxEVT_SCROLL_LINEUP
,  
3026                                wxEVT_SCROLL_LINEDOWN
,  
3027                                wxEVT_SCROLL_PAGEUP
,  
3028                                wxEVT_SCROLL_PAGEDOWN
,  
3029                                wxEVT_SCROLL_THUMBTRACK
,  
3030                                wxEVT_SCROLL_THUMBRELEASE
,  
3031                                wxEVT_SCROLL_ENDSCROLL
, 
3034 EVT_SCROLL_TOP 
= wx
.PyEventBinder( wxEVT_SCROLL_TOP 
) 
3035 EVT_SCROLL_BOTTOM 
= wx
.PyEventBinder( wxEVT_SCROLL_BOTTOM 
) 
3036 EVT_SCROLL_LINEUP 
= wx
.PyEventBinder( wxEVT_SCROLL_LINEUP 
) 
3037 EVT_SCROLL_LINEDOWN 
= wx
.PyEventBinder( wxEVT_SCROLL_LINEDOWN 
) 
3038 EVT_SCROLL_PAGEUP 
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEUP 
) 
3039 EVT_SCROLL_PAGEDOWN 
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEDOWN 
) 
3040 EVT_SCROLL_THUMBTRACK 
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBTRACK 
) 
3041 EVT_SCROLL_THUMBRELEASE 
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE 
) 
3042 EVT_SCROLL_ENDSCROLL 
= wx
.PyEventBinder( wxEVT_SCROLL_ENDSCROLL 
) 
3044 # Scrolling from wxSlider and wxScrollBar, with an id 
3045 EVT_COMMAND_SCROLL 
= wx
.PyEventBinder([ wxEVT_SCROLL_TOP
,  
3046                                        wxEVT_SCROLL_BOTTOM
,  
3047                                        wxEVT_SCROLL_LINEUP
,  
3048                                        wxEVT_SCROLL_LINEDOWN
,  
3049                                        wxEVT_SCROLL_PAGEUP
,  
3050                                        wxEVT_SCROLL_PAGEDOWN
,  
3051                                        wxEVT_SCROLL_THUMBTRACK
,  
3052                                        wxEVT_SCROLL_THUMBRELEASE
, 
3053                                        wxEVT_SCROLL_ENDSCROLL
, 
3056 EVT_COMMAND_SCROLL_TOP 
= wx
.PyEventBinder( wxEVT_SCROLL_TOP
, 1) 
3057 EVT_COMMAND_SCROLL_BOTTOM 
= wx
.PyEventBinder( wxEVT_SCROLL_BOTTOM
, 1) 
3058 EVT_COMMAND_SCROLL_LINEUP 
= wx
.PyEventBinder( wxEVT_SCROLL_LINEUP
, 1) 
3059 EVT_COMMAND_SCROLL_LINEDOWN 
= wx
.PyEventBinder( wxEVT_SCROLL_LINEDOWN
, 1) 
3060 EVT_COMMAND_SCROLL_PAGEUP 
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEUP
, 1) 
3061 EVT_COMMAND_SCROLL_PAGEDOWN 
= wx
.PyEventBinder( wxEVT_SCROLL_PAGEDOWN
, 1) 
3062 EVT_COMMAND_SCROLL_THUMBTRACK 
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBTRACK
, 1) 
3063 EVT_COMMAND_SCROLL_THUMBRELEASE 
= wx
.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE
, 1) 
3064 EVT_COMMAND_SCROLL_ENDSCROLL 
= wx
.PyEventBinder( wxEVT_SCROLL_ENDSCROLL
, 1) 
3066 EVT_BUTTON 
= wx
.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED
, 1) 
3067 EVT_CHECKBOX 
= wx
.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED
, 1) 
3068 EVT_CHOICE 
= wx
.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED
, 1) 
3069 EVT_LISTBOX 
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOX_SELECTED
, 1) 
3070 EVT_LISTBOX_DCLICK 
= wx
.PyEventBinder( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED
, 1) 
3071 EVT_MENU 
= wx
.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED
, 1) 
3072 EVT_MENU_RANGE 
= wx
.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED
, 2) 
3073 EVT_SLIDER 
= wx
.PyEventBinder( wxEVT_COMMAND_SLIDER_UPDATED
, 1) 
3074 EVT_RADIOBOX 
= wx
.PyEventBinder( wxEVT_COMMAND_RADIOBOX_SELECTED
, 1) 
3075 EVT_RADIOBUTTON 
= wx
.PyEventBinder( wxEVT_COMMAND_RADIOBUTTON_SELECTED
, 1) 
3077 EVT_SCROLLBAR 
= wx
.PyEventBinder( wxEVT_COMMAND_SCROLLBAR_UPDATED
, 1) 
3078 EVT_VLBOX 
= wx
.PyEventBinder( wxEVT_COMMAND_VLBOX_SELECTED
, 1) 
3079 EVT_COMBOBOX 
= wx
.PyEventBinder( wxEVT_COMMAND_COMBOBOX_SELECTED
, 1) 
3080 EVT_TOOL 
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED
, 1) 
3081 EVT_TOOL_RANGE 
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED
, 2) 
3082 EVT_TOOL_RCLICKED 
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED
, 1) 
3083 EVT_TOOL_RCLICKED_RANGE 
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED
, 2) 
3084 EVT_TOOL_ENTER 
= wx
.PyEventBinder( wxEVT_COMMAND_TOOL_ENTER
, 1) 
3085 EVT_CHECKLISTBOX 
= wx
.PyEventBinder( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
, 1) 
3088 EVT_COMMAND_LEFT_CLICK 
= wx
.PyEventBinder( wxEVT_COMMAND_LEFT_CLICK
, 1) 
3089 EVT_COMMAND_LEFT_DCLICK 
= wx
.PyEventBinder( wxEVT_COMMAND_LEFT_DCLICK
, 1) 
3090 EVT_COMMAND_RIGHT_CLICK 
= wx
.PyEventBinder( wxEVT_COMMAND_RIGHT_CLICK
, 1) 
3091 EVT_COMMAND_RIGHT_DCLICK 
= wx
.PyEventBinder( wxEVT_COMMAND_RIGHT_DCLICK
, 1) 
3092 EVT_COMMAND_SET_FOCUS 
= wx
.PyEventBinder( wxEVT_COMMAND_SET_FOCUS
, 1) 
3093 EVT_COMMAND_KILL_FOCUS 
= wx
.PyEventBinder( wxEVT_COMMAND_KILL_FOCUS
, 1) 
3094 EVT_COMMAND_ENTER 
= wx
.PyEventBinder( wxEVT_COMMAND_ENTER
, 1) 
3096 EVT_IDLE 
= wx
.PyEventBinder( wxEVT_IDLE 
) 
3098 EVT_UPDATE_UI 
= wx
.PyEventBinder( wxEVT_UPDATE_UI
, 1) 
3099 EVT_UPDATE_UI_RANGE 
= wx
.PyEventBinder( wxEVT_UPDATE_UI
, 2) 
3101 EVT_CONTEXT_MENU 
= wx
.PyEventBinder( wxEVT_CONTEXT_MENU 
) 
3105 #--------------------------------------------------------------------------- 
3107 class Event(Object
): 
3108     def __init__(self
): raise RuntimeError, "No constructor defined" 
3110         return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3111     def __del__(self
, destroy
=_core_
.delete_Event
): 
3114             if self
.thisown
: destroy(self
) 
3117     def SetEventType(*args
, **kwargs
): 
3118         """SetEventType(self, wxEventType typ)""" 
3119         return _core_
.Event_SetEventType(*args
, **kwargs
) 
3121     def GetEventType(*args
, **kwargs
): 
3122         """GetEventType(self) -> wxEventType""" 
3123         return _core_
.Event_GetEventType(*args
, **kwargs
) 
3125     def GetEventObject(*args
, **kwargs
): 
3126         """GetEventObject(self) -> Object""" 
3127         return _core_
.Event_GetEventObject(*args
, **kwargs
) 
3129     def SetEventObject(*args
, **kwargs
): 
3130         """SetEventObject(self, Object obj)""" 
3131         return _core_
.Event_SetEventObject(*args
, **kwargs
) 
3133     def GetTimestamp(*args
, **kwargs
): 
3134         """GetTimestamp(self) -> long""" 
3135         return _core_
.Event_GetTimestamp(*args
, **kwargs
) 
3137     def SetTimestamp(*args
, **kwargs
): 
3138         """SetTimestamp(self, long ts=0)""" 
3139         return _core_
.Event_SetTimestamp(*args
, **kwargs
) 
3141     def GetId(*args
, **kwargs
): 
3142         """GetId(self) -> int""" 
3143         return _core_
.Event_GetId(*args
, **kwargs
) 
3145     def SetId(*args
, **kwargs
): 
3146         """SetId(self, int Id)""" 
3147         return _core_
.Event_SetId(*args
, **kwargs
) 
3149     def IsCommandEvent(*args
, **kwargs
): 
3150         """IsCommandEvent(self) -> bool""" 
3151         return _core_
.Event_IsCommandEvent(*args
, **kwargs
) 
3153     def Skip(*args
, **kwargs
): 
3154         """Skip(self, bool skip=True)""" 
3155         return _core_
.Event_Skip(*args
, **kwargs
) 
3157     def GetSkipped(*args
, **kwargs
): 
3158         """GetSkipped(self) -> bool""" 
3159         return _core_
.Event_GetSkipped(*args
, **kwargs
) 
3161     def ShouldPropagate(*args
, **kwargs
): 
3162         """ShouldPropagate(self) -> bool""" 
3163         return _core_
.Event_ShouldPropagate(*args
, **kwargs
) 
3165     def StopPropagation(*args
, **kwargs
): 
3166         """StopPropagation(self) -> int""" 
3167         return _core_
.Event_StopPropagation(*args
, **kwargs
) 
3169     def ResumePropagation(*args
, **kwargs
): 
3170         """ResumePropagation(self, int propagationLevel)""" 
3171         return _core_
.Event_ResumePropagation(*args
, **kwargs
) 
3173     def Clone(*args
, **kwargs
): 
3174         """Clone(self) -> Event""" 
3175         return _core_
.Event_Clone(*args
, **kwargs
) 
3178 class EventPtr(Event
): 
3179     def __init__(self
, this
): 
3181         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3182         self
.__class
__ = Event
 
3183 _core_
.Event_swigregister(EventPtr
) 
3185 #--------------------------------------------------------------------------- 
3187 class PropagationDisabler(object): 
3189         return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3190     def __init__(self
, *args
, **kwargs
): 
3191         """__init__(self, Event event) -> PropagationDisabler""" 
3192         newobj 
= _core_
.new_PropagationDisabler(*args
, **kwargs
) 
3193         self
.this 
= newobj
.this
 
3196     def __del__(self
, destroy
=_core_
.delete_PropagationDisabler
): 
3199             if self
.thisown
: destroy(self
) 
3203 class PropagationDisablerPtr(PropagationDisabler
): 
3204     def __init__(self
, this
): 
3206         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3207         self
.__class
__ = PropagationDisabler
 
3208 _core_
.PropagationDisabler_swigregister(PropagationDisablerPtr
) 
3210 class PropagateOnce(object): 
3212         return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3213     def __init__(self
, *args
, **kwargs
): 
3214         """__init__(self, Event event) -> PropagateOnce""" 
3215         newobj 
= _core_
.new_PropagateOnce(*args
, **kwargs
) 
3216         self
.this 
= newobj
.this
 
3219     def __del__(self
, destroy
=_core_
.delete_PropagateOnce
): 
3222             if self
.thisown
: destroy(self
) 
3226 class PropagateOncePtr(PropagateOnce
): 
3227     def __init__(self
, this
): 
3229         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3230         self
.__class
__ = PropagateOnce
 
3231 _core_
.PropagateOnce_swigregister(PropagateOncePtr
) 
3233 #--------------------------------------------------------------------------- 
3235 class CommandEvent(Event
): 
3237         return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3238     def __init__(self
, *args
, **kwargs
): 
3239         """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent""" 
3240         newobj 
= _core_
.new_CommandEvent(*args
, **kwargs
) 
3241         self
.this 
= newobj
.this
 
3244     def GetSelection(*args
, **kwargs
): 
3245         """GetSelection(self) -> int""" 
3246         return _core_
.CommandEvent_GetSelection(*args
, **kwargs
) 
3248     def SetString(*args
, **kwargs
): 
3249         """SetString(self, String s)""" 
3250         return _core_
.CommandEvent_SetString(*args
, **kwargs
) 
3252     def GetString(*args
, **kwargs
): 
3253         """GetString(self) -> String""" 
3254         return _core_
.CommandEvent_GetString(*args
, **kwargs
) 
3256     def IsChecked(*args
, **kwargs
): 
3257         """IsChecked(self) -> bool""" 
3258         return _core_
.CommandEvent_IsChecked(*args
, **kwargs
) 
3261     def IsSelection(*args
, **kwargs
): 
3262         """IsSelection(self) -> bool""" 
3263         return _core_
.CommandEvent_IsSelection(*args
, **kwargs
) 
3265     def SetExtraLong(*args
, **kwargs
): 
3266         """SetExtraLong(self, long extraLong)""" 
3267         return _core_
.CommandEvent_SetExtraLong(*args
, **kwargs
) 
3269     def GetExtraLong(*args
, **kwargs
): 
3270         """GetExtraLong(self) -> long""" 
3271         return _core_
.CommandEvent_GetExtraLong(*args
, **kwargs
) 
3273     def SetInt(*args
, **kwargs
): 
3274         """SetInt(self, int i)""" 
3275         return _core_
.CommandEvent_SetInt(*args
, **kwargs
) 
3277     def GetInt(*args
, **kwargs
): 
3278         """GetInt(self) -> long""" 
3279         return _core_
.CommandEvent_GetInt(*args
, **kwargs
) 
3281     def Clone(*args
, **kwargs
): 
3282         """Clone(self) -> Event""" 
3283         return _core_
.CommandEvent_Clone(*args
, **kwargs
) 
3286 class CommandEventPtr(CommandEvent
): 
3287     def __init__(self
, this
): 
3289         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3290         self
.__class
__ = CommandEvent
 
3291 _core_
.CommandEvent_swigregister(CommandEventPtr
) 
3293 #--------------------------------------------------------------------------- 
3295 class NotifyEvent(CommandEvent
): 
3297         return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3298     def __init__(self
, *args
, **kwargs
): 
3299         """__init__(self, wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent""" 
3300         newobj 
= _core_
.new_NotifyEvent(*args
, **kwargs
) 
3301         self
.this 
= newobj
.this
 
3304     def Veto(*args
, **kwargs
): 
3306         return _core_
.NotifyEvent_Veto(*args
, **kwargs
) 
3308     def Allow(*args
, **kwargs
): 
3310         return _core_
.NotifyEvent_Allow(*args
, **kwargs
) 
3312     def IsAllowed(*args
, **kwargs
): 
3313         """IsAllowed(self) -> bool""" 
3314         return _core_
.NotifyEvent_IsAllowed(*args
, **kwargs
) 
3317 class NotifyEventPtr(NotifyEvent
): 
3318     def __init__(self
, this
): 
3320         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3321         self
.__class
__ = NotifyEvent
 
3322 _core_
.NotifyEvent_swigregister(NotifyEventPtr
) 
3324 #--------------------------------------------------------------------------- 
3326 class ScrollEvent(CommandEvent
): 
3328         return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3329     def __init__(self
, *args
, **kwargs
): 
3331         __init__(self, wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0,  
3332             int orient=0) -> ScrollEvent 
3334         newobj 
= _core_
.new_ScrollEvent(*args
, **kwargs
) 
3335         self
.this 
= newobj
.this
 
3338     def GetOrientation(*args
, **kwargs
): 
3339         """GetOrientation(self) -> int""" 
3340         return _core_
.ScrollEvent_GetOrientation(*args
, **kwargs
) 
3342     def GetPosition(*args
, **kwargs
): 
3343         """GetPosition(self) -> int""" 
3344         return _core_
.ScrollEvent_GetPosition(*args
, **kwargs
) 
3346     def SetOrientation(*args
, **kwargs
): 
3347         """SetOrientation(self, int orient)""" 
3348         return _core_
.ScrollEvent_SetOrientation(*args
, **kwargs
) 
3350     def SetPosition(*args
, **kwargs
): 
3351         """SetPosition(self, int pos)""" 
3352         return _core_
.ScrollEvent_SetPosition(*args
, **kwargs
) 
3355 class ScrollEventPtr(ScrollEvent
): 
3356     def __init__(self
, this
): 
3358         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3359         self
.__class
__ = ScrollEvent
 
3360 _core_
.ScrollEvent_swigregister(ScrollEventPtr
) 
3362 #--------------------------------------------------------------------------- 
3364 class ScrollWinEvent(Event
): 
3366         return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3367     def __init__(self
, *args
, **kwargs
): 
3368         """__init__(self, wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent""" 
3369         newobj 
= _core_
.new_ScrollWinEvent(*args
, **kwargs
) 
3370         self
.this 
= newobj
.this
 
3373     def GetOrientation(*args
, **kwargs
): 
3374         """GetOrientation(self) -> int""" 
3375         return _core_
.ScrollWinEvent_GetOrientation(*args
, **kwargs
) 
3377     def GetPosition(*args
, **kwargs
): 
3378         """GetPosition(self) -> int""" 
3379         return _core_
.ScrollWinEvent_GetPosition(*args
, **kwargs
) 
3381     def SetOrientation(*args
, **kwargs
): 
3382         """SetOrientation(self, int orient)""" 
3383         return _core_
.ScrollWinEvent_SetOrientation(*args
, **kwargs
) 
3385     def SetPosition(*args
, **kwargs
): 
3386         """SetPosition(self, int pos)""" 
3387         return _core_
.ScrollWinEvent_SetPosition(*args
, **kwargs
) 
3390 class ScrollWinEventPtr(ScrollWinEvent
): 
3391     def __init__(self
, this
): 
3393         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3394         self
.__class
__ = ScrollWinEvent
 
3395 _core_
.ScrollWinEvent_swigregister(ScrollWinEventPtr
) 
3397 #--------------------------------------------------------------------------- 
3399 MOUSE_BTN_ANY 
= _core_
.MOUSE_BTN_ANY
 
3400 MOUSE_BTN_NONE 
= _core_
.MOUSE_BTN_NONE
 
3401 MOUSE_BTN_LEFT 
= _core_
.MOUSE_BTN_LEFT
 
3402 MOUSE_BTN_MIDDLE 
= _core_
.MOUSE_BTN_MIDDLE
 
3403 MOUSE_BTN_RIGHT 
= _core_
.MOUSE_BTN_RIGHT
 
3404 class MouseEvent(Event
): 
3406         return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3407     def __init__(self
, *args
, **kwargs
): 
3408         """__init__(self, wxEventType mouseType=wxEVT_NULL) -> MouseEvent""" 
3409         newobj 
= _core_
.new_MouseEvent(*args
, **kwargs
) 
3410         self
.this 
= newobj
.this
 
3413     def IsButton(*args
, **kwargs
): 
3414         """IsButton(self) -> bool""" 
3415         return _core_
.MouseEvent_IsButton(*args
, **kwargs
) 
3417     def ButtonDown(*args
, **kwargs
): 
3418         """ButtonDown(self, int but=MOUSE_BTN_ANY) -> bool""" 
3419         return _core_
.MouseEvent_ButtonDown(*args
, **kwargs
) 
3421     def ButtonDClick(*args
, **kwargs
): 
3422         """ButtonDClick(self, int but=MOUSE_BTN_ANY) -> bool""" 
3423         return _core_
.MouseEvent_ButtonDClick(*args
, **kwargs
) 
3425     def ButtonUp(*args
, **kwargs
): 
3426         """ButtonUp(self, int but=MOUSE_BTN_ANY) -> bool""" 
3427         return _core_
.MouseEvent_ButtonUp(*args
, **kwargs
) 
3429     def Button(*args
, **kwargs
): 
3430         """Button(self, int but) -> bool""" 
3431         return _core_
.MouseEvent_Button(*args
, **kwargs
) 
3433     def ButtonIsDown(*args
, **kwargs
): 
3434         """ButtonIsDown(self, int but) -> bool""" 
3435         return _core_
.MouseEvent_ButtonIsDown(*args
, **kwargs
) 
3437     def GetButton(*args
, **kwargs
): 
3438         """GetButton(self) -> int""" 
3439         return _core_
.MouseEvent_GetButton(*args
, **kwargs
) 
3441     def ControlDown(*args
, **kwargs
): 
3442         """ControlDown(self) -> bool""" 
3443         return _core_
.MouseEvent_ControlDown(*args
, **kwargs
) 
3445     def MetaDown(*args
, **kwargs
): 
3446         """MetaDown(self) -> bool""" 
3447         return _core_
.MouseEvent_MetaDown(*args
, **kwargs
) 
3449     def AltDown(*args
, **kwargs
): 
3450         """AltDown(self) -> bool""" 
3451         return _core_
.MouseEvent_AltDown(*args
, **kwargs
) 
3453     def ShiftDown(*args
, **kwargs
): 
3454         """ShiftDown(self) -> bool""" 
3455         return _core_
.MouseEvent_ShiftDown(*args
, **kwargs
) 
3457     def CmdDown(*args
, **kwargs
): 
3459         CmdDown(self) -> bool 
3461         "Cmd" is a pseudo key which is the same as Control for PC and Unix 
3462         platforms but the special "Apple" (a.k.a as "Command") key on 
3463         Macs: it makes often sense to use it instead of, say, `ControlDown` 
3464         because Cmd key is used for the same thing under Mac as Ctrl 
3465         elsewhere. The Ctrl still exists, it's just not used for this 
3466         purpose. So for non-Mac platforms this is the same as `ControlDown` 
3467         and Macs this is the same as `MetaDown`. 
3469         return _core_
.MouseEvent_CmdDown(*args
, **kwargs
) 
3471     def LeftDown(*args
, **kwargs
): 
3472         """LeftDown(self) -> bool""" 
3473         return _core_
.MouseEvent_LeftDown(*args
, **kwargs
) 
3475     def MiddleDown(*args
, **kwargs
): 
3476         """MiddleDown(self) -> bool""" 
3477         return _core_
.MouseEvent_MiddleDown(*args
, **kwargs
) 
3479     def RightDown(*args
, **kwargs
): 
3480         """RightDown(self) -> bool""" 
3481         return _core_
.MouseEvent_RightDown(*args
, **kwargs
) 
3483     def LeftUp(*args
, **kwargs
): 
3484         """LeftUp(self) -> bool""" 
3485         return _core_
.MouseEvent_LeftUp(*args
, **kwargs
) 
3487     def MiddleUp(*args
, **kwargs
): 
3488         """MiddleUp(self) -> bool""" 
3489         return _core_
.MouseEvent_MiddleUp(*args
, **kwargs
) 
3491     def RightUp(*args
, **kwargs
): 
3492         """RightUp(self) -> bool""" 
3493         return _core_
.MouseEvent_RightUp(*args
, **kwargs
) 
3495     def LeftDClick(*args
, **kwargs
): 
3496         """LeftDClick(self) -> bool""" 
3497         return _core_
.MouseEvent_LeftDClick(*args
, **kwargs
) 
3499     def MiddleDClick(*args
, **kwargs
): 
3500         """MiddleDClick(self) -> bool""" 
3501         return _core_
.MouseEvent_MiddleDClick(*args
, **kwargs
) 
3503     def RightDClick(*args
, **kwargs
): 
3504         """RightDClick(self) -> bool""" 
3505         return _core_
.MouseEvent_RightDClick(*args
, **kwargs
) 
3507     def LeftIsDown(*args
, **kwargs
): 
3508         """LeftIsDown(self) -> bool""" 
3509         return _core_
.MouseEvent_LeftIsDown(*args
, **kwargs
) 
3511     def MiddleIsDown(*args
, **kwargs
): 
3512         """MiddleIsDown(self) -> bool""" 
3513         return _core_
.MouseEvent_MiddleIsDown(*args
, **kwargs
) 
3515     def RightIsDown(*args
, **kwargs
): 
3516         """RightIsDown(self) -> bool""" 
3517         return _core_
.MouseEvent_RightIsDown(*args
, **kwargs
) 
3519     def Dragging(*args
, **kwargs
): 
3520         """Dragging(self) -> bool""" 
3521         return _core_
.MouseEvent_Dragging(*args
, **kwargs
) 
3523     def Moving(*args
, **kwargs
): 
3524         """Moving(self) -> bool""" 
3525         return _core_
.MouseEvent_Moving(*args
, **kwargs
) 
3527     def Entering(*args
, **kwargs
): 
3528         """Entering(self) -> bool""" 
3529         return _core_
.MouseEvent_Entering(*args
, **kwargs
) 
3531     def Leaving(*args
, **kwargs
): 
3532         """Leaving(self) -> bool""" 
3533         return _core_
.MouseEvent_Leaving(*args
, **kwargs
) 
3535     def GetPosition(*args
, **kwargs
): 
3537         GetPosition(self) -> Point 
3539         Returns the position of the mouse in window coordinates when the event 
3542         return _core_
.MouseEvent_GetPosition(*args
, **kwargs
) 
3544     def GetPositionTuple(*args
, **kwargs
): 
3546         GetPositionTuple() -> (x,y) 
3548         Returns the position of the mouse in window coordinates when the event 
3551         return _core_
.MouseEvent_GetPositionTuple(*args
, **kwargs
) 
3553     def GetLogicalPosition(*args
, **kwargs
): 
3554         """GetLogicalPosition(self, DC dc) -> Point""" 
3555         return _core_
.MouseEvent_GetLogicalPosition(*args
, **kwargs
) 
3557     def GetX(*args
, **kwargs
): 
3558         """GetX(self) -> int""" 
3559         return _core_
.MouseEvent_GetX(*args
, **kwargs
) 
3561     def GetY(*args
, **kwargs
): 
3562         """GetY(self) -> int""" 
3563         return _core_
.MouseEvent_GetY(*args
, **kwargs
) 
3565     def GetWheelRotation(*args
, **kwargs
): 
3566         """GetWheelRotation(self) -> int""" 
3567         return _core_
.MouseEvent_GetWheelRotation(*args
, **kwargs
) 
3569     def GetWheelDelta(*args
, **kwargs
): 
3570         """GetWheelDelta(self) -> int""" 
3571         return _core_
.MouseEvent_GetWheelDelta(*args
, **kwargs
) 
3573     def GetLinesPerAction(*args
, **kwargs
): 
3574         """GetLinesPerAction(self) -> int""" 
3575         return _core_
.MouseEvent_GetLinesPerAction(*args
, **kwargs
) 
3577     def IsPageScroll(*args
, **kwargs
): 
3578         """IsPageScroll(self) -> bool""" 
3579         return _core_
.MouseEvent_IsPageScroll(*args
, **kwargs
) 
3581     m_x 
= property(_core_
.MouseEvent_m_x_get
, _core_
.MouseEvent_m_x_set
) 
3582     m_y 
= property(_core_
.MouseEvent_m_y_get
, _core_
.MouseEvent_m_y_set
) 
3583     m_leftDown 
= property(_core_
.MouseEvent_m_leftDown_get
, _core_
.MouseEvent_m_leftDown_set
) 
3584     m_middleDown 
= property(_core_
.MouseEvent_m_middleDown_get
, _core_
.MouseEvent_m_middleDown_set
) 
3585     m_rightDown 
= property(_core_
.MouseEvent_m_rightDown_get
, _core_
.MouseEvent_m_rightDown_set
) 
3586     m_controlDown 
= property(_core_
.MouseEvent_m_controlDown_get
, _core_
.MouseEvent_m_controlDown_set
) 
3587     m_shiftDown 
= property(_core_
.MouseEvent_m_shiftDown_get
, _core_
.MouseEvent_m_shiftDown_set
) 
3588     m_altDown 
= property(_core_
.MouseEvent_m_altDown_get
, _core_
.MouseEvent_m_altDown_set
) 
3589     m_metaDown 
= property(_core_
.MouseEvent_m_metaDown_get
, _core_
.MouseEvent_m_metaDown_set
) 
3590     m_wheelRotation 
= property(_core_
.MouseEvent_m_wheelRotation_get
, _core_
.MouseEvent_m_wheelRotation_set
) 
3591     m_wheelDelta 
= property(_core_
.MouseEvent_m_wheelDelta_get
, _core_
.MouseEvent_m_wheelDelta_set
) 
3592     m_linesPerAction 
= property(_core_
.MouseEvent_m_linesPerAction_get
, _core_
.MouseEvent_m_linesPerAction_set
) 
3594 class MouseEventPtr(MouseEvent
): 
3595     def __init__(self
, this
): 
3597         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3598         self
.__class
__ = MouseEvent
 
3599 _core_
.MouseEvent_swigregister(MouseEventPtr
) 
3601 #--------------------------------------------------------------------------- 
3603 class SetCursorEvent(Event
): 
3605         return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3606     def __init__(self
, *args
, **kwargs
): 
3607         """__init__(self, int x=0, int y=0) -> SetCursorEvent""" 
3608         newobj 
= _core_
.new_SetCursorEvent(*args
, **kwargs
) 
3609         self
.this 
= newobj
.this
 
3612     def GetX(*args
, **kwargs
): 
3613         """GetX(self) -> int""" 
3614         return _core_
.SetCursorEvent_GetX(*args
, **kwargs
) 
3616     def GetY(*args
, **kwargs
): 
3617         """GetY(self) -> int""" 
3618         return _core_
.SetCursorEvent_GetY(*args
, **kwargs
) 
3620     def SetCursor(*args
, **kwargs
): 
3621         """SetCursor(self, Cursor cursor)""" 
3622         return _core_
.SetCursorEvent_SetCursor(*args
, **kwargs
) 
3624     def GetCursor(*args
, **kwargs
): 
3625         """GetCursor(self) -> Cursor""" 
3626         return _core_
.SetCursorEvent_GetCursor(*args
, **kwargs
) 
3628     def HasCursor(*args
, **kwargs
): 
3629         """HasCursor(self) -> bool""" 
3630         return _core_
.SetCursorEvent_HasCursor(*args
, **kwargs
) 
3633 class SetCursorEventPtr(SetCursorEvent
): 
3634     def __init__(self
, this
): 
3636         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3637         self
.__class
__ = SetCursorEvent
 
3638 _core_
.SetCursorEvent_swigregister(SetCursorEventPtr
) 
3640 #--------------------------------------------------------------------------- 
3642 class KeyEvent(Event
): 
3644         return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3645     def __init__(self
, *args
, **kwargs
): 
3646         """__init__(self, wxEventType keyType=wxEVT_NULL) -> KeyEvent""" 
3647         newobj 
= _core_
.new_KeyEvent(*args
, **kwargs
) 
3648         self
.this 
= newobj
.this
 
3651     def ControlDown(*args
, **kwargs
): 
3652         """ControlDown(self) -> bool""" 
3653         return _core_
.KeyEvent_ControlDown(*args
, **kwargs
) 
3655     def MetaDown(*args
, **kwargs
): 
3656         """MetaDown(self) -> bool""" 
3657         return _core_
.KeyEvent_MetaDown(*args
, **kwargs
) 
3659     def AltDown(*args
, **kwargs
): 
3660         """AltDown(self) -> bool""" 
3661         return _core_
.KeyEvent_AltDown(*args
, **kwargs
) 
3663     def ShiftDown(*args
, **kwargs
): 
3664         """ShiftDown(self) -> bool""" 
3665         return _core_
.KeyEvent_ShiftDown(*args
, **kwargs
) 
3667     def CmdDown(*args
, **kwargs
): 
3669         CmdDown(self) -> bool 
3671         "Cmd" is a pseudo key which is the same as Control for PC and Unix 
3672         platforms but the special "Apple" (a.k.a as "Command") key on 
3673         Macs: it makes often sense to use it instead of, say, `ControlDown` 
3674         because Cmd key is used for the same thing under Mac as Ctrl 
3675         elsewhere. The Ctrl still exists, it's just not used for this 
3676         purpose. So for non-Mac platforms this is the same as `ControlDown` 
3677         and Macs this is the same as `MetaDown`. 
3679         return _core_
.KeyEvent_CmdDown(*args
, **kwargs
) 
3681     def HasModifiers(*args
, **kwargs
): 
3682         """HasModifiers(self) -> bool""" 
3683         return _core_
.KeyEvent_HasModifiers(*args
, **kwargs
) 
3685     def GetKeyCode(*args
, **kwargs
): 
3686         """GetKeyCode(self) -> int""" 
3687         return _core_
.KeyEvent_GetKeyCode(*args
, **kwargs
) 
3689     KeyCode 
= GetKeyCode 
 
3690     def GetUnicodeKey(*args
, **kwargs
): 
3691         """GetUnicodeKey(self) -> int""" 
3692         return _core_
.KeyEvent_GetUnicodeKey(*args
, **kwargs
) 
3694     GetUniChar 
= GetUnicodeKey 
 
3695     def GetRawKeyCode(*args
, **kwargs
): 
3696         """GetRawKeyCode(self) -> unsigned int""" 
3697         return _core_
.KeyEvent_GetRawKeyCode(*args
, **kwargs
) 
3699     def GetRawKeyFlags(*args
, **kwargs
): 
3700         """GetRawKeyFlags(self) -> unsigned int""" 
3701         return _core_
.KeyEvent_GetRawKeyFlags(*args
, **kwargs
) 
3703     def GetPosition(*args
, **kwargs
): 
3705         GetPosition(self) -> Point 
3707         Find the position of the event. 
3709         return _core_
.KeyEvent_GetPosition(*args
, **kwargs
) 
3711     def GetPositionTuple(*args
, **kwargs
): 
3713         GetPositionTuple() -> (x,y) 
3715         Find the position of the event. 
3717         return _core_
.KeyEvent_GetPositionTuple(*args
, **kwargs
) 
3719     def GetX(*args
, **kwargs
): 
3720         """GetX(self) -> int""" 
3721         return _core_
.KeyEvent_GetX(*args
, **kwargs
) 
3723     def GetY(*args
, **kwargs
): 
3724         """GetY(self) -> int""" 
3725         return _core_
.KeyEvent_GetY(*args
, **kwargs
) 
3727     m_x 
= property(_core_
.KeyEvent_m_x_get
, _core_
.KeyEvent_m_x_set
) 
3728     m_y 
= property(_core_
.KeyEvent_m_y_get
, _core_
.KeyEvent_m_y_set
) 
3729     m_keyCode 
= property(_core_
.KeyEvent_m_keyCode_get
, _core_
.KeyEvent_m_keyCode_set
) 
3730     m_controlDown 
= property(_core_
.KeyEvent_m_controlDown_get
, _core_
.KeyEvent_m_controlDown_set
) 
3731     m_shiftDown 
= property(_core_
.KeyEvent_m_shiftDown_get
, _core_
.KeyEvent_m_shiftDown_set
) 
3732     m_altDown 
= property(_core_
.KeyEvent_m_altDown_get
, _core_
.KeyEvent_m_altDown_set
) 
3733     m_metaDown 
= property(_core_
.KeyEvent_m_metaDown_get
, _core_
.KeyEvent_m_metaDown_set
) 
3734     m_scanCode 
= property(_core_
.KeyEvent_m_scanCode_get
, _core_
.KeyEvent_m_scanCode_set
) 
3735     m_rawCode 
= property(_core_
.KeyEvent_m_rawCode_get
, _core_
.KeyEvent_m_rawCode_set
) 
3736     m_rawFlags 
= property(_core_
.KeyEvent_m_rawFlags_get
, _core_
.KeyEvent_m_rawFlags_set
) 
3738 class KeyEventPtr(KeyEvent
): 
3739     def __init__(self
, this
): 
3741         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3742         self
.__class
__ = KeyEvent
 
3743 _core_
.KeyEvent_swigregister(KeyEventPtr
) 
3745 #--------------------------------------------------------------------------- 
3747 class SizeEvent(Event
): 
3749         return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3750     def __init__(self
, *args
, **kwargs
): 
3751         """__init__(self, Size sz=DefaultSize, int winid=0) -> SizeEvent""" 
3752         newobj 
= _core_
.new_SizeEvent(*args
, **kwargs
) 
3753         self
.this 
= newobj
.this
 
3756     def GetSize(*args
, **kwargs
): 
3757         """GetSize(self) -> Size""" 
3758         return _core_
.SizeEvent_GetSize(*args
, **kwargs
) 
3760     def GetRect(*args
, **kwargs
): 
3761         """GetRect(self) -> Rect""" 
3762         return _core_
.SizeEvent_GetRect(*args
, **kwargs
) 
3764     def SetRect(*args
, **kwargs
): 
3765         """SetRect(self, Rect rect)""" 
3766         return _core_
.SizeEvent_SetRect(*args
, **kwargs
) 
3768     def SetSize(*args
, **kwargs
): 
3769         """SetSize(self, Size size)""" 
3770         return _core_
.SizeEvent_SetSize(*args
, **kwargs
) 
3772     m_size 
= property(_core_
.SizeEvent_m_size_get
, _core_
.SizeEvent_m_size_set
) 
3773     m_rect 
= property(_core_
.SizeEvent_m_rect_get
, _core_
.SizeEvent_m_rect_set
) 
3775 class SizeEventPtr(SizeEvent
): 
3776     def __init__(self
, this
): 
3778         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3779         self
.__class
__ = SizeEvent
 
3780 _core_
.SizeEvent_swigregister(SizeEventPtr
) 
3782 #--------------------------------------------------------------------------- 
3784 class MoveEvent(Event
): 
3786         return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3787     def __init__(self
, *args
, **kwargs
): 
3788         """__init__(self, Point pos=DefaultPosition, int winid=0) -> MoveEvent""" 
3789         newobj 
= _core_
.new_MoveEvent(*args
, **kwargs
) 
3790         self
.this 
= newobj
.this
 
3793     def GetPosition(*args
, **kwargs
): 
3794         """GetPosition(self) -> Point""" 
3795         return _core_
.MoveEvent_GetPosition(*args
, **kwargs
) 
3797     def GetRect(*args
, **kwargs
): 
3798         """GetRect(self) -> Rect""" 
3799         return _core_
.MoveEvent_GetRect(*args
, **kwargs
) 
3801     def SetRect(*args
, **kwargs
): 
3802         """SetRect(self, Rect rect)""" 
3803         return _core_
.MoveEvent_SetRect(*args
, **kwargs
) 
3805     def SetPosition(*args
, **kwargs
): 
3806         """SetPosition(self, Point pos)""" 
3807         return _core_
.MoveEvent_SetPosition(*args
, **kwargs
) 
3809     m_pos 
= property(_core_
.MoveEvent_m_pos_get
, _core_
.MoveEvent_m_pos_set
) 
3810     m_rect 
= property(_core_
.MoveEvent_m_rect_get
, _core_
.MoveEvent_m_rect_set
) 
3812 class MoveEventPtr(MoveEvent
): 
3813     def __init__(self
, this
): 
3815         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3816         self
.__class
__ = MoveEvent
 
3817 _core_
.MoveEvent_swigregister(MoveEventPtr
) 
3819 #--------------------------------------------------------------------------- 
3821 class PaintEvent(Event
): 
3823         return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3824     def __init__(self
, *args
, **kwargs
): 
3825         """__init__(self, int Id=0) -> PaintEvent""" 
3826         newobj 
= _core_
.new_PaintEvent(*args
, **kwargs
) 
3827         self
.this 
= newobj
.this
 
3831 class PaintEventPtr(PaintEvent
): 
3832     def __init__(self
, this
): 
3834         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3835         self
.__class
__ = PaintEvent
 
3836 _core_
.PaintEvent_swigregister(PaintEventPtr
) 
3838 class NcPaintEvent(Event
): 
3840         return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3841     def __init__(self
, *args
, **kwargs
): 
3842         """__init__(self, int winid=0) -> NcPaintEvent""" 
3843         newobj 
= _core_
.new_NcPaintEvent(*args
, **kwargs
) 
3844         self
.this 
= newobj
.this
 
3848 class NcPaintEventPtr(NcPaintEvent
): 
3849     def __init__(self
, this
): 
3851         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3852         self
.__class
__ = NcPaintEvent
 
3853 _core_
.NcPaintEvent_swigregister(NcPaintEventPtr
) 
3855 #--------------------------------------------------------------------------- 
3857 class EraseEvent(Event
): 
3859         return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3860     def __init__(self
, *args
, **kwargs
): 
3861         """__init__(self, int Id=0, DC dc=(wxDC *) NULL) -> EraseEvent""" 
3862         newobj 
= _core_
.new_EraseEvent(*args
, **kwargs
) 
3863         self
.this 
= newobj
.this
 
3866     def GetDC(*args
, **kwargs
): 
3867         """GetDC(self) -> DC""" 
3868         return _core_
.EraseEvent_GetDC(*args
, **kwargs
) 
3871 class EraseEventPtr(EraseEvent
): 
3872     def __init__(self
, this
): 
3874         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3875         self
.__class
__ = EraseEvent
 
3876 _core_
.EraseEvent_swigregister(EraseEventPtr
) 
3878 #--------------------------------------------------------------------------- 
3880 class FocusEvent(Event
): 
3882         return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3883     def __init__(self
, *args
, **kwargs
): 
3884         """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent""" 
3885         newobj 
= _core_
.new_FocusEvent(*args
, **kwargs
) 
3886         self
.this 
= newobj
.this
 
3889     def GetWindow(*args
, **kwargs
): 
3890         """GetWindow(self) -> Window""" 
3891         return _core_
.FocusEvent_GetWindow(*args
, **kwargs
) 
3893     def SetWindow(*args
, **kwargs
): 
3894         """SetWindow(self, Window win)""" 
3895         return _core_
.FocusEvent_SetWindow(*args
, **kwargs
) 
3898 class FocusEventPtr(FocusEvent
): 
3899     def __init__(self
, this
): 
3901         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3902         self
.__class
__ = FocusEvent
 
3903 _core_
.FocusEvent_swigregister(FocusEventPtr
) 
3905 #--------------------------------------------------------------------------- 
3907 class ChildFocusEvent(CommandEvent
): 
3909         return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3910     def __init__(self
, *args
, **kwargs
): 
3911         """__init__(self, Window win=None) -> ChildFocusEvent""" 
3912         newobj 
= _core_
.new_ChildFocusEvent(*args
, **kwargs
) 
3913         self
.this 
= newobj
.this
 
3916     def GetWindow(*args
, **kwargs
): 
3917         """GetWindow(self) -> Window""" 
3918         return _core_
.ChildFocusEvent_GetWindow(*args
, **kwargs
) 
3921 class ChildFocusEventPtr(ChildFocusEvent
): 
3922     def __init__(self
, this
): 
3924         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3925         self
.__class
__ = ChildFocusEvent
 
3926 _core_
.ChildFocusEvent_swigregister(ChildFocusEventPtr
) 
3928 #--------------------------------------------------------------------------- 
3930 class ActivateEvent(Event
): 
3932         return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3933     def __init__(self
, *args
, **kwargs
): 
3934         """__init__(self, wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent""" 
3935         newobj 
= _core_
.new_ActivateEvent(*args
, **kwargs
) 
3936         self
.this 
= newobj
.this
 
3939     def GetActive(*args
, **kwargs
): 
3940         """GetActive(self) -> bool""" 
3941         return _core_
.ActivateEvent_GetActive(*args
, **kwargs
) 
3944 class ActivateEventPtr(ActivateEvent
): 
3945     def __init__(self
, this
): 
3947         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3948         self
.__class
__ = ActivateEvent
 
3949 _core_
.ActivateEvent_swigregister(ActivateEventPtr
) 
3951 #--------------------------------------------------------------------------- 
3953 class InitDialogEvent(Event
): 
3955         return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3956     def __init__(self
, *args
, **kwargs
): 
3957         """__init__(self, int Id=0) -> InitDialogEvent""" 
3958         newobj 
= _core_
.new_InitDialogEvent(*args
, **kwargs
) 
3959         self
.this 
= newobj
.this
 
3963 class InitDialogEventPtr(InitDialogEvent
): 
3964     def __init__(self
, this
): 
3966         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3967         self
.__class
__ = InitDialogEvent
 
3968 _core_
.InitDialogEvent_swigregister(InitDialogEventPtr
) 
3970 #--------------------------------------------------------------------------- 
3972 class MenuEvent(Event
): 
3974         return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
3975     def __init__(self
, *args
, **kwargs
): 
3976         """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent""" 
3977         newobj 
= _core_
.new_MenuEvent(*args
, **kwargs
) 
3978         self
.this 
= newobj
.this
 
3981     def GetMenuId(*args
, **kwargs
): 
3982         """GetMenuId(self) -> int""" 
3983         return _core_
.MenuEvent_GetMenuId(*args
, **kwargs
) 
3985     def IsPopup(*args
, **kwargs
): 
3986         """IsPopup(self) -> bool""" 
3987         return _core_
.MenuEvent_IsPopup(*args
, **kwargs
) 
3989     def GetMenu(*args
, **kwargs
): 
3990         """GetMenu(self) -> Menu""" 
3991         return _core_
.MenuEvent_GetMenu(*args
, **kwargs
) 
3994 class MenuEventPtr(MenuEvent
): 
3995     def __init__(self
, this
): 
3997         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
3998         self
.__class
__ = MenuEvent
 
3999 _core_
.MenuEvent_swigregister(MenuEventPtr
) 
4001 #--------------------------------------------------------------------------- 
4003 class CloseEvent(Event
): 
4005         return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4006     def __init__(self
, *args
, **kwargs
): 
4007         """__init__(self, wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent""" 
4008         newobj 
= _core_
.new_CloseEvent(*args
, **kwargs
) 
4009         self
.this 
= newobj
.this
 
4012     def SetLoggingOff(*args
, **kwargs
): 
4013         """SetLoggingOff(self, bool logOff)""" 
4014         return _core_
.CloseEvent_SetLoggingOff(*args
, **kwargs
) 
4016     def GetLoggingOff(*args
, **kwargs
): 
4017         """GetLoggingOff(self) -> bool""" 
4018         return _core_
.CloseEvent_GetLoggingOff(*args
, **kwargs
) 
4020     def Veto(*args
, **kwargs
): 
4021         """Veto(self, bool veto=True)""" 
4022         return _core_
.CloseEvent_Veto(*args
, **kwargs
) 
4024     def SetCanVeto(*args
, **kwargs
): 
4025         """SetCanVeto(self, bool canVeto)""" 
4026         return _core_
.CloseEvent_SetCanVeto(*args
, **kwargs
) 
4028     def CanVeto(*args
, **kwargs
): 
4029         """CanVeto(self) -> bool""" 
4030         return _core_
.CloseEvent_CanVeto(*args
, **kwargs
) 
4032     def GetVeto(*args
, **kwargs
): 
4033         """GetVeto(self) -> bool""" 
4034         return _core_
.CloseEvent_GetVeto(*args
, **kwargs
) 
4037 class CloseEventPtr(CloseEvent
): 
4038     def __init__(self
, this
): 
4040         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4041         self
.__class
__ = CloseEvent
 
4042 _core_
.CloseEvent_swigregister(CloseEventPtr
) 
4044 #--------------------------------------------------------------------------- 
4046 class ShowEvent(Event
): 
4048         return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4049     def __init__(self
, *args
, **kwargs
): 
4050         """__init__(self, int winid=0, bool show=False) -> ShowEvent""" 
4051         newobj 
= _core_
.new_ShowEvent(*args
, **kwargs
) 
4052         self
.this 
= newobj
.this
 
4055     def SetShow(*args
, **kwargs
): 
4056         """SetShow(self, bool show)""" 
4057         return _core_
.ShowEvent_SetShow(*args
, **kwargs
) 
4059     def GetShow(*args
, **kwargs
): 
4060         """GetShow(self) -> bool""" 
4061         return _core_
.ShowEvent_GetShow(*args
, **kwargs
) 
4064 class ShowEventPtr(ShowEvent
): 
4065     def __init__(self
, this
): 
4067         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4068         self
.__class
__ = ShowEvent
 
4069 _core_
.ShowEvent_swigregister(ShowEventPtr
) 
4071 #--------------------------------------------------------------------------- 
4073 class IconizeEvent(Event
): 
4075         return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4076     def __init__(self
, *args
, **kwargs
): 
4077         """__init__(self, int id=0, bool iconized=True) -> IconizeEvent""" 
4078         newobj 
= _core_
.new_IconizeEvent(*args
, **kwargs
) 
4079         self
.this 
= newobj
.this
 
4082     def Iconized(*args
, **kwargs
): 
4083         """Iconized(self) -> bool""" 
4084         return _core_
.IconizeEvent_Iconized(*args
, **kwargs
) 
4087 class IconizeEventPtr(IconizeEvent
): 
4088     def __init__(self
, this
): 
4090         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4091         self
.__class
__ = IconizeEvent
 
4092 _core_
.IconizeEvent_swigregister(IconizeEventPtr
) 
4094 #--------------------------------------------------------------------------- 
4096 class MaximizeEvent(Event
): 
4098         return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4099     def __init__(self
, *args
, **kwargs
): 
4100         """__init__(self, int id=0) -> MaximizeEvent""" 
4101         newobj 
= _core_
.new_MaximizeEvent(*args
, **kwargs
) 
4102         self
.this 
= newobj
.this
 
4106 class MaximizeEventPtr(MaximizeEvent
): 
4107     def __init__(self
, this
): 
4109         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4110         self
.__class
__ = MaximizeEvent
 
4111 _core_
.MaximizeEvent_swigregister(MaximizeEventPtr
) 
4113 #--------------------------------------------------------------------------- 
4115 class DropFilesEvent(Event
): 
4116     def __init__(self
): raise RuntimeError, "No constructor defined" 
4118         return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4119     def GetPosition(*args
, **kwargs
): 
4120         """GetPosition(self) -> Point""" 
4121         return _core_
.DropFilesEvent_GetPosition(*args
, **kwargs
) 
4123     def GetNumberOfFiles(*args
, **kwargs
): 
4124         """GetNumberOfFiles(self) -> int""" 
4125         return _core_
.DropFilesEvent_GetNumberOfFiles(*args
, **kwargs
) 
4127     def GetFiles(*args
, **kwargs
): 
4128         """GetFiles(self) -> PyObject""" 
4129         return _core_
.DropFilesEvent_GetFiles(*args
, **kwargs
) 
4132 class DropFilesEventPtr(DropFilesEvent
): 
4133     def __init__(self
, this
): 
4135         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4136         self
.__class
__ = DropFilesEvent
 
4137 _core_
.DropFilesEvent_swigregister(DropFilesEventPtr
) 
4139 #--------------------------------------------------------------------------- 
4141 UPDATE_UI_PROCESS_ALL 
= _core_
.UPDATE_UI_PROCESS_ALL
 
4142 UPDATE_UI_PROCESS_SPECIFIED 
= _core_
.UPDATE_UI_PROCESS_SPECIFIED
 
4143 class UpdateUIEvent(CommandEvent
): 
4145         return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4146     def __init__(self
, *args
, **kwargs
): 
4147         """__init__(self, int commandId=0) -> UpdateUIEvent""" 
4148         newobj 
= _core_
.new_UpdateUIEvent(*args
, **kwargs
) 
4149         self
.this 
= newobj
.this
 
4152     def GetChecked(*args
, **kwargs
): 
4153         """GetChecked(self) -> bool""" 
4154         return _core_
.UpdateUIEvent_GetChecked(*args
, **kwargs
) 
4156     def GetEnabled(*args
, **kwargs
): 
4157         """GetEnabled(self) -> bool""" 
4158         return _core_
.UpdateUIEvent_GetEnabled(*args
, **kwargs
) 
4160     def GetText(*args
, **kwargs
): 
4161         """GetText(self) -> String""" 
4162         return _core_
.UpdateUIEvent_GetText(*args
, **kwargs
) 
4164     def GetSetText(*args
, **kwargs
): 
4165         """GetSetText(self) -> bool""" 
4166         return _core_
.UpdateUIEvent_GetSetText(*args
, **kwargs
) 
4168     def GetSetChecked(*args
, **kwargs
): 
4169         """GetSetChecked(self) -> bool""" 
4170         return _core_
.UpdateUIEvent_GetSetChecked(*args
, **kwargs
) 
4172     def GetSetEnabled(*args
, **kwargs
): 
4173         """GetSetEnabled(self) -> bool""" 
4174         return _core_
.UpdateUIEvent_GetSetEnabled(*args
, **kwargs
) 
4176     def Check(*args
, **kwargs
): 
4177         """Check(self, bool check)""" 
4178         return _core_
.UpdateUIEvent_Check(*args
, **kwargs
) 
4180     def Enable(*args
, **kwargs
): 
4181         """Enable(self, bool enable)""" 
4182         return _core_
.UpdateUIEvent_Enable(*args
, **kwargs
) 
4184     def SetText(*args
, **kwargs
): 
4185         """SetText(self, String text)""" 
4186         return _core_
.UpdateUIEvent_SetText(*args
, **kwargs
) 
4188     def SetUpdateInterval(*args
, **kwargs
): 
4189         """SetUpdateInterval(long updateInterval)""" 
4190         return _core_
.UpdateUIEvent_SetUpdateInterval(*args
, **kwargs
) 
4192     SetUpdateInterval 
= staticmethod(SetUpdateInterval
) 
4193     def GetUpdateInterval(*args
, **kwargs
): 
4194         """GetUpdateInterval() -> long""" 
4195         return _core_
.UpdateUIEvent_GetUpdateInterval(*args
, **kwargs
) 
4197     GetUpdateInterval 
= staticmethod(GetUpdateInterval
) 
4198     def CanUpdate(*args
, **kwargs
): 
4199         """CanUpdate(Window win) -> bool""" 
4200         return _core_
.UpdateUIEvent_CanUpdate(*args
, **kwargs
) 
4202     CanUpdate 
= staticmethod(CanUpdate
) 
4203     def ResetUpdateTime(*args
, **kwargs
): 
4204         """ResetUpdateTime()""" 
4205         return _core_
.UpdateUIEvent_ResetUpdateTime(*args
, **kwargs
) 
4207     ResetUpdateTime 
= staticmethod(ResetUpdateTime
) 
4208     def SetMode(*args
, **kwargs
): 
4209         """SetMode(int mode)""" 
4210         return _core_
.UpdateUIEvent_SetMode(*args
, **kwargs
) 
4212     SetMode 
= staticmethod(SetMode
) 
4213     def GetMode(*args
, **kwargs
): 
4214         """GetMode() -> int""" 
4215         return _core_
.UpdateUIEvent_GetMode(*args
, **kwargs
) 
4217     GetMode 
= staticmethod(GetMode
) 
4219 class UpdateUIEventPtr(UpdateUIEvent
): 
4220     def __init__(self
, this
): 
4222         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4223         self
.__class
__ = UpdateUIEvent
 
4224 _core_
.UpdateUIEvent_swigregister(UpdateUIEventPtr
) 
4226 def UpdateUIEvent_SetUpdateInterval(*args
, **kwargs
): 
4227     """UpdateUIEvent_SetUpdateInterval(long updateInterval)""" 
4228     return _core_
.UpdateUIEvent_SetUpdateInterval(*args
, **kwargs
) 
4230 def UpdateUIEvent_GetUpdateInterval(*args
, **kwargs
): 
4231     """UpdateUIEvent_GetUpdateInterval() -> long""" 
4232     return _core_
.UpdateUIEvent_GetUpdateInterval(*args
, **kwargs
) 
4234 def UpdateUIEvent_CanUpdate(*args
, **kwargs
): 
4235     """UpdateUIEvent_CanUpdate(Window win) -> bool""" 
4236     return _core_
.UpdateUIEvent_CanUpdate(*args
, **kwargs
) 
4238 def UpdateUIEvent_ResetUpdateTime(*args
, **kwargs
): 
4239     """UpdateUIEvent_ResetUpdateTime()""" 
4240     return _core_
.UpdateUIEvent_ResetUpdateTime(*args
, **kwargs
) 
4242 def UpdateUIEvent_SetMode(*args
, **kwargs
): 
4243     """UpdateUIEvent_SetMode(int mode)""" 
4244     return _core_
.UpdateUIEvent_SetMode(*args
, **kwargs
) 
4246 def UpdateUIEvent_GetMode(*args
, **kwargs
): 
4247     """UpdateUIEvent_GetMode() -> int""" 
4248     return _core_
.UpdateUIEvent_GetMode(*args
, **kwargs
) 
4250 #--------------------------------------------------------------------------- 
4252 class SysColourChangedEvent(Event
): 
4254         return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4255     def __init__(self
, *args
, **kwargs
): 
4256         """__init__(self) -> SysColourChangedEvent""" 
4257         newobj 
= _core_
.new_SysColourChangedEvent(*args
, **kwargs
) 
4258         self
.this 
= newobj
.this
 
4262 class SysColourChangedEventPtr(SysColourChangedEvent
): 
4263     def __init__(self
, this
): 
4265         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4266         self
.__class
__ = SysColourChangedEvent
 
4267 _core_
.SysColourChangedEvent_swigregister(SysColourChangedEventPtr
) 
4269 #--------------------------------------------------------------------------- 
4271 class MouseCaptureChangedEvent(Event
): 
4273         return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4274     def __init__(self
, *args
, **kwargs
): 
4275         """__init__(self, int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent""" 
4276         newobj 
= _core_
.new_MouseCaptureChangedEvent(*args
, **kwargs
) 
4277         self
.this 
= newobj
.this
 
4280     def GetCapturedWindow(*args
, **kwargs
): 
4281         """GetCapturedWindow(self) -> Window""" 
4282         return _core_
.MouseCaptureChangedEvent_GetCapturedWindow(*args
, **kwargs
) 
4285 class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent
): 
4286     def __init__(self
, this
): 
4288         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4289         self
.__class
__ = MouseCaptureChangedEvent
 
4290 _core_
.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr
) 
4292 #--------------------------------------------------------------------------- 
4294 class DisplayChangedEvent(Event
): 
4296         return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4297     def __init__(self
, *args
, **kwargs
): 
4298         """__init__(self) -> DisplayChangedEvent""" 
4299         newobj 
= _core_
.new_DisplayChangedEvent(*args
, **kwargs
) 
4300         self
.this 
= newobj
.this
 
4304 class DisplayChangedEventPtr(DisplayChangedEvent
): 
4305     def __init__(self
, this
): 
4307         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4308         self
.__class
__ = DisplayChangedEvent
 
4309 _core_
.DisplayChangedEvent_swigregister(DisplayChangedEventPtr
) 
4311 #--------------------------------------------------------------------------- 
4313 class PaletteChangedEvent(Event
): 
4315         return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4316     def __init__(self
, *args
, **kwargs
): 
4317         """__init__(self, int id=0) -> PaletteChangedEvent""" 
4318         newobj 
= _core_
.new_PaletteChangedEvent(*args
, **kwargs
) 
4319         self
.this 
= newobj
.this
 
4322     def SetChangedWindow(*args
, **kwargs
): 
4323         """SetChangedWindow(self, Window win)""" 
4324         return _core_
.PaletteChangedEvent_SetChangedWindow(*args
, **kwargs
) 
4326     def GetChangedWindow(*args
, **kwargs
): 
4327         """GetChangedWindow(self) -> Window""" 
4328         return _core_
.PaletteChangedEvent_GetChangedWindow(*args
, **kwargs
) 
4331 class PaletteChangedEventPtr(PaletteChangedEvent
): 
4332     def __init__(self
, this
): 
4334         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4335         self
.__class
__ = PaletteChangedEvent
 
4336 _core_
.PaletteChangedEvent_swigregister(PaletteChangedEventPtr
) 
4338 #--------------------------------------------------------------------------- 
4340 class QueryNewPaletteEvent(Event
): 
4342         return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4343     def __init__(self
, *args
, **kwargs
): 
4344         """__init__(self, int winid=0) -> QueryNewPaletteEvent""" 
4345         newobj 
= _core_
.new_QueryNewPaletteEvent(*args
, **kwargs
) 
4346         self
.this 
= newobj
.this
 
4349     def SetPaletteRealized(*args
, **kwargs
): 
4350         """SetPaletteRealized(self, bool realized)""" 
4351         return _core_
.QueryNewPaletteEvent_SetPaletteRealized(*args
, **kwargs
) 
4353     def GetPaletteRealized(*args
, **kwargs
): 
4354         """GetPaletteRealized(self) -> bool""" 
4355         return _core_
.QueryNewPaletteEvent_GetPaletteRealized(*args
, **kwargs
) 
4358 class QueryNewPaletteEventPtr(QueryNewPaletteEvent
): 
4359     def __init__(self
, this
): 
4361         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4362         self
.__class
__ = QueryNewPaletteEvent
 
4363 _core_
.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr
) 
4365 #--------------------------------------------------------------------------- 
4367 class NavigationKeyEvent(Event
): 
4369         return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4370     def __init__(self
, *args
, **kwargs
): 
4371         """__init__(self) -> NavigationKeyEvent""" 
4372         newobj 
= _core_
.new_NavigationKeyEvent(*args
, **kwargs
) 
4373         self
.this 
= newobj
.this
 
4376     def GetDirection(*args
, **kwargs
): 
4377         """GetDirection(self) -> bool""" 
4378         return _core_
.NavigationKeyEvent_GetDirection(*args
, **kwargs
) 
4380     def SetDirection(*args
, **kwargs
): 
4381         """SetDirection(self, bool forward)""" 
4382         return _core_
.NavigationKeyEvent_SetDirection(*args
, **kwargs
) 
4384     def IsWindowChange(*args
, **kwargs
): 
4385         """IsWindowChange(self) -> bool""" 
4386         return _core_
.NavigationKeyEvent_IsWindowChange(*args
, **kwargs
) 
4388     def SetWindowChange(*args
, **kwargs
): 
4389         """SetWindowChange(self, bool ischange)""" 
4390         return _core_
.NavigationKeyEvent_SetWindowChange(*args
, **kwargs
) 
4392     def SetFlags(*args
, **kwargs
): 
4393         """SetFlags(self, long flags)""" 
4394         return _core_
.NavigationKeyEvent_SetFlags(*args
, **kwargs
) 
4396     def GetCurrentFocus(*args
, **kwargs
): 
4397         """GetCurrentFocus(self) -> Window""" 
4398         return _core_
.NavigationKeyEvent_GetCurrentFocus(*args
, **kwargs
) 
4400     def SetCurrentFocus(*args
, **kwargs
): 
4401         """SetCurrentFocus(self, Window win)""" 
4402         return _core_
.NavigationKeyEvent_SetCurrentFocus(*args
, **kwargs
) 
4404     IsBackward 
= _core_
.NavigationKeyEvent_IsBackward
 
4405     IsForward 
= _core_
.NavigationKeyEvent_IsForward
 
4406     WinChange 
= _core_
.NavigationKeyEvent_WinChange
 
4408 class NavigationKeyEventPtr(NavigationKeyEvent
): 
4409     def __init__(self
, this
): 
4411         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4412         self
.__class
__ = NavigationKeyEvent
 
4413 _core_
.NavigationKeyEvent_swigregister(NavigationKeyEventPtr
) 
4415 #--------------------------------------------------------------------------- 
4417 class WindowCreateEvent(CommandEvent
): 
4419         return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4420     def __init__(self
, *args
, **kwargs
): 
4421         """__init__(self, Window win=None) -> WindowCreateEvent""" 
4422         newobj 
= _core_
.new_WindowCreateEvent(*args
, **kwargs
) 
4423         self
.this 
= newobj
.this
 
4426     def GetWindow(*args
, **kwargs
): 
4427         """GetWindow(self) -> Window""" 
4428         return _core_
.WindowCreateEvent_GetWindow(*args
, **kwargs
) 
4431 class WindowCreateEventPtr(WindowCreateEvent
): 
4432     def __init__(self
, this
): 
4434         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4435         self
.__class
__ = WindowCreateEvent
 
4436 _core_
.WindowCreateEvent_swigregister(WindowCreateEventPtr
) 
4438 class WindowDestroyEvent(CommandEvent
): 
4440         return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4441     def __init__(self
, *args
, **kwargs
): 
4442         """__init__(self, Window win=None) -> WindowDestroyEvent""" 
4443         newobj 
= _core_
.new_WindowDestroyEvent(*args
, **kwargs
) 
4444         self
.this 
= newobj
.this
 
4447     def GetWindow(*args
, **kwargs
): 
4448         """GetWindow(self) -> Window""" 
4449         return _core_
.WindowDestroyEvent_GetWindow(*args
, **kwargs
) 
4452 class WindowDestroyEventPtr(WindowDestroyEvent
): 
4453     def __init__(self
, this
): 
4455         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4456         self
.__class
__ = WindowDestroyEvent
 
4457 _core_
.WindowDestroyEvent_swigregister(WindowDestroyEventPtr
) 
4459 #--------------------------------------------------------------------------- 
4461 class ContextMenuEvent(CommandEvent
): 
4463         return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4464     def __init__(self
, *args
, **kwargs
): 
4465         """__init__(self, wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent""" 
4466         newobj 
= _core_
.new_ContextMenuEvent(*args
, **kwargs
) 
4467         self
.this 
= newobj
.this
 
4470     def GetPosition(*args
, **kwargs
): 
4471         """GetPosition(self) -> Point""" 
4472         return _core_
.ContextMenuEvent_GetPosition(*args
, **kwargs
) 
4474     def SetPosition(*args
, **kwargs
): 
4475         """SetPosition(self, Point pos)""" 
4476         return _core_
.ContextMenuEvent_SetPosition(*args
, **kwargs
) 
4479 class ContextMenuEventPtr(ContextMenuEvent
): 
4480     def __init__(self
, this
): 
4482         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4483         self
.__class
__ = ContextMenuEvent
 
4484 _core_
.ContextMenuEvent_swigregister(ContextMenuEventPtr
) 
4486 #--------------------------------------------------------------------------- 
4488 IDLE_PROCESS_ALL 
= _core_
.IDLE_PROCESS_ALL
 
4489 IDLE_PROCESS_SPECIFIED 
= _core_
.IDLE_PROCESS_SPECIFIED
 
4490 class IdleEvent(Event
): 
4492         return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4493     def __init__(self
, *args
, **kwargs
): 
4494         """__init__(self) -> IdleEvent""" 
4495         newobj 
= _core_
.new_IdleEvent(*args
, **kwargs
) 
4496         self
.this 
= newobj
.this
 
4499     def RequestMore(*args
, **kwargs
): 
4500         """RequestMore(self, bool needMore=True)""" 
4501         return _core_
.IdleEvent_RequestMore(*args
, **kwargs
) 
4503     def MoreRequested(*args
, **kwargs
): 
4504         """MoreRequested(self) -> bool""" 
4505         return _core_
.IdleEvent_MoreRequested(*args
, **kwargs
) 
4507     def SetMode(*args
, **kwargs
): 
4508         """SetMode(int mode)""" 
4509         return _core_
.IdleEvent_SetMode(*args
, **kwargs
) 
4511     SetMode 
= staticmethod(SetMode
) 
4512     def GetMode(*args
, **kwargs
): 
4513         """GetMode() -> int""" 
4514         return _core_
.IdleEvent_GetMode(*args
, **kwargs
) 
4516     GetMode 
= staticmethod(GetMode
) 
4517     def CanSend(*args
, **kwargs
): 
4518         """CanSend(Window win) -> bool""" 
4519         return _core_
.IdleEvent_CanSend(*args
, **kwargs
) 
4521     CanSend 
= staticmethod(CanSend
) 
4523 class IdleEventPtr(IdleEvent
): 
4524     def __init__(self
, this
): 
4526         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4527         self
.__class
__ = IdleEvent
 
4528 _core_
.IdleEvent_swigregister(IdleEventPtr
) 
4530 def IdleEvent_SetMode(*args
, **kwargs
): 
4531     """IdleEvent_SetMode(int mode)""" 
4532     return _core_
.IdleEvent_SetMode(*args
, **kwargs
) 
4534 def IdleEvent_GetMode(*args
, **kwargs
): 
4535     """IdleEvent_GetMode() -> int""" 
4536     return _core_
.IdleEvent_GetMode(*args
, **kwargs
) 
4538 def IdleEvent_CanSend(*args
, **kwargs
): 
4539     """IdleEvent_CanSend(Window win) -> bool""" 
4540     return _core_
.IdleEvent_CanSend(*args
, **kwargs
) 
4542 #--------------------------------------------------------------------------- 
4544 class PyEvent(Event
): 
4546         return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4547     def __init__(self
, *args
, **kwargs
): 
4548         """__init__(self, int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent""" 
4549         newobj 
= _core_
.new_PyEvent(*args
, **kwargs
) 
4550         self
.this 
= newobj
.this
 
4555     def __del__(self
, destroy
=_core_
.delete_PyEvent
): 
4558             if self
.thisown
: destroy(self
) 
4561     def SetSelf(*args
, **kwargs
): 
4562         """SetSelf(self, PyObject self)""" 
4563         return _core_
.PyEvent_SetSelf(*args
, **kwargs
) 
4565     def GetSelf(*args
, **kwargs
): 
4566         """GetSelf(self) -> PyObject""" 
4567         return _core_
.PyEvent_GetSelf(*args
, **kwargs
) 
4570 class PyEventPtr(PyEvent
): 
4571     def __init__(self
, this
): 
4573         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4574         self
.__class
__ = PyEvent
 
4575 _core_
.PyEvent_swigregister(PyEventPtr
) 
4577 class PyCommandEvent(CommandEvent
): 
4579         return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4580     def __init__(self
, *args
, **kwargs
): 
4581         """__init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent""" 
4582         newobj 
= _core_
.new_PyCommandEvent(*args
, **kwargs
) 
4583         self
.this 
= newobj
.this
 
4588     def __del__(self
, destroy
=_core_
.delete_PyCommandEvent
): 
4591             if self
.thisown
: destroy(self
) 
4594     def SetSelf(*args
, **kwargs
): 
4595         """SetSelf(self, PyObject self)""" 
4596         return _core_
.PyCommandEvent_SetSelf(*args
, **kwargs
) 
4598     def GetSelf(*args
, **kwargs
): 
4599         """GetSelf(self) -> PyObject""" 
4600         return _core_
.PyCommandEvent_GetSelf(*args
, **kwargs
) 
4603 class PyCommandEventPtr(PyCommandEvent
): 
4604     def __init__(self
, this
): 
4606         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4607         self
.__class
__ = PyCommandEvent
 
4608 _core_
.PyCommandEvent_swigregister(PyCommandEventPtr
) 
4610 #--------------------------------------------------------------------------- 
4612 PYAPP_ASSERT_SUPPRESS 
= _core_
.PYAPP_ASSERT_SUPPRESS
 
4613 PYAPP_ASSERT_EXCEPTION 
= _core_
.PYAPP_ASSERT_EXCEPTION
 
4614 PYAPP_ASSERT_DIALOG 
= _core_
.PYAPP_ASSERT_DIALOG
 
4615 PYAPP_ASSERT_LOG 
= _core_
.PYAPP_ASSERT_LOG
 
4616 PRINT_WINDOWS 
= _core_
.PRINT_WINDOWS
 
4617 PRINT_POSTSCRIPT 
= _core_
.PRINT_POSTSCRIPT
 
4618 class PyApp(EvtHandler
): 
4620     The ``wx.PyApp`` class is an *implementation detail*, please use the 
4621     `wx.App` class (or some other derived class) instead. 
4624         return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4625     def __init__(self
, *args
, **kwargs
): 
4627         __init__(self) -> PyApp 
4629         Create a new application object, starting the bootstrap process. 
4631         newobj 
= _core_
.new_PyApp(*args
, **kwargs
) 
4632         self
.this 
= newobj
.this
 
4635         self
._setCallbackInfo
(self
, PyApp
) 
4636         self
._setOORInfo
(self
) 
4638     def __del__(self
, destroy
=_core_
.delete_PyApp
): 
4641             if self
.thisown
: destroy(self
) 
4644     def _setCallbackInfo(*args
, **kwargs
): 
4645         """_setCallbackInfo(self, PyObject self, PyObject _class)""" 
4646         return _core_
.PyApp__setCallbackInfo(*args
, **kwargs
) 
4648     def GetAppName(*args
, **kwargs
): 
4650         GetAppName(self) -> String 
4652         Get the application name. 
4654         return _core_
.PyApp_GetAppName(*args
, **kwargs
) 
4656     def SetAppName(*args
, **kwargs
): 
4658         SetAppName(self, String name) 
4660         Set the application name. This value may be used automatically by 
4661         `wx.Config` and such. 
4663         return _core_
.PyApp_SetAppName(*args
, **kwargs
) 
4665     def GetClassName(*args
, **kwargs
): 
4667         GetClassName(self) -> String 
4669         Get the application's class name. 
4671         return _core_
.PyApp_GetClassName(*args
, **kwargs
) 
4673     def SetClassName(*args
, **kwargs
): 
4675         SetClassName(self, String name) 
4677         Set the application's class name. This value may be used for 
4678         X-resources if applicable for the platform 
4680         return _core_
.PyApp_SetClassName(*args
, **kwargs
) 
4682     def GetVendorName(*args
, **kwargs
): 
4684         GetVendorName(self) -> String 
4686         Get the application's vendor name. 
4688         return _core_
.PyApp_GetVendorName(*args
, **kwargs
) 
4690     def SetVendorName(*args
, **kwargs
): 
4692         SetVendorName(self, String name) 
4694         Set the application's vendor name. This value may be used 
4695         automatically by `wx.Config` and such. 
4697         return _core_
.PyApp_SetVendorName(*args
, **kwargs
) 
4699     def GetTraits(*args
, **kwargs
): 
4701         GetTraits(self) -> wxAppTraits 
4703         Return (and create if necessary) the app traits object to which we 
4704         delegate for everything which either should be configurable by the 
4705         user (then he can change the default behaviour simply by overriding 
4706         CreateTraits() and returning his own traits object) or which is 
4707         GUI/console dependent as then wx.AppTraits allows us to abstract the 
4708         differences behind the common facade. 
4710         :todo: Add support for overriding CreateAppTraits in wxPython. 
4712         return _core_
.PyApp_GetTraits(*args
, **kwargs
) 
4714     def ProcessPendingEvents(*args
, **kwargs
): 
4716         ProcessPendingEvents(self) 
4718         Process all events in the Pending Events list -- it is necessary to 
4719         call this function to process posted events. This normally happens 
4720         during each event loop iteration. 
4722         return _core_
.PyApp_ProcessPendingEvents(*args
, **kwargs
) 
4724     def Yield(*args
, **kwargs
): 
4726         Yield(self, bool onlyIfNeeded=False) -> bool 
4728         Process all currently pending events right now, instead of waiting 
4729         until return to the event loop.  It is an error to call ``Yield`` 
4730         recursively unless the value of ``onlyIfNeeded`` is True. 
4732         :warning: This function is dangerous as it can lead to unexpected 
4733               reentrancies (i.e. when called from an event handler it may 
4734               result in calling the same event handler again), use with 
4735               extreme care or, better, don't use at all! 
4737         :see: `wx.Yield`, `wx.YieldIfNeeded`, `wx.SafeYield` 
4740         return _core_
.PyApp_Yield(*args
, **kwargs
) 
4742     def WakeUpIdle(*args
, **kwargs
): 
4746         Make sure that idle events are sent again. 
4747         :see: `wx.WakeUpIdle` 
4749         return _core_
.PyApp_WakeUpIdle(*args
, **kwargs
) 
4751     def MainLoop(*args
, **kwargs
): 
4753         MainLoop(self) -> int 
4755         Execute the main GUI loop, the function doesn't normally return until 
4756         all top level windows have been closed and destroyed. 
4758         return _core_
.PyApp_MainLoop(*args
, **kwargs
) 
4760     def Exit(*args
, **kwargs
): 
4764         Exit the main loop thus terminating the application. 
4767         return _core_
.PyApp_Exit(*args
, **kwargs
) 
4769     def ExitMainLoop(*args
, **kwargs
): 
4773         Exit the main GUI loop during the next iteration of the main 
4774         loop, (i.e. it does not stop the program immediately!) 
4776         return _core_
.PyApp_ExitMainLoop(*args
, **kwargs
) 
4778     def Pending(*args
, **kwargs
): 
4780         Pending(self) -> bool 
4782         Returns True if there are unprocessed events in the event queue. 
4784         return _core_
.PyApp_Pending(*args
, **kwargs
) 
4786     def Dispatch(*args
, **kwargs
): 
4788         Dispatch(self) -> bool 
4790         Process the first event in the event queue (blocks until an event 
4791         appears if there are none currently) 
4793         return _core_
.PyApp_Dispatch(*args
, **kwargs
) 
4795     def ProcessIdle(*args
, **kwargs
): 
4797         ProcessIdle(self) -> bool 
4799         Called from the MainLoop when the application becomes idle (there are 
4800         no pending events) and sends a `wx.IdleEvent` to all interested 
4801         parties.  Returns True if more idle events are needed, False if not. 
4803         return _core_
.PyApp_ProcessIdle(*args
, **kwargs
) 
4805     def SendIdleEvents(*args
, **kwargs
): 
4807         SendIdleEvents(self, Window win, IdleEvent event) -> bool 
4809         Send idle event to window and all subwindows.  Returns True if more 
4810         idle time is requested. 
4812         return _core_
.PyApp_SendIdleEvents(*args
, **kwargs
) 
4814     def IsActive(*args
, **kwargs
): 
4816         IsActive(self) -> bool 
4818         Return True if our app has focus. 
4820         return _core_
.PyApp_IsActive(*args
, **kwargs
) 
4822     def SetTopWindow(*args
, **kwargs
): 
4824         SetTopWindow(self, Window win) 
4826         Set the *main* top level window 
4828         return _core_
.PyApp_SetTopWindow(*args
, **kwargs
) 
4830     def GetTopWindow(*args
, **kwargs
): 
4832         GetTopWindow(self) -> Window 
4834         Return the *main* top level window (if it hadn't been set previously 
4835         with SetTopWindow(), will return just some top level window and, if 
4836         there not any, will return None) 
4838         return _core_
.PyApp_GetTopWindow(*args
, **kwargs
) 
4840     def SetExitOnFrameDelete(*args
, **kwargs
): 
4842         SetExitOnFrameDelete(self, bool flag) 
4844         Control the exit behaviour: by default, the program will exit the main 
4845         loop (and so, usually, terminate) when the last top-level program 
4846         window is deleted.  Beware that if you disable this behaviour (with 
4847         SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop() 
4848         explicitly from somewhere. 
4850         return _core_
.PyApp_SetExitOnFrameDelete(*args
, **kwargs
) 
4852     def GetExitOnFrameDelete(*args
, **kwargs
): 
4854         GetExitOnFrameDelete(self) -> bool 
4856         Get the current exit behaviour setting. 
4858         return _core_
.PyApp_GetExitOnFrameDelete(*args
, **kwargs
) 
4860     def SetUseBestVisual(*args
, **kwargs
): 
4862         SetUseBestVisual(self, bool flag) 
4864         Set whether the app should try to use the best available visual on 
4865         systems where more than one is available, (Sun, SGI, XFree86 4, etc.) 
4867         return _core_
.PyApp_SetUseBestVisual(*args
, **kwargs
) 
4869     def GetUseBestVisual(*args
, **kwargs
): 
4871         GetUseBestVisual(self) -> bool 
4873         Get current UseBestVisual setting. 
4875         return _core_
.PyApp_GetUseBestVisual(*args
, **kwargs
) 
4877     def SetPrintMode(*args
, **kwargs
): 
4878         """SetPrintMode(self, int mode)""" 
4879         return _core_
.PyApp_SetPrintMode(*args
, **kwargs
) 
4881     def GetPrintMode(*args
, **kwargs
): 
4882         """GetPrintMode(self) -> int""" 
4883         return _core_
.PyApp_GetPrintMode(*args
, **kwargs
) 
4885     def SetAssertMode(*args
, **kwargs
): 
4887         SetAssertMode(self, int mode) 
4889         Set the OnAssert behaviour for debug and hybrid builds. 
4891         return _core_
.PyApp_SetAssertMode(*args
, **kwargs
) 
4893     def GetAssertMode(*args
, **kwargs
): 
4895         GetAssertMode(self) -> int 
4897         Get the current OnAssert behaviour setting. 
4899         return _core_
.PyApp_GetAssertMode(*args
, **kwargs
) 
4901     def GetMacSupportPCMenuShortcuts(*args
, **kwargs
): 
4902         """GetMacSupportPCMenuShortcuts() -> bool""" 
4903         return _core_
.PyApp_GetMacSupportPCMenuShortcuts(*args
, **kwargs
) 
4905     GetMacSupportPCMenuShortcuts 
= staticmethod(GetMacSupportPCMenuShortcuts
) 
4906     def GetMacAboutMenuItemId(*args
, **kwargs
): 
4907         """GetMacAboutMenuItemId() -> long""" 
4908         return _core_
.PyApp_GetMacAboutMenuItemId(*args
, **kwargs
) 
4910     GetMacAboutMenuItemId 
= staticmethod(GetMacAboutMenuItemId
) 
4911     def GetMacPreferencesMenuItemId(*args
, **kwargs
): 
4912         """GetMacPreferencesMenuItemId() -> long""" 
4913         return _core_
.PyApp_GetMacPreferencesMenuItemId(*args
, **kwargs
) 
4915     GetMacPreferencesMenuItemId 
= staticmethod(GetMacPreferencesMenuItemId
) 
4916     def GetMacExitMenuItemId(*args
, **kwargs
): 
4917         """GetMacExitMenuItemId() -> long""" 
4918         return _core_
.PyApp_GetMacExitMenuItemId(*args
, **kwargs
) 
4920     GetMacExitMenuItemId 
= staticmethod(GetMacExitMenuItemId
) 
4921     def GetMacHelpMenuTitleName(*args
, **kwargs
): 
4922         """GetMacHelpMenuTitleName() -> String""" 
4923         return _core_
.PyApp_GetMacHelpMenuTitleName(*args
, **kwargs
) 
4925     GetMacHelpMenuTitleName 
= staticmethod(GetMacHelpMenuTitleName
) 
4926     def SetMacSupportPCMenuShortcuts(*args
, **kwargs
): 
4927         """SetMacSupportPCMenuShortcuts(bool val)""" 
4928         return _core_
.PyApp_SetMacSupportPCMenuShortcuts(*args
, **kwargs
) 
4930     SetMacSupportPCMenuShortcuts 
= staticmethod(SetMacSupportPCMenuShortcuts
) 
4931     def SetMacAboutMenuItemId(*args
, **kwargs
): 
4932         """SetMacAboutMenuItemId(long val)""" 
4933         return _core_
.PyApp_SetMacAboutMenuItemId(*args
, **kwargs
) 
4935     SetMacAboutMenuItemId 
= staticmethod(SetMacAboutMenuItemId
) 
4936     def SetMacPreferencesMenuItemId(*args
, **kwargs
): 
4937         """SetMacPreferencesMenuItemId(long val)""" 
4938         return _core_
.PyApp_SetMacPreferencesMenuItemId(*args
, **kwargs
) 
4940     SetMacPreferencesMenuItemId 
= staticmethod(SetMacPreferencesMenuItemId
) 
4941     def SetMacExitMenuItemId(*args
, **kwargs
): 
4942         """SetMacExitMenuItemId(long val)""" 
4943         return _core_
.PyApp_SetMacExitMenuItemId(*args
, **kwargs
) 
4945     SetMacExitMenuItemId 
= staticmethod(SetMacExitMenuItemId
) 
4946     def SetMacHelpMenuTitleName(*args
, **kwargs
): 
4947         """SetMacHelpMenuTitleName(String val)""" 
4948         return _core_
.PyApp_SetMacHelpMenuTitleName(*args
, **kwargs
) 
4950     SetMacHelpMenuTitleName 
= staticmethod(SetMacHelpMenuTitleName
) 
4951     def _BootstrapApp(*args
, **kwargs
): 
4955         For internal use only 
4957         return _core_
.PyApp__BootstrapApp(*args
, **kwargs
) 
4959     def GetComCtl32Version(*args
, **kwargs
): 
4961         GetComCtl32Version() -> int 
4963         Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if 
4964         it wasn't found at all.  Raises an exception on non-Windows platforms. 
4966         return _core_
.PyApp_GetComCtl32Version(*args
, **kwargs
) 
4968     GetComCtl32Version 
= staticmethod(GetComCtl32Version
) 
4970 class PyAppPtr(PyApp
): 
4971     def __init__(self
, this
): 
4973         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4974         self
.__class
__ = PyApp
 
4975 _core_
.PyApp_swigregister(PyAppPtr
) 
4977 def PyApp_GetMacSupportPCMenuShortcuts(*args
, **kwargs
): 
4978     """PyApp_GetMacSupportPCMenuShortcuts() -> bool""" 
4979     return _core_
.PyApp_GetMacSupportPCMenuShortcuts(*args
, **kwargs
) 
4981 def PyApp_GetMacAboutMenuItemId(*args
, **kwargs
): 
4982     """PyApp_GetMacAboutMenuItemId() -> long""" 
4983     return _core_
.PyApp_GetMacAboutMenuItemId(*args
, **kwargs
) 
4985 def PyApp_GetMacPreferencesMenuItemId(*args
, **kwargs
): 
4986     """PyApp_GetMacPreferencesMenuItemId() -> long""" 
4987     return _core_
.PyApp_GetMacPreferencesMenuItemId(*args
, **kwargs
) 
4989 def PyApp_GetMacExitMenuItemId(*args
, **kwargs
): 
4990     """PyApp_GetMacExitMenuItemId() -> long""" 
4991     return _core_
.PyApp_GetMacExitMenuItemId(*args
, **kwargs
) 
4993 def PyApp_GetMacHelpMenuTitleName(*args
, **kwargs
): 
4994     """PyApp_GetMacHelpMenuTitleName() -> String""" 
4995     return _core_
.PyApp_GetMacHelpMenuTitleName(*args
, **kwargs
) 
4997 def PyApp_SetMacSupportPCMenuShortcuts(*args
, **kwargs
): 
4998     """PyApp_SetMacSupportPCMenuShortcuts(bool val)""" 
4999     return _core_
.PyApp_SetMacSupportPCMenuShortcuts(*args
, **kwargs
) 
5001 def PyApp_SetMacAboutMenuItemId(*args
, **kwargs
): 
5002     """PyApp_SetMacAboutMenuItemId(long val)""" 
5003     return _core_
.PyApp_SetMacAboutMenuItemId(*args
, **kwargs
) 
5005 def PyApp_SetMacPreferencesMenuItemId(*args
, **kwargs
): 
5006     """PyApp_SetMacPreferencesMenuItemId(long val)""" 
5007     return _core_
.PyApp_SetMacPreferencesMenuItemId(*args
, **kwargs
) 
5009 def PyApp_SetMacExitMenuItemId(*args
, **kwargs
): 
5010     """PyApp_SetMacExitMenuItemId(long val)""" 
5011     return _core_
.PyApp_SetMacExitMenuItemId(*args
, **kwargs
) 
5013 def PyApp_SetMacHelpMenuTitleName(*args
, **kwargs
): 
5014     """PyApp_SetMacHelpMenuTitleName(String val)""" 
5015     return _core_
.PyApp_SetMacHelpMenuTitleName(*args
, **kwargs
) 
5017 def PyApp_GetComCtl32Version(*args
, **kwargs
): 
5019     PyApp_GetComCtl32Version() -> int 
5021     Returns 400, 470, 471, etc. for comctl32.dll 4.00, 4.70, 4.71 or 0 if 
5022     it wasn't found at all.  Raises an exception on non-Windows platforms. 
5024     return _core_
.PyApp_GetComCtl32Version(*args
, **kwargs
) 
5026 #--------------------------------------------------------------------------- 
5029 def Exit(*args
, **kwargs
): 
5033     Force an exit of the application.  Convenience for wx.GetApp().Exit() 
5035     return _core_
.Exit(*args
, **kwargs
) 
5037 def Yield(*args
, **kwargs
): 
5041     Yield to other apps/messages.  Convenience for wx.GetApp().Yield() 
5043     return _core_
.Yield(*args
, **kwargs
) 
5045 def YieldIfNeeded(*args
, **kwargs
): 
5047     YieldIfNeeded() -> bool 
5049     Yield to other apps/messages.  Convenience for wx.GetApp().Yield(True) 
5051     return _core_
.YieldIfNeeded(*args
, **kwargs
) 
5053 def SafeYield(*args
, **kwargs
): 
5055     SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool 
5057     This function is similar to `wx.Yield`, except that it disables the 
5058     user input to all program windows before calling `wx.Yield` and 
5059     re-enables it again afterwards. If ``win`` is not None, this window 
5060     will remain enabled, allowing the implementation of some limited user 
5063     :Returns: the result of the call to `wx.Yield`. 
5065     return _core_
.SafeYield(*args
, **kwargs
) 
5067 def WakeUpIdle(*args
, **kwargs
): 
5071     Cause the message queue to become empty again, so idle events will be 
5074     return _core_
.WakeUpIdle(*args
, **kwargs
) 
5076 def PostEvent(*args
, **kwargs
): 
5078     PostEvent(EvtHandler dest, Event event) 
5080     Send an event to a window or other wx.EvtHandler to be processed 
5083     return _core_
.PostEvent(*args
, **kwargs
) 
5085 def App_CleanUp(*args
, **kwargs
): 
5089     For internal use only, it is used to cleanup after wxWidgets when 
5092     return _core_
.App_CleanUp(*args
, **kwargs
) 
5094 def GetApp(*args
, **kwargs
): 
5098     Return a reference to the current wx.App object. 
5100     return _core_
.GetApp(*args
, **kwargs
) 
5101 #---------------------------------------------------------------------- 
5103 class PyOnDemandOutputWindow
: 
5105     A class that can be used for redirecting Python's stdout and 
5106     stderr streams.  It will do nothing until something is wrriten to 
5107     the stream at which point it will create a Frame with a text area 
5108     and write the text there. 
5110     def __init__(self
, title 
= "wxPython: stdout/stderr"): 
5113         self
.pos    
= wx
.DefaultPosition
 
5114         self
.size   
= (450, 300) 
5117     def SetParent(self
, parent
): 
5118         """Set the window to be used as the popup Frame's parent.""" 
5119         self
.parent 
= parent
 
5122     def CreateOutputWindow(self
, st
): 
5123         self
.frame 
= wx
.Frame(self
.parent
, -1, self
.title
, self
.pos
, self
.size
, 
5124                               style
=wx
.DEFAULT_FRAME_STYLE
) 
5125         self
.text  
= wx
.TextCtrl(self
.frame
, -1, "", 
5126                                  style
=wx
.TE_MULTILINE|wx
.TE_READONLY
) 
5127         self
.text
.AppendText(st
) 
5128         self
.frame
.Show(True) 
5129         EVT_CLOSE(self
.frame
, self
.OnCloseWindow
) 
5132     def OnCloseWindow(self
, event
): 
5133         if self
.frame 
is not None: 
5134             self
.frame
.Destroy() 
5139     # These methods provide the file-like output behaviour. 
5140     def write(self
, text
): 
5142         Create the output window if needed and write the string to it. 
5143         If not called in the context of the gui thread then uses 
5144         CallAfter to do the work there. 
5146         if self
.frame 
is None: 
5147             if not wx
.Thread_IsMain(): 
5148                 wx
.CallAfter(self
.CreateOutputWindow
, text
) 
5150                 self
.CreateOutputWindow(text
) 
5152             if not wx
.Thread_IsMain(): 
5153                 wx
.CallAfter(self
.text
.AppendText
, text
) 
5155                 self
.text
.AppendText(text
) 
5159         if self
.frame 
is not None: 
5160             wx
.CallAfter(self
.frame
.Close
) 
5168 #---------------------------------------------------------------------- 
5170 _defRedirect 
= (wx
.Platform 
== '__WXMSW__' or wx
.Platform 
== '__WXMAC__') 
5172 class App(wx
.PyApp
): 
5174     The ``wx.App`` class represents the application and is used to: 
5176       * bootstrap the wxPython system and initialize the underlying 
5178       * set and get application-wide properties 
5179       * implement the windowing system main message or event loop, 
5180         and to dispatch events to window instances 
5183     Every application must have a ``wx.App`` instance, and all 
5184     creation of UI objects should be delayed until after the 
5185     ``wx.App`` object has been created in order to ensure that the gui 
5186     platform and wxWidgets have been fully initialized. 
5188     Normally you would derive from this class and implement an 
5189     ``OnInit`` method that creates a frame and then calls 
5190     ``self.SetTopWindow(frame)``. 
5192     :see: `wx.PySimpleApp` for a simpler app class that can be used 
5196     outputWindowClass 
= PyOnDemandOutputWindow
 
5198     def __init__(self
, redirect
=_defRedirect
, filename
=None, 
5199                  useBestVisual
=False, clearSigInt
=True): 
5201         Construct a ``wx.App`` object.   
5203         :param redirect: Should ``sys.stdout`` and ``sys.stderr`` be 
5204             redirected?  Defaults to True on Windows and Mac, False 
5205             otherwise.  If `filename` is None then output will be 
5206             redirected to a window that pops up as needed.  (You can 
5207             control what kind of window is created for the output by 
5208             resetting the class variable ``outputWindowClass`` to a 
5209             class of your choosing.) 
5211         :param filename: The name of a file to redirect output to, if 
5214         :param useBestVisual: Should the app try to use the best 
5215             available visual provided by the system (only relevant on 
5216             systems that have more than one visual.)  This parameter 
5217             must be used instead of calling `SetUseBestVisual` later 
5218             on because it must be set before the underlying GUI 
5219             toolkit is initialized. 
5221         :param clearSigInt: Should SIGINT be cleared?  This allows the 
5222             app to terminate upon a Ctrl-C in the console like other 
5225         :note: You should override OnInit to do applicaition 
5226             initialization to ensure that the system, toolkit and 
5227             wxWidgets are fully initialized. 
5229         wx
.PyApp
.__init
__(self
) 
5231         if wx
.Platform 
== "__WXMAC__": 
5234                 if not MacOS
.WMAvailable(): 
5236 This program needs access to the screen. Please run with 'pythonw', 
5237 not 'python', and only when you are logged in on the main display of 
5245         # This has to be done before OnInit 
5246         self
.SetUseBestVisual(useBestVisual
) 
5248         # Set the default handler for SIGINT.  This fixes a problem 
5249         # where if Ctrl-C is pressed in the console that started this 
5250         # app then it will not appear to do anything, (not even send 
5251         # KeyboardInterrupt???)  but will later segfault on exit.  By 
5252         # setting the default handler then the app will exit, as 
5253         # expected (depending on platform.) 
5257                 signal
.signal(signal
.SIGINT
, signal
.SIG_DFL
) 
5261         # Save and redirect the stdio to a window? 
5262         self
.stdioWin 
= None 
5263         self
.saveStdio 
= (_sys
.stdout
, _sys
.stderr
) 
5265             self
.RedirectStdio(filename
) 
5267         # This finishes the initialization of wxWindows and then calls 
5268         # the OnInit that should be present in the derived class 
5269         self
._BootstrapApp
() 
5274             self
.RestoreStdio()  # Just in case the MainLoop was overridden 
5279     def SetTopWindow(self
, frame
): 
5280         """Set the \"main\" top level window""" 
5282             self
.stdioWin
.SetParent(frame
) 
5283         wx
.PyApp
.SetTopWindow(self
, frame
) 
5287         """Execute the main GUI event loop""" 
5288         wx
.PyApp
.MainLoop(self
) 
5292     def RedirectStdio(self
, filename
=None): 
5293         """Redirect sys.stdout and sys.stderr to a file or a popup window.""" 
5295             _sys
.stdout 
= _sys
.stderr 
= open(filename
, 'a') 
5297             self
.stdioWin 
= self
.outputWindowClass() 
5298             _sys
.stdout 
= _sys
.stderr 
= self
.stdioWin
 
5301     def RestoreStdio(self
): 
5302         _sys
.stdout
, _sys
.stderr 
= self
.saveStdio
 
5305     def SetOutputWindowAttributes(self
, title
=None, pos
=None, size
=None): 
5307         Set the title, position and/or size of the output window if 
5308         the stdio has been redirected.  This should be called before 
5309         any output would cause the output window to be created. 
5312             if title 
is not None: 
5313                 self
.stdioWin
.title 
= title
 
5315                 self
.stdioWin
.pos 
= pos
 
5316             if size 
is not None: 
5317                 self
.stdioWin
.size 
= size
 
5322 # change from wx.PyApp_XX to wx.App_XX 
5323 App_GetMacSupportPCMenuShortcuts 
= _core_
.PyApp_GetMacSupportPCMenuShortcuts
 
5324 App_GetMacAboutMenuItemId        
= _core_
.PyApp_GetMacAboutMenuItemId
 
5325 App_GetMacPreferencesMenuItemId  
= _core_
.PyApp_GetMacPreferencesMenuItemId
 
5326 App_GetMacExitMenuItemId         
= _core_
.PyApp_GetMacExitMenuItemId
 
5327 App_GetMacHelpMenuTitleName      
= _core_
.PyApp_GetMacHelpMenuTitleName
 
5328 App_SetMacSupportPCMenuShortcuts 
= _core_
.PyApp_SetMacSupportPCMenuShortcuts
 
5329 App_SetMacAboutMenuItemId        
= _core_
.PyApp_SetMacAboutMenuItemId
 
5330 App_SetMacPreferencesMenuItemId  
= _core_
.PyApp_SetMacPreferencesMenuItemId
 
5331 App_SetMacExitMenuItemId         
= _core_
.PyApp_SetMacExitMenuItemId
 
5332 App_SetMacHelpMenuTitleName      
= _core_
.PyApp_SetMacHelpMenuTitleName
 
5333 App_GetComCtl32Version           
= _core_
.PyApp_GetComCtl32Version
 
5335 #---------------------------------------------------------------------------- 
5337 class PySimpleApp(wx
.App
): 
5339     A simple application class.  You can just create one of these and 
5340     then then make your top level windows later, and not have to worry 
5341     about OnInit.  For example:: 
5343         app = wx.PySimpleApp() 
5344         frame = wx.Frame(None, title='Hello World') 
5351     def __init__(self
, redirect
=False, filename
=None, 
5352                  useBestVisual
=False, clearSigInt
=True): 
5354         :see: `wx.App.__init__` 
5356         wx
.App
.__init
__(self
, redirect
, filename
, useBestVisual
, clearSigInt
) 
5363 # Is anybody using this one? 
5364 class PyWidgetTester(wx
.App
): 
5365     def __init__(self
, size 
= (250, 100)): 
5367         wx
.App
.__init
__(self
, 0) 
5370         self
.frame 
= wx
.Frame(None, -1, "Widget Tester", pos
=(0,0), size
=self
.size
) 
5371         self
.SetTopWindow(self
.frame
) 
5374     def SetWidget(self
, widgetClass
, *args
, **kwargs
): 
5375         w 
= widgetClass(self
.frame
, *args
, **kwargs
) 
5376         self
.frame
.Show(True) 
5378 #---------------------------------------------------------------------------- 
5379 # DO NOT hold any other references to this object.  This is how we 
5380 # know when to cleanup system resources that wxWidgets is holding.  When 
5381 # the sys module is unloaded, the refcount on sys.__wxPythonCleanup 
5382 # goes to zero and it calls the wx.App_CleanUp function. 
5384 class __wxPyCleanup
: 
5386         self
.cleanup 
= _core_
.App_CleanUp
 
5390 _sys
.__wxPythonCleanup 
= __wxPyCleanup() 
5392 ## # another possible solution, but it gets called too early... 
5394 ## atexit.register(_core_.wxApp_CleanUp) 
5397 #---------------------------------------------------------------------------- 
5399 #--------------------------------------------------------------------------- 
5401 class AcceleratorEntry(object): 
5403     A class used to define items in an `wx.AcceleratorTable`.  wxPython 
5404     programs can choose to use wx.AcceleratorEntry objects, but using a 
5405     list of 3-tuple of integers (flags, keyCode, cmdID) usually works just 
5406     as well.  See `__init__` for  of the tuple values. 
5408     :see: `wx.AcceleratorTable` 
5411         return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5412     def __init__(self
, *args
, **kwargs
): 
5414         __init__(self, int flags=0, int keyCode=0, int cmdID=0) -> AcceleratorEntry 
5416         Construct a wx.AcceleratorEntry. 
5418         newobj 
= _core_
.new_AcceleratorEntry(*args
, **kwargs
) 
5419         self
.this 
= newobj
.this
 
5422     def __del__(self
, destroy
=_core_
.delete_AcceleratorEntry
): 
5425             if self
.thisown
: destroy(self
) 
5428     def Set(*args
, **kwargs
): 
5430         Set(self, int flags, int keyCode, int cmd) 
5432         (Re)set the attributes of a wx.AcceleratorEntry. 
5435         return _core_
.AcceleratorEntry_Set(*args
, **kwargs
) 
5437     def GetFlags(*args
, **kwargs
): 
5439         GetFlags(self) -> int 
5441         Get the AcceleratorEntry's flags. 
5443         return _core_
.AcceleratorEntry_GetFlags(*args
, **kwargs
) 
5445     def GetKeyCode(*args
, **kwargs
): 
5447         GetKeyCode(self) -> int 
5449         Get the AcceleratorEntry's keycode. 
5451         return _core_
.AcceleratorEntry_GetKeyCode(*args
, **kwargs
) 
5453     def GetCommand(*args
, **kwargs
): 
5455         GetCommand(self) -> int 
5457         Get the AcceleratorEntry's command ID. 
5459         return _core_
.AcceleratorEntry_GetCommand(*args
, **kwargs
) 
5462 class AcceleratorEntryPtr(AcceleratorEntry
): 
5463     def __init__(self
, this
): 
5465         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5466         self
.__class
__ = AcceleratorEntry
 
5467 _core_
.AcceleratorEntry_swigregister(AcceleratorEntryPtr
) 
5469 class AcceleratorTable(Object
): 
5471     An accelerator table allows the application to specify a table of 
5472     keyboard shortcuts for menus or other commands. On Windows, menu or 
5473     button commands are supported; on GTK, only menu commands are 
5477         return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5478     def __init__(self
, *args
, **kwargs
): 
5480         __init__(entries) -> AcceleratorTable 
5482         Construct an AcceleratorTable from a list of `wx.AcceleratorEntry` 
5483         items or or of 3-tuples (flags, keyCode, cmdID) 
5485         :see: `wx.AcceleratorEntry` 
5487         newobj 
= _core_
.new_AcceleratorTable(*args
, **kwargs
) 
5488         self
.this 
= newobj
.this
 
5491     def __del__(self
, destroy
=_core_
.delete_AcceleratorTable
): 
5494             if self
.thisown
: destroy(self
) 
5497     def Ok(*args
, **kwargs
): 
5498         """Ok(self) -> bool""" 
5499         return _core_
.AcceleratorTable_Ok(*args
, **kwargs
) 
5502 class AcceleratorTablePtr(AcceleratorTable
): 
5503     def __init__(self
, this
): 
5505         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5506         self
.__class
__ = AcceleratorTable
 
5507 _core_
.AcceleratorTable_swigregister(AcceleratorTablePtr
) 
5510 def GetAccelFromString(*args
, **kwargs
): 
5511     """GetAccelFromString(String label) -> AcceleratorEntry""" 
5512     return _core_
.GetAccelFromString(*args
, **kwargs
) 
5513 #--------------------------------------------------------------------------- 
5515 class VisualAttributes(object): 
5516     """struct containing all the visual attributes of a control""" 
5518         return "<%s.%s; proxy of C++ wxVisualAttributes instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5519     def __init__(self
, *args
, **kwargs
): 
5521         __init__(self) -> VisualAttributes 
5523         struct containing all the visual attributes of a control 
5525         newobj 
= _core_
.new_VisualAttributes(*args
, **kwargs
) 
5526         self
.this 
= newobj
.this
 
5529     def __del__(self
, destroy
=_core_
.delete_VisualAttributes
): 
5532             if self
.thisown
: destroy(self
) 
5535     font 
= property(_core_
.VisualAttributes_font_get
, _core_
.VisualAttributes_font_set
) 
5536     colFg 
= property(_core_
.VisualAttributes_colFg_get
, _core_
.VisualAttributes_colFg_set
) 
5537     colBg 
= property(_core_
.VisualAttributes_colBg_get
, _core_
.VisualAttributes_colBg_set
) 
5539 class VisualAttributesPtr(VisualAttributes
): 
5540     def __init__(self
, this
): 
5542         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5543         self
.__class
__ = VisualAttributes
 
5544 _core_
.VisualAttributes_swigregister(VisualAttributesPtr
) 
5545 NullAcceleratorTable 
= cvar
.NullAcceleratorTable
 
5546 PanelNameStr 
= cvar
.PanelNameStr
 
5548 WINDOW_VARIANT_NORMAL 
= _core_
.WINDOW_VARIANT_NORMAL
 
5549 WINDOW_VARIANT_SMALL 
= _core_
.WINDOW_VARIANT_SMALL
 
5550 WINDOW_VARIANT_MINI 
= _core_
.WINDOW_VARIANT_MINI
 
5551 WINDOW_VARIANT_LARGE 
= _core_
.WINDOW_VARIANT_LARGE
 
5552 WINDOW_VARIANT_MAX 
= _core_
.WINDOW_VARIANT_MAX
 
5553 class Window(EvtHandler
): 
5555     wx.Window is the base class for all windows and represents any visible 
5556     object on the screen. All controls, top level windows and so on are 
5557     wx.Windows. Sizers and device contexts are not however, as they don't 
5558     appear on screen themselves. 
5562         return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5563     def __init__(self
, *args
, **kwargs
): 
5565         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,  
5566             Size size=DefaultSize, long style=0, String name=PanelNameStr) -> Window 
5568         Construct and show a generic Window. 
5570         newobj 
= _core_
.new_Window(*args
, **kwargs
) 
5571         self
.this 
= newobj
.this
 
5574         self
._setOORInfo
(self
) 
5576     def Create(*args
, **kwargs
): 
5578         Create(self, Window parent, int id=-1, Point pos=DefaultPosition,  
5579             Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool 
5581         Create the GUI part of the Window for 2-phase creation mode. 
5583         return _core_
.Window_Create(*args
, **kwargs
) 
5585     def Close(*args
, **kwargs
): 
5587         Close(self, bool force=False) -> bool 
5589         This function simply generates a EVT_CLOSE event whose handler usually 
5590         tries to close the window. It doesn't close the window itself, 
5591         however.  If force is False (the default) then the window's close 
5592         handler will be allowed to veto the destruction of the window. 
5594         return _core_
.Window_Close(*args
, **kwargs
) 
5596     def Destroy(*args
, **kwargs
): 
5598         Destroy(self) -> bool 
5600         Destroys the window safely.  Frames and dialogs are not destroyed 
5601         immediately when this function is called -- they are added to a list 
5602         of windows to be deleted on idle time, when all the window's events 
5603         have been processed. This prevents problems with events being sent to 
5604         non-existent windows. 
5606         Returns True if the window has either been successfully deleted, or it 
5607         has been added to the list of windows pending real deletion. 
5609         return _core_
.Window_Destroy(*args
, **kwargs
) 
5611     def DestroyChildren(*args
, **kwargs
): 
5613         DestroyChildren(self) -> bool 
5615         Destroys all children of a window. Called automatically by the 
5618         return _core_
.Window_DestroyChildren(*args
, **kwargs
) 
5620     def IsBeingDeleted(*args
, **kwargs
): 
5622         IsBeingDeleted(self) -> bool 
5624         Is the window in the process of being deleted? 
5626         return _core_
.Window_IsBeingDeleted(*args
, **kwargs
) 
5628     def SetTitle(*args
, **kwargs
): 
5630         SetTitle(self, String title) 
5632         Sets the window's title. Applicable only to frames and dialogs. 
5634         return _core_
.Window_SetTitle(*args
, **kwargs
) 
5636     def GetTitle(*args
, **kwargs
): 
5638         GetTitle(self) -> String 
5640         Gets the window's title. Applicable only to frames and dialogs. 
5642         return _core_
.Window_GetTitle(*args
, **kwargs
) 
5644     def SetLabel(*args
, **kwargs
): 
5646         SetLabel(self, String label) 
5648         Set the text which the window shows in its label if applicable. 
5650         return _core_
.Window_SetLabel(*args
, **kwargs
) 
5652     def GetLabel(*args
, **kwargs
): 
5654         GetLabel(self) -> String 
5656         Generic way of getting a label from any window, for identification 
5657         purposes.  The interpretation of this function differs from class to 
5658         class. For frames and dialogs, the value returned is the title. For 
5659         buttons or static text controls, it is the button text. This function 
5660         can be useful for meta-programs such as testing tools or special-needs 
5661         access programs)which need to identify windows by name. 
5663         return _core_
.Window_GetLabel(*args
, **kwargs
) 
5665     def SetName(*args
, **kwargs
): 
5667         SetName(self, String name) 
5669         Sets the window's name.  The window name is used for ressource setting 
5670         in X, it is not the same as the window title/label 
5672         return _core_
.Window_SetName(*args
, **kwargs
) 
5674     def GetName(*args
, **kwargs
): 
5676         GetName(self) -> String 
5678         Returns the windows name.  This name is not guaranteed to be unique; 
5679         it is up to the programmer to supply an appropriate name in the window 
5680         constructor or via wx.Window.SetName. 
5682         return _core_
.Window_GetName(*args
, **kwargs
) 
5684     def SetWindowVariant(*args
, **kwargs
): 
5686         SetWindowVariant(self, int variant) 
5688         Sets the variant of the window/font size to use for this window, if 
5689         the platform supports variants, for example, wxMac. 
5691         return _core_
.Window_SetWindowVariant(*args
, **kwargs
) 
5693     def GetWindowVariant(*args
, **kwargs
): 
5694         """GetWindowVariant(self) -> int""" 
5695         return _core_
.Window_GetWindowVariant(*args
, **kwargs
) 
5697     def SetId(*args
, **kwargs
): 
5699         SetId(self, int winid) 
5701         Sets the identifier of the window.  Each window has an integer 
5702         identifier. If the application has not provided one, an identifier 
5703         will be generated. Normally, the identifier should be provided on 
5704         creation and should not be modified subsequently. 
5706         return _core_
.Window_SetId(*args
, **kwargs
) 
5708     def GetId(*args
, **kwargs
): 
5712         Returns the identifier of the window.  Each window has an integer 
5713         identifier. If the application has not provided one (or the default Id 
5714         -1 is used) then an unique identifier with a negative value will be 
5717         return _core_
.Window_GetId(*args
, **kwargs
) 
5719     def NewControlId(*args
, **kwargs
): 
5721         NewControlId() -> int 
5723         Generate a control id for the controls which were not given one. 
5725         return _core_
.Window_NewControlId(*args
, **kwargs
) 
5727     NewControlId 
= staticmethod(NewControlId
) 
5728     def NextControlId(*args
, **kwargs
): 
5730         NextControlId(int winid) -> int 
5732         Get the id of the control following the one with the given 
5735         return _core_
.Window_NextControlId(*args
, **kwargs
) 
5737     NextControlId 
= staticmethod(NextControlId
) 
5738     def PrevControlId(*args
, **kwargs
): 
5740         PrevControlId(int winid) -> int 
5742         Get the id of the control preceding the one with the given 
5745         return _core_
.Window_PrevControlId(*args
, **kwargs
) 
5747     PrevControlId 
= staticmethod(PrevControlId
) 
5748     def SetSize(*args
, **kwargs
): 
5750         SetSize(self, Size size) 
5752         Sets the size of the window in pixels. 
5754         return _core_
.Window_SetSize(*args
, **kwargs
) 
5756     def SetDimensions(*args
, **kwargs
): 
5758         SetDimensions(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO) 
5760         Sets the position and size of the window in pixels.  The sizeFlags 
5761         parameter indicates the interpretation of the other params if they are 
5762         -1.  wx.SIZE_AUTO*: a -1 indicates that a class-specific default 
5763         shoudl be used.  wx.SIZE_USE_EXISTING: existing dimensions should be 
5764         used if -1 values are supplied.  wxSIZE_ALLOW_MINUS_ONE: allow 
5765         dimensions of -1 and less to be interpreted as real dimensions, not 
5768         return _core_
.Window_SetDimensions(*args
, **kwargs
) 
5770     def SetRect(*args
, **kwargs
): 
5772         SetRect(self, Rect rect, int sizeFlags=SIZE_AUTO) 
5774         Sets the position and size of the window in pixels using a wx.Rect. 
5776         return _core_
.Window_SetRect(*args
, **kwargs
) 
5778     def SetSizeWH(*args
, **kwargs
): 
5780         SetSizeWH(self, int width, int height) 
5782         Sets the size of the window in pixels. 
5784         return _core_
.Window_SetSizeWH(*args
, **kwargs
) 
5786     def Move(*args
, **kwargs
): 
5788         Move(self, Point pt, int flags=SIZE_USE_EXISTING) 
5790         Moves the window to the given position. 
5792         return _core_
.Window_Move(*args
, **kwargs
) 
5795     def MoveXY(*args
, **kwargs
): 
5797         MoveXY(self, int x, int y, int flags=SIZE_USE_EXISTING) 
5799         Moves the window to the given position. 
5801         return _core_
.Window_MoveXY(*args
, **kwargs
) 
5803     def SetBestFittingSize(*args
, **kwargs
): 
5805         SetBestFittingSize(self, Size size=DefaultSize) 
5807         A 'Smart' SetSize that will fill in default size components with the 
5808         window's *best size* values.  Also set's the minsize for use with sizers. 
5810         return _core_
.Window_SetBestFittingSize(*args
, **kwargs
) 
5812     def Raise(*args
, **kwargs
): 
5816         Raises the window to the top of the window hierarchy if it is a 
5817         managed window (dialog or frame). 
5819         return _core_
.Window_Raise(*args
, **kwargs
) 
5821     def Lower(*args
, **kwargs
): 
5825         Lowers the window to the bottom of the window hierarchy if it is a 
5826         managed window (dialog or frame). 
5828         return _core_
.Window_Lower(*args
, **kwargs
) 
5830     def SetClientSize(*args
, **kwargs
): 
5832         SetClientSize(self, Size size) 
5834         This sets the size of the window client area in pixels. Using this 
5835         function to size a window tends to be more device-independent than 
5836         wx.Window.SetSize, since the application need not worry about what 
5837         dimensions the border or title bar have when trying to fit the window 
5838         around panel items, for example. 
5840         return _core_
.Window_SetClientSize(*args
, **kwargs
) 
5842     def SetClientSizeWH(*args
, **kwargs
): 
5844         SetClientSizeWH(self, int width, int height) 
5846         This sets the size of the window client area in pixels. Using this 
5847         function to size a window tends to be more device-independent than 
5848         wx.Window.SetSize, since the application need not worry about what 
5849         dimensions the border or title bar have when trying to fit the window 
5850         around panel items, for example. 
5852         return _core_
.Window_SetClientSizeWH(*args
, **kwargs
) 
5854     def SetClientRect(*args
, **kwargs
): 
5856         SetClientRect(self, Rect rect) 
5858         This sets the size of the window client area in pixels. Using this 
5859         function to size a window tends to be more device-independent than 
5860         wx.Window.SetSize, since the application need not worry about what 
5861         dimensions the border or title bar have when trying to fit the window 
5862         around panel items, for example. 
5864         return _core_
.Window_SetClientRect(*args
, **kwargs
) 
5866     def GetPosition(*args
, **kwargs
): 
5868         GetPosition(self) -> Point 
5870         Get the window's position. 
5872         return _core_
.Window_GetPosition(*args
, **kwargs
) 
5874     def GetPositionTuple(*args
, **kwargs
): 
5876         GetPositionTuple() -> (x,y) 
5878         Get the window's position. 
5880         return _core_
.Window_GetPositionTuple(*args
, **kwargs
) 
5882     def GetSize(*args
, **kwargs
): 
5884         GetSize(self) -> Size 
5886         Get the window size. 
5888         return _core_
.Window_GetSize(*args
, **kwargs
) 
5890     def GetSizeTuple(*args
, **kwargs
): 
5892         GetSizeTuple() -> (width, height) 
5894         Get the window size. 
5896         return _core_
.Window_GetSizeTuple(*args
, **kwargs
) 
5898     def GetRect(*args
, **kwargs
): 
5900         GetRect(self) -> Rect 
5902         Returns the size and position of the window as a wx.Rect object. 
5904         return _core_
.Window_GetRect(*args
, **kwargs
) 
5906     def GetClientSize(*args
, **kwargs
): 
5908         GetClientSize(self) -> Size 
5910         This gets the size of the window's 'client area' in pixels. The client 
5911         area is the area which may be drawn on by the programmer, excluding 
5912         title bar, border, scrollbars, etc. 
5914         return _core_
.Window_GetClientSize(*args
, **kwargs
) 
5916     def GetClientSizeTuple(*args
, **kwargs
): 
5918         GetClientSizeTuple() -> (width, height) 
5920         This gets the size of the window's 'client area' in pixels. The client 
5921         area is the area which may be drawn on by the programmer, excluding 
5922         title bar, border, scrollbars, etc. 
5924         return _core_
.Window_GetClientSizeTuple(*args
, **kwargs
) 
5926     def GetClientAreaOrigin(*args
, **kwargs
): 
5928         GetClientAreaOrigin(self) -> Point 
5930         Get the origin of the client area of the window relative to the 
5931         window's top left corner (the client area may be shifted because of 
5932         the borders, scrollbars, other decorations...) 
5934         return _core_
.Window_GetClientAreaOrigin(*args
, **kwargs
) 
5936     def GetClientRect(*args
, **kwargs
): 
5938         GetClientRect(self) -> Rect 
5940         Get the client area position and size as a `wx.Rect` object. 
5942         return _core_
.Window_GetClientRect(*args
, **kwargs
) 
5944     def GetBestSize(*args
, **kwargs
): 
5946         GetBestSize(self) -> Size 
5948         This function returns the best acceptable minimal size for the 
5949         window, if applicable. For example, for a static text control, it will 
5950         be the minimal size such that the control label is not truncated. For 
5951         windows containing subwindows (suzh aswx.Panel), the size returned by 
5952         this function will be the same as the size the window would have had 
5955         return _core_
.Window_GetBestSize(*args
, **kwargs
) 
5957     def GetBestSizeTuple(*args
, **kwargs
): 
5959         GetBestSizeTuple() -> (width, height) 
5961         This function returns the best acceptable minimal size for the 
5962         window, if applicable. For example, for a static text control, it will 
5963         be the minimal size such that the control label is not truncated. For 
5964         windows containing subwindows (suzh aswx.Panel), the size returned by 
5965         this function will be the same as the size the window would have had 
5968         return _core_
.Window_GetBestSizeTuple(*args
, **kwargs
) 
5970     def InvalidateBestSize(*args
, **kwargs
): 
5972         InvalidateBestSize(self) 
5974         Reset the cached best size value so it will be recalculated the next 
5977         return _core_
.Window_InvalidateBestSize(*args
, **kwargs
) 
5979     def GetBestFittingSize(*args
, **kwargs
): 
5981         GetBestFittingSize(self) -> Size 
5983         This function will merge the window's best size into the window's 
5984         minimum size, giving priority to the min size components, and returns 
5988         return _core_
.Window_GetBestFittingSize(*args
, **kwargs
) 
5990     def GetAdjustedBestSize(*args
, **kwargs
): 
5992         GetAdjustedBestSize(self) -> Size 
5994         This method is similar to GetBestSize, except in one 
5995         thing. GetBestSize should return the minimum untruncated size of the 
5996         window, while this method will return the largest of BestSize and any 
5997         user specified minimum size. ie. it is the minimum size the window 
5998         should currently be drawn at, not the minimal size it can possibly 
6001         return _core_
.Window_GetAdjustedBestSize(*args
, **kwargs
) 
6003     def Center(*args
, **kwargs
): 
6005         Center(self, int direction=BOTH) 
6007         Centers the window.  The parameter specifies the direction for 
6008         cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may 
6009         also include wx.CENTER_ON_SCREEN flag if you want to center the window 
6010         on the entire screen and not on its parent window.  If it is a 
6011         top-level window and has no parent then it will always be centered 
6012         relative to the screen. 
6014         return _core_
.Window_Center(*args
, **kwargs
) 
6017     def CenterOnScreen(*args
, **kwargs
): 
6019         CenterOnScreen(self, int dir=BOTH) 
6021         Center on screen (only works for top level windows) 
6023         return _core_
.Window_CenterOnScreen(*args
, **kwargs
) 
6025     CentreOnScreen 
= CenterOnScreen 
 
6026     def CenterOnParent(*args
, **kwargs
): 
6028         CenterOnParent(self, int dir=BOTH) 
6030         Center with respect to the the parent window 
6032         return _core_
.Window_CenterOnParent(*args
, **kwargs
) 
6034     CentreOnParent 
= CenterOnParent 
 
6035     def Fit(*args
, **kwargs
): 
6039         Sizes the window so that it fits around its subwindows. This function 
6040         won't do anything if there are no subwindows and will only really work 
6041         correctly if sizers are used for the subwindows layout. Also, if the 
6042         window has exactly one subwindow it is better (faster and the result 
6043         is more precise as Fit adds some margin to account for fuzziness of 
6044         its calculations) to call window.SetClientSize(child.GetSize()) 
6045         instead of calling Fit. 
6047         return _core_
.Window_Fit(*args
, **kwargs
) 
6049     def FitInside(*args
, **kwargs
): 
6053         Similar to Fit, but sizes the interior (virtual) size of a 
6054         window. Mainly useful with scrolled windows to reset scrollbars after 
6055         sizing changes that do not trigger a size event, and/or scrolled 
6056         windows without an interior sizer. This function similarly won't do 
6057         anything if there are no subwindows. 
6059         return _core_
.Window_FitInside(*args
, **kwargs
) 
6061     def SetSizeHints(*args
, **kwargs
): 
6063         SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,  
6066         Allows specification of minimum and maximum window sizes, and window 
6067         size increments. If a pair of values is not set (or set to -1), the 
6068         default values will be used.  If this function is called, the user 
6069         will not be able to size the window outside the given bounds (if it is 
6070         a top-level window.)  Sizers will also inspect the minimum window size 
6071         and will use that value if set when calculating layout. 
6073         The resizing increments are only significant under Motif or Xt. 
6075         return _core_
.Window_SetSizeHints(*args
, **kwargs
) 
6077     def SetSizeHintsSz(*args
, **kwargs
): 
6079         SetSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize) 
6081         Allows specification of minimum and maximum window sizes, and window 
6082         size increments. If a pair of values is not set (or set to -1), the 
6083         default values will be used.  If this function is called, the user 
6084         will not be able to size the window outside the given bounds (if it is 
6085         a top-level window.)  Sizers will also inspect the minimum window size 
6086         and will use that value if set when calculating layout. 
6088         The resizing increments are only significant under Motif or Xt. 
6090         return _core_
.Window_SetSizeHintsSz(*args
, **kwargs
) 
6092     def SetVirtualSizeHints(*args
, **kwargs
): 
6094         SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1) 
6096         Allows specification of minimum and maximum virtual window sizes. If a 
6097         pair of values is not set (or set to -1), the default values will be 
6098         used.  If this function is called, the user will not be able to size 
6099         the virtual area of the window outside the given bounds. 
6101         return _core_
.Window_SetVirtualSizeHints(*args
, **kwargs
) 
6103     def SetVirtualSizeHintsSz(*args
, **kwargs
): 
6105         SetVirtualSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize) 
6107         Allows specification of minimum and maximum virtual window sizes. If a 
6108         pair of values is not set (or set to -1), the default values will be 
6109         used.  If this function is called, the user will not be able to size 
6110         the virtual area of the window outside the given bounds. 
6112         return _core_
.Window_SetVirtualSizeHintsSz(*args
, **kwargs
) 
6114     def GetMaxSize(*args
, **kwargs
): 
6115         """GetMaxSize(self) -> Size""" 
6116         return _core_
.Window_GetMaxSize(*args
, **kwargs
) 
6118     def GetMinSize(*args
, **kwargs
): 
6119         """GetMinSize(self) -> Size""" 
6120         return _core_
.Window_GetMinSize(*args
, **kwargs
) 
6122     def SetMinSize(*args
, **kwargs
): 
6124         SetMinSize(self, Size minSize) 
6126         A more convenient method than `SetSizeHints` for setting just the 
6129         return _core_
.Window_SetMinSize(*args
, **kwargs
) 
6131     def SetMaxSize(*args
, **kwargs
): 
6133         SetMaxSize(self, Size maxSize) 
6135         A more convenient method than `SetSizeHints` for setting just the 
6138         return _core_
.Window_SetMaxSize(*args
, **kwargs
) 
6140     def GetMinWidth(*args
, **kwargs
): 
6141         """GetMinWidth(self) -> int""" 
6142         return _core_
.Window_GetMinWidth(*args
, **kwargs
) 
6144     def GetMinHeight(*args
, **kwargs
): 
6145         """GetMinHeight(self) -> int""" 
6146         return _core_
.Window_GetMinHeight(*args
, **kwargs
) 
6148     def GetMaxWidth(*args
, **kwargs
): 
6149         """GetMaxWidth(self) -> int""" 
6150         return _core_
.Window_GetMaxWidth(*args
, **kwargs
) 
6152     def GetMaxHeight(*args
, **kwargs
): 
6153         """GetMaxHeight(self) -> int""" 
6154         return _core_
.Window_GetMaxHeight(*args
, **kwargs
) 
6156     def SetVirtualSize(*args
, **kwargs
): 
6158         SetVirtualSize(self, Size size) 
6160         Set the the virtual size of a window in pixels.  For most windows this 
6161         is just the client area of the window, but for some like scrolled 
6162         windows it is more or less independent of the screen window size. 
6164         return _core_
.Window_SetVirtualSize(*args
, **kwargs
) 
6166     def SetVirtualSizeWH(*args
, **kwargs
): 
6168         SetVirtualSizeWH(self, int w, int h) 
6170         Set the the virtual size of a window in pixels.  For most windows this 
6171         is just the client area of the window, but for some like scrolled 
6172         windows it is more or less independent of the screen window size. 
6174         return _core_
.Window_SetVirtualSizeWH(*args
, **kwargs
) 
6176     def GetVirtualSize(*args
, **kwargs
): 
6178         GetVirtualSize(self) -> Size 
6180         Get the the virtual size of the window in pixels.  For most windows 
6181         this is just the client area of the window, but for some like scrolled 
6182         windows it is more or less independent of the screen window size. 
6184         return _core_
.Window_GetVirtualSize(*args
, **kwargs
) 
6186     def GetVirtualSizeTuple(*args
, **kwargs
): 
6188         GetVirtualSizeTuple() -> (width, height) 
6190         Get the the virtual size of the window in pixels.  For most windows 
6191         this is just the client area of the window, but for some like scrolled 
6192         windows it is more or less independent of the screen window size. 
6194         return _core_
.Window_GetVirtualSizeTuple(*args
, **kwargs
) 
6196     def GetBestVirtualSize(*args
, **kwargs
): 
6198         GetBestVirtualSize(self) -> Size 
6200         Return the largest of ClientSize and BestSize (as determined by a 
6201         sizer, interior children, or other means) 
6203         return _core_
.Window_GetBestVirtualSize(*args
, **kwargs
) 
6205     def Show(*args
, **kwargs
): 
6207         Show(self, bool show=True) -> bool 
6209         Shows or hides the window. You may need to call Raise for a top level 
6210         window if you want to bring it to top, although this is not needed if 
6211         Show is called immediately after the frame creation.  Returns True if 
6212         the window has been shown or hidden or False if nothing was done 
6213         because it already was in the requested state. 
6215         return _core_
.Window_Show(*args
, **kwargs
) 
6217     def Hide(*args
, **kwargs
): 
6221         Equivalent to calling Show(False). 
6223         return _core_
.Window_Hide(*args
, **kwargs
) 
6225     def Enable(*args
, **kwargs
): 
6227         Enable(self, bool enable=True) -> bool 
6229         Enable or disable the window for user input. Note that when a parent 
6230         window is disabled, all of its children are disabled as well and they 
6231         are reenabled again when the parent is.  Returns true if the window 
6232         has been enabled or disabled, false if nothing was done, i.e. if the 
6233         window had already been in the specified state. 
6235         return _core_
.Window_Enable(*args
, **kwargs
) 
6237     def Disable(*args
, **kwargs
): 
6239         Disable(self) -> bool 
6241         Disables the window, same as Enable(false). 
6243         return _core_
.Window_Disable(*args
, **kwargs
) 
6245     def IsShown(*args
, **kwargs
): 
6247         IsShown(self) -> bool 
6249         Returns true if the window is shown, false if it has been hidden. 
6251         return _core_
.Window_IsShown(*args
, **kwargs
) 
6253     def IsEnabled(*args
, **kwargs
): 
6255         IsEnabled(self) -> bool 
6257         Returns true if the window is enabled for input, false otherwise. 
6259         return _core_
.Window_IsEnabled(*args
, **kwargs
) 
6261     def SetWindowStyleFlag(*args
, **kwargs
): 
6263         SetWindowStyleFlag(self, long style) 
6265         Sets the style of the window. Please note that some styles cannot be 
6266         changed after the window creation and that Refresh() might need to be 
6267         called after changing the others for the change to take place 
6270         return _core_
.Window_SetWindowStyleFlag(*args
, **kwargs
) 
6272     def GetWindowStyleFlag(*args
, **kwargs
): 
6274         GetWindowStyleFlag(self) -> long 
6276         Gets the window style that was passed to the constructor or Create 
6279         return _core_
.Window_GetWindowStyleFlag(*args
, **kwargs
) 
6281     SetWindowStyle 
= SetWindowStyleFlag
; GetWindowStyle 
= GetWindowStyleFlag 
 
6282     def HasFlag(*args
, **kwargs
): 
6284         HasFlag(self, int flag) -> bool 
6286         Test if the given style is set for this window. 
6288         return _core_
.Window_HasFlag(*args
, **kwargs
) 
6290     def IsRetained(*args
, **kwargs
): 
6292         IsRetained(self) -> bool 
6294         Returns true if the window is retained, false otherwise.  Retained 
6295         windows are only available on X platforms. 
6297         return _core_
.Window_IsRetained(*args
, **kwargs
) 
6299     def SetExtraStyle(*args
, **kwargs
): 
6301         SetExtraStyle(self, long exStyle) 
6303         Sets the extra style bits for the window.  Extra styles are the less 
6304         often used style bits which can't be set with the constructor or with 
6305         SetWindowStyleFlag() 
6307         return _core_
.Window_SetExtraStyle(*args
, **kwargs
) 
6309     def GetExtraStyle(*args
, **kwargs
): 
6311         GetExtraStyle(self) -> long 
6313         Returns the extra style bits for the window. 
6315         return _core_
.Window_GetExtraStyle(*args
, **kwargs
) 
6317     def MakeModal(*args
, **kwargs
): 
6319         MakeModal(self, bool modal=True) 
6321         Disables all other windows in the application so that the user can 
6322         only interact with this window.  Passing False will reverse this 
6325         return _core_
.Window_MakeModal(*args
, **kwargs
) 
6327     def SetThemeEnabled(*args
, **kwargs
): 
6329         SetThemeEnabled(self, bool enableTheme) 
6331         This function tells a window if it should use the system's "theme" 
6332          code to draw the windows' background instead if its own background 
6333          drawing code. This will only have an effect on platforms that support 
6334          the notion of themes in user defined windows. One such platform is 
6335          GTK+ where windows can have (very colourful) backgrounds defined by a 
6336          user's selected theme. 
6338         Dialogs, notebook pages and the status bar have this flag set to true 
6339         by default so that the default look and feel is simulated best. 
6341         return _core_
.Window_SetThemeEnabled(*args
, **kwargs
) 
6343     def GetThemeEnabled(*args
, **kwargs
): 
6345         GetThemeEnabled(self) -> bool 
6347         Return the themeEnabled flag. 
6349         return _core_
.Window_GetThemeEnabled(*args
, **kwargs
) 
6351     def SetFocus(*args
, **kwargs
): 
6355         Set's the focus to this window, allowing it to receive keyboard input. 
6357         return _core_
.Window_SetFocus(*args
, **kwargs
) 
6359     def SetFocusFromKbd(*args
, **kwargs
): 
6361         SetFocusFromKbd(self) 
6363         Set focus to this window as the result of a keyboard action.  Normally 
6364         only called internally. 
6366         return _core_
.Window_SetFocusFromKbd(*args
, **kwargs
) 
6368     def FindFocus(*args
, **kwargs
): 
6370         FindFocus() -> Window 
6372         Returns the window or control that currently has the keyboard focus, 
6375         return _core_
.Window_FindFocus(*args
, **kwargs
) 
6377     FindFocus 
= staticmethod(FindFocus
) 
6378     def AcceptsFocus(*args
, **kwargs
): 
6380         AcceptsFocus(self) -> bool 
6382         Can this window have focus? 
6384         return _core_
.Window_AcceptsFocus(*args
, **kwargs
) 
6386     def AcceptsFocusFromKeyboard(*args
, **kwargs
): 
6388         AcceptsFocusFromKeyboard(self) -> bool 
6390         Can this window be given focus by keyboard navigation? if not, the 
6391         only way to give it focus (provided it accepts it at all) is to click 
6394         return _core_
.Window_AcceptsFocusFromKeyboard(*args
, **kwargs
) 
6396     def GetDefaultItem(*args
, **kwargs
): 
6398         GetDefaultItem(self) -> Window 
6400         Get the default child of this parent, i.e. the one which is activated 
6401         by pressing <Enter> such as the OK button on a wx.Dialog. 
6403         return _core_
.Window_GetDefaultItem(*args
, **kwargs
) 
6405     def SetDefaultItem(*args
, **kwargs
): 
6407         SetDefaultItem(self, Window child) -> Window 
6409         Set this child as default, return the old default. 
6411         return _core_
.Window_SetDefaultItem(*args
, **kwargs
) 
6413     def SetTmpDefaultItem(*args
, **kwargs
): 
6415         SetTmpDefaultItem(self, Window win) 
6417         Set this child as temporary default 
6419         return _core_
.Window_SetTmpDefaultItem(*args
, **kwargs
) 
6421     def Navigate(*args
, **kwargs
): 
6423         Navigate(self, int flags=NavigationKeyEvent.IsForward) -> bool 
6425         Does keyboard navigation from this window to another, by sending a 
6426         `wx.NavigationKeyEvent`. 
6428         return _core_
.Window_Navigate(*args
, **kwargs
) 
6430     def MoveAfterInTabOrder(*args
, **kwargs
): 
6432         MoveAfterInTabOrder(self, Window win) 
6434         Moves this window in the tab navigation order after the specified 
6435         sibling window.  This means that when the user presses the TAB key on 
6436         that other window, the focus switches to this window. 
6438         The default tab order is the same as creation order.  This function 
6439         and `MoveBeforeInTabOrder` allow to change it after creating all the 
6443         return _core_
.Window_MoveAfterInTabOrder(*args
, **kwargs
) 
6445     def MoveBeforeInTabOrder(*args
, **kwargs
): 
6447         MoveBeforeInTabOrder(self, Window win) 
6449         Same as `MoveAfterInTabOrder` except that it inserts this window just 
6450         before win instead of putting it right after it. 
6452         return _core_
.Window_MoveBeforeInTabOrder(*args
, **kwargs
) 
6454     def GetChildren(*args
, **kwargs
): 
6456         GetChildren(self) -> PyObject 
6458         Returns a list of the window's children.  NOTE: Currently this is a 
6459         copy of the child window list maintained by the window, so the return 
6460         value of this function is only valid as long as the window's children 
6463         return _core_
.Window_GetChildren(*args
, **kwargs
) 
6465     def GetParent(*args
, **kwargs
): 
6467         GetParent(self) -> Window 
6469         Returns the parent window of this window, or None if there isn't one. 
6471         return _core_
.Window_GetParent(*args
, **kwargs
) 
6473     def GetGrandParent(*args
, **kwargs
): 
6475         GetGrandParent(self) -> Window 
6477         Returns the parent of the parent of this window, or None if there 
6480         return _core_
.Window_GetGrandParent(*args
, **kwargs
) 
6482     def IsTopLevel(*args
, **kwargs
): 
6484         IsTopLevel(self) -> bool 
6486         Returns true if the given window is a top-level one. Currently all 
6487         frames and dialogs are always considered to be top-level windows (even 
6488         if they have a parent window). 
6490         return _core_
.Window_IsTopLevel(*args
, **kwargs
) 
6492     def Reparent(*args
, **kwargs
): 
6494         Reparent(self, Window newParent) -> bool 
6496         Reparents the window, i.e the window will be removed from its current 
6497         parent window (e.g. a non-standard toolbar in a wxFrame) and then 
6498         re-inserted into another. Available on Windows and GTK.  Returns True 
6499         if the parent was changed, False otherwise (error or newParent == 
6502         return _core_
.Window_Reparent(*args
, **kwargs
) 
6504     def AddChild(*args
, **kwargs
): 
6506         AddChild(self, Window child) 
6508         Adds a child window. This is called automatically by window creation 
6509         functions so should not be required by the application programmer. 
6511         return _core_
.Window_AddChild(*args
, **kwargs
) 
6513     def RemoveChild(*args
, **kwargs
): 
6515         RemoveChild(self, Window child) 
6517         Removes a child window. This is called automatically by window 
6518         deletion functions so should not be required by the application 
6521         return _core_
.Window_RemoveChild(*args
, **kwargs
) 
6523     def FindWindowById(*args
, **kwargs
): 
6525         FindWindowById(self, long winid) -> Window 
6527         Find a chld of this window by window ID 
6529         return _core_
.Window_FindWindowById(*args
, **kwargs
) 
6531     def FindWindowByName(*args
, **kwargs
): 
6533         FindWindowByName(self, String name) -> Window 
6535         Find a child of this window by name 
6537         return _core_
.Window_FindWindowByName(*args
, **kwargs
) 
6539     def GetEventHandler(*args
, **kwargs
): 
6541         GetEventHandler(self) -> EvtHandler 
6543         Returns the event handler for this window. By default, the window is 
6544         its own event handler. 
6546         return _core_
.Window_GetEventHandler(*args
, **kwargs
) 
6548     def SetEventHandler(*args
, **kwargs
): 
6550         SetEventHandler(self, EvtHandler handler) 
6552         Sets the event handler for this window.  An event handler is an object 
6553         that is capable of processing the events sent to a window. By default, 
6554         the window is its own event handler, but an application may wish to 
6555         substitute another, for example to allow central implementation of 
6556         event-handling for a variety of different window classes. 
6558         It is usually better to use `wx.Window.PushEventHandler` since this sets 
6559         up a chain of event handlers, where an event not handled by one event 
6560         handler is handed to the next one in the chain. 
6562         return _core_
.Window_SetEventHandler(*args
, **kwargs
) 
6564     def PushEventHandler(*args
, **kwargs
): 
6566         PushEventHandler(self, EvtHandler handler) 
6568         Pushes this event handler onto the event handler stack for the window. 
6569         An event handler is an object that is capable of processing the events 
6570         sent to a window. By default, the window is its own event handler, but 
6571         an application may wish to substitute another, for example to allow 
6572         central implementation of event-handling for a variety of different 
6575         wx.Window.PushEventHandler allows an application to set up a chain of 
6576         event handlers, where an event not handled by one event handler is 
6577         handed to the next one in the chain. Use `wx.Window.PopEventHandler` to 
6578         remove the event handler. 
6580         return _core_
.Window_PushEventHandler(*args
, **kwargs
) 
6582     def PopEventHandler(*args
, **kwargs
): 
6584         PopEventHandler(self, bool deleteHandler=False) -> EvtHandler 
6586         Removes and returns the top-most event handler on the event handler 
6587         stack.  If deleteHandler is True then the wx.EvtHandler object will be 
6588         destroyed after it is popped. 
6590         return _core_
.Window_PopEventHandler(*args
, **kwargs
) 
6592     def RemoveEventHandler(*args
, **kwargs
): 
6594         RemoveEventHandler(self, EvtHandler handler) -> bool 
6596         Find the given handler in the event handler chain and remove (but not 
6597         delete) it from the event handler chain, return True if it was found 
6598         and False otherwise (this also results in an assert failure so this 
6599         function should only be called when the handler is supposed to be 
6602         return _core_
.Window_RemoveEventHandler(*args
, **kwargs
) 
6604     def SetValidator(*args
, **kwargs
): 
6606         SetValidator(self, Validator validator) 
6608         Deletes the current validator (if any) and sets the window validator, 
6609         having called wx.Validator.Clone to create a new validator of this 
6612         return _core_
.Window_SetValidator(*args
, **kwargs
) 
6614     def GetValidator(*args
, **kwargs
): 
6616         GetValidator(self) -> Validator 
6618         Returns a pointer to the current validator for the window, or None if 
6621         return _core_
.Window_GetValidator(*args
, **kwargs
) 
6623     def Validate(*args
, **kwargs
): 
6625         Validate(self) -> bool 
6627         Validates the current values of the child controls using their 
6628         validators.  If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra 
6629         style flag set, the method will also call Validate() of all child 
6630         windows.  Returns false if any of the validations failed. 
6632         return _core_
.Window_Validate(*args
, **kwargs
) 
6634     def TransferDataToWindow(*args
, **kwargs
): 
6636         TransferDataToWindow(self) -> bool 
6638         Transfers values to child controls from data areas specified by their 
6639         validators.  If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra 
6640         style flag set, the method will also call TransferDataToWindow() of 
6643         return _core_
.Window_TransferDataToWindow(*args
, **kwargs
) 
6645     def TransferDataFromWindow(*args
, **kwargs
): 
6647         TransferDataFromWindow(self) -> bool 
6649         Transfers values from child controls to data areas specified by their 
6650         validators. Returns false if a transfer failed.  If the window has 
6651         wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will 
6652         also call TransferDataFromWindow() of all child windows. 
6654         return _core_
.Window_TransferDataFromWindow(*args
, **kwargs
) 
6656     def InitDialog(*args
, **kwargs
): 
6660         Sends an EVT_INIT_DIALOG event, whose handler usually transfers data 
6661         to the dialog via validators. 
6663         return _core_
.Window_InitDialog(*args
, **kwargs
) 
6665     def SetAcceleratorTable(*args
, **kwargs
): 
6667         SetAcceleratorTable(self, AcceleratorTable accel) 
6669         Sets the accelerator table for this window. 
6671         return _core_
.Window_SetAcceleratorTable(*args
, **kwargs
) 
6673     def GetAcceleratorTable(*args
, **kwargs
): 
6675         GetAcceleratorTable(self) -> AcceleratorTable 
6677         Gets the accelerator table for this window. 
6679         return _core_
.Window_GetAcceleratorTable(*args
, **kwargs
) 
6681     def RegisterHotKey(*args
, **kwargs
): 
6683         RegisterHotKey(self, int hotkeyId, int modifiers, int keycode) -> bool 
6685         Registers a system wide hotkey. Every time the user presses the hotkey 
6686         registered here, this window will receive a hotkey event. It will 
6687         receive the event even if the application is in the background and 
6688         does not have the input focus because the user is working with some 
6689         other application.  To bind an event handler function to this hotkey 
6690         use EVT_HOTKEY with an id equal to hotkeyId.  Returns True if the 
6691         hotkey was registered successfully. 
6693         return _core_
.Window_RegisterHotKey(*args
, **kwargs
) 
6695     def UnregisterHotKey(*args
, **kwargs
): 
6697         UnregisterHotKey(self, int hotkeyId) -> bool 
6699         Unregisters a system wide hotkey. 
6701         return _core_
.Window_UnregisterHotKey(*args
, **kwargs
) 
6703     def ConvertDialogPointToPixels(*args
, **kwargs
): 
6705         ConvertDialogPointToPixels(self, Point pt) -> Point 
6707         Converts a point or size from dialog units to pixels.  Dialog units 
6708         are used for maintaining a dialog's proportions even if the font 
6709         changes. For the x dimension, the dialog units are multiplied by the 
6710         average character width and then divided by 4. For the y dimension, 
6711         the dialog units are multiplied by the average character height and 
6714         return _core_
.Window_ConvertDialogPointToPixels(*args
, **kwargs
) 
6716     def ConvertDialogSizeToPixels(*args
, **kwargs
): 
6718         ConvertDialogSizeToPixels(self, Size sz) -> Size 
6720         Converts a point or size from dialog units to pixels.  Dialog units 
6721         are used for maintaining a dialog's proportions even if the font 
6722         changes. For the x dimension, the dialog units are multiplied by the 
6723         average character width and then divided by 4. For the y dimension, 
6724         the dialog units are multiplied by the average character height and 
6727         return _core_
.Window_ConvertDialogSizeToPixels(*args
, **kwargs
) 
6729     def DLG_PNT(*args
, **kwargs
): 
6731         DLG_PNT(self, Point pt) -> Point 
6733         Converts a point or size from dialog units to pixels.  Dialog units 
6734         are used for maintaining a dialog's proportions even if the font 
6735         changes. For the x dimension, the dialog units are multiplied by the 
6736         average character width and then divided by 4. For the y dimension, 
6737         the dialog units are multiplied by the average character height and 
6740         return _core_
.Window_DLG_PNT(*args
, **kwargs
) 
6742     def DLG_SZE(*args
, **kwargs
): 
6744         DLG_SZE(self, Size sz) -> Size 
6746         Converts a point or size from dialog units to pixels.  Dialog units 
6747         are used for maintaining a dialog's proportions even if the font 
6748         changes. For the x dimension, the dialog units are multiplied by the 
6749         average character width and then divided by 4. For the y dimension, 
6750         the dialog units are multiplied by the average character height and 
6753         return _core_
.Window_DLG_SZE(*args
, **kwargs
) 
6755     def ConvertPixelPointToDialog(*args
, **kwargs
): 
6756         """ConvertPixelPointToDialog(self, Point pt) -> Point""" 
6757         return _core_
.Window_ConvertPixelPointToDialog(*args
, **kwargs
) 
6759     def ConvertPixelSizeToDialog(*args
, **kwargs
): 
6760         """ConvertPixelSizeToDialog(self, Size sz) -> Size""" 
6761         return _core_
.Window_ConvertPixelSizeToDialog(*args
, **kwargs
) 
6763     def WarpPointer(*args
, **kwargs
): 
6765         WarpPointer(self, int x, int y) 
6767         Moves the pointer to the given position on the window. 
6769         NOTE: This function is not supported under Mac because Apple Human 
6770         Interface Guidelines forbid moving the mouse cursor programmatically. 
6772         return _core_
.Window_WarpPointer(*args
, **kwargs
) 
6774     def CaptureMouse(*args
, **kwargs
): 
6778         Directs all mouse input to this window. Call wx.Window.ReleaseMouse to 
6779         release the capture. 
6781         Note that wxWindows maintains the stack of windows having captured the 
6782         mouse and when the mouse is released the capture returns to the window 
6783         which had had captured it previously and it is only really released if 
6784         there were no previous window. In particular, this means that you must 
6785         release the mouse as many times as you capture it. 
6787         return _core_
.Window_CaptureMouse(*args
, **kwargs
) 
6789     def ReleaseMouse(*args
, **kwargs
): 
6793         Releases mouse input captured with wx.Window.CaptureMouse. 
6795         return _core_
.Window_ReleaseMouse(*args
, **kwargs
) 
6797     def GetCapture(*args
, **kwargs
): 
6799         GetCapture() -> Window 
6801         Returns the window which currently captures the mouse or None 
6803         return _core_
.Window_GetCapture(*args
, **kwargs
) 
6805     GetCapture 
= staticmethod(GetCapture
) 
6806     def HasCapture(*args
, **kwargs
): 
6808         HasCapture(self) -> bool 
6810         Returns true if this window has the current mouse capture. 
6812         return _core_
.Window_HasCapture(*args
, **kwargs
) 
6814     def Refresh(*args
, **kwargs
): 
6816         Refresh(self, bool eraseBackground=True, Rect rect=None) 
6818         Mark the specified rectangle (or the whole window) as "dirty" so it 
6819         will be repainted.  Causes an EVT_PAINT event to be generated and sent 
6822         return _core_
.Window_Refresh(*args
, **kwargs
) 
6824     def RefreshRect(*args
, **kwargs
): 
6826         RefreshRect(self, Rect rect) 
6828         Redraws the contents of the given rectangle: the area inside it will 
6829         be repainted.  This is the same as Refresh but has a nicer syntax. 
6831         return _core_
.Window_RefreshRect(*args
, **kwargs
) 
6833     def Update(*args
, **kwargs
): 
6837         Calling this method immediately repaints the invalidated area of the 
6838         window instead of waiting for the EVT_PAINT event to happen, (normally 
6839         this would usually only happen when the flow of control returns to the 
6840         event loop.)  Notice that this function doesn't refresh the window and 
6841         does nothing if the window has been already repainted.  Use Refresh 
6842         first if you want to immediately redraw the window (or some portion of 
6843         it) unconditionally. 
6845         return _core_
.Window_Update(*args
, **kwargs
) 
6847     def ClearBackground(*args
, **kwargs
): 
6849         ClearBackground(self) 
6851         Clears the window by filling it with the current background 
6852         colour. Does not cause an erase background event to be generated. 
6854         return _core_
.Window_ClearBackground(*args
, **kwargs
) 
6856     def Freeze(*args
, **kwargs
): 
6860         Freezes the window or, in other words, prevents any updates from 
6861         taking place on screen, the window is not redrawn at all. Thaw must be 
6862         called to reenable window redrawing.  Calls to Freeze/Thaw may be 
6863         nested, with the actual Thaw being delayed until all the nesting has 
6866         This method is useful for visual appearance optimization (for example, 
6867         it is a good idea to use it before inserting large amount of text into 
6868         a wxTextCtrl under wxGTK) but is not implemented on all platforms nor 
6869         for all controls so it is mostly just a hint to wxWindows and not a 
6870         mandatory directive. 
6872         return _core_
.Window_Freeze(*args
, **kwargs
) 
6874     def Thaw(*args
, **kwargs
): 
6878         Reenables window updating after a previous call to Freeze.  Calls to 
6879         Freeze/Thaw may be nested, so Thaw must be called the same number of 
6880         times that Freeze was before the window will be updated. 
6882         return _core_
.Window_Thaw(*args
, **kwargs
) 
6884     def PrepareDC(*args
, **kwargs
): 
6886         PrepareDC(self, DC dc) 
6888         Call this function to prepare the device context for drawing a 
6889         scrolled image. It sets the device origin according to the current 
6892         return _core_
.Window_PrepareDC(*args
, **kwargs
) 
6894     def GetUpdateRegion(*args
, **kwargs
): 
6896         GetUpdateRegion(self) -> Region 
6898         Returns the region specifying which parts of the window have been 
6899         damaged. Should only be called within an EVT_PAINT handler. 
6901         return _core_
.Window_GetUpdateRegion(*args
, **kwargs
) 
6903     def GetUpdateClientRect(*args
, **kwargs
): 
6905         GetUpdateClientRect(self) -> Rect 
6907         Get the update rectangle region bounding box in client coords. 
6909         return _core_
.Window_GetUpdateClientRect(*args
, **kwargs
) 
6911     def IsExposed(*args
, **kwargs
): 
6913         IsExposed(self, int x, int y, int w=1, int h=1) -> bool 
6915         Returns true if the given point or rectangle area has been exposed 
6916         since the last repaint. Call this in an paint event handler to 
6917         optimize redrawing by only redrawing those areas, which have been 
6920         return _core_
.Window_IsExposed(*args
, **kwargs
) 
6922     def IsExposedPoint(*args
, **kwargs
): 
6924         IsExposedPoint(self, Point pt) -> bool 
6926         Returns true if the given point or rectangle area has been exposed 
6927         since the last repaint. Call this in an paint event handler to 
6928         optimize redrawing by only redrawing those areas, which have been 
6931         return _core_
.Window_IsExposedPoint(*args
, **kwargs
) 
6933     def IsExposedRect(*args
, **kwargs
): 
6935         IsExposedRect(self, Rect rect) -> bool 
6937         Returns true if the given point or rectangle area has been exposed 
6938         since the last repaint. Call this in an paint event handler to 
6939         optimize redrawing by only redrawing those areas, which have been 
6942         return _core_
.Window_IsExposedRect(*args
, **kwargs
) 
6944     def GetDefaultAttributes(*args
, **kwargs
): 
6946         GetDefaultAttributes(self) -> VisualAttributes 
6948         Get the default attributes for an instance of this class.  This is 
6949         useful if you want to use the same font or colour in your own control 
6950         as in a standard control -- which is a much better idea than hard 
6951         coding specific colours or fonts which might look completely out of 
6952         place on the user's system, especially if it uses themes. 
6954         return _core_
.Window_GetDefaultAttributes(*args
, **kwargs
) 
6956     def GetClassDefaultAttributes(*args
, **kwargs
): 
6958         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 
6960         Get the default attributes for this class.  This is useful if you want 
6961         to use the same font or colour in your own control as in a standard 
6962         control -- which is a much better idea than hard coding specific 
6963         colours or fonts which might look completely out of place on the 
6964         user's system, especially if it uses themes. 
6966         The variant parameter is only relevant under Mac currently and is 
6967         ignore under other platforms. Under Mac, it will change the size of 
6968         the returned font. See `wx.Window.SetWindowVariant` for more about 
6971         return _core_
.Window_GetClassDefaultAttributes(*args
, **kwargs
) 
6973     GetClassDefaultAttributes 
= staticmethod(GetClassDefaultAttributes
) 
6974     def SetBackgroundColour(*args
, **kwargs
): 
6976         SetBackgroundColour(self, Colour colour) -> bool 
6978         Sets the background colour of the window.  Returns True if the colour 
6979         was changed.  The background colour is usually painted by the default 
6980         EVT_ERASE_BACKGROUND event handler function under Windows and 
6981         automatically under GTK.  Using `wx.NullColour` will reset the window 
6982         to the default background colour. 
6984         Note that setting the background colour may not cause an immediate 
6985         refresh, so you may wish to call `ClearBackground` or `Refresh` after 
6986         calling this function. 
6988         Using this function will disable attempts to use themes for this 
6989         window, if the system supports them.  Use with care since usually the 
6990         themes represent the appearance chosen by the user to be used for all 
6991         applications on the system. 
6993         return _core_
.Window_SetBackgroundColour(*args
, **kwargs
) 
6995     def SetOwnBackgroundColour(*args
, **kwargs
): 
6996         """SetOwnBackgroundColour(self, Colour colour)""" 
6997         return _core_
.Window_SetOwnBackgroundColour(*args
, **kwargs
) 
6999     def SetForegroundColour(*args
, **kwargs
): 
7001         SetForegroundColour(self, Colour colour) -> bool 
7003         Sets the foreground colour of the window.  Returns True is the colour 
7004         was changed.  The interpretation of foreground colour is dependent on 
7005         the window class; it may be the text colour or other colour, or it may 
7008         return _core_
.Window_SetForegroundColour(*args
, **kwargs
) 
7010     def SetOwnForegroundColour(*args
, **kwargs
): 
7011         """SetOwnForegroundColour(self, Colour colour)""" 
7012         return _core_
.Window_SetOwnForegroundColour(*args
, **kwargs
) 
7014     def GetBackgroundColour(*args
, **kwargs
): 
7016         GetBackgroundColour(self) -> Colour 
7018         Returns the background colour of the window. 
7020         return _core_
.Window_GetBackgroundColour(*args
, **kwargs
) 
7022     def GetForegroundColour(*args
, **kwargs
): 
7024         GetForegroundColour(self) -> Colour 
7026         Returns the foreground colour of the window.  The interpretation of 
7027         foreground colour is dependent on the window class; it may be the text 
7028         colour or other colour, or it may not be used at all. 
7030         return _core_
.Window_GetForegroundColour(*args
, **kwargs
) 
7032     def SetBackgroundStyle(*args
, **kwargs
): 
7034         SetBackgroundStyle(self, int style) -> bool 
7036         Returns the background style of the window. The background style 
7037         indicates how the background of the window is drawn. 
7039             ======================  ======================================== 
7040             wx.BG_STYLE_SYSTEM      The background colour or pattern should 
7041                                     be determined by the system 
7042             wx.BG_STYLE_COLOUR      The background should be a solid colour 
7043             wx.BG_STYLE_CUSTOM      The background will be implemented by the 
7045             ======================  ======================================== 
7047         On GTK+, use of wx.BG_STYLE_CUSTOM allows the flicker-free drawing of 
7048         a custom background, such as a tiled bitmap. Currently the style has 
7049         no effect on other platforms. 
7051         :see: `GetBackgroundStyle`, `SetBackgroundColour` 
7053         return _core_
.Window_SetBackgroundStyle(*args
, **kwargs
) 
7055     def GetBackgroundStyle(*args
, **kwargs
): 
7057         GetBackgroundStyle(self) -> int 
7059         Returns the background style of the window. 
7061         :see: `SetBackgroundStyle` 
7063         return _core_
.Window_GetBackgroundStyle(*args
, **kwargs
) 
7065     def SetCursor(*args
, **kwargs
): 
7067         SetCursor(self, Cursor cursor) -> bool 
7069         Sets the window's cursor. Notice that the window cursor also sets it 
7070         for the children of the window implicitly. 
7072         The cursor may be wx.NullCursor in which case the window cursor will 
7073         be reset back to default. 
7075         return _core_
.Window_SetCursor(*args
, **kwargs
) 
7077     def GetCursor(*args
, **kwargs
): 
7079         GetCursor(self) -> Cursor 
7081         Return the cursor associated with this window. 
7083         return _core_
.Window_GetCursor(*args
, **kwargs
) 
7085     def SetFont(*args
, **kwargs
): 
7087         SetFont(self, Font font) -> bool 
7089         Sets the font for this window. 
7091         return _core_
.Window_SetFont(*args
, **kwargs
) 
7093     def SetOwnFont(*args
, **kwargs
): 
7094         """SetOwnFont(self, Font font)""" 
7095         return _core_
.Window_SetOwnFont(*args
, **kwargs
) 
7097     def GetFont(*args
, **kwargs
): 
7099         GetFont(self) -> Font 
7101         Returns the default font used for this window. 
7103         return _core_
.Window_GetFont(*args
, **kwargs
) 
7105     def SetCaret(*args
, **kwargs
): 
7107         SetCaret(self, Caret caret) 
7109         Sets the caret associated with the window. 
7111         return _core_
.Window_SetCaret(*args
, **kwargs
) 
7113     def GetCaret(*args
, **kwargs
): 
7115         GetCaret(self) -> Caret 
7117         Returns the caret associated with the window. 
7119         return _core_
.Window_GetCaret(*args
, **kwargs
) 
7121     def GetCharHeight(*args
, **kwargs
): 
7123         GetCharHeight(self) -> int 
7125         Get the (average) character size for the current font. 
7127         return _core_
.Window_GetCharHeight(*args
, **kwargs
) 
7129     def GetCharWidth(*args
, **kwargs
): 
7131         GetCharWidth(self) -> int 
7133         Get the (average) character size for the current font. 
7135         return _core_
.Window_GetCharWidth(*args
, **kwargs
) 
7137     def GetTextExtent(*args
, **kwargs
): 
7139         GetTextExtent(String string) -> (width, height) 
7141         Get the width and height of the text using the current font. 
7143         return _core_
.Window_GetTextExtent(*args
, **kwargs
) 
7145     def GetFullTextExtent(*args
, **kwargs
): 
7147         GetFullTextExtent(String string, Font font=None) -> 
7148            (width, height, descent, externalLeading) 
7150         Get the width, height, decent and leading of the text using the 
7151         current or specified font. 
7153         return _core_
.Window_GetFullTextExtent(*args
, **kwargs
) 
7155     def ClientToScreenXY(*args
, **kwargs
): 
7157         ClientToScreenXY(int x, int y) -> (x,y) 
7159         Converts to screen coordinates from coordinates relative to this window. 
7161         return _core_
.Window_ClientToScreenXY(*args
, **kwargs
) 
7163     def ScreenToClientXY(*args
, **kwargs
): 
7165         ScreenToClientXY(int x, int y) -> (x,y) 
7167         Converts from screen to client window coordinates. 
7169         return _core_
.Window_ScreenToClientXY(*args
, **kwargs
) 
7171     def ClientToScreen(*args
, **kwargs
): 
7173         ClientToScreen(self, Point pt) -> Point 
7175         Converts to screen coordinates from coordinates relative to this window. 
7177         return _core_
.Window_ClientToScreen(*args
, **kwargs
) 
7179     def ScreenToClient(*args
, **kwargs
): 
7181         ScreenToClient(self, Point pt) -> Point 
7183         Converts from screen to client window coordinates. 
7185         return _core_
.Window_ScreenToClient(*args
, **kwargs
) 
7187     def HitTestXY(*args
, **kwargs
): 
7189         HitTestXY(self, int x, int y) -> int 
7191         Test where the given (in client coords) point lies 
7193         return _core_
.Window_HitTestXY(*args
, **kwargs
) 
7195     def HitTest(*args
, **kwargs
): 
7197         HitTest(self, Point pt) -> int 
7199         Test where the given (in client coords) point lies 
7201         return _core_
.Window_HitTest(*args
, **kwargs
) 
7203     def GetBorder(*args
): 
7205         GetBorder(self, long flags) -> int 
7206         GetBorder(self) -> int 
7208         Get border for the flags of this window 
7210         return _core_
.Window_GetBorder(*args
) 
7212     def UpdateWindowUI(*args
, **kwargs
): 
7214         UpdateWindowUI(self, long flags=UPDATE_UI_NONE) 
7216         This function sends EVT_UPDATE_UI events to the window. The particular 
7217         implementation depends on the window; for example a wx.ToolBar will 
7218         send an update UI event for each toolbar button, and a wx.Frame will 
7219         send an update UI event for each menubar menu item. You can call this 
7220         function from your application to ensure that your UI is up-to-date at 
7221         a particular point in time (as far as your EVT_UPDATE_UI handlers are 
7222         concerned). This may be necessary if you have called 
7223         wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to 
7224         limit the overhead that wxWindows incurs by sending update UI events 
7227         return _core_
.Window_UpdateWindowUI(*args
, **kwargs
) 
7229     def PopupMenuXY(*args
, **kwargs
): 
7231         PopupMenuXY(self, Menu menu, int x=-1, int y=-1) -> bool 
7233         Pops up the given menu at the specified coordinates, relative to this window, 
7234         and returns control when the user has dismissed the menu. If a menu item is 
7235         selected, the corresponding menu event is generated and will be processed as 
7236         usual.  If the default position is given then the current position of the 
7237         mouse cursor will be used. 
7239         return _core_
.Window_PopupMenuXY(*args
, **kwargs
) 
7241     def PopupMenu(*args
, **kwargs
): 
7243         PopupMenu(self, Menu menu, Point pos=DefaultPosition) -> bool 
7245         Pops up the given menu at the specified coordinates, relative to this window, 
7246         and returns control when the user has dismissed the menu. If a menu item is 
7247         selected, the corresponding menu event is generated and will be processed as 
7248         usual.  If the default position is given then the current position of the 
7249         mouse cursor will be used. 
7251         return _core_
.Window_PopupMenu(*args
, **kwargs
) 
7253     def GetHandle(*args
, **kwargs
): 
7255         GetHandle(self) -> long 
7257         Returns the platform-specific handle (as a long integer) of the 
7258         physical window.  Currently on wxMac it returns the handle of the 
7259         toplevel parent of the window. 
7261         return _core_
.Window_GetHandle(*args
, **kwargs
) 
7263     def AssociateHandle(*args
, **kwargs
): 
7265         AssociateHandle(self, long handle) 
7267         Associate the window with a new native handle 
7269         return _core_
.Window_AssociateHandle(*args
, **kwargs
) 
7271     def DissociateHandle(*args
, **kwargs
): 
7273         DissociateHandle(self) 
7275         Dissociate the current native handle from the window 
7277         return _core_
.Window_DissociateHandle(*args
, **kwargs
) 
7279     def HasScrollbar(*args
, **kwargs
): 
7281         HasScrollbar(self, int orient) -> bool 
7283         Does the window have the scrollbar for this orientation? 
7285         return _core_
.Window_HasScrollbar(*args
, **kwargs
) 
7287     def SetScrollbar(*args
, **kwargs
): 
7289         SetScrollbar(self, int orientation, int position, int thumbSize, int range,  
7292         Sets the scrollbar properties of a built-in scrollbar. 
7294         return _core_
.Window_SetScrollbar(*args
, **kwargs
) 
7296     def SetScrollPos(*args
, **kwargs
): 
7298         SetScrollPos(self, int orientation, int pos, bool refresh=True) 
7300         Sets the position of one of the built-in scrollbars. 
7302         return _core_
.Window_SetScrollPos(*args
, **kwargs
) 
7304     def GetScrollPos(*args
, **kwargs
): 
7306         GetScrollPos(self, int orientation) -> int 
7308         Returns the built-in scrollbar position. 
7310         return _core_
.Window_GetScrollPos(*args
, **kwargs
) 
7312     def GetScrollThumb(*args
, **kwargs
): 
7314         GetScrollThumb(self, int orientation) -> int 
7316         Returns the built-in scrollbar thumb size. 
7318         return _core_
.Window_GetScrollThumb(*args
, **kwargs
) 
7320     def GetScrollRange(*args
, **kwargs
): 
7322         GetScrollRange(self, int orientation) -> int 
7324         Returns the built-in scrollbar range. 
7326         return _core_
.Window_GetScrollRange(*args
, **kwargs
) 
7328     def ScrollWindow(*args
, **kwargs
): 
7330         ScrollWindow(self, int dx, int dy, Rect rect=None) 
7332         Physically scrolls the pixels in the window and move child windows 
7333         accordingly.  Use this function to optimise your scrolling 
7334         implementations, to minimise the area that must be redrawn. Note that 
7335         it is rarely required to call this function from a user program. 
7337         return _core_
.Window_ScrollWindow(*args
, **kwargs
) 
7339     def ScrollLines(*args
, **kwargs
): 
7341         ScrollLines(self, int lines) -> bool 
7343         If the platform and window class supports it, scrolls the window by 
7344         the given number of lines down, if lines is positive, or up if lines 
7345         is negative.  Returns True if the window was scrolled, False if it was 
7346         already on top/bottom and nothing was done. 
7348         return _core_
.Window_ScrollLines(*args
, **kwargs
) 
7350     def ScrollPages(*args
, **kwargs
): 
7352         ScrollPages(self, int pages) -> bool 
7354         If the platform and window class supports it, scrolls the window by 
7355         the given number of pages down, if pages is positive, or up if pages 
7356         is negative.  Returns True if the window was scrolled, False if it was 
7357         already on top/bottom and nothing was done. 
7359         return _core_
.Window_ScrollPages(*args
, **kwargs
) 
7361     def LineUp(*args
, **kwargs
): 
7363         LineUp(self) -> bool 
7365         This is just a wrapper for ScrollLines(-1). 
7367         return _core_
.Window_LineUp(*args
, **kwargs
) 
7369     def LineDown(*args
, **kwargs
): 
7371         LineDown(self) -> bool 
7373         This is just a wrapper for ScrollLines(1). 
7375         return _core_
.Window_LineDown(*args
, **kwargs
) 
7377     def PageUp(*args
, **kwargs
): 
7379         PageUp(self) -> bool 
7381         This is just a wrapper for ScrollPages(-1). 
7383         return _core_
.Window_PageUp(*args
, **kwargs
) 
7385     def PageDown(*args
, **kwargs
): 
7387         PageDown(self) -> bool 
7389         This is just a wrapper for ScrollPages(1). 
7391         return _core_
.Window_PageDown(*args
, **kwargs
) 
7393     def SetHelpText(*args
, **kwargs
): 
7395         SetHelpText(self, String text) 
7397         Sets the help text to be used as context-sensitive help for this 
7398         window.  Note that the text is actually stored by the current 
7399         wxHelpProvider implementation, and not in the window object itself. 
7401         return _core_
.Window_SetHelpText(*args
, **kwargs
) 
7403     def SetHelpTextForId(*args
, **kwargs
): 
7405         SetHelpTextForId(self, String text) 
7407         Associate this help text with all windows with the same id as this 
7410         return _core_
.Window_SetHelpTextForId(*args
, **kwargs
) 
7412     def GetHelpText(*args
, **kwargs
): 
7414         GetHelpText(self) -> String 
7416         Gets the help text to be used as context-sensitive help for this 
7417         window.  Note that the text is actually stored by the current 
7418         wxHelpProvider implementation, and not in the window object itself. 
7420         return _core_
.Window_GetHelpText(*args
, **kwargs
) 
7422     def SetToolTipString(*args
, **kwargs
): 
7424         SetToolTipString(self, String tip) 
7426         Attach a tooltip to the window. 
7428         return _core_
.Window_SetToolTipString(*args
, **kwargs
) 
7430     def SetToolTip(*args
, **kwargs
): 
7432         SetToolTip(self, ToolTip tip) 
7434         Attach a tooltip to the window. 
7436         return _core_
.Window_SetToolTip(*args
, **kwargs
) 
7438     def GetToolTip(*args
, **kwargs
): 
7440         GetToolTip(self) -> ToolTip 
7442         get the associated tooltip or None if none 
7444         return _core_
.Window_GetToolTip(*args
, **kwargs
) 
7446     def SetDropTarget(*args
, **kwargs
): 
7448         SetDropTarget(self, DropTarget dropTarget) 
7450         Associates a drop target with this window.  If the window already has 
7451         a drop target, it is deleted. 
7453         return _core_
.Window_SetDropTarget(*args
, **kwargs
) 
7455     def GetDropTarget(*args
, **kwargs
): 
7457         GetDropTarget(self) -> DropTarget 
7459         Returns the associated drop target, which may be None. 
7461         return _core_
.Window_GetDropTarget(*args
, **kwargs
) 
7463     def SetConstraints(*args
, **kwargs
): 
7465         SetConstraints(self, LayoutConstraints constraints) 
7467         Sets the window to have the given layout constraints. If an existing 
7468         layout constraints object is already owned by the window, it will be 
7469         deleted.  Pass None to disassociate and delete the window's current 
7472         You must call SetAutoLayout to tell a window to use the constraints 
7473         automatically in its default EVT_SIZE handler; otherwise, you must 
7474         handle EVT_SIZE yourself and call Layout() explicitly. When setting 
7475         both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have 
7478         return _core_
.Window_SetConstraints(*args
, **kwargs
) 
7480     def GetConstraints(*args
, **kwargs
): 
7482         GetConstraints(self) -> LayoutConstraints 
7484         Returns a pointer to the window's layout constraints, or None if there 
7487         return _core_
.Window_GetConstraints(*args
, **kwargs
) 
7489     def SetAutoLayout(*args
, **kwargs
): 
7491         SetAutoLayout(self, bool autoLayout) 
7493         Determines whether the Layout function will be called automatically 
7494         when the window is resized.  It is called implicitly by SetSizer but 
7495         if you use SetConstraints you should call it manually or otherwise the 
7496         window layout won't be correctly updated when its size changes. 
7498         return _core_
.Window_SetAutoLayout(*args
, **kwargs
) 
7500     def GetAutoLayout(*args
, **kwargs
): 
7502         GetAutoLayout(self) -> bool 
7504         Returns the current autoLayout setting 
7506         return _core_
.Window_GetAutoLayout(*args
, **kwargs
) 
7508     def Layout(*args
, **kwargs
): 
7510         Layout(self) -> bool 
7512         Invokes the constraint-based layout algorithm or the sizer-based 
7513         algorithm for this window.  See SetAutoLayout: when auto layout is on, 
7514         this function gets called automatically by the default EVT_SIZE 
7515         handler when the window is resized. 
7517         return _core_
.Window_Layout(*args
, **kwargs
) 
7519     def SetSizer(*args
, **kwargs
): 
7521         SetSizer(self, Sizer sizer, bool deleteOld=True) 
7523         Sets the window to have the given layout sizer. The window will then 
7524         own the object, and will take care of its deletion. If an existing 
7525         layout sizer object is already owned by the window, it will be deleted 
7526         if the deleteOld parameter is true. Note that this function will also 
7527         call SetAutoLayout implicitly with a True parameter if the sizer is 
7528         non-NoneL and False otherwise. 
7530         return _core_
.Window_SetSizer(*args
, **kwargs
) 
7532     def SetSizerAndFit(*args
, **kwargs
): 
7534         SetSizerAndFit(self, Sizer sizer, bool deleteOld=True) 
7536         The same as SetSizer, except it also sets the size hints for the 
7537         window based on the sizer's minimum size. 
7539         return _core_
.Window_SetSizerAndFit(*args
, **kwargs
) 
7541     def GetSizer(*args
, **kwargs
): 
7543         GetSizer(self) -> Sizer 
7545         Return the sizer associated with the window by a previous call to 
7546         SetSizer or None if there isn't one. 
7548         return _core_
.Window_GetSizer(*args
, **kwargs
) 
7550     def SetContainingSizer(*args
, **kwargs
): 
7552         SetContainingSizer(self, Sizer sizer) 
7554         This normally does not need to be called by application code. It is 
7555         called internally when a window is added to a sizer, and is used so 
7556         the window can remove itself from the sizer when it is destroyed. 
7558         return _core_
.Window_SetContainingSizer(*args
, **kwargs
) 
7560     def GetContainingSizer(*args
, **kwargs
): 
7562         GetContainingSizer(self) -> Sizer 
7564         Return the sizer that this window is a member of, if any, otherwise None. 
7566         return _core_
.Window_GetContainingSizer(*args
, **kwargs
) 
7568     def InheritAttributes(*args
, **kwargs
): 
7570         InheritAttributes(self) 
7572         This function is (or should be, in case of custom controls) called 
7573         during window creation to intelligently set up the window visual 
7574         attributes, that is the font and the foreground and background 
7577         By 'intelligently' the following is meant: by default, all windows use 
7578         their own default attributes. However if some of the parent's 
7579         attributes are explicitly changed (that is, using SetFont and not 
7580         SetOwnFont) and if the corresponding attribute hadn't been 
7581         explicitly set for this window itself, then this window takes the same 
7582         value as used by the parent. In addition, if the window overrides 
7583         ShouldInheritColours to return false, the colours will not be changed 
7584         no matter what and only the font might. 
7586         This rather complicated logic is necessary in order to accomodate the 
7587         different usage scenarius. The most common one is when all default 
7588         attributes are used and in this case, nothing should be inherited as 
7589         in modern GUIs different controls use different fonts (and colours) 
7590         than their siblings so they can't inherit the same value from the 
7591         parent. However it was also deemed desirable to allow to simply change 
7592         the attributes of all children at once by just changing the font or 
7593         colour of their common parent, hence in this case we do inherit the 
7597         return _core_
.Window_InheritAttributes(*args
, **kwargs
) 
7599     def ShouldInheritColours(*args
, **kwargs
): 
7601         ShouldInheritColours(self) -> bool 
7603         Return true from here to allow the colours of this window to be 
7604         changed by InheritAttributes, returning false forbids inheriting them 
7605         from the parent window. 
7607         The base class version returns false, but this method is overridden in 
7608         wxControl where it returns true. 
7610         return _core_
.Window_ShouldInheritColours(*args
, **kwargs
) 
7612     def PostCreate(self
, pre
): 
7614         Phase 3 of the 2-phase create <wink!> 
7615         Call this method after precreating the window with the 2-phase create method. 
7617         self
.this 
= pre
.this
 
7618         self
.thisown 
= pre
.thisown
 
7620         if hasattr(self
, '_setOORInfo'): 
7621             self
._setOORInfo
(self
) 
7622         if hasattr(self
, '_setCallbackInfo'): 
7623             self
._setCallbackInfo
(self
, self
.__class
__) 
7626 class WindowPtr(Window
): 
7627     def __init__(self
, this
): 
7629         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
7630         self
.__class
__ = Window
 
7631 _core_
.Window_swigregister(WindowPtr
) 
7633 def PreWindow(*args
, **kwargs
): 
7635     PreWindow() -> Window 
7637     Precreate a Window for 2-phase creation. 
7639     val 
= _core_
.new_PreWindow(*args
, **kwargs
) 
7643 def Window_NewControlId(*args
, **kwargs
): 
7645     Window_NewControlId() -> int 
7647     Generate a control id for the controls which were not given one. 
7649     return _core_
.Window_NewControlId(*args
, **kwargs
) 
7651 def Window_NextControlId(*args
, **kwargs
): 
7653     Window_NextControlId(int winid) -> int 
7655     Get the id of the control following the one with the given 
7658     return _core_
.Window_NextControlId(*args
, **kwargs
) 
7660 def Window_PrevControlId(*args
, **kwargs
): 
7662     Window_PrevControlId(int winid) -> int 
7664     Get the id of the control preceding the one with the given 
7667     return _core_
.Window_PrevControlId(*args
, **kwargs
) 
7669 def Window_FindFocus(*args
, **kwargs
): 
7671     Window_FindFocus() -> Window 
7673     Returns the window or control that currently has the keyboard focus, 
7676     return _core_
.Window_FindFocus(*args
, **kwargs
) 
7678 def Window_GetCapture(*args
, **kwargs
): 
7680     Window_GetCapture() -> Window 
7682     Returns the window which currently captures the mouse or None 
7684     return _core_
.Window_GetCapture(*args
, **kwargs
) 
7686 def Window_GetClassDefaultAttributes(*args
, **kwargs
): 
7688     Window_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 
7690     Get the default attributes for this class.  This is useful if you want 
7691     to use the same font or colour in your own control as in a standard 
7692     control -- which is a much better idea than hard coding specific 
7693     colours or fonts which might look completely out of place on the 
7694     user's system, especially if it uses themes. 
7696     The variant parameter is only relevant under Mac currently and is 
7697     ignore under other platforms. Under Mac, it will change the size of 
7698     the returned font. See `wx.Window.SetWindowVariant` for more about 
7701     return _core_
.Window_GetClassDefaultAttributes(*args
, **kwargs
) 
7703 def DLG_PNT(win
, point_or_x
, y
=None): 
7705     Convenience function for converting a Point or (x,y) in 
7706     dialog units to pixel units. 
7709         return win
.ConvertDialogPointToPixels(point_or_x
) 
7711         return win
.ConvertDialogPointToPixels(wx
.Point(point_or_x
, y
)) 
7713 def DLG_SZE(win
, size_width
, height
=None): 
7715     Convenience function for converting a Size or (w,h) in 
7716     dialog units to pixel units. 
7719         return win
.ConvertDialogSizeToPixels(size_width
) 
7721         return win
.ConvertDialogSizeToPixels(wx
.Size(size_width
, height
)) 
7724 def FindWindowById(*args
, **kwargs
): 
7726     FindWindowById(long id, Window parent=None) -> Window 
7728     Find the first window in the application with the given id. If parent 
7729     is None, the search will start from all top-level frames and dialog 
7730     boxes; if non-None, the search will be limited to the given window 
7731     hierarchy. The search is recursive in both cases. 
7733     return _core_
.FindWindowById(*args
, **kwargs
) 
7735 def FindWindowByName(*args
, **kwargs
): 
7737     FindWindowByName(String name, Window parent=None) -> Window 
7739     Find a window by its name (as given in a window constructor or Create 
7740     function call). If parent is None, the search will start from all 
7741     top-level frames and dialog boxes; if non-None, the search will be 
7742     limited to the given window hierarchy. The search is recursive in both 
7745     If no window with such name is found, wx.FindWindowByLabel is called. 
7747     return _core_
.FindWindowByName(*args
, **kwargs
) 
7749 def FindWindowByLabel(*args
, **kwargs
): 
7751     FindWindowByLabel(String label, Window parent=None) -> Window 
7753     Find a window by its label. Depending on the type of window, the label 
7754     may be a window title or panel item label. If parent is None, the 
7755     search will start from all top-level frames and dialog boxes; if 
7756     non-None, the search will be limited to the given window 
7757     hierarchy. The search is recursive in both cases. 
7759     return _core_
.FindWindowByLabel(*args
, **kwargs
) 
7761 def Window_FromHWND(*args
, **kwargs
): 
7762     """Window_FromHWND(Window parent, unsigned long _hWnd) -> Window""" 
7763     return _core_
.Window_FromHWND(*args
, **kwargs
) 
7764 #--------------------------------------------------------------------------- 
7766 class Validator(EvtHandler
): 
7768         return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
7769     def __init__(self
, *args
, **kwargs
): 
7770         """__init__(self) -> Validator""" 
7771         newobj 
= _core_
.new_Validator(*args
, **kwargs
) 
7772         self
.this 
= newobj
.this
 
7775         self
._setOORInfo
(self
) 
7777     def Clone(*args
, **kwargs
): 
7778         """Clone(self) -> Validator""" 
7779         return _core_
.Validator_Clone(*args
, **kwargs
) 
7781     def Validate(*args
, **kwargs
): 
7782         """Validate(self, Window parent) -> bool""" 
7783         return _core_
.Validator_Validate(*args
, **kwargs
) 
7785     def TransferToWindow(*args
, **kwargs
): 
7786         """TransferToWindow(self) -> bool""" 
7787         return _core_
.Validator_TransferToWindow(*args
, **kwargs
) 
7789     def TransferFromWindow(*args
, **kwargs
): 
7790         """TransferFromWindow(self) -> bool""" 
7791         return _core_
.Validator_TransferFromWindow(*args
, **kwargs
) 
7793     def GetWindow(*args
, **kwargs
): 
7794         """GetWindow(self) -> Window""" 
7795         return _core_
.Validator_GetWindow(*args
, **kwargs
) 
7797     def SetWindow(*args
, **kwargs
): 
7798         """SetWindow(self, Window window)""" 
7799         return _core_
.Validator_SetWindow(*args
, **kwargs
) 
7801     def IsSilent(*args
, **kwargs
): 
7802         """IsSilent() -> bool""" 
7803         return _core_
.Validator_IsSilent(*args
, **kwargs
) 
7805     IsSilent 
= staticmethod(IsSilent
) 
7806     def SetBellOnError(*args
, **kwargs
): 
7807         """SetBellOnError(int doIt=True)""" 
7808         return _core_
.Validator_SetBellOnError(*args
, **kwargs
) 
7810     SetBellOnError 
= staticmethod(SetBellOnError
) 
7812 class ValidatorPtr(Validator
): 
7813     def __init__(self
, this
): 
7815         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
7816         self
.__class
__ = Validator
 
7817 _core_
.Validator_swigregister(ValidatorPtr
) 
7819 def Validator_IsSilent(*args
, **kwargs
): 
7820     """Validator_IsSilent() -> bool""" 
7821     return _core_
.Validator_IsSilent(*args
, **kwargs
) 
7823 def Validator_SetBellOnError(*args
, **kwargs
): 
7824     """Validator_SetBellOnError(int doIt=True)""" 
7825     return _core_
.Validator_SetBellOnError(*args
, **kwargs
) 
7827 class PyValidator(Validator
): 
7829         return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
7830     def __init__(self
, *args
, **kwargs
): 
7831         """__init__(self) -> PyValidator""" 
7832         newobj 
= _core_
.new_PyValidator(*args
, **kwargs
) 
7833         self
.this 
= newobj
.this
 
7837         self
._setCallbackInfo
(self
, PyValidator
, 1) 
7838         self
._setOORInfo
(self
) 
7840     def _setCallbackInfo(*args
, **kwargs
): 
7841         """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=True)""" 
7842         return _core_
.PyValidator__setCallbackInfo(*args
, **kwargs
) 
7845 class PyValidatorPtr(PyValidator
): 
7846     def __init__(self
, this
): 
7848         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
7849         self
.__class
__ = PyValidator
 
7850 _core_
.PyValidator_swigregister(PyValidatorPtr
) 
7852 #--------------------------------------------------------------------------- 
7854 class Menu(EvtHandler
): 
7856         return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
7857     def __init__(self
, *args
, **kwargs
): 
7858         """__init__(self, String title=EmptyString, long style=0) -> Menu""" 
7859         newobj 
= _core_
.new_Menu(*args
, **kwargs
) 
7860         self
.this 
= newobj
.this
 
7863         self
._setOORInfo
(self
) 
7865     def Append(*args
, **kwargs
): 
7866         """Append(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" 
7867         return _core_
.Menu_Append(*args
, **kwargs
) 
7869     def AppendSeparator(*args
, **kwargs
): 
7870         """AppendSeparator(self) -> MenuItem""" 
7871         return _core_
.Menu_AppendSeparator(*args
, **kwargs
) 
7873     def AppendCheckItem(*args
, **kwargs
): 
7874         """AppendCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" 
7875         return _core_
.Menu_AppendCheckItem(*args
, **kwargs
) 
7877     def AppendRadioItem(*args
, **kwargs
): 
7878         """AppendRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" 
7879         return _core_
.Menu_AppendRadioItem(*args
, **kwargs
) 
7881     def AppendMenu(*args
, **kwargs
): 
7882         """AppendMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" 
7883         return _core_
.Menu_AppendMenu(*args
, **kwargs
) 
7885     def AppendItem(*args
, **kwargs
): 
7886         """AppendItem(self, MenuItem item) -> MenuItem""" 
7887         return _core_
.Menu_AppendItem(*args
, **kwargs
) 
7889     def Break(*args
, **kwargs
): 
7891         return _core_
.Menu_Break(*args
, **kwargs
) 
7893     def InsertItem(*args
, **kwargs
): 
7894         """InsertItem(self, size_t pos, MenuItem item) -> MenuItem""" 
7895         return _core_
.Menu_InsertItem(*args
, **kwargs
) 
7897     def Insert(*args
, **kwargs
): 
7899         Insert(self, size_t pos, int id, String text, String help=EmptyString,  
7900             int kind=ITEM_NORMAL) -> MenuItem 
7902         return _core_
.Menu_Insert(*args
, **kwargs
) 
7904     def InsertSeparator(*args
, **kwargs
): 
7905         """InsertSeparator(self, size_t pos) -> MenuItem""" 
7906         return _core_
.Menu_InsertSeparator(*args
, **kwargs
) 
7908     def InsertCheckItem(*args
, **kwargs
): 
7909         """InsertCheckItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" 
7910         return _core_
.Menu_InsertCheckItem(*args
, **kwargs
) 
7912     def InsertRadioItem(*args
, **kwargs
): 
7913         """InsertRadioItem(self, size_t pos, int id, String text, String help=EmptyString) -> MenuItem""" 
7914         return _core_
.Menu_InsertRadioItem(*args
, **kwargs
) 
7916     def InsertMenu(*args
, **kwargs
): 
7917         """InsertMenu(self, size_t pos, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" 
7918         return _core_
.Menu_InsertMenu(*args
, **kwargs
) 
7920     def PrependItem(*args
, **kwargs
): 
7921         """PrependItem(self, MenuItem item) -> MenuItem""" 
7922         return _core_
.Menu_PrependItem(*args
, **kwargs
) 
7924     def Prepend(*args
, **kwargs
): 
7925         """Prepend(self, int id, String text, String help=EmptyString, int kind=ITEM_NORMAL) -> MenuItem""" 
7926         return _core_
.Menu_Prepend(*args
, **kwargs
) 
7928     def PrependSeparator(*args
, **kwargs
): 
7929         """PrependSeparator(self) -> MenuItem""" 
7930         return _core_
.Menu_PrependSeparator(*args
, **kwargs
) 
7932     def PrependCheckItem(*args
, **kwargs
): 
7933         """PrependCheckItem(self, int id, String text, String help=EmptyString) -> MenuItem""" 
7934         return _core_
.Menu_PrependCheckItem(*args
, **kwargs
) 
7936     def PrependRadioItem(*args
, **kwargs
): 
7937         """PrependRadioItem(self, int id, String text, String help=EmptyString) -> MenuItem""" 
7938         return _core_
.Menu_PrependRadioItem(*args
, **kwargs
) 
7940     def PrependMenu(*args
, **kwargs
): 
7941         """PrependMenu(self, int id, String text, Menu submenu, String help=EmptyString) -> MenuItem""" 
7942         return _core_
.Menu_PrependMenu(*args
, **kwargs
) 
7944     def Remove(*args
, **kwargs
): 
7945         """Remove(self, int id) -> MenuItem""" 
7946         return _core_
.Menu_Remove(*args
, **kwargs
) 
7948     def RemoveItem(*args
, **kwargs
): 
7949         """RemoveItem(self, MenuItem item) -> MenuItem""" 
7950         return _core_
.Menu_RemoveItem(*args
, **kwargs
) 
7952     def Delete(*args
, **kwargs
): 
7953         """Delete(self, int id) -> bool""" 
7954         return _core_
.Menu_Delete(*args
, **kwargs
) 
7956     def DeleteItem(*args
, **kwargs
): 
7957         """DeleteItem(self, MenuItem item) -> bool""" 
7958         return _core_
.Menu_DeleteItem(*args
, **kwargs
) 
7960     def Destroy(*args
, **kwargs
): 
7964         Deletes the C++ object this Python object is a proxy for. 
7966         return _core_
.Menu_Destroy(*args
, **kwargs
) 
7968     def DestroyId(*args
, **kwargs
): 
7970         DestroyId(self, int id) -> bool 
7972         Deletes the C++ object this Python object is a proxy for. 
7974         return _core_
.Menu_DestroyId(*args
, **kwargs
) 
7976     def DestroyItem(*args
, **kwargs
): 
7978         DestroyItem(self, MenuItem item) -> bool 
7980         Deletes the C++ object this Python object is a proxy for. 
7982         return _core_
.Menu_DestroyItem(*args
, **kwargs
) 
7984     def GetMenuItemCount(*args
, **kwargs
): 
7985         """GetMenuItemCount(self) -> size_t""" 
7986         return _core_
.Menu_GetMenuItemCount(*args
, **kwargs
) 
7988     def GetMenuItems(*args
, **kwargs
): 
7989         """GetMenuItems(self) -> PyObject""" 
7990         return _core_
.Menu_GetMenuItems(*args
, **kwargs
) 
7992     def FindItem(*args
, **kwargs
): 
7993         """FindItem(self, String item) -> int""" 
7994         return _core_
.Menu_FindItem(*args
, **kwargs
) 
7996     def FindItemById(*args
, **kwargs
): 
7997         """FindItemById(self, int id) -> MenuItem""" 
7998         return _core_
.Menu_FindItemById(*args
, **kwargs
) 
8000     def FindItemByPosition(*args
, **kwargs
): 
8001         """FindItemByPosition(self, size_t position) -> MenuItem""" 
8002         return _core_
.Menu_FindItemByPosition(*args
, **kwargs
) 
8004     def Enable(*args
, **kwargs
): 
8005         """Enable(self, int id, bool enable)""" 
8006         return _core_
.Menu_Enable(*args
, **kwargs
) 
8008     def IsEnabled(*args
, **kwargs
): 
8009         """IsEnabled(self, int id) -> bool""" 
8010         return _core_
.Menu_IsEnabled(*args
, **kwargs
) 
8012     def Check(*args
, **kwargs
): 
8013         """Check(self, int id, bool check)""" 
8014         return _core_
.Menu_Check(*args
, **kwargs
) 
8016     def IsChecked(*args
, **kwargs
): 
8017         """IsChecked(self, int id) -> bool""" 
8018         return _core_
.Menu_IsChecked(*args
, **kwargs
) 
8020     def SetLabel(*args
, **kwargs
): 
8021         """SetLabel(self, int id, String label)""" 
8022         return _core_
.Menu_SetLabel(*args
, **kwargs
) 
8024     def GetLabel(*args
, **kwargs
): 
8025         """GetLabel(self, int id) -> String""" 
8026         return _core_
.Menu_GetLabel(*args
, **kwargs
) 
8028     def SetHelpString(*args
, **kwargs
): 
8029         """SetHelpString(self, int id, String helpString)""" 
8030         return _core_
.Menu_SetHelpString(*args
, **kwargs
) 
8032     def GetHelpString(*args
, **kwargs
): 
8033         """GetHelpString(self, int id) -> String""" 
8034         return _core_
.Menu_GetHelpString(*args
, **kwargs
) 
8036     def SetTitle(*args
, **kwargs
): 
8037         """SetTitle(self, String title)""" 
8038         return _core_
.Menu_SetTitle(*args
, **kwargs
) 
8040     def GetTitle(*args
, **kwargs
): 
8041         """GetTitle(self) -> String""" 
8042         return _core_
.Menu_GetTitle(*args
, **kwargs
) 
8044     def SetEventHandler(*args
, **kwargs
): 
8045         """SetEventHandler(self, EvtHandler handler)""" 
8046         return _core_
.Menu_SetEventHandler(*args
, **kwargs
) 
8048     def GetEventHandler(*args
, **kwargs
): 
8049         """GetEventHandler(self) -> EvtHandler""" 
8050         return _core_
.Menu_GetEventHandler(*args
, **kwargs
) 
8052     def SetInvokingWindow(*args
, **kwargs
): 
8053         """SetInvokingWindow(self, Window win)""" 
8054         return _core_
.Menu_SetInvokingWindow(*args
, **kwargs
) 
8056     def GetInvokingWindow(*args
, **kwargs
): 
8057         """GetInvokingWindow(self) -> Window""" 
8058         return _core_
.Menu_GetInvokingWindow(*args
, **kwargs
) 
8060     def GetStyle(*args
, **kwargs
): 
8061         """GetStyle(self) -> long""" 
8062         return _core_
.Menu_GetStyle(*args
, **kwargs
) 
8064     def UpdateUI(*args
, **kwargs
): 
8065         """UpdateUI(self, EvtHandler source=None)""" 
8066         return _core_
.Menu_UpdateUI(*args
, **kwargs
) 
8068     def GetMenuBar(*args
, **kwargs
): 
8069         """GetMenuBar(self) -> MenuBar""" 
8070         return _core_
.Menu_GetMenuBar(*args
, **kwargs
) 
8072     def Attach(*args
, **kwargs
): 
8073         """Attach(self, wxMenuBarBase menubar)""" 
8074         return _core_
.Menu_Attach(*args
, **kwargs
) 
8076     def Detach(*args
, **kwargs
): 
8078         return _core_
.Menu_Detach(*args
, **kwargs
) 
8080     def IsAttached(*args
, **kwargs
): 
8081         """IsAttached(self) -> bool""" 
8082         return _core_
.Menu_IsAttached(*args
, **kwargs
) 
8084     def SetParent(*args
, **kwargs
): 
8085         """SetParent(self, Menu parent)""" 
8086         return _core_
.Menu_SetParent(*args
, **kwargs
) 
8088     def GetParent(*args
, **kwargs
): 
8089         """GetParent(self) -> Menu""" 
8090         return _core_
.Menu_GetParent(*args
, **kwargs
) 
8093 class MenuPtr(Menu
): 
8094     def __init__(self
, this
): 
8096         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
8097         self
.__class
__ = Menu
 
8098 _core_
.Menu_swigregister(MenuPtr
) 
8099 DefaultValidator 
= cvar
.DefaultValidator
 
8101 #--------------------------------------------------------------------------- 
8103 class MenuBar(Window
): 
8105         return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
8106     def __init__(self
, *args
, **kwargs
): 
8107         """__init__(self, long style=0) -> MenuBar""" 
8108         newobj 
= _core_
.new_MenuBar(*args
, **kwargs
) 
8109         self
.this 
= newobj
.this
 
8112         self
._setOORInfo
(self
) 
8114     def Append(*args
, **kwargs
): 
8115         """Append(self, Menu menu, String title) -> bool""" 
8116         return _core_
.MenuBar_Append(*args
, **kwargs
) 
8118     def Insert(*args
, **kwargs
): 
8119         """Insert(self, size_t pos, Menu menu, String title) -> bool""" 
8120         return _core_
.MenuBar_Insert(*args
, **kwargs
) 
8122     def GetMenuCount(*args
, **kwargs
): 
8123         """GetMenuCount(self) -> size_t""" 
8124         return _core_
.MenuBar_GetMenuCount(*args
, **kwargs
) 
8126     def GetMenu(*args
, **kwargs
): 
8127         """GetMenu(self, size_t pos) -> Menu""" 
8128         return _core_
.MenuBar_GetMenu(*args
, **kwargs
) 
8130     def Replace(*args
, **kwargs
): 
8131         """Replace(self, size_t pos, Menu menu, String title) -> Menu""" 
8132         return _core_
.MenuBar_Replace(*args
, **kwargs
) 
8134     def Remove(*args
, **kwargs
): 
8135         """Remove(self, size_t pos) -> Menu""" 
8136         return _core_
.MenuBar_Remove(*args
, **kwargs
) 
8138     def EnableTop(*args
, **kwargs
): 
8139         """EnableTop(self, size_t pos, bool enable)""" 
8140         return _core_
.MenuBar_EnableTop(*args
, **kwargs
) 
8142     def IsEnabledTop(*args
, **kwargs
): 
8143         """IsEnabledTop(self, size_t pos) -> bool""" 
8144         return _core_
.MenuBar_IsEnabledTop(*args
, **kwargs
) 
8146     def SetLabelTop(*args
, **kwargs
): 
8147         """SetLabelTop(self, size_t pos, String label)""" 
8148         return _core_
.MenuBar_SetLabelTop(*args
, **kwargs
) 
8150     def GetLabelTop(*args
, **kwargs
): 
8151         """GetLabelTop(self, size_t pos) -> String""" 
8152         return _core_
.MenuBar_GetLabelTop(*args
, **kwargs
) 
8154     def FindMenuItem(*args
, **kwargs
): 
8155         """FindMenuItem(self, String menu, String item) -> int""" 
8156         return _core_
.MenuBar_FindMenuItem(*args
, **kwargs
) 
8158     def FindItemById(*args
, **kwargs
): 
8159         """FindItemById(self, int id) -> MenuItem""" 
8160         return _core_
.MenuBar_FindItemById(*args
, **kwargs
) 
8162     def FindMenu(*args
, **kwargs
): 
8163         """FindMenu(self, String title) -> int""" 
8164         return _core_
.MenuBar_FindMenu(*args
, **kwargs
) 
8166     def Enable(*args
, **kwargs
): 
8167         """Enable(self, int id, bool enable)""" 
8168         return _core_
.MenuBar_Enable(*args
, **kwargs
) 
8170     def Check(*args
, **kwargs
): 
8171         """Check(self, int id, bool check)""" 
8172         return _core_
.MenuBar_Check(*args
, **kwargs
) 
8174     def IsChecked(*args
, **kwargs
): 
8175         """IsChecked(self, int id) -> bool""" 
8176         return _core_
.MenuBar_IsChecked(*args
, **kwargs
) 
8178     def IsEnabled(*args
, **kwargs
): 
8179         """IsEnabled(self, int id) -> bool""" 
8180         return _core_
.MenuBar_IsEnabled(*args
, **kwargs
) 
8182     def SetLabel(*args
, **kwargs
): 
8183         """SetLabel(self, int id, String label)""" 
8184         return _core_
.MenuBar_SetLabel(*args
, **kwargs
) 
8186     def GetLabel(*args
, **kwargs
): 
8187         """GetLabel(self, int id) -> String""" 
8188         return _core_
.MenuBar_GetLabel(*args
, **kwargs
) 
8190     def SetHelpString(*args
, **kwargs
): 
8191         """SetHelpString(self, int id, String helpString)""" 
8192         return _core_
.MenuBar_SetHelpString(*args
, **kwargs
) 
8194     def GetHelpString(*args
, **kwargs
): 
8195         """GetHelpString(self, int id) -> String""" 
8196         return _core_
.MenuBar_GetHelpString(*args
, **kwargs
) 
8198     def GetFrame(*args
, **kwargs
): 
8199         """GetFrame(self) -> wxFrame""" 
8200         return _core_
.MenuBar_GetFrame(*args
, **kwargs
) 
8202     def IsAttached(*args
, **kwargs
): 
8203         """IsAttached(self) -> bool""" 
8204         return _core_
.MenuBar_IsAttached(*args
, **kwargs
) 
8206     def Attach(*args
, **kwargs
): 
8207         """Attach(self, wxFrame frame)""" 
8208         return _core_
.MenuBar_Attach(*args
, **kwargs
) 
8210     def Detach(*args
, **kwargs
): 
8212         return _core_
.MenuBar_Detach(*args
, **kwargs
) 
8215 class MenuBarPtr(MenuBar
): 
8216     def __init__(self
, this
): 
8218         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
8219         self
.__class
__ = MenuBar
 
8220 _core_
.MenuBar_swigregister(MenuBarPtr
) 
8222 #--------------------------------------------------------------------------- 
8224 class MenuItem(Object
): 
8226         return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
8227     def __init__(self
, *args
, **kwargs
): 
8229         __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString,  
8230             String help=EmptyString, int kind=ITEM_NORMAL,  
8231             Menu subMenu=None) -> MenuItem 
8233         newobj 
= _core_
.new_MenuItem(*args
, **kwargs
) 
8234         self
.this 
= newobj
.this
 
8237     def GetMenu(*args
, **kwargs
): 
8238         """GetMenu(self) -> Menu""" 
8239         return _core_
.MenuItem_GetMenu(*args
, **kwargs
) 
8241     def SetMenu(*args
, **kwargs
): 
8242         """SetMenu(self, Menu menu)""" 
8243         return _core_
.MenuItem_SetMenu(*args
, **kwargs
) 
8245     def SetId(*args
, **kwargs
): 
8246         """SetId(self, int id)""" 
8247         return _core_
.MenuItem_SetId(*args
, **kwargs
) 
8249     def GetId(*args
, **kwargs
): 
8250         """GetId(self) -> int""" 
8251         return _core_
.MenuItem_GetId(*args
, **kwargs
) 
8253     def IsSeparator(*args
, **kwargs
): 
8254         """IsSeparator(self) -> bool""" 
8255         return _core_
.MenuItem_IsSeparator(*args
, **kwargs
) 
8257     def SetText(*args
, **kwargs
): 
8258         """SetText(self, String str)""" 
8259         return _core_
.MenuItem_SetText(*args
, **kwargs
) 
8261     def GetLabel(*args
, **kwargs
): 
8262         """GetLabel(self) -> String""" 
8263         return _core_
.MenuItem_GetLabel(*args
, **kwargs
) 
8265     def GetText(*args
, **kwargs
): 
8266         """GetText(self) -> String""" 
8267         return _core_
.MenuItem_GetText(*args
, **kwargs
) 
8269     def GetLabelFromText(*args
, **kwargs
): 
8270         """GetLabelFromText(String text) -> String""" 
8271         return _core_
.MenuItem_GetLabelFromText(*args
, **kwargs
) 
8273     GetLabelFromText 
= staticmethod(GetLabelFromText
) 
8274     def GetKind(*args
, **kwargs
): 
8275         """GetKind(self) -> int""" 
8276         return _core_
.MenuItem_GetKind(*args
, **kwargs
) 
8278     def SetKind(*args
, **kwargs
): 
8279         """SetKind(self, int kind)""" 
8280         return _core_
.MenuItem_SetKind(*args
, **kwargs
) 
8282     def SetCheckable(*args
, **kwargs
): 
8283         """SetCheckable(self, bool checkable)""" 
8284         return _core_
.MenuItem_SetCheckable(*args
, **kwargs
) 
8286     def IsCheckable(*args
, **kwargs
): 
8287         """IsCheckable(self) -> bool""" 
8288         return _core_
.MenuItem_IsCheckable(*args
, **kwargs
) 
8290     def IsSubMenu(*args
, **kwargs
): 
8291         """IsSubMenu(self) -> bool""" 
8292         return _core_
.MenuItem_IsSubMenu(*args
, **kwargs
) 
8294     def SetSubMenu(*args
, **kwargs
): 
8295         """SetSubMenu(self, Menu menu)""" 
8296         return _core_
.MenuItem_SetSubMenu(*args
, **kwargs
) 
8298     def GetSubMenu(*args
, **kwargs
): 
8299         """GetSubMenu(self) -> Menu""" 
8300         return _core_
.MenuItem_GetSubMenu(*args
, **kwargs
) 
8302     def Enable(*args
, **kwargs
): 
8303         """Enable(self, bool enable=True)""" 
8304         return _core_
.MenuItem_Enable(*args
, **kwargs
) 
8306     def IsEnabled(*args
, **kwargs
): 
8307         """IsEnabled(self) -> bool""" 
8308         return _core_
.MenuItem_IsEnabled(*args
, **kwargs
) 
8310     def Check(*args
, **kwargs
): 
8311         """Check(self, bool check=True)""" 
8312         return _core_
.MenuItem_Check(*args
, **kwargs
) 
8314     def IsChecked(*args
, **kwargs
): 
8315         """IsChecked(self) -> bool""" 
8316         return _core_
.MenuItem_IsChecked(*args
, **kwargs
) 
8318     def Toggle(*args
, **kwargs
): 
8320         return _core_
.MenuItem_Toggle(*args
, **kwargs
) 
8322     def SetHelp(*args
, **kwargs
): 
8323         """SetHelp(self, String str)""" 
8324         return _core_
.MenuItem_SetHelp(*args
, **kwargs
) 
8326     def GetHelp(*args
, **kwargs
): 
8327         """GetHelp(self) -> String""" 
8328         return _core_
.MenuItem_GetHelp(*args
, **kwargs
) 
8330     def GetAccel(*args
, **kwargs
): 
8331         """GetAccel(self) -> AcceleratorEntry""" 
8332         return _core_
.MenuItem_GetAccel(*args
, **kwargs
) 
8334     def SetAccel(*args
, **kwargs
): 
8335         """SetAccel(self, AcceleratorEntry accel)""" 
8336         return _core_
.MenuItem_SetAccel(*args
, **kwargs
) 
8338     def GetDefaultMarginWidth(*args
, **kwargs
): 
8339         """GetDefaultMarginWidth() -> int""" 
8340         return _core_
.MenuItem_GetDefaultMarginWidth(*args
, **kwargs
) 
8342     GetDefaultMarginWidth 
= staticmethod(GetDefaultMarginWidth
) 
8343     def SetBitmap(*args
, **kwargs
): 
8344         """SetBitmap(self, Bitmap bitmap)""" 
8345         return _core_
.MenuItem_SetBitmap(*args
, **kwargs
) 
8347     def GetBitmap(*args
, **kwargs
): 
8348         """GetBitmap(self) -> Bitmap""" 
8349         return _core_
.MenuItem_GetBitmap(*args
, **kwargs
) 
8352 class MenuItemPtr(MenuItem
): 
8353     def __init__(self
, this
): 
8355         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
8356         self
.__class
__ = MenuItem
 
8357 _core_
.MenuItem_swigregister(MenuItemPtr
) 
8359 def MenuItem_GetLabelFromText(*args
, **kwargs
): 
8360     """MenuItem_GetLabelFromText(String text) -> String""" 
8361     return _core_
.MenuItem_GetLabelFromText(*args
, **kwargs
) 
8363 def MenuItem_GetDefaultMarginWidth(*args
, **kwargs
): 
8364     """MenuItem_GetDefaultMarginWidth() -> int""" 
8365     return _core_
.MenuItem_GetDefaultMarginWidth(*args
, **kwargs
) 
8367 #--------------------------------------------------------------------------- 
8369 class Control(Window
): 
8371     This is the base class for a control or 'widget'. 
8373     A control is generally a small window which processes user input 
8374     and/or displays one or more item of data. 
8377         return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
8378     def __init__(self
, *args
, **kwargs
): 
8380         __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,  
8381             Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,  
8382             String name=ControlNameStr) -> Control 
8384         Create a Control.  Normally you should only call this from a subclass' 
8385         __init__ as a plain old wx.Control is not very useful. 
8387         newobj 
= _core_
.new_Control(*args
, **kwargs
) 
8388         self
.this 
= newobj
.this
 
8391         self
._setOORInfo
(self
) 
8393     def Create(*args
, **kwargs
): 
8395         Create(self, Window parent, int id=-1, Point pos=DefaultPosition,  
8396             Size size=DefaultSize, long style=0, Validator validator=DefaultValidator,  
8397             String name=ControlNameStr) -> bool 
8399         Do the 2nd phase and create the GUI control. 
8401         return _core_
.Control_Create(*args
, **kwargs
) 
8403     def Command(*args
, **kwargs
): 
8405         Command(self, CommandEvent event) 
8407         Simulates the effect of the user issuing a command to the item. 
8409         :see: `wx.CommandEvent` 
8412         return _core_
.Control_Command(*args
, **kwargs
) 
8414     def GetLabel(*args
, **kwargs
): 
8416         GetLabel(self) -> String 
8418         Return a control's text. 
8420         return _core_
.Control_GetLabel(*args
, **kwargs
) 
8422     def SetLabel(*args
, **kwargs
): 
8424         SetLabel(self, String label) 
8426         Sets the item's text. 
8428         return _core_
.Control_SetLabel(*args
, **kwargs
) 
8430     def GetClassDefaultAttributes(*args
, **kwargs
): 
8432         GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 
8434         Get the default attributes for this class.  This is useful if you want 
8435         to use the same font or colour in your own control as in a standard 
8436         control -- which is a much better idea than hard coding specific 
8437         colours or fonts which might look completely out of place on the 
8438         user's system, especially if it uses themes. 
8440         The variant parameter is only relevant under Mac currently and is 
8441         ignore under other platforms. Under Mac, it will change the size of 
8442         the returned font. See `wx.Window.SetWindowVariant` for more about 
8445         return _core_
.Control_GetClassDefaultAttributes(*args
, **kwargs
) 
8447     GetClassDefaultAttributes 
= staticmethod(GetClassDefaultAttributes
) 
8449 class ControlPtr(Control
): 
8450     def __init__(self
, this
): 
8452         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
8453         self
.__class
__ = Control
 
8454 _core_
.Control_swigregister(ControlPtr
) 
8455 ControlNameStr 
= cvar
.ControlNameStr
 
8457 def PreControl(*args
, **kwargs
): 
8459     PreControl() -> Control 
8461     Precreate a Control control for 2-phase creation 
8463     val 
= _core_
.new_PreControl(*args
, **kwargs
) 
8467 def Control_GetClassDefaultAttributes(*args
, **kwargs
): 
8469     Control_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 
8471     Get the default attributes for this class.  This is useful if you want 
8472     to use the same font or colour in your own control as in a standard 
8473     control -- which is a much better idea than hard coding specific 
8474     colours or fonts which might look completely out of place on the 
8475     user's system, especially if it uses themes. 
8477     The variant parameter is only relevant under Mac currently and is 
8478     ignore under other platforms. Under Mac, it will change the size of 
8479     the returned font. See `wx.Window.SetWindowVariant` for more about 
8482     return _core_
.Control_GetClassDefaultAttributes(*args
, **kwargs
) 
8484 #--------------------------------------------------------------------------- 
8486 class ItemContainer(object): 
8488     wx.ItemContainer defines an interface which is implemented by all 
8489     controls which have string subitems, each of which may be selected, 
8490     such as `wx.ListBox`, `wx.CheckListBox`, `wx.Choice` as well as 
8491     `wx.ComboBox` which implements an extended interface deriving from 
8494     It defines the methods for accessing the control's items and although 
8495     each of the derived classes implements them differently, they still 
8496     all conform to the same interface. 
8498     The items in a wx.ItemContainer have (non empty) string labels and, 
8499     optionally, client data associated with them. 
8502     def __init__(self
): raise RuntimeError, "No constructor defined" 
8504         return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
8505     def Append(*args
, **kwargs
): 
8507         Append(self, String item, PyObject clientData=None) -> int 
8509         Adds the item to the control, associating the given data with the item 
8510         if not None.  The return value is the index of the newly added item 
8511         which may be different from the last one if the control is sorted (e.g. 
8512         has wx.LB_SORT or wx.CB_SORT style). 
8514         return _core_
.ItemContainer_Append(*args
, **kwargs
) 
8516     def AppendItems(*args
, **kwargs
): 
8518         AppendItems(self, List strings) 
8520         Apend several items at once to the control.  Notice that calling this 
8521         method may be much faster than appending the items one by one if you 
8522         need to add a lot of items. 
8524         return _core_
.ItemContainer_AppendItems(*args
, **kwargs
) 
8526     def Insert(*args
, **kwargs
): 
8528         Insert(self, String item, int pos, PyObject clientData=None) -> int 
8530         Insert an item into the control before the item at the ``pos`` index, 
8531         optionally associating some data object with the item. 
8533         return _core_
.ItemContainer_Insert(*args
, **kwargs
) 
8535     def Clear(*args
, **kwargs
): 
8539         Removes all items from the control. 
8541         return _core_
.ItemContainer_Clear(*args
, **kwargs
) 
8543     def Delete(*args
, **kwargs
): 
8547         Deletes the item at the zero-based index 'n' from the control. Note 
8548         that it is an error (signalled by a `wx.PyAssertionError` exception if 
8549         enabled) to remove an item with the index negative or greater or equal 
8550         than the number of items in the control. 
8552         return _core_
.ItemContainer_Delete(*args
, **kwargs
) 
8554     def GetCount(*args
, **kwargs
): 
8556         GetCount(self) -> int 
8558         Returns the number of items in the control. 
8560         return _core_
.ItemContainer_GetCount(*args
, **kwargs
) 
8562     def IsEmpty(*args
, **kwargs
): 
8564         IsEmpty(self) -> bool 
8566         Returns True if the control is empty or False if it has some items. 
8568         return _core_
.ItemContainer_IsEmpty(*args
, **kwargs
) 
8570     def GetString(*args
, **kwargs
): 
8572         GetString(self, int n) -> String 
8574         Returns the label of the item with the given index. 
8576         return _core_
.ItemContainer_GetString(*args
, **kwargs
) 
8578     def GetStrings(*args
, **kwargs
): 
8579         """GetStrings(self) -> wxArrayString""" 
8580         return _core_
.ItemContainer_GetStrings(*args
, **kwargs
) 
8582     def SetString(*args
, **kwargs
): 
8584         SetString(self, int n, String s) 
8586         Sets the label for the given item. 
8588         return _core_
.ItemContainer_SetString(*args
, **kwargs
) 
8590     def FindString(*args
, **kwargs
): 
8592         FindString(self, String s) -> int 
8594         Finds an item whose label matches the given string.  Returns the 
8595         zero-based position of the item, or ``wx.NOT_FOUND`` if the string was not 
8598         return _core_
.ItemContainer_FindString(*args
, **kwargs
) 
8600     def Select(*args
, **kwargs
): 
8604         Sets the item at index 'n' to be the selected item. 
8606         return _core_
.ItemContainer_Select(*args
, **kwargs
) 
8608     SetSelection 
= Select 
 
8609     def GetSelection(*args
, **kwargs
): 
8611         GetSelection(self) -> int 
8613         Returns the index of the selected item or ``wx.NOT_FOUND`` if no item 
8616         return _core_
.ItemContainer_GetSelection(*args
, **kwargs
) 
8618     def GetStringSelection(*args
, **kwargs
): 
8620         GetStringSelection(self) -> String 
8622         Returns the label of the selected item or an empty string if no item 
8625         return _core_
.ItemContainer_GetStringSelection(*args
, **kwargs
) 
8627     def GetClientData(*args
, **kwargs
): 
8629         GetClientData(self, int n) -> PyObject 
8631         Returns the client data associated with the given item, (if any.) 
8633         return _core_
.ItemContainer_GetClientData(*args
, **kwargs
) 
8635     def SetClientData(*args
, **kwargs
): 
8637         SetClientData(self, int n, PyObject clientData) 
8639         Associate the given client data with the item at position n. 
8641         return _core_
.ItemContainer_SetClientData(*args
, **kwargs
) 
8644 class ItemContainerPtr(ItemContainer
): 
8645     def __init__(self
, this
): 
8647         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
8648         self
.__class
__ = ItemContainer
 
8649 _core_
.ItemContainer_swigregister(ItemContainerPtr
) 
8651 #--------------------------------------------------------------------------- 
8653 class ControlWithItems(Control
,ItemContainer
): 
8655     wx.ControlWithItems combines the ``wx.ItemContainer`` class with the 
8656     wx.Control class, and is used for the base class of various controls 
8659     def __init__(self
): raise RuntimeError, "No constructor defined" 
8661         return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
8663 class ControlWithItemsPtr(ControlWithItems
): 
8664     def __init__(self
, this
): 
8666         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
8667         self
.__class
__ = ControlWithItems
 
8668 _core_
.ControlWithItems_swigregister(ControlWithItemsPtr
) 
8670 #--------------------------------------------------------------------------- 
8672 class SizerItem(Object
): 
8674     The wx.SizerItem class is used to track the position, size and other 
8675     attributes of each item managed by a `wx.Sizer`. In normal usage user 
8676     code should never need to deal directly with a wx.SizerItem, but 
8677     custom classes derived from `wx.PySizer` will probably need to use the 
8678     collection of wx.SizerItems held by wx.Sizer when calculating layout. 
8680     :see: `wx.Sizer`, `wx.GBSizerItem` 
8683         return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
8684     def __init__(self
, *args
, **kwargs
): 
8686         __init__(self) -> SizerItem 
8688         Constructs an empty wx.SizerItem.  Either a window, sizer or spacer 
8689         size will need to be set before this item can be used in a Sizer. 
8691         You will probably never need to create a wx.SizerItem directly as they 
8692         are created automatically when the sizer's Add, Insert or Prepend 
8695         :see: `wx.SizerItemSpacer`, `wx.SizerItemWindow`, `wx.SizerItemSizer` 
8697         newobj 
= _core_
.new_SizerItem(*args
, **kwargs
) 
8698         self
.this 
= newobj
.this
 
8701     def DeleteWindows(*args
, **kwargs
): 
8705         Destroy the window or the windows in a subsizer, depending on the type 
8708         return _core_
.SizerItem_DeleteWindows(*args
, **kwargs
) 
8710     def DetachSizer(*args
, **kwargs
): 
8714         Enable deleting the SizerItem without destroying the contained sizer. 
8716         return _core_
.SizerItem_DetachSizer(*args
, **kwargs
) 
8718     def GetSize(*args
, **kwargs
): 
8720         GetSize(self) -> Size 
8722         Get the current size of the item, as set in the last Layout. 
8724         return _core_
.SizerItem_GetSize(*args
, **kwargs
) 
8726     def CalcMin(*args
, **kwargs
): 
8728         CalcMin(self) -> Size 
8730         Calculates the minimum desired size for the item, including any space 
8733         return _core_
.SizerItem_CalcMin(*args
, **kwargs
) 
8735     def SetDimension(*args
, **kwargs
): 
8737         SetDimension(self, Point pos, Size size) 
8739         Set the position and size of the space allocated for this item by the 
8740         sizer, and adjust the position and size of the item (window or 
8741         subsizer) to be within that space taking alignment and borders into 
8744         return _core_
.SizerItem_SetDimension(*args
, **kwargs
) 
8746     def GetMinSize(*args
, **kwargs
): 
8748         GetMinSize(self) -> Size 
8750         Get the minimum size needed for the item. 
8752         return _core_
.SizerItem_GetMinSize(*args
, **kwargs
) 
8754     def GetMinSizeWithBorder(*args
, **kwargs
): 
8756         GetMinSizeWithBorder(self) -> Size 
8758         Get the minimum size needed for the item with space for the borders 
8761         return _core_
.SizerItem_GetMinSizeWithBorder(*args
, **kwargs
) 
8763     def SetInitSize(*args
, **kwargs
): 
8764         """SetInitSize(self, int x, int y)""" 
8765         return _core_
.SizerItem_SetInitSize(*args
, **kwargs
) 
8767     def SetRatioWH(*args
, **kwargs
): 
8769         SetRatioWH(self, int width, int height) 
8771         Set the ratio item attribute. 
8773         return _core_
.SizerItem_SetRatioWH(*args
, **kwargs
) 
8775     def SetRatioSize(*args
, **kwargs
): 
8777         SetRatioSize(self, Size size) 
8779         Set the ratio item attribute. 
8781         return _core_
.SizerItem_SetRatioSize(*args
, **kwargs
) 
8783     def SetRatio(*args
, **kwargs
): 
8785         SetRatio(self, float ratio) 
8787         Set the ratio item attribute. 
8789         return _core_
.SizerItem_SetRatio(*args
, **kwargs
) 
8791     def GetRatio(*args
, **kwargs
): 
8793         GetRatio(self) -> float 
8795         Set the ratio item attribute. 
8797         return _core_
.SizerItem_GetRatio(*args
, **kwargs
) 
8799     def IsWindow(*args
, **kwargs
): 
8801         IsWindow(self) -> bool 
8803         Is this sizer item a window? 
8805         return _core_
.SizerItem_IsWindow(*args
, **kwargs
) 
8807     def IsSizer(*args
, **kwargs
): 
8809         IsSizer(self) -> bool 
8811         Is this sizer item a subsizer? 
8813         return _core_
.SizerItem_IsSizer(*args
, **kwargs
) 
8815     def IsSpacer(*args
, **kwargs
): 
8817         IsSpacer(self) -> bool 
8819         Is this sizer item a spacer? 
8821         return _core_
.SizerItem_IsSpacer(*args
, **kwargs
) 
8823     def SetProportion(*args
, **kwargs
): 
8825         SetProportion(self, int proportion) 
8827         Set the proportion value for this item. 
8829         return _core_
.SizerItem_SetProportion(*args
, **kwargs
) 
8831     def GetProportion(*args
, **kwargs
): 
8833         GetProportion(self) -> int 
8835         Get the proportion value for this item. 
8837         return _core_
.SizerItem_GetProportion(*args
, **kwargs
) 
8839     SetOption 
= wx
._deprecated
(SetProportion
, "Please use `SetProportion` instead.")  
8840     GetOption 
= wx
._deprecated
(GetProportion
, "Please use `GetProportion` instead.")  
8841     def SetFlag(*args
, **kwargs
): 
8843         SetFlag(self, int flag) 
8845         Set the flag value for this item. 
8847         return _core_
.SizerItem_SetFlag(*args
, **kwargs
) 
8849     def GetFlag(*args
, **kwargs
): 
8851         GetFlag(self) -> int 
8853         Get the flag value for this item. 
8855         return _core_
.SizerItem_GetFlag(*args
, **kwargs
) 
8857     def SetBorder(*args
, **kwargs
): 
8859         SetBorder(self, int border) 
8861         Set the border value for this item. 
8863         return _core_
.SizerItem_SetBorder(*args
, **kwargs
) 
8865     def GetBorder(*args
, **kwargs
): 
8867         GetBorder(self) -> int 
8869         Get the border value for this item. 
8871         return _core_
.SizerItem_GetBorder(*args
, **kwargs
) 
8873     def GetWindow(*args
, **kwargs
): 
8875         GetWindow(self) -> Window 
8877         Get the window (if any) that is managed by this sizer item. 
8879         return _core_
.SizerItem_GetWindow(*args
, **kwargs
) 
8881     def SetWindow(*args
, **kwargs
): 
8883         SetWindow(self, Window window) 
8885         Set the window to be managed by this sizer item. 
8887         return _core_
.SizerItem_SetWindow(*args
, **kwargs
) 
8889     def GetSizer(*args
, **kwargs
): 
8891         GetSizer(self) -> Sizer 
8893         Get the subsizer (if any) that is managed by this sizer item. 
8895         return _core_
.SizerItem_GetSizer(*args
, **kwargs
) 
8897     def SetSizer(*args
, **kwargs
): 
8899         SetSizer(self, Sizer sizer) 
8901         Set the subsizer to be managed by this sizer item. 
8903         return _core_
.SizerItem_SetSizer(*args
, **kwargs
) 
8905     def GetSpacer(*args
, **kwargs
): 
8907         GetSpacer(self) -> Size 
8909         Get the size of the spacer managed by this sizer item. 
8911         return _core_
.SizerItem_GetSpacer(*args
, **kwargs
) 
8913     def SetSpacer(*args
, **kwargs
): 
8915         SetSpacer(self, Size size) 
8917         Set the size of the spacer to be managed by this sizer item. 
8919         return _core_
.SizerItem_SetSpacer(*args
, **kwargs
) 
8921     def Show(*args
, **kwargs
): 
8923         Show(self, bool show) 
8925         Set the show item attribute, which sizers use to determine if the item 
8926         is to be made part of the layout or not. If the item is tracking a 
8927         window then it is shown or hidden as needed. 
8929         return _core_
.SizerItem_Show(*args
, **kwargs
) 
8931     def IsShown(*args
, **kwargs
): 
8933         IsShown(self) -> bool 
8935         Is the item to be shown in the layout? 
8937         return _core_
.SizerItem_IsShown(*args
, **kwargs
) 
8939     def GetPosition(*args
, **kwargs
): 
8941         GetPosition(self) -> Point 
8943         Returns the current position of the item, as set in the last Layout. 
8945         return _core_
.SizerItem_GetPosition(*args
, **kwargs
) 
8947     def GetUserData(*args
, **kwargs
): 
8949         GetUserData(self) -> PyObject 
8951         Returns the userData associated with this sizer item, or None if there 
8954         return _core_
.SizerItem_GetUserData(*args
, **kwargs
) 
8957 class SizerItemPtr(SizerItem
): 
8958     def __init__(self
, this
): 
8960         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
8961         self
.__class
__ = SizerItem
 
8962 _core_
.SizerItem_swigregister(SizerItemPtr
) 
8964 def SizerItemWindow(*args
, **kwargs
): 
8966     SizerItemWindow(Window window, int proportion, int flag, int border,  
8967         PyObject userData=None) -> SizerItem 
8969     Constructs a `wx.SizerItem` for tracking a window. 
8971     val 
= _core_
.new_SizerItemWindow(*args
, **kwargs
) 
8975 def SizerItemSpacer(*args
, **kwargs
): 
8977     SizerItemSpacer(int width, int height, int proportion, int flag, int border,  
8978         PyObject userData=None) -> SizerItem 
8980     Constructs a `wx.SizerItem` for tracking a spacer. 
8982     val 
= _core_
.new_SizerItemSpacer(*args
, **kwargs
) 
8986 def SizerItemSizer(*args
, **kwargs
): 
8988     SizerItemSizer(Sizer sizer, int proportion, int flag, int border,  
8989         PyObject userData=None) -> SizerItem 
8991     Constructs a `wx.SizerItem` for tracking a subsizer 
8993     val 
= _core_
.new_SizerItemSizer(*args
, **kwargs
) 
8997 class Sizer(Object
): 
8999     wx.Sizer is the abstract base class used for laying out subwindows in 
9000     a window.  You cannot use wx.Sizer directly; instead, you will have to 
9001     use one of the sizer classes derived from it such as `wx.BoxSizer`, 
9002     `wx.StaticBoxSizer`, `wx.NotebookSizer`, `wx.GridSizer`,  `wx.FlexGridSizer` 
9003     and `wx.GridBagSizer`. 
9005     The concept implemented by sizers in wxWidgets is closely related to 
9006     layout tools in other GUI toolkits, such as Java's AWT, the GTK 
9007     toolkit or the Qt toolkit. It is based upon the idea of the individual 
9008     subwindows reporting their minimal required size and their ability to 
9009     get stretched if the size of the parent window has changed. This will 
9010     most often mean that the programmer does not set the original size of 
9011     a dialog in the beginning, rather the dialog will assigned a sizer and 
9012     this sizer will be queried about the recommended size. The sizer in 
9013     turn will query its children, which can be normal windows or contorls, 
9014     empty space or other sizers, so that a hierarchy of sizers can be 
9015     constructed. Note that wxSizer does not derive from wxWindow and thus 
9016     do not interfere with tab ordering and requires very little resources 
9017     compared to a real window on screen. 
9019     What makes sizers so well fitted for use in wxWidgets is the fact that 
9020     every control reports its own minimal size and the algorithm can 
9021     handle differences in font sizes or different window (dialog item) 
9022     sizes on different platforms without problems. If for example the 
9023     standard font as well as the overall design of Mac widgets requires 
9024     more space than on Windows, then the initial size of a dialog using a 
9025     sizer will automatically be bigger on Mac than on Windows. 
9027     def __init__(self
): raise RuntimeError, "No constructor defined" 
9029         return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9030     def _setOORInfo(*args
, **kwargs
): 
9031         """_setOORInfo(self, PyObject _self)""" 
9032         return _core_
.Sizer__setOORInfo(*args
, **kwargs
) 
9034     def Add(*args
, **kwargs
): 
9036         Add(self, item, int proportion=0, int flag=0, int border=0, 
9037             PyObject userData=None) 
9039         Appends a child item to the sizer. 
9041         return _core_
.Sizer_Add(*args
, **kwargs
) 
9043     def Insert(*args
, **kwargs
): 
9045         Insert(self, int before, item, int proportion=0, int flag=0, int border=0, 
9046             PyObject userData=None) 
9048         Inserts a new item into the list of items managed by this sizer before 
9049         the item at index *before*.  See `Add` for a description of the parameters. 
9051         return _core_
.Sizer_Insert(*args
, **kwargs
) 
9053     def Prepend(*args
, **kwargs
): 
9055         Prepend(self, item, int proportion=0, int flag=0, int border=0, 
9056             PyObject userData=None) 
9058         Adds a new item to the begining of the list of sizer items managed by 
9059         this sizer.  See `Add` for a description of the parameters. 
9061         return _core_
.Sizer_Prepend(*args
, **kwargs
) 
9063     def Remove(*args
, **kwargs
): 
9065         Remove(self, item) -> bool 
9067         Removes an item from the sizer and destroys it.  This method does not 
9068         cause any layout or resizing to take place, call `Layout` to update 
9069         the layout on screen after removing a child from the sizer.  The 
9070         *item* parameter can be either a window, a sizer, or the zero-based 
9071         index of an item to remove.  Returns True if the child item was found 
9074         return _core_
.Sizer_Remove(*args
, **kwargs
) 
9076     def Detach(*args
, **kwargs
): 
9078         Detach(self, item) -> bool 
9080         Detaches an item from the sizer without destroying it.  This method 
9081         does not cause any layout or resizing to take place, call `Layout` to 
9082         do so.  The *item* parameter can be either a window, a sizer, or the 
9083         zero-based index of the item to be detached.  Returns True if the child item 
9084         was found and detached. 
9086         return _core_
.Sizer_Detach(*args
, **kwargs
) 
9088     def _SetItemMinSize(*args
, **kwargs
): 
9089         """_SetItemMinSize(self, PyObject item, Size size)""" 
9090         return _core_
.Sizer__SetItemMinSize(*args
, **kwargs
) 
9092     def SetItemMinSize(self
, item
, *args
): 
9094         SetItemMinSize(self, item, Size size) 
9096         Sets the minimum size that will be allocated for an item in the sizer. 
9097         The *item* parameter can be either a window, a sizer, or the 
9098         zero-based index of the item.  If a window or sizer is given then it 
9099         will be searched for recursivly in subsizers if neccessary. 
9102             # for backward compatibility accept separate width,height args too 
9103             return self
._SetItemMinSize
(item
, args
) 
9105             return self
._SetItemMinSize
(item
, args
[0]) 
9107     def AddItem(*args
, **kwargs
): 
9109         AddItem(self, SizerItem item) 
9111         Adds a `wx.SizerItem` to the sizer. 
9113         return _core_
.Sizer_AddItem(*args
, **kwargs
) 
9115     def InsertItem(*args
, **kwargs
): 
9117         InsertItem(self, int index, SizerItem item) 
9119         Inserts a `wx.SizerItem` to the sizer at the position given by *index*. 
9121         return _core_
.Sizer_InsertItem(*args
, **kwargs
) 
9123     def PrependItem(*args
, **kwargs
): 
9125         PrependItem(self, SizerItem item) 
9127         Prepends a `wx.SizerItem` to the sizer. 
9129         return _core_
.Sizer_PrependItem(*args
, **kwargs
) 
9131     def AddMany(self
, items
): 
9133         AddMany is a convenience method for adding several items 
9134         to a sizer at one time.  Simply pass it a list of tuples, 
9135         where each tuple consists of the parameters that you 
9136         would normally pass to the `Add` method. 
9139             if type(item
) != type(()) or (len(item
) == 2 and type(item
[0]) == type(1)): 
9143     # for backwards compatibility only, please do not use in new code 
9144     AddWindow     
= wx
._deprecated
(Add
, "AddWindow is deprecated, use `Add` instead.") 
9145     AddSizer      
= wx
._deprecated
(Add
, "AddSizer is deprecated, use `Add` instead.") 
9146     AddSpacer     
= wx
._deprecated
(Add
, "AddSpacer is deprecated, use `Add` instead.") 
9147     PrependWindow 
= wx
._deprecated
(Prepend
, "PrependWindow is deprecated, use `Prepend` instead.") 
9148     PrependSizer  
= wx
._deprecated
(Prepend
, "PrependSizer is deprecated, use `Prepend` instead.") 
9149     PrependSpacer 
= wx
._deprecated
(Prepend
, "PrependSpacer is deprecated, use `Prepend` instead.") 
9150     InsertWindow  
= wx
._deprecated
(Insert
, "InsertWindow is deprecated, use `Insert` instead.") 
9151     InsertSizer   
= wx
._deprecated
(Insert
, "InsertSizer is deprecated, use `Insert` instead.") 
9152     InsertSpacer  
= wx
._deprecated
(Insert
, "InsertSpacer is deprecated, use `Insert` instead.") 
9153     RemoveWindow  
= wx
._deprecated
(Remove
, "RemoveWindow is deprecated, use `Remove` instead.") 
9154     RemoveSizer   
= wx
._deprecated
(Remove
, "RemoveSizer is deprecated, use `Remove` instead.") 
9155     RemovePos     
= wx
._deprecated
(Remove
, "RemovePos is deprecated, use `Remove` instead.") 
9158     def SetDimension(*args
, **kwargs
): 
9160         SetDimension(self, int x, int y, int width, int height) 
9162         Call this to force the sizer to take the given dimension and thus 
9163         force the items owned by the sizer to resize themselves according to 
9164         the rules defined by the parameter in the `Add`, `Insert` or `Prepend` 
9167         return _core_
.Sizer_SetDimension(*args
, **kwargs
) 
9169     def SetMinSize(*args
, **kwargs
): 
9171         SetMinSize(self, Size size) 
9173         Call this to give the sizer a minimal size. Normally, the sizer will 
9174         calculate its minimal size based purely on how much space its children 
9175         need. After calling this method `GetMinSize` will return either the 
9176         minimal size as requested by its children or the minimal size set 
9177         here, depending on which is bigger. 
9179         return _core_
.Sizer_SetMinSize(*args
, **kwargs
) 
9181     def GetSize(*args
, **kwargs
): 
9183         GetSize(self) -> Size 
9185         Returns the current size of the space managed by the sizer. 
9187         return _core_
.Sizer_GetSize(*args
, **kwargs
) 
9189     def GetPosition(*args
, **kwargs
): 
9191         GetPosition(self) -> Point 
9193         Returns the current position of the sizer's managed space. 
9195         return _core_
.Sizer_GetPosition(*args
, **kwargs
) 
9197     def GetMinSize(*args
, **kwargs
): 
9199         GetMinSize(self) -> Size 
9201         Returns the minimal size of the sizer. This is either the combined 
9202         minimal size of all the children and their borders or the minimal size 
9203         set by SetMinSize, depending on which is bigger. 
9205         return _core_
.Sizer_GetMinSize(*args
, **kwargs
) 
9207     def GetSizeTuple(self
): 
9208         return self
.GetSize().Get() 
9209     def GetPositionTuple(self
): 
9210         return self
.GetPosition().Get() 
9211     def GetMinSizeTuple(self
): 
9212         return self
.GetMinSize().Get() 
9214     def RecalcSizes(*args
, **kwargs
): 
9218         Using the sizes calculated by `CalcMin` reposition and resize all the 
9219         items managed by this sizer.  You should not need to call this directly as 
9220         it is called by `Layout`. 
9222         return _core_
.Sizer_RecalcSizes(*args
, **kwargs
) 
9224     def CalcMin(*args
, **kwargs
): 
9226         CalcMin(self) -> Size 
9228         This method is where the sizer will do the actual calculation of its 
9229         children's minimal sizes.  You should not need to call this directly as 
9230         it is called by `Layout`. 
9232         return _core_
.Sizer_CalcMin(*args
, **kwargs
) 
9234     def Layout(*args
, **kwargs
): 
9238         This method will force the recalculation and layout of the items 
9239         controlled by the sizer using the current space allocated to the 
9240         sizer.  Normally this is called automatically from the owning window's 
9241         EVT_SIZE handler, but it is also useful to call it from user code when 
9242         one of the items in a sizer change size, or items are added or 
9245         return _core_
.Sizer_Layout(*args
, **kwargs
) 
9247     def Fit(*args
, **kwargs
): 
9249         Fit(self, Window window) -> Size 
9251         Tell the sizer to resize the *window* to match the sizer's minimal 
9252         size. This is commonly done in the constructor of the window itself in 
9253         order to set its initial size to match the needs of the children as 
9254         determined by the sizer.  Returns the new size. 
9256         For a top level window this is the total window size, not the client size. 
9258         return _core_
.Sizer_Fit(*args
, **kwargs
) 
9260     def FitInside(*args
, **kwargs
): 
9262         FitInside(self, Window window) 
9264         Tell the sizer to resize the *virtual size* of the *window* to match the 
9265         sizer's minimal size. This will not alter the on screen size of the 
9266         window, but may cause the addition/removal/alteration of scrollbars 
9267         required to view the virtual area in windows which manage it. 
9269         :see: `wx.ScrolledWindow.SetScrollbars`, `SetVirtualSizeHints` 
9272         return _core_
.Sizer_FitInside(*args
, **kwargs
) 
9274     def SetSizeHints(*args
, **kwargs
): 
9276         SetSizeHints(self, Window window) 
9278         Tell the sizer to set (and `Fit`) the minimal size of the *window* to 
9279         match the sizer's minimal size. This is commonly done in the 
9280         constructor of the window itself if the window is resizable (as are 
9281         many dialogs under Unix and frames on probably all platforms) in order 
9282         to prevent the window from being sized smaller than the minimal size 
9283         required by the sizer. 
9285         return _core_
.Sizer_SetSizeHints(*args
, **kwargs
) 
9287     def SetVirtualSizeHints(*args
, **kwargs
): 
9289         SetVirtualSizeHints(self, Window window) 
9291         Tell the sizer to set the minimal size of the window virtual area to 
9292         match the sizer's minimal size. For windows with managed scrollbars 
9293         this will set them appropriately. 
9295         :see: `wx.ScrolledWindow.SetScrollbars` 
9298         return _core_
.Sizer_SetVirtualSizeHints(*args
, **kwargs
) 
9300     def Clear(*args
, **kwargs
): 
9302         Clear(self, bool deleteWindows=False) 
9304         Clear all items from the sizer, optionally destroying the window items 
9307         return _core_
.Sizer_Clear(*args
, **kwargs
) 
9309     def DeleteWindows(*args
, **kwargs
): 
9313         Destroy all windows managed by the sizer. 
9315         return _core_
.Sizer_DeleteWindows(*args
, **kwargs
) 
9317     def GetChildren(*args
, **kwargs
): 
9319         GetChildren(sefl) -> list 
9321         Returns a list of all the `wx.SizerItem` objects managed by the sizer. 
9323         return _core_
.Sizer_GetChildren(*args
, **kwargs
) 
9325     def Show(*args
, **kwargs
): 
9327         Show(self, item, bool show=True, bool recursive=False) -> bool 
9329         Shows or hides an item managed by the sizer.  To make a sizer item 
9330         disappear or reappear, use Show followed by `Layout`.  The *item* 
9331         parameter can be either a window, a sizer, or the zero-based index of 
9332         the item.  Use the recursive parameter to show or hide an item in a 
9333         subsizer.  Returns True if the item was found. 
9335         return _core_
.Sizer_Show(*args
, **kwargs
) 
9337     def IsShown(*args
, **kwargs
): 
9341         Determines if the item is currently shown. sizer.  To make a sizer 
9342         item disappear or reappear, use Show followed by `Layout`.  The *item* 
9343         parameter can be either a window, a sizer, or the zero-based index of 
9346         return _core_
.Sizer_IsShown(*args
, **kwargs
) 
9348     def Hide(self
, item
, recursive
=False): 
9350         A convenience method for Show(item, False, recursive). 
9352         return self
.Show(item
, False, recursive
) 
9354     def ShowItems(*args
, **kwargs
): 
9356         ShowItems(self, bool show) 
9358         Recursively call `wx.Window.Show` on all sizer items. 
9360         return _core_
.Sizer_ShowItems(*args
, **kwargs
) 
9363 class SizerPtr(Sizer
): 
9364     def __init__(self
, this
): 
9366         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9367         self
.__class
__ = Sizer
 
9368 _core_
.Sizer_swigregister(SizerPtr
) 
9370 class PySizer(Sizer
): 
9372     wx.PySizer is a special version of `wx.Sizer` that has been 
9373     instrumented to allow the C++ virtual methods to be overloaded in 
9374     Python derived classes.  You would derive from this class if you are 
9375     wanting to implement a custom sizer in Python code.  Simply implement 
9376     `CalcMin` and `RecalcSizes` in the derived class and you're all set. 
9379         class MySizer(wx.PySizer): 
9381                  wx.PySizer.__init__(self) 
9384                  for item in self.GetChildren(): 
9385                       # calculate the total minimum width and height needed 
9386                       # by all items in the sizer according to this sizer's 
9389                  return wx.Size(width, height) 
9391               def RecalcSizes(self): 
9392                   # find the space allotted to this sizer 
9393                   pos = self.GetPosition() 
9394                   size = self.GetSize() 
9395                   for item in self.GetChildren(): 
9396                       # Recalculate (if necessary) the position and size of 
9397                       # each item and then call item.SetDimension to do the 
9398                       # actual positioning and sizing of the items within the 
9399                       # space alloted to this sizer. 
9401                       item.SetDimension(itemPos, itemSize) 
9404     When `Layout` is called it first calls `CalcMin` followed by 
9405     `RecalcSizes` so you can optimize a bit by saving the results of 
9406     `CalcMin` and resuing them in `RecalcSizes`. 
9408     :see: `wx.SizerItem`, `wx.Sizer.GetChildren` 
9413         return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9414     def __init__(self
, *args
, **kwargs
): 
9416         __init__(self) -> PySizer 
9418         Creates a wx.PySizer.  Must be called from the __init__ in the derived 
9421         newobj 
= _core_
.new_PySizer(*args
, **kwargs
) 
9422         self
.this 
= newobj
.this
 
9425         self
._setCallbackInfo
(self
, PySizer
);self
._setOORInfo
(self
) 
9427     def _setCallbackInfo(*args
, **kwargs
): 
9428         """_setCallbackInfo(self, PyObject self, PyObject _class)""" 
9429         return _core_
.PySizer__setCallbackInfo(*args
, **kwargs
) 
9432 class PySizerPtr(PySizer
): 
9433     def __init__(self
, this
): 
9435         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9436         self
.__class
__ = PySizer
 
9437 _core_
.PySizer_swigregister(PySizerPtr
) 
9439 #--------------------------------------------------------------------------- 
9441 class BoxSizer(Sizer
): 
9443     The basic idea behind a box sizer is that windows will most often be 
9444     laid out in rather simple basic geometry, typically in a row or a 
9445     column or nested hierarchies of either.  A wx.BoxSizer will lay out 
9446     its items in a simple row or column, depending on the orientation 
9447     parameter passed to the constructor. 
9450         return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9451     def __init__(self
, *args
, **kwargs
): 
9453         __init__(self, int orient=HORIZONTAL) -> BoxSizer 
9455         Constructor for a wx.BoxSizer. *orient* may be one of ``wx.VERTICAL`` 
9456         or ``wx.HORIZONTAL`` for creating either a column sizer or a row 
9459         newobj 
= _core_
.new_BoxSizer(*args
, **kwargs
) 
9460         self
.this 
= newobj
.this
 
9463         self
._setOORInfo
(self
) 
9465     def GetOrientation(*args
, **kwargs
): 
9467         GetOrientation(self) -> int 
9469         Returns the current orientation of the sizer. 
9471         return _core_
.BoxSizer_GetOrientation(*args
, **kwargs
) 
9473     def SetOrientation(*args
, **kwargs
): 
9475         SetOrientation(self, int orient) 
9477         Resets the orientation of the sizer. 
9479         return _core_
.BoxSizer_SetOrientation(*args
, **kwargs
) 
9482 class BoxSizerPtr(BoxSizer
): 
9483     def __init__(self
, this
): 
9485         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9486         self
.__class
__ = BoxSizer
 
9487 _core_
.BoxSizer_swigregister(BoxSizerPtr
) 
9489 #--------------------------------------------------------------------------- 
9491 class StaticBoxSizer(BoxSizer
): 
9493     wx.StaticBoxSizer derives from and functions identically to the 
9494     `wx.BoxSizer` and adds a `wx.StaticBox` around the items that the sizer 
9495     manages.  Note that this static box must be created separately and 
9496     passed to the sizer constructor. 
9499         return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9500     def __init__(self
, *args
, **kwargs
): 
9502         __init__(self, StaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer 
9504         Constructor. It takes an associated static box and the orientation 
9505         *orient* as parameters - orient can be either of ``wx.VERTICAL`` or 
9508         newobj 
= _core_
.new_StaticBoxSizer(*args
, **kwargs
) 
9509         self
.this 
= newobj
.this
 
9512         self
._setOORInfo
(self
) 
9514     def GetStaticBox(*args
, **kwargs
): 
9516         GetStaticBox(self) -> StaticBox 
9518         Returns the static box associated with this sizer. 
9520         return _core_
.StaticBoxSizer_GetStaticBox(*args
, **kwargs
) 
9523 class StaticBoxSizerPtr(StaticBoxSizer
): 
9524     def __init__(self
, this
): 
9526         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9527         self
.__class
__ = StaticBoxSizer
 
9528 _core_
.StaticBoxSizer_swigregister(StaticBoxSizerPtr
) 
9530 #--------------------------------------------------------------------------- 
9532 class GridSizer(Sizer
): 
9534     A grid sizer is a sizer which lays out its children in a 
9535     two-dimensional table with all cells having the same size.  In other 
9536     words, the width of each cell within the grid is the width of the 
9537     widest item added to the sizer and the height of each grid cell is the 
9538     height of the tallest item.  An optional vertical and/or horizontal 
9539     gap between items can also be specified (in pixels.) 
9541     Items are placed in the cells of the grid in the order they are added, 
9542     in row-major order.  In other words, the first row is filled first, 
9543     then the second, and so on until all items have been added. (If 
9544     neccessary, additional rows will be added as items are added.)  If you 
9545     need to have greater control over the cells that items are placed in 
9546     then use the `wx.GridBagSizer`. 
9550         return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9551     def __init__(self
, *args
, **kwargs
): 
9553         __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer 
9555         Constructor for a wx.GridSizer. *rows* and *cols* determine the number 
9556         of columns and rows in the sizer - if either of the parameters is 
9557         zero, it will be calculated to from the total number of children in 
9558         the sizer, thus making the sizer grow dynamically. *vgap* and *hgap* 
9559         define extra space between all children. 
9561         newobj 
= _core_
.new_GridSizer(*args
, **kwargs
) 
9562         self
.this 
= newobj
.this
 
9565         self
._setOORInfo
(self
) 
9567     def SetCols(*args
, **kwargs
): 
9569         SetCols(self, int cols) 
9571         Sets the number of columns in the sizer. 
9573         return _core_
.GridSizer_SetCols(*args
, **kwargs
) 
9575     def SetRows(*args
, **kwargs
): 
9577         SetRows(self, int rows) 
9579         Sets the number of rows in the sizer. 
9581         return _core_
.GridSizer_SetRows(*args
, **kwargs
) 
9583     def SetVGap(*args
, **kwargs
): 
9585         SetVGap(self, int gap) 
9587         Sets the vertical gap (in pixels) between the cells in the sizer. 
9589         return _core_
.GridSizer_SetVGap(*args
, **kwargs
) 
9591     def SetHGap(*args
, **kwargs
): 
9593         SetHGap(self, int gap) 
9595         Sets the horizontal gap (in pixels) between cells in the sizer 
9597         return _core_
.GridSizer_SetHGap(*args
, **kwargs
) 
9599     def GetCols(*args
, **kwargs
): 
9601         GetCols(self) -> int 
9603         Returns the number of columns in the sizer. 
9605         return _core_
.GridSizer_GetCols(*args
, **kwargs
) 
9607     def GetRows(*args
, **kwargs
): 
9609         GetRows(self) -> int 
9611         Returns the number of rows in the sizer. 
9613         return _core_
.GridSizer_GetRows(*args
, **kwargs
) 
9615     def GetVGap(*args
, **kwargs
): 
9617         GetVGap(self) -> int 
9619         Returns the vertical gap (in pixels) between the cells in the sizer. 
9621         return _core_
.GridSizer_GetVGap(*args
, **kwargs
) 
9623     def GetHGap(*args
, **kwargs
): 
9625         GetHGap(self) -> int 
9627         Returns the horizontal gap (in pixels) between cells in the sizer. 
9629         return _core_
.GridSizer_GetHGap(*args
, **kwargs
) 
9632 class GridSizerPtr(GridSizer
): 
9633     def __init__(self
, this
): 
9635         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9636         self
.__class
__ = GridSizer
 
9637 _core_
.GridSizer_swigregister(GridSizerPtr
) 
9639 #--------------------------------------------------------------------------- 
9641 FLEX_GROWMODE_NONE 
= _core_
.FLEX_GROWMODE_NONE
 
9642 FLEX_GROWMODE_SPECIFIED 
= _core_
.FLEX_GROWMODE_SPECIFIED
 
9643 FLEX_GROWMODE_ALL 
= _core_
.FLEX_GROWMODE_ALL
 
9644 class FlexGridSizer(GridSizer
): 
9646     A flex grid sizer is a sizer which lays out its children in a 
9647     two-dimensional table with all table cells in one row having the same 
9648     height and all cells in one column having the same width, but all 
9649     rows or all columns are not necessarily the same height or width as in 
9652     wx.FlexGridSizer can also size items equally in one direction but 
9653     unequally ("flexibly") in the other. If the sizer is only flexible 
9654     in one direction (this can be changed using `SetFlexibleDirection`), it 
9655     needs to be decided how the sizer should grow in the other ("non 
9656     flexible") direction in order to fill the available space. The 
9657     `SetNonFlexibleGrowMode` method serves this purpose. 
9662         return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9663     def __init__(self
, *args
, **kwargs
): 
9665         __init__(self, int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer 
9667         Constructor for a wx.FlexGridSizer. *rows* and *cols* determine the 
9668         number of columns and rows in the sizer - if either of the parameters 
9669         is zero, it will be calculated to from the total number of children in 
9670         the sizer, thus making the sizer grow dynamically. *vgap* and *hgap* 
9671         define extra space between all children. 
9673         newobj 
= _core_
.new_FlexGridSizer(*args
, **kwargs
) 
9674         self
.this 
= newobj
.this
 
9677         self
._setOORInfo
(self
) 
9679     def AddGrowableRow(*args
, **kwargs
): 
9681         AddGrowableRow(self, size_t idx, int proportion=0) 
9683         Specifies that row *idx* (starting from zero) should be grown if there 
9684         is extra space available to the sizer. 
9686         The *proportion* parameter has the same meaning as the stretch factor 
9687         for the box sizers except that if all proportions are 0, then all 
9688         columns are resized equally (instead of not being resized at all). 
9690         return _core_
.FlexGridSizer_AddGrowableRow(*args
, **kwargs
) 
9692     def RemoveGrowableRow(*args
, **kwargs
): 
9694         RemoveGrowableRow(self, size_t idx) 
9696         Specifies that row *idx* is no longer growable. 
9698         return _core_
.FlexGridSizer_RemoveGrowableRow(*args
, **kwargs
) 
9700     def AddGrowableCol(*args
, **kwargs
): 
9702         AddGrowableCol(self, size_t idx, int proportion=0) 
9704         Specifies that column *idx* (starting from zero) should be grown if 
9705         there is extra space available to the sizer. 
9707         The *proportion* parameter has the same meaning as the stretch factor 
9708         for the box sizers except that if all proportions are 0, then all 
9709         columns are resized equally (instead of not being resized at all). 
9711         return _core_
.FlexGridSizer_AddGrowableCol(*args
, **kwargs
) 
9713     def RemoveGrowableCol(*args
, **kwargs
): 
9715         RemoveGrowableCol(self, size_t idx) 
9717         Specifies that column *idx* is no longer growable. 
9719         return _core_
.FlexGridSizer_RemoveGrowableCol(*args
, **kwargs
) 
9721     def SetFlexibleDirection(*args
, **kwargs
): 
9723         SetFlexibleDirection(self, int direction) 
9725         Specifies whether the sizer should flexibly resize its columns, rows, 
9726         or both. Argument *direction* can be one of the following values.  Any 
9727         other value is ignored. 
9729             ==============    ======================================= 
9730             wx.VERTICAL       Rows are flexibly sized. 
9731             wx.HORIZONTAL     Columns are flexibly sized. 
9732             wx.BOTH           Both rows and columns are flexibly sized 
9733                               (this is the default value). 
9734             ==============    ======================================= 
9736         Note that this method does not trigger relayout. 
9739         return _core_
.FlexGridSizer_SetFlexibleDirection(*args
, **kwargs
) 
9741     def GetFlexibleDirection(*args
, **kwargs
): 
9743         GetFlexibleDirection(self) -> int 
9745         Returns a value that specifies whether the sizer 
9746         flexibly resizes its columns, rows, or both (default). 
9748         :see: `SetFlexibleDirection` 
9750         return _core_
.FlexGridSizer_GetFlexibleDirection(*args
, **kwargs
) 
9752     def SetNonFlexibleGrowMode(*args
, **kwargs
): 
9754         SetNonFlexibleGrowMode(self, int mode) 
9756         Specifies how the sizer should grow in the non-flexible direction if 
9757         there is one (so `SetFlexibleDirection` must have been called 
9758         previously). Argument *mode* can be one of the following values: 
9760             ==========================  ================================================= 
9761             wx.FLEX_GROWMODE_NONE       Sizer doesn't grow in the non flexible direction. 
9762             wx.FLEX_GROWMODE_SPECIFIED  Sizer honors growable columns/rows set with 
9763                                         `AddGrowableCol` and `AddGrowableRow`. In this 
9764                                         case equal sizing applies to minimum sizes of 
9765                                         columns or rows (this is the default value). 
9766             wx.FLEX_GROWMODE_ALL        Sizer equally stretches all columns or rows in 
9767                                         the non flexible direction, whether they are 
9768                                         growable or not in the flexbile direction. 
9769             ==========================  ================================================= 
9771         Note that this method does not trigger relayout. 
9775         return _core_
.FlexGridSizer_SetNonFlexibleGrowMode(*args
, **kwargs
) 
9777     def GetNonFlexibleGrowMode(*args
, **kwargs
): 
9779         GetNonFlexibleGrowMode(self) -> int 
9781         Returns the value that specifies how the sizer grows in the 
9782         non-flexible direction if there is one. 
9784         :see: `SetNonFlexibleGrowMode` 
9786         return _core_
.FlexGridSizer_GetNonFlexibleGrowMode(*args
, **kwargs
) 
9788     def GetRowHeights(*args
, **kwargs
): 
9790         GetRowHeights(self) -> list 
9792         Returns a list of integers representing the heights of each of the 
9795         return _core_
.FlexGridSizer_GetRowHeights(*args
, **kwargs
) 
9797     def GetColWidths(*args
, **kwargs
): 
9799         GetColWidths(self) -> list 
9801         Returns a list of integers representing the widths of each of the 
9802         columns in the sizer. 
9804         return _core_
.FlexGridSizer_GetColWidths(*args
, **kwargs
) 
9807 class FlexGridSizerPtr(FlexGridSizer
): 
9808     def __init__(self
, this
): 
9810         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9811         self
.__class
__ = FlexGridSizer
 
9812 _core_
.FlexGridSizer_swigregister(FlexGridSizerPtr
) 
9814 #--------------------------------------------------------------------------- 
9816 class GBPosition(object): 
9818     This class represents the position of an item in a virtual grid of 
9819     rows and columns managed by a `wx.GridBagSizer`.  wxPython has 
9820     typemaps that will automatically convert from a 2-element sequence of 
9821     integers to a wx.GBPosition, so you can use the more pythonic 
9822     representation of the position nearly transparently in Python code. 
9825         return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9826     def __init__(self
, *args
, **kwargs
): 
9828         __init__(self, int row=0, int col=0) -> GBPosition 
9830         This class represents the position of an item in a virtual grid of 
9831         rows and columns managed by a `wx.GridBagSizer`.  wxPython has 
9832         typemaps that will automatically convert from a 2-element sequence of 
9833         integers to a wx.GBPosition, so you can use the more pythonic 
9834         representation of the position nearly transparently in Python code. 
9836         newobj 
= _core_
.new_GBPosition(*args
, **kwargs
) 
9837         self
.this 
= newobj
.this
 
9840     def GetRow(*args
, **kwargs
): 
9841         """GetRow(self) -> int""" 
9842         return _core_
.GBPosition_GetRow(*args
, **kwargs
) 
9844     def GetCol(*args
, **kwargs
): 
9845         """GetCol(self) -> int""" 
9846         return _core_
.GBPosition_GetCol(*args
, **kwargs
) 
9848     def SetRow(*args
, **kwargs
): 
9849         """SetRow(self, int row)""" 
9850         return _core_
.GBPosition_SetRow(*args
, **kwargs
) 
9852     def SetCol(*args
, **kwargs
): 
9853         """SetCol(self, int col)""" 
9854         return _core_
.GBPosition_SetCol(*args
, **kwargs
) 
9856     def __eq__(*args
, **kwargs
): 
9857         """__eq__(self, GBPosition other) -> bool""" 
9858         return _core_
.GBPosition___eq__(*args
, **kwargs
) 
9860     def __ne__(*args
, **kwargs
): 
9861         """__ne__(self, GBPosition other) -> bool""" 
9862         return _core_
.GBPosition___ne__(*args
, **kwargs
) 
9864     def Set(*args
, **kwargs
): 
9865         """Set(self, int row=0, int col=0)""" 
9866         return _core_
.GBPosition_Set(*args
, **kwargs
) 
9868     def Get(*args
, **kwargs
): 
9869         """Get(self) -> PyObject""" 
9870         return _core_
.GBPosition_Get(*args
, **kwargs
) 
9872     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
9873     def __str__(self
):                   return str(self
.Get()) 
9874     def __repr__(self
):                  return 'wx.GBPosition'+str(self
.Get()) 
9875     def __len__(self
):                   return len(self
.Get()) 
9876     def __getitem__(self
, index
):        return self
.Get()[index
] 
9877     def __setitem__(self
, index
, val
): 
9878         if index 
== 0: self
.SetRow(val
) 
9879         elif index 
== 1: self
.SetCol(val
) 
9880         else: raise IndexError 
9881     def __nonzero__(self
):               return self
.Get() != (0,0) 
9882     __safe_for_unpickling__ 
= True 
9883     def __reduce__(self
):                return (wx
.GBPosition
, self
.Get()) 
9885     row 
= property(GetRow
, SetRow
) 
9886     col 
= property(GetCol
, SetCol
) 
9889 class GBPositionPtr(GBPosition
): 
9890     def __init__(self
, this
): 
9892         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9893         self
.__class
__ = GBPosition
 
9894 _core_
.GBPosition_swigregister(GBPositionPtr
) 
9896 class GBSpan(object): 
9898     This class is used to hold the row and column spanning attributes of 
9899     items in a `wx.GridBagSizer`.  wxPython has typemaps that will 
9900     automatically convert from a 2-element sequence of integers to a 
9901     wx.GBSpan, so you can use the more pythonic representation of the span 
9902     nearly transparently in Python code. 
9906         return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9907     def __init__(self
, *args
, **kwargs
): 
9909         __init__(self, int rowspan=1, int colspan=1) -> GBSpan 
9911         Construct a new wxGBSpan, optionally setting the rowspan and 
9912         colspan. The default is (1,1). (Meaning that the item occupies one 
9913         cell in each direction. 
9915         newobj 
= _core_
.new_GBSpan(*args
, **kwargs
) 
9916         self
.this 
= newobj
.this
 
9919     def GetRowspan(*args
, **kwargs
): 
9920         """GetRowspan(self) -> int""" 
9921         return _core_
.GBSpan_GetRowspan(*args
, **kwargs
) 
9923     def GetColspan(*args
, **kwargs
): 
9924         """GetColspan(self) -> int""" 
9925         return _core_
.GBSpan_GetColspan(*args
, **kwargs
) 
9927     def SetRowspan(*args
, **kwargs
): 
9928         """SetRowspan(self, int rowspan)""" 
9929         return _core_
.GBSpan_SetRowspan(*args
, **kwargs
) 
9931     def SetColspan(*args
, **kwargs
): 
9932         """SetColspan(self, int colspan)""" 
9933         return _core_
.GBSpan_SetColspan(*args
, **kwargs
) 
9935     def __eq__(*args
, **kwargs
): 
9936         """__eq__(self, GBSpan other) -> bool""" 
9937         return _core_
.GBSpan___eq__(*args
, **kwargs
) 
9939     def __ne__(*args
, **kwargs
): 
9940         """__ne__(self, GBSpan other) -> bool""" 
9941         return _core_
.GBSpan___ne__(*args
, **kwargs
) 
9943     def Set(*args
, **kwargs
): 
9944         """Set(self, int rowspan=1, int colspan=1)""" 
9945         return _core_
.GBSpan_Set(*args
, **kwargs
) 
9947     def Get(*args
, **kwargs
): 
9948         """Get(self) -> PyObject""" 
9949         return _core_
.GBSpan_Get(*args
, **kwargs
) 
9951     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
9952     def __str__(self
):                   return str(self
.Get()) 
9953     def __repr__(self
):                  return 'wx.GBSpan'+str(self
.Get()) 
9954     def __len__(self
):                   return len(self
.Get()) 
9955     def __getitem__(self
, index
):        return self
.Get()[index
] 
9956     def __setitem__(self
, index
, val
): 
9957         if index 
== 0: self
.SetRowspan(val
) 
9958         elif index 
== 1: self
.SetColspan(val
) 
9959         else: raise IndexError 
9960     def __nonzero__(self
):               return self
.Get() != (0,0) 
9961     __safe_for_unpickling__ 
= True 
9962     def __reduce__(self
):                return (wx
.GBSpan
, self
.Get()) 
9964     rowspan 
= property(GetRowspan
, SetRowspan
) 
9965     colspan 
= property(GetColspan
, SetColspan
) 
9968 class GBSpanPtr(GBSpan
): 
9969     def __init__(self
, this
): 
9971         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
9972         self
.__class
__ = GBSpan
 
9973 _core_
.GBSpan_swigregister(GBSpanPtr
) 
9975 class GBSizerItem(SizerItem
): 
9977     The wx.GBSizerItem class is used to track the additional data about 
9978     items in a `wx.GridBagSizer` such as the item's position in the grid 
9979     and how many rows or columns it spans. 
9983         return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
9984     def __init__(self
, *args
, **kwargs
): 
9986         __init__(self) -> GBSizerItem 
9988         Constructs an empty wx.GBSizerItem.  Either a window, sizer or spacer 
9989         size will need to be set, as well as a position and span before this 
9990         item can be used in a Sizer. 
9992         You will probably never need to create a wx.GBSizerItem directly as they 
9993         are created automatically when the sizer's Add method is called. 
9995         newobj 
= _core_
.new_GBSizerItem(*args
, **kwargs
) 
9996         self
.this 
= newobj
.this
 
9999     def GetPos(*args
, **kwargs
): 
10001         GetPos(self) -> GBPosition 
10003         Get the grid position of the item 
10005         return _core_
.GBSizerItem_GetPos(*args
, **kwargs
) 
10007     def GetPosTuple(self
): return self
.GetPos().Get()  
10008     def GetSpan(*args
, **kwargs
): 
10010         GetSpan(self) -> GBSpan 
10012         Get the row and column spanning of the item 
10014         return _core_
.GBSizerItem_GetSpan(*args
, **kwargs
) 
10016     def GetSpanTuple(self
): return self
.GetSpan().Get()  
10017     def SetPos(*args
, **kwargs
): 
10019         SetPos(self, GBPosition pos) -> bool 
10021         If the item is already a member of a sizer then first ensure that 
10022         there is no other item that would intersect with this one at the new 
10023         position, then set the new position.  Returns True if the change is 
10024         successful and after the next Layout() the item will be moved. 
10026         return _core_
.GBSizerItem_SetPos(*args
, **kwargs
) 
10028     def SetSpan(*args
, **kwargs
): 
10030         SetSpan(self, GBSpan span) -> bool 
10032         If the item is already a member of a sizer then first ensure that 
10033         there is no other item that would intersect with this one with its new 
10034         spanning size, then set the new spanning.  Returns True if the change 
10035         is successful and after the next Layout() the item will be resized. 
10038         return _core_
.GBSizerItem_SetSpan(*args
, **kwargs
) 
10040     def Intersects(*args
, **kwargs
): 
10042         Intersects(self, GBSizerItem other) -> bool 
10044         Returns True if this item and the other item instersect. 
10046         return _core_
.GBSizerItem_Intersects(*args
, **kwargs
) 
10048     def IntersectsPos(*args
, **kwargs
): 
10050         IntersectsPos(self, GBPosition pos, GBSpan span) -> bool 
10052         Returns True if the given pos/span would intersect with this item. 
10054         return _core_
.GBSizerItem_IntersectsPos(*args
, **kwargs
) 
10056     def GetEndPos(*args
, **kwargs
): 
10058         GetEndPos(self) -> GBPosition 
10060         Get the row and column of the endpoint of this item. 
10062         return _core_
.GBSizerItem_GetEndPos(*args
, **kwargs
) 
10064     def GetGBSizer(*args
, **kwargs
): 
10066         GetGBSizer(self) -> GridBagSizer 
10068         Get the sizer this item is a member of. 
10070         return _core_
.GBSizerItem_GetGBSizer(*args
, **kwargs
) 
10072     def SetGBSizer(*args
, **kwargs
): 
10074         SetGBSizer(self, GridBagSizer sizer) 
10076         Set the sizer this item is a member of. 
10078         return _core_
.GBSizerItem_SetGBSizer(*args
, **kwargs
) 
10081 class GBSizerItemPtr(GBSizerItem
): 
10082     def __init__(self
, this
): 
10084         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
10085         self
.__class
__ = GBSizerItem
 
10086 _core_
.GBSizerItem_swigregister(GBSizerItemPtr
) 
10087 DefaultSpan 
= cvar
.DefaultSpan
 
10089 def GBSizerItemWindow(*args
, **kwargs
): 
10091     GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag,  
10092         int border, PyObject userData=None) -> GBSizerItem 
10094     Construct a `wx.GBSizerItem` for a window. 
10096     val 
= _core_
.new_GBSizerItemWindow(*args
, **kwargs
) 
10100 def GBSizerItemSizer(*args
, **kwargs
): 
10102     GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag,  
10103         int border, PyObject userData=None) -> GBSizerItem 
10105     Construct a `wx.GBSizerItem` for a sizer 
10107     val 
= _core_
.new_GBSizerItemSizer(*args
, **kwargs
) 
10111 def GBSizerItemSpacer(*args
, **kwargs
): 
10113     GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span,  
10114         int flag, int border, PyObject userData=None) -> GBSizerItem 
10116     Construct a `wx.GBSizerItem` for a spacer. 
10118     val 
= _core_
.new_GBSizerItemSpacer(*args
, **kwargs
) 
10122 class GridBagSizer(FlexGridSizer
): 
10124     A `wx.Sizer` that can lay out items in a virtual grid like a 
10125     `wx.FlexGridSizer` but in this case explicit positioning of the items 
10126     is allowed using `wx.GBPosition`, and items can optionally span more 
10127     than one row and/or column using `wx.GBSpan`.  The total size of the 
10128     virtual grid is determined by the largest row and column that items are 
10129     positioned at, adjusted for spanning. 
10132     def __repr__(self
): 
10133         return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
10134     def __init__(self
, *args
, **kwargs
): 
10136         __init__(self, int vgap=0, int hgap=0) -> GridBagSizer 
10138         Constructor, with optional parameters to specify the gap between the 
10141         newobj 
= _core_
.new_GridBagSizer(*args
, **kwargs
) 
10142         self
.this 
= newobj
.this
 
10145     def Add(*args
, **kwargs
): 
10147         Add(self, item, GBPosition pos, GBSpan span=DefaultSpan, int flag=0, 
10148         int border=0, userData=None) 
10150         Adds an item to the sizer at the grid cell *pos*, optionally spanning 
10151         more than one row or column as specified with *span*.  The remaining 
10152         args behave similarly to `wx.Sizer.Add`. 
10154         Returns True if the item was successfully placed at the given cell 
10155         position, False if something was already there. 
10158         return _core_
.GridBagSizer_Add(*args
, **kwargs
) 
10160     def AddItem(*args
, **kwargs
): 
10162         Add(self, GBSizerItem item) -> bool 
10164         Add an item to the sizer using a `wx.GBSizerItem`.  Returns True if 
10165         the item was successfully placed at its given cell position, False if 
10166         something was already there. 
10168         return _core_
.GridBagSizer_AddItem(*args
, **kwargs
) 
10170     def GetEmptyCellSize(*args
, **kwargs
): 
10172         GetEmptyCellSize(self) -> Size 
10174         Get the size used for cells in the grid with no item. 
10176         return _core_
.GridBagSizer_GetEmptyCellSize(*args
, **kwargs
) 
10178     def SetEmptyCellSize(*args
, **kwargs
): 
10180         SetEmptyCellSize(self, Size sz) 
10182         Set the size used for cells in the grid with no item. 
10184         return _core_
.GridBagSizer_SetEmptyCellSize(*args
, **kwargs
) 
10186     def GetItemPosition(*args
): 
10188         GetItemPosition(self, item) -> GBPosition 
10190         Get the grid position of the specified *item* where *item* is either a 
10191         window or subsizer that is a member of this sizer, or a zero-based 
10194         return _core_
.GridBagSizer_GetItemPosition(*args
) 
10196     def SetItemPosition(*args
): 
10198         SetItemPosition(self, item, GBPosition pos) -> bool 
10200         Set the grid position of the specified *item* where *item* is either a 
10201         window or subsizer that is a member of this sizer, or a zero-based 
10202         index of an item.  Returns True on success.  If the move is not 
10203         allowed (because an item is already there) then False is returned. 
10206         return _core_
.GridBagSizer_SetItemPosition(*args
) 
10208     def GetItemSpan(*args
): 
10210         GetItemSpan(self, item) -> GBSpan 
10212         Get the row/col spanning of the specified *item* where *item* is 
10213         either a window or subsizer that is a member of this sizer, or a 
10214         zero-based index of an item. 
10216         return _core_
.GridBagSizer_GetItemSpan(*args
) 
10218     def SetItemSpan(*args
): 
10220         SetItemSpan(self, item, GBSpan span) -> bool 
10222         Set the row/col spanning of the specified *item* where *item* is 
10223         either a window or subsizer that is a member of this sizer, or a 
10224         zero-based index of an item.  Returns True on success.  If the move is 
10225         not allowed (because an item is already there) then False is returned. 
10227         return _core_
.GridBagSizer_SetItemSpan(*args
) 
10229     def FindItem(*args
): 
10231         FindItem(self, item) -> GBSizerItem 
10233         Find the sizer item for the given window or subsizer, returns None if 
10234         not found. (non-recursive) 
10236         return _core_
.GridBagSizer_FindItem(*args
) 
10238     def FindItemAtPosition(*args
, **kwargs
): 
10240         FindItemAtPosition(self, GBPosition pos) -> GBSizerItem 
10242         Return the sizer item for the given grid cell, or None if there is no 
10243         item at that position. (non-recursive) 
10245         return _core_
.GridBagSizer_FindItemAtPosition(*args
, **kwargs
) 
10247     def FindItemAtPoint(*args
, **kwargs
): 
10249         FindItemAtPoint(self, Point pt) -> GBSizerItem 
10251         Return the sizer item located at the point given in *pt*, or None if 
10252         there is no item at that point. The (x,y) coordinates in pt correspond 
10253         to the client coordinates of the window using the sizer for 
10254         layout. (non-recursive) 
10256         return _core_
.GridBagSizer_FindItemAtPoint(*args
, **kwargs
) 
10258     def CheckForIntersection(*args
, **kwargs
): 
10260         CheckForIntersection(self, GBSizerItem item, GBSizerItem excludeItem=None) -> bool 
10262         Look at all items and see if any intersect (or would overlap) the 
10263         given *item*.  Returns True if so, False if there would be no overlap. 
10264         If an *excludeItem* is given then it will not be checked for 
10265         intersection, for example it may be the item we are checking the 
10269         return _core_
.GridBagSizer_CheckForIntersection(*args
, **kwargs
) 
10271     def CheckForIntersectionPos(*args
, **kwargs
): 
10273         CheckForIntersectionPos(self, GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool 
10275         Look at all items and see if any intersect (or would overlap) the 
10276         given position and span.  Returns True if so, False if there would be 
10277         no overlap.  If an *excludeItem* is given then it will not be checked 
10278         for intersection, for example it may be the item we are checking the 
10281         return _core_
.GridBagSizer_CheckForIntersectionPos(*args
, **kwargs
) 
10284 class GridBagSizerPtr(GridBagSizer
): 
10285     def __init__(self
, this
): 
10287         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
10288         self
.__class
__ = GridBagSizer
 
10289 _core_
.GridBagSizer_swigregister(GridBagSizerPtr
) 
10291 #--------------------------------------------------------------------------- 
10295 Right 
= _core_
.Right
 
10296 Bottom 
= _core_
.Bottom
 
10297 Width 
= _core_
.Width
 
10298 Height 
= _core_
.Height
 
10299 Centre 
= _core_
.Centre
 
10300 Center 
= _core_
.Center
 
10301 CentreX 
= _core_
.CentreX
 
10302 CentreY 
= _core_
.CentreY
 
10303 Unconstrained 
= _core_
.Unconstrained
 
10305 PercentOf 
= _core_
.PercentOf
 
10306 Above 
= _core_
.Above
 
10307 Below 
= _core_
.Below
 
10308 LeftOf 
= _core_
.LeftOf
 
10309 RightOf 
= _core_
.RightOf
 
10310 SameAs 
= _core_
.SameAs
 
10311 Absolute 
= _core_
.Absolute
 
10312 class IndividualLayoutConstraint(Object
): 
10314     Objects of this class are stored in the `wx.LayoutConstraints` class as 
10315     one of eight possible constraints that a window can be involved in. 
10316     You will never need to create an instance of 
10317     wx.IndividualLayoutConstraint, rather you should create a 
10318     `wx.LayoutConstraints` instance and use the individual contstraints 
10321     def __init__(self
): raise RuntimeError, "No constructor defined" 
10322     def __repr__(self
): 
10323         return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
10324     def Set(*args
, **kwargs
): 
10326         Set(self, int rel, Window otherW, int otherE, int val=0, int marg=wxLAYOUT_DEFAULT_MARGIN) 
10328         Sets the properties of the constraint. Normally called by one of the 
10329         convenience functions such as Above, RightOf, SameAs. 
10331         return _core_
.IndividualLayoutConstraint_Set(*args
, **kwargs
) 
10333     def LeftOf(*args
, **kwargs
): 
10335         LeftOf(self, Window sibling, int marg=0) 
10337         Constrains this edge to be to the left of the given window, with an 
10338         optional margin. Implicitly, this is relative to the left edge of the 
10341         return _core_
.IndividualLayoutConstraint_LeftOf(*args
, **kwargs
) 
10343     def RightOf(*args
, **kwargs
): 
10345         RightOf(self, Window sibling, int marg=0) 
10347         Constrains this edge to be to the right of the given window, with an 
10348         optional margin. Implicitly, this is relative to the right edge of the 
10351         return _core_
.IndividualLayoutConstraint_RightOf(*args
, **kwargs
) 
10353     def Above(*args
, **kwargs
): 
10355         Above(self, Window sibling, int marg=0) 
10357         Constrains this edge to be above the given window, with an optional 
10358         margin. Implicitly, this is relative to the top edge of the other 
10361         return _core_
.IndividualLayoutConstraint_Above(*args
, **kwargs
) 
10363     def Below(*args
, **kwargs
): 
10365         Below(self, Window sibling, int marg=0) 
10367         Constrains this edge to be below the given window, with an optional 
10368         margin. Implicitly, this is relative to the bottom edge of the other 
10371         return _core_
.IndividualLayoutConstraint_Below(*args
, **kwargs
) 
10373     def SameAs(*args
, **kwargs
): 
10375         SameAs(self, Window otherW, int edge, int marg=0) 
10377         Constrains this edge or dimension to be to the same as the edge of the 
10378         given window, with an optional margin. 
10380         return _core_
.IndividualLayoutConstraint_SameAs(*args
, **kwargs
) 
10382     def PercentOf(*args
, **kwargs
): 
10384         PercentOf(self, Window otherW, int wh, int per) 
10386         Constrains this edge or dimension to be to a percentage of the given 
10387         window, with an optional margin. 
10389         return _core_
.IndividualLayoutConstraint_PercentOf(*args
, **kwargs
) 
10391     def Absolute(*args
, **kwargs
): 
10393         Absolute(self, int val) 
10395         Constrains this edge or dimension to be the given absolute value. 
10397         return _core_
.IndividualLayoutConstraint_Absolute(*args
, **kwargs
) 
10399     def Unconstrained(*args
, **kwargs
): 
10401         Unconstrained(self) 
10403         Sets this edge or dimension to be unconstrained, that is, dependent on 
10404         other edges and dimensions from which this value can be deduced. 
10406         return _core_
.IndividualLayoutConstraint_Unconstrained(*args
, **kwargs
) 
10408     def AsIs(*args
, **kwargs
): 
10412         Sets this edge or constraint to be whatever the window's value is at 
10413         the moment. If either of the width and height constraints are *as is*, 
10414         the window will not be resized, but moved instead. This is important 
10415         when considering panel items which are intended to have a default 
10416         size, such as a button, which may take its size from the size of the 
10419         return _core_
.IndividualLayoutConstraint_AsIs(*args
, **kwargs
) 
10421     def GetOtherWindow(*args
, **kwargs
): 
10422         """GetOtherWindow(self) -> Window""" 
10423         return _core_
.IndividualLayoutConstraint_GetOtherWindow(*args
, **kwargs
) 
10425     def GetMyEdge(*args
, **kwargs
): 
10426         """GetMyEdge(self) -> int""" 
10427         return _core_
.IndividualLayoutConstraint_GetMyEdge(*args
, **kwargs
) 
10429     def SetEdge(*args
, **kwargs
): 
10430         """SetEdge(self, int which)""" 
10431         return _core_
.IndividualLayoutConstraint_SetEdge(*args
, **kwargs
) 
10433     def SetValue(*args
, **kwargs
): 
10434         """SetValue(self, int v)""" 
10435         return _core_
.IndividualLayoutConstraint_SetValue(*args
, **kwargs
) 
10437     def GetMargin(*args
, **kwargs
): 
10438         """GetMargin(self) -> int""" 
10439         return _core_
.IndividualLayoutConstraint_GetMargin(*args
, **kwargs
) 
10441     def SetMargin(*args
, **kwargs
): 
10442         """SetMargin(self, int m)""" 
10443         return _core_
.IndividualLayoutConstraint_SetMargin(*args
, **kwargs
) 
10445     def GetValue(*args
, **kwargs
): 
10446         """GetValue(self) -> int""" 
10447         return _core_
.IndividualLayoutConstraint_GetValue(*args
, **kwargs
) 
10449     def GetPercent(*args
, **kwargs
): 
10450         """GetPercent(self) -> int""" 
10451         return _core_
.IndividualLayoutConstraint_GetPercent(*args
, **kwargs
) 
10453     def GetOtherEdge(*args
, **kwargs
): 
10454         """GetOtherEdge(self) -> int""" 
10455         return _core_
.IndividualLayoutConstraint_GetOtherEdge(*args
, **kwargs
) 
10457     def GetDone(*args
, **kwargs
): 
10458         """GetDone(self) -> bool""" 
10459         return _core_
.IndividualLayoutConstraint_GetDone(*args
, **kwargs
) 
10461     def SetDone(*args
, **kwargs
): 
10462         """SetDone(self, bool d)""" 
10463         return _core_
.IndividualLayoutConstraint_SetDone(*args
, **kwargs
) 
10465     def GetRelationship(*args
, **kwargs
): 
10466         """GetRelationship(self) -> int""" 
10467         return _core_
.IndividualLayoutConstraint_GetRelationship(*args
, **kwargs
) 
10469     def SetRelationship(*args
, **kwargs
): 
10470         """SetRelationship(self, int r)""" 
10471         return _core_
.IndividualLayoutConstraint_SetRelationship(*args
, **kwargs
) 
10473     def ResetIfWin(*args
, **kwargs
): 
10475         ResetIfWin(self, Window otherW) -> bool 
10477         Reset constraint if it mentions otherWin 
10479         return _core_
.IndividualLayoutConstraint_ResetIfWin(*args
, **kwargs
) 
10481     def SatisfyConstraint(*args
, **kwargs
): 
10483         SatisfyConstraint(self, LayoutConstraints constraints, Window win) -> bool 
10485         Try to satisfy constraint 
10487         return _core_
.IndividualLayoutConstraint_SatisfyConstraint(*args
, **kwargs
) 
10489     def GetEdge(*args
, **kwargs
): 
10491         GetEdge(self, int which, Window thisWin, Window other) -> int 
10493         Get the value of this edge or dimension, or if this 
10494         is not determinable, -1. 
10496         return _core_
.IndividualLayoutConstraint_GetEdge(*args
, **kwargs
) 
10499 class IndividualLayoutConstraintPtr(IndividualLayoutConstraint
): 
10500     def __init__(self
, this
): 
10502         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
10503         self
.__class
__ = IndividualLayoutConstraint
 
10504 _core_
.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr
) 
10506 class LayoutConstraints(Object
): 
10508     **Note:** constraints are now deprecated and you should use sizers 
10511     Objects of this class can be associated with a window to define its 
10512     layout constraints, with respect to siblings or its parent. 
10514     The class consists of the following eight constraints of class 
10515     wx.IndividualLayoutConstraint, some or all of which should be accessed 
10516     directly to set the appropriate constraints. 
10518         * left: represents the left hand edge of the window 
10519         * right: represents the right hand edge of the window 
10520         * top: represents the top edge of the window 
10521         * bottom: represents the bottom edge of the window 
10522         * width: represents the width of the window 
10523         * height: represents the height of the window 
10524         * centreX: represents the horizontal centre point of the window 
10525         * centreY: represents the vertical centre point of the window  
10527     Most constraints are initially set to have the relationship 
10528     wxUnconstrained, which means that their values should be calculated by 
10529     looking at known constraints. The exceptions are width and height, 
10530     which are set to wxAsIs to ensure that if the user does not specify a 
10531     constraint, the existing width and height will be used, to be 
10532     compatible with panel items which often have take a default size. If 
10533     the constraint is ``wx.AsIs``, the dimension will not be changed. 
10535     :see: `wx.IndividualLayoutConstraint`, `wx.Window.SetConstraints` 
10538     def __repr__(self
): 
10539         return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
10540     left 
= property(_core_
.LayoutConstraints_left_get
) 
10541     top 
= property(_core_
.LayoutConstraints_top_get
) 
10542     right 
= property(_core_
.LayoutConstraints_right_get
) 
10543     bottom 
= property(_core_
.LayoutConstraints_bottom_get
) 
10544     width 
= property(_core_
.LayoutConstraints_width_get
) 
10545     height 
= property(_core_
.LayoutConstraints_height_get
) 
10546     centreX 
= property(_core_
.LayoutConstraints_centreX_get
) 
10547     centreY 
= property(_core_
.LayoutConstraints_centreY_get
) 
10548     def __init__(self
, *args
, **kwargs
): 
10549         """__init__(self) -> LayoutConstraints""" 
10550         newobj 
= _core_
.new_LayoutConstraints(*args
, **kwargs
) 
10551         self
.this 
= newobj
.this
 
10554     def SatisfyConstraints(*args
, **kwargs
): 
10555         """SatisfyConstraints(Window win) -> (areSatisfied, noChanges)""" 
10556         return _core_
.LayoutConstraints_SatisfyConstraints(*args
, **kwargs
) 
10558     def AreSatisfied(*args
, **kwargs
): 
10559         """AreSatisfied(self) -> bool""" 
10560         return _core_
.LayoutConstraints_AreSatisfied(*args
, **kwargs
) 
10563 class LayoutConstraintsPtr(LayoutConstraints
): 
10564     def __init__(self
, this
): 
10566         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
10567         self
.__class
__ = LayoutConstraints
 
10568 _core_
.LayoutConstraints_swigregister(LayoutConstraintsPtr
) 
10570 #---------------------------------------------------------------------------- 
10572 # Use Python's bool constants if available, make some if not 
10576     __builtins__
.True = 1==1 
10577     __builtins__
.False = 1==0 
10578     def bool(value
): return not not value
 
10579     __builtins__
.bool = bool 
10583 # workarounds for bad wxRTTI names 
10584 __wxPyPtrTypeMap
['wxGauge95']    = 'wxGauge' 
10585 __wxPyPtrTypeMap
['wxSlider95']   = 'wxSlider' 
10586 __wxPyPtrTypeMap
['wxStatusBar95']   = 'wxStatusBar' 
10589 #---------------------------------------------------------------------------- 
10590 # Load version numbers from __version__...  Ensure that major and minor 
10591 # versions are the same for both wxPython and wxWidgets. 
10593 from __version__ 
import * 
10594 __version__ 
= VERSION_STRING
 
10596 assert MAJOR_VERSION 
== _core_
.MAJOR_VERSION
, "wxPython/wxWidgets version mismatch" 
10597 assert MINOR_VERSION 
== _core_
.MINOR_VERSION
, "wxPython/wxWidgets version mismatch" 
10598 if RELEASE_VERSION 
!= _core_
.RELEASE_VERSION
: 
10600     warnings
.warn("wxPython/wxWidgets release number mismatch") 
10602 #---------------------------------------------------------------------------- 
10604 class PyDeadObjectError(AttributeError): 
10607 class _wxPyDeadObject(object): 
10609     Instances of wx objects that are OOR capable will have their __class__ 
10610     changed to this class when the C++ object is deleted.  This should help 
10611     prevent crashes due to referencing a bogus C++ pointer. 
10613     reprStr 
= "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)" 
10614     attrStr 
= "The C++ part of the %s object has been deleted, attribute access no longer allowed." 
10616     def __repr__(self
): 
10617         if not hasattr(self
, "_name"): 
10618             self
._name 
= "[unknown]" 
10619         return self
.reprStr 
% self
._name
 
10621     def __getattr__(self
, *args
): 
10622         if not hasattr(self
, "_name"): 
10623             self
._name 
= "[unknown]" 
10624         raise PyDeadObjectError(self
.attrStr 
% self
._name
) 
10626     def __nonzero__(self
): 
10631 class PyUnbornObjectError(AttributeError): 
10634 class _wxPyUnbornObject(object): 
10636     Some stock objects are created when the wx._core module is 
10637     imported, but their C++ instance is not created until the wx.App 
10638     object is created and initialized.  These object instances will 
10639     temporarily have their __class__ changed to this class so an 
10640     exception will be raised if they are used before the C++ instance 
10644     reprStr 
= "wxPython wrapper for UNBORN object! (The C++ object is not initialized yet.)" 
10645     attrStr 
= "The C++ part of this object has not been initialized, attribute access not allowed." 
10647     def __repr__(self
): 
10648         #if not hasattr(self, "_name"): 
10649         #    self._name = "[unknown]" 
10650         return self
.reprStr 
#% self._name 
10652     def __getattr__(self
, *args
): 
10653         #if not hasattr(self, "_name"): 
10654         #    self._name = "[unknown]" 
10655         raise PyUnbornObjectError(self
.attrStr
) # % self._name ) 
10657     def __nonzero__(self
): 
10661 #---------------------------------------------------------------------------- 
10662 _wxPyCallAfterId 
= None 
10664 def CallAfter(callable, *args
, **kw
): 
10666     Call the specified function after the current and pending event 
10667     handlers have been completed.  This is also good for making GUI 
10668     method calls from non-GUI threads.  Any extra positional or 
10669     keyword args are passed on to the callable when it is called. 
10671     :see: `wx.FutureCall` 
10674     assert app 
is not None, 'No wx.App created yet' 
10676     global _wxPyCallAfterId
 
10677     if _wxPyCallAfterId 
is None: 
10678         _wxPyCallAfterId 
= wx
.NewEventType() 
10679         app
.Connect(-1, -1, _wxPyCallAfterId
, 
10680               lambda event
: event
.callable(*event
.args
, **event
.kw
) ) 
10682     evt
.SetEventType(_wxPyCallAfterId
) 
10683     evt
.callable = callable 
10686     wx
.PostEvent(app
, evt
) 
10689 #---------------------------------------------------------------------------- 
10694     A convenience class for wx.Timer, that calls the given callable 
10695     object once after the given amount of milliseconds, passing any 
10696     positional or keyword args.  The return value of the callable is 
10697     availbale after it has been run with the `GetResult` method. 
10699     If you don't need to get the return value or restart the timer 
10700     then there is no need to hold a reference to this object.  It will 
10701     hold a reference to itself while the timer is running (the timer 
10702     has a reference to self.Notify) but the cycle will be broken when 
10703     the timer completes, automatically cleaning up the wx.FutureCall 
10706     :see: `wx.CallAfter` 
10708     def __init__(self
, millis
, callable, *args
, **kwargs
): 
10709         self
.millis 
= millis
 
10710         self
.callable = callable 
10711         self
.SetArgs(*args
, **kwargs
) 
10713         self
.running 
= False 
10714         self
.hasRun 
= False 
10723     def Start(self
, millis
=None, *args
, **kwargs
): 
10725         (Re)start the timer 
10727         self
.hasRun 
= False 
10728         if millis 
is not None: 
10729             self
.millis 
= millis
 
10731             self
.SetArgs(*args
, **kwargs
) 
10733         self
.timer 
= wx
.PyTimer(self
.Notify
) 
10734         self
.timer
.Start(self
.millis
, wx
.TIMER_ONE_SHOT
) 
10735         self
.running 
= True 
10741         Stop and destroy the timer. 
10743         if self
.timer 
is not None: 
10748     def GetInterval(self
): 
10749         if self
.timer 
is not None: 
10750             return self
.timer
.GetInterval() 
10755     def IsRunning(self
): 
10756         return self
.timer 
is not None and self
.timer
.IsRunning() 
10759     def SetArgs(self
, *args
, **kwargs
): 
10761         (Re)set the args passed to the callable object.  This is 
10762         useful in conjunction with Restart if you want to schedule a 
10763         new call to the same callable object but with different 
10767         self
.kwargs 
= kwargs
 
10773     def GetResult(self
): 
10778         The timer has expired so call the callable. 
10780         if self
.callable and getattr(self
.callable, 'im_self', True): 
10782             self
.running 
= False 
10783             self
.result 
= self
.callable(*self
.args
, **self
.kwargs
) 
10785         if not self
.running
: 
10786             # if it wasn't restarted, then cleanup 
10787             wx
.CallAfter(self
.Stop
) 
10791 #---------------------------------------------------------------------------- 
10792 # Control which items in this module should be documented by epydoc. 
10793 # We allow only classes and functions, which will help reduce the size 
10794 # of the docs by filtering out the zillions of constants, EVT objects, 
10795 # and etc that don't make much sense by themselves, but are instead 
10796 # documented (or will be) as part of the classes/functions/methods 
10797 # where they should be used. 
10801     A filter for epydoc that only allows non-Ptr classes and 
10802     fucntions, in order to reduce the clutter in the API docs. 
10804     def __init__(self
, globals): 
10805         self
._globals 
= globals 
10807     def __call__(self
, name
): 
10809         obj 
= self
._globals
.get(name
, None) 
10810         if type(obj
) not in [type, types
.ClassType
, types
.FunctionType
, types
.BuiltinFunctionType
]: 
10812         if name
.startswith('_') or name
.endswith('Ptr') or name
.startswith('EVT'): 
10816 #---------------------------------------------------------------------------- 
10817 #---------------------------------------------------------------------------- 
10819 # Import other modules in this package that should show up in the 
10820 # "core" wx namespace 
10822 from _windows 
import * 
10823 from _controls 
import * 
10824 from _misc 
import * 
10827 # Fixup the stock objects since they can't be used yet.  (They will be 
10828 # restored in wx.PyApp.OnInit.) 
10829 _core_
._wxPyFixStockObjects
() 
10831 #---------------------------------------------------------------------------- 
10832 #----------------------------------------------------------------------------