| 1 | # This file was created automatically by SWIG. |
| 2 | # Don't modify this file, modify the SWIG interface instead. |
| 3 | |
| 4 | import _core |
| 5 | |
| 6 | #// Give a reference to the dictionary of this module to the C++ extension |
| 7 | #// code. |
| 8 | _core._wxPySetDictionary(vars()) |
| 9 | |
| 10 | #// A little trick to make 'wx' be a reference to this module so wx.Names can |
| 11 | #// be used here. |
| 12 | import sys as _sys |
| 13 | wx = _sys.modules[__name__] |
| 14 | |
| 15 | NOT_FOUND = _core.NOT_FOUND |
| 16 | VSCROLL = _core.VSCROLL |
| 17 | HSCROLL = _core.HSCROLL |
| 18 | CAPTION = _core.CAPTION |
| 19 | DOUBLE_BORDER = _core.DOUBLE_BORDER |
| 20 | SUNKEN_BORDER = _core.SUNKEN_BORDER |
| 21 | RAISED_BORDER = _core.RAISED_BORDER |
| 22 | BORDER = _core.BORDER |
| 23 | SIMPLE_BORDER = _core.SIMPLE_BORDER |
| 24 | STATIC_BORDER = _core.STATIC_BORDER |
| 25 | TRANSPARENT_WINDOW = _core.TRANSPARENT_WINDOW |
| 26 | NO_BORDER = _core.NO_BORDER |
| 27 | USER_COLOURS = _core.USER_COLOURS |
| 28 | NO_3D = _core.NO_3D |
| 29 | TAB_TRAVERSAL = _core.TAB_TRAVERSAL |
| 30 | WANTS_CHARS = _core.WANTS_CHARS |
| 31 | POPUP_WINDOW = _core.POPUP_WINDOW |
| 32 | CENTER_FRAME = _core.CENTER_FRAME |
| 33 | CENTRE_ON_SCREEN = _core.CENTRE_ON_SCREEN |
| 34 | CENTER_ON_SCREEN = _core.CENTER_ON_SCREEN |
| 35 | STAY_ON_TOP = _core.STAY_ON_TOP |
| 36 | ICONIZE = _core.ICONIZE |
| 37 | MINIMIZE = _core.MINIMIZE |
| 38 | MAXIMIZE = _core.MAXIMIZE |
| 39 | CLOSE_BOX = _core.CLOSE_BOX |
| 40 | THICK_FRAME = _core.THICK_FRAME |
| 41 | SYSTEM_MENU = _core.SYSTEM_MENU |
| 42 | MINIMIZE_BOX = _core.MINIMIZE_BOX |
| 43 | MAXIMIZE_BOX = _core.MAXIMIZE_BOX |
| 44 | TINY_CAPTION_HORIZ = _core.TINY_CAPTION_HORIZ |
| 45 | TINY_CAPTION_VERT = _core.TINY_CAPTION_VERT |
| 46 | RESIZE_BOX = _core.RESIZE_BOX |
| 47 | RESIZE_BORDER = _core.RESIZE_BORDER |
| 48 | DIALOG_MODAL = _core.DIALOG_MODAL |
| 49 | DIALOG_MODELESS = _core.DIALOG_MODELESS |
| 50 | DIALOG_NO_PARENT = _core.DIALOG_NO_PARENT |
| 51 | DEFAULT_FRAME_STYLE = _core.DEFAULT_FRAME_STYLE |
| 52 | DEFAULT_DIALOG_STYLE = _core.DEFAULT_DIALOG_STYLE |
| 53 | FRAME_TOOL_WINDOW = _core.FRAME_TOOL_WINDOW |
| 54 | FRAME_FLOAT_ON_PARENT = _core.FRAME_FLOAT_ON_PARENT |
| 55 | FRAME_NO_WINDOW_MENU = _core.FRAME_NO_WINDOW_MENU |
| 56 | FRAME_NO_TASKBAR = _core.FRAME_NO_TASKBAR |
| 57 | FRAME_SHAPED = _core.FRAME_SHAPED |
| 58 | ED_CLIENT_MARGIN = _core.ED_CLIENT_MARGIN |
| 59 | ED_BUTTONS_BOTTOM = _core.ED_BUTTONS_BOTTOM |
| 60 | ED_BUTTONS_RIGHT = _core.ED_BUTTONS_RIGHT |
| 61 | ED_STATIC_LINE = _core.ED_STATIC_LINE |
| 62 | EXT_DIALOG_STYLE = _core.EXT_DIALOG_STYLE |
| 63 | CLIP_CHILDREN = _core.CLIP_CHILDREN |
| 64 | CLIP_SIBLINGS = _core.CLIP_SIBLINGS |
| 65 | RETAINED = _core.RETAINED |
| 66 | BACKINGSTORE = _core.BACKINGSTORE |
| 67 | COLOURED = _core.COLOURED |
| 68 | FIXED_LENGTH = _core.FIXED_LENGTH |
| 69 | LB_NEEDED_SB = _core.LB_NEEDED_SB |
| 70 | LB_ALWAYS_SB = _core.LB_ALWAYS_SB |
| 71 | LB_SORT = _core.LB_SORT |
| 72 | LB_SINGLE = _core.LB_SINGLE |
| 73 | LB_MULTIPLE = _core.LB_MULTIPLE |
| 74 | LB_EXTENDED = _core.LB_EXTENDED |
| 75 | LB_OWNERDRAW = _core.LB_OWNERDRAW |
| 76 | LB_HSCROLL = _core.LB_HSCROLL |
| 77 | PROCESS_ENTER = _core.PROCESS_ENTER |
| 78 | PASSWORD = _core.PASSWORD |
| 79 | CB_SIMPLE = _core.CB_SIMPLE |
| 80 | CB_DROPDOWN = _core.CB_DROPDOWN |
| 81 | CB_SORT = _core.CB_SORT |
| 82 | CB_READONLY = _core.CB_READONLY |
| 83 | RA_HORIZONTAL = _core.RA_HORIZONTAL |
| 84 | RA_VERTICAL = _core.RA_VERTICAL |
| 85 | RA_SPECIFY_ROWS = _core.RA_SPECIFY_ROWS |
| 86 | RA_SPECIFY_COLS = _core.RA_SPECIFY_COLS |
| 87 | RB_GROUP = _core.RB_GROUP |
| 88 | RB_SINGLE = _core.RB_SINGLE |
| 89 | SL_HORIZONTAL = _core.SL_HORIZONTAL |
| 90 | SL_VERTICAL = _core.SL_VERTICAL |
| 91 | SL_AUTOTICKS = _core.SL_AUTOTICKS |
| 92 | SL_LABELS = _core.SL_LABELS |
| 93 | SL_LEFT = _core.SL_LEFT |
| 94 | SL_TOP = _core.SL_TOP |
| 95 | SL_RIGHT = _core.SL_RIGHT |
| 96 | SL_BOTTOM = _core.SL_BOTTOM |
| 97 | SL_BOTH = _core.SL_BOTH |
| 98 | SL_SELRANGE = _core.SL_SELRANGE |
| 99 | SB_HORIZONTAL = _core.SB_HORIZONTAL |
| 100 | SB_VERTICAL = _core.SB_VERTICAL |
| 101 | ST_SIZEGRIP = _core.ST_SIZEGRIP |
| 102 | ST_NO_AUTORESIZE = _core.ST_NO_AUTORESIZE |
| 103 | FLOOD_SURFACE = _core.FLOOD_SURFACE |
| 104 | FLOOD_BORDER = _core.FLOOD_BORDER |
| 105 | ODDEVEN_RULE = _core.ODDEVEN_RULE |
| 106 | WINDING_RULE = _core.WINDING_RULE |
| 107 | TOOL_TOP = _core.TOOL_TOP |
| 108 | TOOL_BOTTOM = _core.TOOL_BOTTOM |
| 109 | TOOL_LEFT = _core.TOOL_LEFT |
| 110 | TOOL_RIGHT = _core.TOOL_RIGHT |
| 111 | OK = _core.OK |
| 112 | YES_NO = _core.YES_NO |
| 113 | CANCEL = _core.CANCEL |
| 114 | YES = _core.YES |
| 115 | NO = _core.NO |
| 116 | NO_DEFAULT = _core.NO_DEFAULT |
| 117 | YES_DEFAULT = _core.YES_DEFAULT |
| 118 | ICON_EXCLAMATION = _core.ICON_EXCLAMATION |
| 119 | ICON_HAND = _core.ICON_HAND |
| 120 | ICON_QUESTION = _core.ICON_QUESTION |
| 121 | ICON_INFORMATION = _core.ICON_INFORMATION |
| 122 | ICON_STOP = _core.ICON_STOP |
| 123 | ICON_ASTERISK = _core.ICON_ASTERISK |
| 124 | ICON_MASK = _core.ICON_MASK |
| 125 | ICON_WARNING = _core.ICON_WARNING |
| 126 | ICON_ERROR = _core.ICON_ERROR |
| 127 | FORWARD = _core.FORWARD |
| 128 | BACKWARD = _core.BACKWARD |
| 129 | RESET = _core.RESET |
| 130 | HELP = _core.HELP |
| 131 | MORE = _core.MORE |
| 132 | SETUP = _core.SETUP |
| 133 | SIZE_AUTO_WIDTH = _core.SIZE_AUTO_WIDTH |
| 134 | SIZE_AUTO_HEIGHT = _core.SIZE_AUTO_HEIGHT |
| 135 | SIZE_AUTO = _core.SIZE_AUTO |
| 136 | SIZE_USE_EXISTING = _core.SIZE_USE_EXISTING |
| 137 | SIZE_ALLOW_MINUS_ONE = _core.SIZE_ALLOW_MINUS_ONE |
| 138 | PORTRAIT = _core.PORTRAIT |
| 139 | LANDSCAPE = _core.LANDSCAPE |
| 140 | PRINT_QUALITY_HIGH = _core.PRINT_QUALITY_HIGH |
| 141 | PRINT_QUALITY_MEDIUM = _core.PRINT_QUALITY_MEDIUM |
| 142 | PRINT_QUALITY_LOW = _core.PRINT_QUALITY_LOW |
| 143 | PRINT_QUALITY_DRAFT = _core.PRINT_QUALITY_DRAFT |
| 144 | ID_ANY = _core.ID_ANY |
| 145 | ID_SEPARATOR = _core.ID_SEPARATOR |
| 146 | ID_LOWEST = _core.ID_LOWEST |
| 147 | ID_OPEN = _core.ID_OPEN |
| 148 | ID_CLOSE = _core.ID_CLOSE |
| 149 | ID_NEW = _core.ID_NEW |
| 150 | ID_SAVE = _core.ID_SAVE |
| 151 | ID_SAVEAS = _core.ID_SAVEAS |
| 152 | ID_REVERT = _core.ID_REVERT |
| 153 | ID_EXIT = _core.ID_EXIT |
| 154 | ID_UNDO = _core.ID_UNDO |
| 155 | ID_REDO = _core.ID_REDO |
| 156 | ID_HELP = _core.ID_HELP |
| 157 | ID_PRINT = _core.ID_PRINT |
| 158 | ID_PRINT_SETUP = _core.ID_PRINT_SETUP |
| 159 | ID_PREVIEW = _core.ID_PREVIEW |
| 160 | ID_ABOUT = _core.ID_ABOUT |
| 161 | ID_HELP_CONTENTS = _core.ID_HELP_CONTENTS |
| 162 | ID_HELP_COMMANDS = _core.ID_HELP_COMMANDS |
| 163 | ID_HELP_PROCEDURES = _core.ID_HELP_PROCEDURES |
| 164 | ID_HELP_CONTEXT = _core.ID_HELP_CONTEXT |
| 165 | ID_CLOSE_ALL = _core.ID_CLOSE_ALL |
| 166 | ID_PREFERENCES = _core.ID_PREFERENCES |
| 167 | ID_CUT = _core.ID_CUT |
| 168 | ID_COPY = _core.ID_COPY |
| 169 | ID_PASTE = _core.ID_PASTE |
| 170 | ID_CLEAR = _core.ID_CLEAR |
| 171 | ID_FIND = _core.ID_FIND |
| 172 | ID_DUPLICATE = _core.ID_DUPLICATE |
| 173 | ID_SELECTALL = _core.ID_SELECTALL |
| 174 | ID_DELETE = _core.ID_DELETE |
| 175 | ID_REPLACE = _core.ID_REPLACE |
| 176 | ID_REPLACE_ALL = _core.ID_REPLACE_ALL |
| 177 | ID_PROPERTIES = _core.ID_PROPERTIES |
| 178 | ID_VIEW_DETAILS = _core.ID_VIEW_DETAILS |
| 179 | ID_VIEW_LARGEICONS = _core.ID_VIEW_LARGEICONS |
| 180 | ID_VIEW_SMALLICONS = _core.ID_VIEW_SMALLICONS |
| 181 | ID_VIEW_LIST = _core.ID_VIEW_LIST |
| 182 | ID_VIEW_SORTDATE = _core.ID_VIEW_SORTDATE |
| 183 | ID_VIEW_SORTNAME = _core.ID_VIEW_SORTNAME |
| 184 | ID_VIEW_SORTSIZE = _core.ID_VIEW_SORTSIZE |
| 185 | ID_VIEW_SORTTYPE = _core.ID_VIEW_SORTTYPE |
| 186 | ID_FILE1 = _core.ID_FILE1 |
| 187 | ID_FILE2 = _core.ID_FILE2 |
| 188 | ID_FILE3 = _core.ID_FILE3 |
| 189 | ID_FILE4 = _core.ID_FILE4 |
| 190 | ID_FILE5 = _core.ID_FILE5 |
| 191 | ID_FILE6 = _core.ID_FILE6 |
| 192 | ID_FILE7 = _core.ID_FILE7 |
| 193 | ID_FILE8 = _core.ID_FILE8 |
| 194 | ID_FILE9 = _core.ID_FILE9 |
| 195 | ID_OK = _core.ID_OK |
| 196 | ID_CANCEL = _core.ID_CANCEL |
| 197 | ID_APPLY = _core.ID_APPLY |
| 198 | ID_YES = _core.ID_YES |
| 199 | ID_NO = _core.ID_NO |
| 200 | ID_STATIC = _core.ID_STATIC |
| 201 | ID_FORWARD = _core.ID_FORWARD |
| 202 | ID_BACKWARD = _core.ID_BACKWARD |
| 203 | ID_DEFAULT = _core.ID_DEFAULT |
| 204 | ID_MORE = _core.ID_MORE |
| 205 | ID_SETUP = _core.ID_SETUP |
| 206 | ID_RESET = _core.ID_RESET |
| 207 | ID_CONTEXT_HELP = _core.ID_CONTEXT_HELP |
| 208 | ID_YESTOALL = _core.ID_YESTOALL |
| 209 | ID_NOTOALL = _core.ID_NOTOALL |
| 210 | ID_ABORT = _core.ID_ABORT |
| 211 | ID_RETRY = _core.ID_RETRY |
| 212 | ID_IGNORE = _core.ID_IGNORE |
| 213 | ID_HIGHEST = _core.ID_HIGHEST |
| 214 | OPEN = _core.OPEN |
| 215 | SAVE = _core.SAVE |
| 216 | HIDE_READONLY = _core.HIDE_READONLY |
| 217 | OVERWRITE_PROMPT = _core.OVERWRITE_PROMPT |
| 218 | FILE_MUST_EXIST = _core.FILE_MUST_EXIST |
| 219 | MULTIPLE = _core.MULTIPLE |
| 220 | CHANGE_DIR = _core.CHANGE_DIR |
| 221 | ACCEL_ALT = _core.ACCEL_ALT |
| 222 | ACCEL_CTRL = _core.ACCEL_CTRL |
| 223 | ACCEL_SHIFT = _core.ACCEL_SHIFT |
| 224 | ACCEL_NORMAL = _core.ACCEL_NORMAL |
| 225 | PD_AUTO_HIDE = _core.PD_AUTO_HIDE |
| 226 | PD_APP_MODAL = _core.PD_APP_MODAL |
| 227 | PD_CAN_ABORT = _core.PD_CAN_ABORT |
| 228 | PD_ELAPSED_TIME = _core.PD_ELAPSED_TIME |
| 229 | PD_ESTIMATED_TIME = _core.PD_ESTIMATED_TIME |
| 230 | PD_REMAINING_TIME = _core.PD_REMAINING_TIME |
| 231 | DD_NEW_DIR_BUTTON = _core.DD_NEW_DIR_BUTTON |
| 232 | DD_DEFAULT_STYLE = _core.DD_DEFAULT_STYLE |
| 233 | MENU_TEAROFF = _core.MENU_TEAROFF |
| 234 | MB_DOCKABLE = _core.MB_DOCKABLE |
| 235 | NO_FULL_REPAINT_ON_RESIZE = _core.NO_FULL_REPAINT_ON_RESIZE |
| 236 | LI_HORIZONTAL = _core.LI_HORIZONTAL |
| 237 | LI_VERTICAL = _core.LI_VERTICAL |
| 238 | WS_EX_VALIDATE_RECURSIVELY = _core.WS_EX_VALIDATE_RECURSIVELY |
| 239 | WS_EX_BLOCK_EVENTS = _core.WS_EX_BLOCK_EVENTS |
| 240 | WS_EX_TRANSIENT = _core.WS_EX_TRANSIENT |
| 241 | WS_EX_THEMED_BACKGROUND = _core.WS_EX_THEMED_BACKGROUND |
| 242 | WS_EX_PROCESS_IDLE = _core.WS_EX_PROCESS_IDLE |
| 243 | WS_EX_PROCESS_UI_UPDATES = _core.WS_EX_PROCESS_UI_UPDATES |
| 244 | MM_TEXT = _core.MM_TEXT |
| 245 | MM_LOMETRIC = _core.MM_LOMETRIC |
| 246 | MM_HIMETRIC = _core.MM_HIMETRIC |
| 247 | MM_LOENGLISH = _core.MM_LOENGLISH |
| 248 | MM_HIENGLISH = _core.MM_HIENGLISH |
| 249 | MM_TWIPS = _core.MM_TWIPS |
| 250 | MM_ISOTROPIC = _core.MM_ISOTROPIC |
| 251 | MM_ANISOTROPIC = _core.MM_ANISOTROPIC |
| 252 | MM_POINTS = _core.MM_POINTS |
| 253 | MM_METRIC = _core.MM_METRIC |
| 254 | CENTRE = _core.CENTRE |
| 255 | CENTER = _core.CENTER |
| 256 | HORIZONTAL = _core.HORIZONTAL |
| 257 | VERTICAL = _core.VERTICAL |
| 258 | BOTH = _core.BOTH |
| 259 | LEFT = _core.LEFT |
| 260 | RIGHT = _core.RIGHT |
| 261 | UP = _core.UP |
| 262 | DOWN = _core.DOWN |
| 263 | TOP = _core.TOP |
| 264 | BOTTOM = _core.BOTTOM |
| 265 | NORTH = _core.NORTH |
| 266 | SOUTH = _core.SOUTH |
| 267 | WEST = _core.WEST |
| 268 | EAST = _core.EAST |
| 269 | ALL = _core.ALL |
| 270 | ALIGN_NOT = _core.ALIGN_NOT |
| 271 | ALIGN_CENTER_HORIZONTAL = _core.ALIGN_CENTER_HORIZONTAL |
| 272 | ALIGN_CENTRE_HORIZONTAL = _core.ALIGN_CENTRE_HORIZONTAL |
| 273 | ALIGN_LEFT = _core.ALIGN_LEFT |
| 274 | ALIGN_TOP = _core.ALIGN_TOP |
| 275 | ALIGN_RIGHT = _core.ALIGN_RIGHT |
| 276 | ALIGN_BOTTOM = _core.ALIGN_BOTTOM |
| 277 | ALIGN_CENTER_VERTICAL = _core.ALIGN_CENTER_VERTICAL |
| 278 | ALIGN_CENTRE_VERTICAL = _core.ALIGN_CENTRE_VERTICAL |
| 279 | ALIGN_CENTER = _core.ALIGN_CENTER |
| 280 | ALIGN_CENTRE = _core.ALIGN_CENTRE |
| 281 | ALIGN_MASK = _core.ALIGN_MASK |
| 282 | STRETCH_NOT = _core.STRETCH_NOT |
| 283 | SHRINK = _core.SHRINK |
| 284 | GROW = _core.GROW |
| 285 | EXPAND = _core.EXPAND |
| 286 | SHAPED = _core.SHAPED |
| 287 | ADJUST_MINSIZE = _core.ADJUST_MINSIZE |
| 288 | TILE = _core.TILE |
| 289 | BORDER_DEFAULT = _core.BORDER_DEFAULT |
| 290 | BORDER_NONE = _core.BORDER_NONE |
| 291 | BORDER_STATIC = _core.BORDER_STATIC |
| 292 | BORDER_SIMPLE = _core.BORDER_SIMPLE |
| 293 | BORDER_RAISED = _core.BORDER_RAISED |
| 294 | BORDER_SUNKEN = _core.BORDER_SUNKEN |
| 295 | BORDER_DOUBLE = _core.BORDER_DOUBLE |
| 296 | BORDER_MASK = _core.BORDER_MASK |
| 297 | DEFAULT = _core.DEFAULT |
| 298 | DECORATIVE = _core.DECORATIVE |
| 299 | ROMAN = _core.ROMAN |
| 300 | SCRIPT = _core.SCRIPT |
| 301 | SWISS = _core.SWISS |
| 302 | MODERN = _core.MODERN |
| 303 | TELETYPE = _core.TELETYPE |
| 304 | VARIABLE = _core.VARIABLE |
| 305 | FIXED = _core.FIXED |
| 306 | NORMAL = _core.NORMAL |
| 307 | LIGHT = _core.LIGHT |
| 308 | BOLD = _core.BOLD |
| 309 | ITALIC = _core.ITALIC |
| 310 | SLANT = _core.SLANT |
| 311 | SOLID = _core.SOLID |
| 312 | DOT = _core.DOT |
| 313 | LONG_DASH = _core.LONG_DASH |
| 314 | SHORT_DASH = _core.SHORT_DASH |
| 315 | DOT_DASH = _core.DOT_DASH |
| 316 | USER_DASH = _core.USER_DASH |
| 317 | TRANSPARENT = _core.TRANSPARENT |
| 318 | STIPPLE = _core.STIPPLE |
| 319 | BDIAGONAL_HATCH = _core.BDIAGONAL_HATCH |
| 320 | CROSSDIAG_HATCH = _core.CROSSDIAG_HATCH |
| 321 | FDIAGONAL_HATCH = _core.FDIAGONAL_HATCH |
| 322 | CROSS_HATCH = _core.CROSS_HATCH |
| 323 | HORIZONTAL_HATCH = _core.HORIZONTAL_HATCH |
| 324 | VERTICAL_HATCH = _core.VERTICAL_HATCH |
| 325 | JOIN_BEVEL = _core.JOIN_BEVEL |
| 326 | JOIN_MITER = _core.JOIN_MITER |
| 327 | JOIN_ROUND = _core.JOIN_ROUND |
| 328 | CAP_ROUND = _core.CAP_ROUND |
| 329 | CAP_PROJECTING = _core.CAP_PROJECTING |
| 330 | CAP_BUTT = _core.CAP_BUTT |
| 331 | CLEAR = _core.CLEAR |
| 332 | XOR = _core.XOR |
| 333 | INVERT = _core.INVERT |
| 334 | OR_REVERSE = _core.OR_REVERSE |
| 335 | AND_REVERSE = _core.AND_REVERSE |
| 336 | COPY = _core.COPY |
| 337 | AND = _core.AND |
| 338 | AND_INVERT = _core.AND_INVERT |
| 339 | NO_OP = _core.NO_OP |
| 340 | NOR = _core.NOR |
| 341 | EQUIV = _core.EQUIV |
| 342 | SRC_INVERT = _core.SRC_INVERT |
| 343 | OR_INVERT = _core.OR_INVERT |
| 344 | NAND = _core.NAND |
| 345 | OR = _core.OR |
| 346 | SET = _core.SET |
| 347 | WXK_BACK = _core.WXK_BACK |
| 348 | WXK_TAB = _core.WXK_TAB |
| 349 | WXK_RETURN = _core.WXK_RETURN |
| 350 | WXK_ESCAPE = _core.WXK_ESCAPE |
| 351 | WXK_SPACE = _core.WXK_SPACE |
| 352 | WXK_DELETE = _core.WXK_DELETE |
| 353 | WXK_START = _core.WXK_START |
| 354 | WXK_LBUTTON = _core.WXK_LBUTTON |
| 355 | WXK_RBUTTON = _core.WXK_RBUTTON |
| 356 | WXK_CANCEL = _core.WXK_CANCEL |
| 357 | WXK_MBUTTON = _core.WXK_MBUTTON |
| 358 | WXK_CLEAR = _core.WXK_CLEAR |
| 359 | WXK_SHIFT = _core.WXK_SHIFT |
| 360 | WXK_ALT = _core.WXK_ALT |
| 361 | WXK_CONTROL = _core.WXK_CONTROL |
| 362 | WXK_MENU = _core.WXK_MENU |
| 363 | WXK_PAUSE = _core.WXK_PAUSE |
| 364 | WXK_CAPITAL = _core.WXK_CAPITAL |
| 365 | WXK_PRIOR = _core.WXK_PRIOR |
| 366 | WXK_NEXT = _core.WXK_NEXT |
| 367 | WXK_END = _core.WXK_END |
| 368 | WXK_HOME = _core.WXK_HOME |
| 369 | WXK_LEFT = _core.WXK_LEFT |
| 370 | WXK_UP = _core.WXK_UP |
| 371 | WXK_RIGHT = _core.WXK_RIGHT |
| 372 | WXK_DOWN = _core.WXK_DOWN |
| 373 | WXK_SELECT = _core.WXK_SELECT |
| 374 | WXK_PRINT = _core.WXK_PRINT |
| 375 | WXK_EXECUTE = _core.WXK_EXECUTE |
| 376 | WXK_SNAPSHOT = _core.WXK_SNAPSHOT |
| 377 | WXK_INSERT = _core.WXK_INSERT |
| 378 | WXK_HELP = _core.WXK_HELP |
| 379 | WXK_NUMPAD0 = _core.WXK_NUMPAD0 |
| 380 | WXK_NUMPAD1 = _core.WXK_NUMPAD1 |
| 381 | WXK_NUMPAD2 = _core.WXK_NUMPAD2 |
| 382 | WXK_NUMPAD3 = _core.WXK_NUMPAD3 |
| 383 | WXK_NUMPAD4 = _core.WXK_NUMPAD4 |
| 384 | WXK_NUMPAD5 = _core.WXK_NUMPAD5 |
| 385 | WXK_NUMPAD6 = _core.WXK_NUMPAD6 |
| 386 | WXK_NUMPAD7 = _core.WXK_NUMPAD7 |
| 387 | WXK_NUMPAD8 = _core.WXK_NUMPAD8 |
| 388 | WXK_NUMPAD9 = _core.WXK_NUMPAD9 |
| 389 | WXK_MULTIPLY = _core.WXK_MULTIPLY |
| 390 | WXK_ADD = _core.WXK_ADD |
| 391 | WXK_SEPARATOR = _core.WXK_SEPARATOR |
| 392 | WXK_SUBTRACT = _core.WXK_SUBTRACT |
| 393 | WXK_DECIMAL = _core.WXK_DECIMAL |
| 394 | WXK_DIVIDE = _core.WXK_DIVIDE |
| 395 | WXK_F1 = _core.WXK_F1 |
| 396 | WXK_F2 = _core.WXK_F2 |
| 397 | WXK_F3 = _core.WXK_F3 |
| 398 | WXK_F4 = _core.WXK_F4 |
| 399 | WXK_F5 = _core.WXK_F5 |
| 400 | WXK_F6 = _core.WXK_F6 |
| 401 | WXK_F7 = _core.WXK_F7 |
| 402 | WXK_F8 = _core.WXK_F8 |
| 403 | WXK_F9 = _core.WXK_F9 |
| 404 | WXK_F10 = _core.WXK_F10 |
| 405 | WXK_F11 = _core.WXK_F11 |
| 406 | WXK_F12 = _core.WXK_F12 |
| 407 | WXK_F13 = _core.WXK_F13 |
| 408 | WXK_F14 = _core.WXK_F14 |
| 409 | WXK_F15 = _core.WXK_F15 |
| 410 | WXK_F16 = _core.WXK_F16 |
| 411 | WXK_F17 = _core.WXK_F17 |
| 412 | WXK_F18 = _core.WXK_F18 |
| 413 | WXK_F19 = _core.WXK_F19 |
| 414 | WXK_F20 = _core.WXK_F20 |
| 415 | WXK_F21 = _core.WXK_F21 |
| 416 | WXK_F22 = _core.WXK_F22 |
| 417 | WXK_F23 = _core.WXK_F23 |
| 418 | WXK_F24 = _core.WXK_F24 |
| 419 | WXK_NUMLOCK = _core.WXK_NUMLOCK |
| 420 | WXK_SCROLL = _core.WXK_SCROLL |
| 421 | WXK_PAGEUP = _core.WXK_PAGEUP |
| 422 | WXK_PAGEDOWN = _core.WXK_PAGEDOWN |
| 423 | WXK_NUMPAD_SPACE = _core.WXK_NUMPAD_SPACE |
| 424 | WXK_NUMPAD_TAB = _core.WXK_NUMPAD_TAB |
| 425 | WXK_NUMPAD_ENTER = _core.WXK_NUMPAD_ENTER |
| 426 | WXK_NUMPAD_F1 = _core.WXK_NUMPAD_F1 |
| 427 | WXK_NUMPAD_F2 = _core.WXK_NUMPAD_F2 |
| 428 | WXK_NUMPAD_F3 = _core.WXK_NUMPAD_F3 |
| 429 | WXK_NUMPAD_F4 = _core.WXK_NUMPAD_F4 |
| 430 | WXK_NUMPAD_HOME = _core.WXK_NUMPAD_HOME |
| 431 | WXK_NUMPAD_LEFT = _core.WXK_NUMPAD_LEFT |
| 432 | WXK_NUMPAD_UP = _core.WXK_NUMPAD_UP |
| 433 | WXK_NUMPAD_RIGHT = _core.WXK_NUMPAD_RIGHT |
| 434 | WXK_NUMPAD_DOWN = _core.WXK_NUMPAD_DOWN |
| 435 | WXK_NUMPAD_PRIOR = _core.WXK_NUMPAD_PRIOR |
| 436 | WXK_NUMPAD_PAGEUP = _core.WXK_NUMPAD_PAGEUP |
| 437 | WXK_NUMPAD_NEXT = _core.WXK_NUMPAD_NEXT |
| 438 | WXK_NUMPAD_PAGEDOWN = _core.WXK_NUMPAD_PAGEDOWN |
| 439 | WXK_NUMPAD_END = _core.WXK_NUMPAD_END |
| 440 | WXK_NUMPAD_BEGIN = _core.WXK_NUMPAD_BEGIN |
| 441 | WXK_NUMPAD_INSERT = _core.WXK_NUMPAD_INSERT |
| 442 | WXK_NUMPAD_DELETE = _core.WXK_NUMPAD_DELETE |
| 443 | WXK_NUMPAD_EQUAL = _core.WXK_NUMPAD_EQUAL |
| 444 | WXK_NUMPAD_MULTIPLY = _core.WXK_NUMPAD_MULTIPLY |
| 445 | WXK_NUMPAD_ADD = _core.WXK_NUMPAD_ADD |
| 446 | WXK_NUMPAD_SEPARATOR = _core.WXK_NUMPAD_SEPARATOR |
| 447 | WXK_NUMPAD_SUBTRACT = _core.WXK_NUMPAD_SUBTRACT |
| 448 | WXK_NUMPAD_DECIMAL = _core.WXK_NUMPAD_DECIMAL |
| 449 | WXK_NUMPAD_DIVIDE = _core.WXK_NUMPAD_DIVIDE |
| 450 | WXK_WINDOWS_LEFT = _core.WXK_WINDOWS_LEFT |
| 451 | WXK_WINDOWS_RIGHT = _core.WXK_WINDOWS_RIGHT |
| 452 | WXK_WINDOWS_MENU = _core.WXK_WINDOWS_MENU |
| 453 | PAPER_NONE = _core.PAPER_NONE |
| 454 | PAPER_LETTER = _core.PAPER_LETTER |
| 455 | PAPER_LEGAL = _core.PAPER_LEGAL |
| 456 | PAPER_A4 = _core.PAPER_A4 |
| 457 | PAPER_CSHEET = _core.PAPER_CSHEET |
| 458 | PAPER_DSHEET = _core.PAPER_DSHEET |
| 459 | PAPER_ESHEET = _core.PAPER_ESHEET |
| 460 | PAPER_LETTERSMALL = _core.PAPER_LETTERSMALL |
| 461 | PAPER_TABLOID = _core.PAPER_TABLOID |
| 462 | PAPER_LEDGER = _core.PAPER_LEDGER |
| 463 | PAPER_STATEMENT = _core.PAPER_STATEMENT |
| 464 | PAPER_EXECUTIVE = _core.PAPER_EXECUTIVE |
| 465 | PAPER_A3 = _core.PAPER_A3 |
| 466 | PAPER_A4SMALL = _core.PAPER_A4SMALL |
| 467 | PAPER_A5 = _core.PAPER_A5 |
| 468 | PAPER_B4 = _core.PAPER_B4 |
| 469 | PAPER_B5 = _core.PAPER_B5 |
| 470 | PAPER_FOLIO = _core.PAPER_FOLIO |
| 471 | PAPER_QUARTO = _core.PAPER_QUARTO |
| 472 | PAPER_10X14 = _core.PAPER_10X14 |
| 473 | PAPER_11X17 = _core.PAPER_11X17 |
| 474 | PAPER_NOTE = _core.PAPER_NOTE |
| 475 | PAPER_ENV_9 = _core.PAPER_ENV_9 |
| 476 | PAPER_ENV_10 = _core.PAPER_ENV_10 |
| 477 | PAPER_ENV_11 = _core.PAPER_ENV_11 |
| 478 | PAPER_ENV_12 = _core.PAPER_ENV_12 |
| 479 | PAPER_ENV_14 = _core.PAPER_ENV_14 |
| 480 | PAPER_ENV_DL = _core.PAPER_ENV_DL |
| 481 | PAPER_ENV_C5 = _core.PAPER_ENV_C5 |
| 482 | PAPER_ENV_C3 = _core.PAPER_ENV_C3 |
| 483 | PAPER_ENV_C4 = _core.PAPER_ENV_C4 |
| 484 | PAPER_ENV_C6 = _core.PAPER_ENV_C6 |
| 485 | PAPER_ENV_C65 = _core.PAPER_ENV_C65 |
| 486 | PAPER_ENV_B4 = _core.PAPER_ENV_B4 |
| 487 | PAPER_ENV_B5 = _core.PAPER_ENV_B5 |
| 488 | PAPER_ENV_B6 = _core.PAPER_ENV_B6 |
| 489 | PAPER_ENV_ITALY = _core.PAPER_ENV_ITALY |
| 490 | PAPER_ENV_MONARCH = _core.PAPER_ENV_MONARCH |
| 491 | PAPER_ENV_PERSONAL = _core.PAPER_ENV_PERSONAL |
| 492 | PAPER_FANFOLD_US = _core.PAPER_FANFOLD_US |
| 493 | PAPER_FANFOLD_STD_GERMAN = _core.PAPER_FANFOLD_STD_GERMAN |
| 494 | PAPER_FANFOLD_LGL_GERMAN = _core.PAPER_FANFOLD_LGL_GERMAN |
| 495 | PAPER_ISO_B4 = _core.PAPER_ISO_B4 |
| 496 | PAPER_JAPANESE_POSTCARD = _core.PAPER_JAPANESE_POSTCARD |
| 497 | PAPER_9X11 = _core.PAPER_9X11 |
| 498 | PAPER_10X11 = _core.PAPER_10X11 |
| 499 | PAPER_15X11 = _core.PAPER_15X11 |
| 500 | PAPER_ENV_INVITE = _core.PAPER_ENV_INVITE |
| 501 | PAPER_LETTER_EXTRA = _core.PAPER_LETTER_EXTRA |
| 502 | PAPER_LEGAL_EXTRA = _core.PAPER_LEGAL_EXTRA |
| 503 | PAPER_TABLOID_EXTRA = _core.PAPER_TABLOID_EXTRA |
| 504 | PAPER_A4_EXTRA = _core.PAPER_A4_EXTRA |
| 505 | PAPER_LETTER_TRANSVERSE = _core.PAPER_LETTER_TRANSVERSE |
| 506 | PAPER_A4_TRANSVERSE = _core.PAPER_A4_TRANSVERSE |
| 507 | PAPER_LETTER_EXTRA_TRANSVERSE = _core.PAPER_LETTER_EXTRA_TRANSVERSE |
| 508 | PAPER_A_PLUS = _core.PAPER_A_PLUS |
| 509 | PAPER_B_PLUS = _core.PAPER_B_PLUS |
| 510 | PAPER_LETTER_PLUS = _core.PAPER_LETTER_PLUS |
| 511 | PAPER_A4_PLUS = _core.PAPER_A4_PLUS |
| 512 | PAPER_A5_TRANSVERSE = _core.PAPER_A5_TRANSVERSE |
| 513 | PAPER_B5_TRANSVERSE = _core.PAPER_B5_TRANSVERSE |
| 514 | PAPER_A3_EXTRA = _core.PAPER_A3_EXTRA |
| 515 | PAPER_A5_EXTRA = _core.PAPER_A5_EXTRA |
| 516 | PAPER_B5_EXTRA = _core.PAPER_B5_EXTRA |
| 517 | PAPER_A2 = _core.PAPER_A2 |
| 518 | PAPER_A3_TRANSVERSE = _core.PAPER_A3_TRANSVERSE |
| 519 | PAPER_A3_EXTRA_TRANSVERSE = _core.PAPER_A3_EXTRA_TRANSVERSE |
| 520 | DUPLEX_SIMPLEX = _core.DUPLEX_SIMPLEX |
| 521 | DUPLEX_HORIZONTAL = _core.DUPLEX_HORIZONTAL |
| 522 | DUPLEX_VERTICAL = _core.DUPLEX_VERTICAL |
| 523 | ITEM_SEPARATOR = _core.ITEM_SEPARATOR |
| 524 | ITEM_NORMAL = _core.ITEM_NORMAL |
| 525 | ITEM_CHECK = _core.ITEM_CHECK |
| 526 | ITEM_RADIO = _core.ITEM_RADIO |
| 527 | ITEM_MAX = _core.ITEM_MAX |
| 528 | HT_NOWHERE = _core.HT_NOWHERE |
| 529 | HT_SCROLLBAR_FIRST = _core.HT_SCROLLBAR_FIRST |
| 530 | HT_SCROLLBAR_ARROW_LINE_1 = _core.HT_SCROLLBAR_ARROW_LINE_1 |
| 531 | HT_SCROLLBAR_ARROW_LINE_2 = _core.HT_SCROLLBAR_ARROW_LINE_2 |
| 532 | HT_SCROLLBAR_ARROW_PAGE_1 = _core.HT_SCROLLBAR_ARROW_PAGE_1 |
| 533 | HT_SCROLLBAR_ARROW_PAGE_2 = _core.HT_SCROLLBAR_ARROW_PAGE_2 |
| 534 | HT_SCROLLBAR_THUMB = _core.HT_SCROLLBAR_THUMB |
| 535 | HT_SCROLLBAR_BAR_1 = _core.HT_SCROLLBAR_BAR_1 |
| 536 | HT_SCROLLBAR_BAR_2 = _core.HT_SCROLLBAR_BAR_2 |
| 537 | HT_SCROLLBAR_LAST = _core.HT_SCROLLBAR_LAST |
| 538 | HT_WINDOW_OUTSIDE = _core.HT_WINDOW_OUTSIDE |
| 539 | HT_WINDOW_INSIDE = _core.HT_WINDOW_INSIDE |
| 540 | HT_WINDOW_VERT_SCROLLBAR = _core.HT_WINDOW_VERT_SCROLLBAR |
| 541 | HT_WINDOW_HORZ_SCROLLBAR = _core.HT_WINDOW_HORZ_SCROLLBAR |
| 542 | HT_WINDOW_CORNER = _core.HT_WINDOW_CORNER |
| 543 | HT_MAX = _core.HT_MAX |
| 544 | MOD_NONE = _core.MOD_NONE |
| 545 | MOD_ALT = _core.MOD_ALT |
| 546 | MOD_CONTROL = _core.MOD_CONTROL |
| 547 | MOD_SHIFT = _core.MOD_SHIFT |
| 548 | MOD_WIN = _core.MOD_WIN |
| 549 | UPDATE_UI_NONE = _core.UPDATE_UI_NONE |
| 550 | UPDATE_UI_RECURSE = _core.UPDATE_UI_RECURSE |
| 551 | UPDATE_UI_FROMIDLE = _core.UPDATE_UI_FROMIDLE |
| 552 | #--------------------------------------------------------------------------- |
| 553 | |
| 554 | class Object(object): |
| 555 | """The base class for most wx objects, although in wxPython not |
| 556 | much functionality is needed nor exposed.""" |
| 557 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 558 | def __repr__(self): |
| 559 | return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 560 | def GetClassName(*args, **kwargs): |
| 561 | """GetClassName() -> wxString |
| 562 | |
| 563 | Returns the class name of the C++ object using wxRTTI.""" |
| 564 | return _core.Object_GetClassName(*args, **kwargs) |
| 565 | |
| 566 | def Destroy(*args, **kwargs): |
| 567 | """Destroy() |
| 568 | |
| 569 | Deletes the C++ object this Python object is a proxy for.""" |
| 570 | return _core.Object_Destroy(*args, **kwargs) |
| 571 | |
| 572 | |
| 573 | class ObjectPtr(Object): |
| 574 | def __init__(self, this): |
| 575 | self.this = this |
| 576 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 577 | self.__class__ = Object |
| 578 | _core.Object_swigregister(ObjectPtr) |
| 579 | _wxPySetDictionary = _core._wxPySetDictionary |
| 580 | |
| 581 | |
| 582 | #--------------------------------------------------------------------------- |
| 583 | |
| 584 | BITMAP_TYPE_INVALID = _core.BITMAP_TYPE_INVALID |
| 585 | BITMAP_TYPE_BMP = _core.BITMAP_TYPE_BMP |
| 586 | BITMAP_TYPE_BMP_RESOURCE = _core.BITMAP_TYPE_BMP_RESOURCE |
| 587 | BITMAP_TYPE_RESOURCE = _core.BITMAP_TYPE_RESOURCE |
| 588 | BITMAP_TYPE_ICO = _core.BITMAP_TYPE_ICO |
| 589 | BITMAP_TYPE_ICO_RESOURCE = _core.BITMAP_TYPE_ICO_RESOURCE |
| 590 | BITMAP_TYPE_CUR = _core.BITMAP_TYPE_CUR |
| 591 | BITMAP_TYPE_CUR_RESOURCE = _core.BITMAP_TYPE_CUR_RESOURCE |
| 592 | BITMAP_TYPE_XBM = _core.BITMAP_TYPE_XBM |
| 593 | BITMAP_TYPE_XBM_DATA = _core.BITMAP_TYPE_XBM_DATA |
| 594 | BITMAP_TYPE_XPM = _core.BITMAP_TYPE_XPM |
| 595 | BITMAP_TYPE_XPM_DATA = _core.BITMAP_TYPE_XPM_DATA |
| 596 | BITMAP_TYPE_TIF = _core.BITMAP_TYPE_TIF |
| 597 | BITMAP_TYPE_TIF_RESOURCE = _core.BITMAP_TYPE_TIF_RESOURCE |
| 598 | BITMAP_TYPE_GIF = _core.BITMAP_TYPE_GIF |
| 599 | BITMAP_TYPE_GIF_RESOURCE = _core.BITMAP_TYPE_GIF_RESOURCE |
| 600 | BITMAP_TYPE_PNG = _core.BITMAP_TYPE_PNG |
| 601 | BITMAP_TYPE_PNG_RESOURCE = _core.BITMAP_TYPE_PNG_RESOURCE |
| 602 | BITMAP_TYPE_JPEG = _core.BITMAP_TYPE_JPEG |
| 603 | BITMAP_TYPE_JPEG_RESOURCE = _core.BITMAP_TYPE_JPEG_RESOURCE |
| 604 | BITMAP_TYPE_PNM = _core.BITMAP_TYPE_PNM |
| 605 | BITMAP_TYPE_PNM_RESOURCE = _core.BITMAP_TYPE_PNM_RESOURCE |
| 606 | BITMAP_TYPE_PCX = _core.BITMAP_TYPE_PCX |
| 607 | BITMAP_TYPE_PCX_RESOURCE = _core.BITMAP_TYPE_PCX_RESOURCE |
| 608 | BITMAP_TYPE_PICT = _core.BITMAP_TYPE_PICT |
| 609 | BITMAP_TYPE_PICT_RESOURCE = _core.BITMAP_TYPE_PICT_RESOURCE |
| 610 | BITMAP_TYPE_ICON = _core.BITMAP_TYPE_ICON |
| 611 | BITMAP_TYPE_ICON_RESOURCE = _core.BITMAP_TYPE_ICON_RESOURCE |
| 612 | BITMAP_TYPE_ANI = _core.BITMAP_TYPE_ANI |
| 613 | BITMAP_TYPE_IFF = _core.BITMAP_TYPE_IFF |
| 614 | BITMAP_TYPE_MACCURSOR = _core.BITMAP_TYPE_MACCURSOR |
| 615 | BITMAP_TYPE_MACCURSOR_RESOURCE = _core.BITMAP_TYPE_MACCURSOR_RESOURCE |
| 616 | BITMAP_TYPE_ANY = _core.BITMAP_TYPE_ANY |
| 617 | CURSOR_NONE = _core.CURSOR_NONE |
| 618 | CURSOR_ARROW = _core.CURSOR_ARROW |
| 619 | CURSOR_RIGHT_ARROW = _core.CURSOR_RIGHT_ARROW |
| 620 | CURSOR_BULLSEYE = _core.CURSOR_BULLSEYE |
| 621 | CURSOR_CHAR = _core.CURSOR_CHAR |
| 622 | CURSOR_CROSS = _core.CURSOR_CROSS |
| 623 | CURSOR_HAND = _core.CURSOR_HAND |
| 624 | CURSOR_IBEAM = _core.CURSOR_IBEAM |
| 625 | CURSOR_LEFT_BUTTON = _core.CURSOR_LEFT_BUTTON |
| 626 | CURSOR_MAGNIFIER = _core.CURSOR_MAGNIFIER |
| 627 | CURSOR_MIDDLE_BUTTON = _core.CURSOR_MIDDLE_BUTTON |
| 628 | CURSOR_NO_ENTRY = _core.CURSOR_NO_ENTRY |
| 629 | CURSOR_PAINT_BRUSH = _core.CURSOR_PAINT_BRUSH |
| 630 | CURSOR_PENCIL = _core.CURSOR_PENCIL |
| 631 | CURSOR_POINT_LEFT = _core.CURSOR_POINT_LEFT |
| 632 | CURSOR_POINT_RIGHT = _core.CURSOR_POINT_RIGHT |
| 633 | CURSOR_QUESTION_ARROW = _core.CURSOR_QUESTION_ARROW |
| 634 | CURSOR_RIGHT_BUTTON = _core.CURSOR_RIGHT_BUTTON |
| 635 | CURSOR_SIZENESW = _core.CURSOR_SIZENESW |
| 636 | CURSOR_SIZENS = _core.CURSOR_SIZENS |
| 637 | CURSOR_SIZENWSE = _core.CURSOR_SIZENWSE |
| 638 | CURSOR_SIZEWE = _core.CURSOR_SIZEWE |
| 639 | CURSOR_SIZING = _core.CURSOR_SIZING |
| 640 | CURSOR_SPRAYCAN = _core.CURSOR_SPRAYCAN |
| 641 | CURSOR_WAIT = _core.CURSOR_WAIT |
| 642 | CURSOR_WATCH = _core.CURSOR_WATCH |
| 643 | CURSOR_BLANK = _core.CURSOR_BLANK |
| 644 | CURSOR_DEFAULT = _core.CURSOR_DEFAULT |
| 645 | CURSOR_COPY_ARROW = _core.CURSOR_COPY_ARROW |
| 646 | CURSOR_ARROWWAIT = _core.CURSOR_ARROWWAIT |
| 647 | CURSOR_MAX = _core.CURSOR_MAX |
| 648 | #--------------------------------------------------------------------------- |
| 649 | |
| 650 | class Size(object): |
| 651 | """wx.Size is a useful data structure used to represent the size of something. |
| 652 | It simply contians integer width and height proprtites. In most places in |
| 653 | wxPython where a wx.Size is expected a (width,height) tuple can be used |
| 654 | instead.""" |
| 655 | def __repr__(self): |
| 656 | return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 657 | width = property(_core.Size_width_get, _core.Size_width_set) |
| 658 | height = property(_core.Size_height_get, _core.Size_height_set) |
| 659 | def __init__(self, *args, **kwargs): |
| 660 | """__init__(int w=0, int h=0) -> Size |
| 661 | |
| 662 | Creates a size object.""" |
| 663 | newobj = _core.new_Size(*args, **kwargs) |
| 664 | self.this = newobj.this |
| 665 | self.thisown = 1 |
| 666 | del newobj.thisown |
| 667 | def __del__(self, destroy=_core.delete_Size): |
| 668 | """__del__()""" |
| 669 | try: |
| 670 | if self.thisown: destroy(self) |
| 671 | except: pass |
| 672 | |
| 673 | def __eq__(*args, **kwargs): |
| 674 | """__eq__(Size sz) -> bool |
| 675 | |
| 676 | Test for equality of wx.Size objects.""" |
| 677 | return _core.Size___eq__(*args, **kwargs) |
| 678 | |
| 679 | def __ne__(*args, **kwargs): |
| 680 | """__ne__(Size sz) -> bool |
| 681 | |
| 682 | Test for inequality.""" |
| 683 | return _core.Size___ne__(*args, **kwargs) |
| 684 | |
| 685 | def __add__(*args, **kwargs): |
| 686 | """__add__(Size sz) -> Size |
| 687 | |
| 688 | Add sz's proprties to this and return the result.""" |
| 689 | return _core.Size___add__(*args, **kwargs) |
| 690 | |
| 691 | def __sub__(*args, **kwargs): |
| 692 | """__sub__(Size sz) -> Size |
| 693 | |
| 694 | Subtract sz's properties from this and return the result.""" |
| 695 | return _core.Size___sub__(*args, **kwargs) |
| 696 | |
| 697 | def IncTo(*args, **kwargs): |
| 698 | """IncTo(Size sz) |
| 699 | |
| 700 | Increments this object so that both of its dimensions are not less |
| 701 | than the corresponding dimensions of the size.""" |
| 702 | return _core.Size_IncTo(*args, **kwargs) |
| 703 | |
| 704 | def DecTo(*args, **kwargs): |
| 705 | """DecTo(Size sz) |
| 706 | |
| 707 | Decrements this object so that both of its dimensions are not greater |
| 708 | than the corresponding dimensions of the size.""" |
| 709 | return _core.Size_DecTo(*args, **kwargs) |
| 710 | |
| 711 | def Set(*args, **kwargs): |
| 712 | """Set(int w, int h) |
| 713 | |
| 714 | Set both width and height.""" |
| 715 | return _core.Size_Set(*args, **kwargs) |
| 716 | |
| 717 | def SetWidth(*args, **kwargs): |
| 718 | """SetWidth(int w)""" |
| 719 | return _core.Size_SetWidth(*args, **kwargs) |
| 720 | |
| 721 | def SetHeight(*args, **kwargs): |
| 722 | """SetHeight(int h)""" |
| 723 | return _core.Size_SetHeight(*args, **kwargs) |
| 724 | |
| 725 | def GetWidth(*args, **kwargs): |
| 726 | """GetWidth() -> int""" |
| 727 | return _core.Size_GetWidth(*args, **kwargs) |
| 728 | |
| 729 | def GetHeight(*args, **kwargs): |
| 730 | """GetHeight() -> int""" |
| 731 | return _core.Size_GetHeight(*args, **kwargs) |
| 732 | |
| 733 | def Get(*args, **kwargs): |
| 734 | """Get() -> (width,height) |
| 735 | |
| 736 | Returns the width and height properties as a tuple.""" |
| 737 | return _core.Size_Get(*args, **kwargs) |
| 738 | |
| 739 | asTuple = Get |
| 740 | def __str__(self): return str(self.Get()) |
| 741 | def __repr__(self): return 'wx.Size'+str(self.Get()) |
| 742 | def __len__(self): return len(self.Get()) |
| 743 | def __getitem__(self, index): return self.Get()[index] |
| 744 | def __setitem__(self, index, val): |
| 745 | if index == 0: self.width = val |
| 746 | elif index == 1: self.height = val |
| 747 | else: raise IndexError |
| 748 | def __nonzero__(self): return self.Get() != (0,0) |
| 749 | def __getinitargs__(self): return () |
| 750 | def __getstate__(self): return self.Get() |
| 751 | def __setstate__(self, state): self.Set(*state) |
| 752 | |
| 753 | |
| 754 | class SizePtr(Size): |
| 755 | def __init__(self, this): |
| 756 | self.this = this |
| 757 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 758 | self.__class__ = Size |
| 759 | _core.Size_swigregister(SizePtr) |
| 760 | |
| 761 | #--------------------------------------------------------------------------- |
| 762 | |
| 763 | class RealPoint(object): |
| 764 | """A data structure for representing a point or position with floating point x |
| 765 | and y properties. In wxPython most places that expect a wx.RealPoint can also |
| 766 | accept a (x,y) tuple.""" |
| 767 | def __repr__(self): |
| 768 | return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 769 | x = property(_core.RealPoint_x_get, _core.RealPoint_x_set) |
| 770 | y = property(_core.RealPoint_y_get, _core.RealPoint_y_set) |
| 771 | def __init__(self, *args, **kwargs): |
| 772 | """__init__(double x=0.0, double y=0.0) -> RealPoint |
| 773 | |
| 774 | Create a wx.RealPoint object""" |
| 775 | newobj = _core.new_RealPoint(*args, **kwargs) |
| 776 | self.this = newobj.this |
| 777 | self.thisown = 1 |
| 778 | del newobj.thisown |
| 779 | def __del__(self, destroy=_core.delete_RealPoint): |
| 780 | """__del__()""" |
| 781 | try: |
| 782 | if self.thisown: destroy(self) |
| 783 | except: pass |
| 784 | |
| 785 | def __eq__(*args, **kwargs): |
| 786 | """__eq__(RealPoint pt) -> bool |
| 787 | |
| 788 | Test for equality of wx.RealPoint objects.""" |
| 789 | return _core.RealPoint___eq__(*args, **kwargs) |
| 790 | |
| 791 | def __ne__(*args, **kwargs): |
| 792 | """__ne__(RealPoint pt) -> bool |
| 793 | |
| 794 | Test for inequality of wx.RealPoint objects.""" |
| 795 | return _core.RealPoint___ne__(*args, **kwargs) |
| 796 | |
| 797 | def __add__(*args, **kwargs): |
| 798 | """__add__(RealPoint pt) -> RealPoint |
| 799 | |
| 800 | Add pt's proprties to this and return the result.""" |
| 801 | return _core.RealPoint___add__(*args, **kwargs) |
| 802 | |
| 803 | def __sub__(*args, **kwargs): |
| 804 | """__sub__(RealPoint pt) -> RealPoint |
| 805 | |
| 806 | Subtract pt's proprties from this and return the result""" |
| 807 | return _core.RealPoint___sub__(*args, **kwargs) |
| 808 | |
| 809 | def Set(*args, **kwargs): |
| 810 | """Set(double x, double y) |
| 811 | |
| 812 | Set both the x and y properties""" |
| 813 | return _core.RealPoint_Set(*args, **kwargs) |
| 814 | |
| 815 | def Get(*args, **kwargs): |
| 816 | """Get() -> (x,y) |
| 817 | |
| 818 | Return the x and y properties as a tuple. """ |
| 819 | return _core.RealPoint_Get(*args, **kwargs) |
| 820 | |
| 821 | asTuple = Get |
| 822 | def __str__(self): return str(self.Get()) |
| 823 | def __repr__(self): return 'wx.RealPoint'+str(self.Get()) |
| 824 | def __len__(self): return len(self.Get()) |
| 825 | def __getitem__(self, index): return self.Get()[index] |
| 826 | def __setitem__(self, index, val): |
| 827 | if index == 0: self.x = val |
| 828 | elif index == 1: self.y = val |
| 829 | else: raise IndexError |
| 830 | def __nonzero__(self): return self.Get() != (0.0, 0.0) |
| 831 | def __getinitargs__(self): return () |
| 832 | def __getstate__(self): return self.Get() |
| 833 | def __setstate__(self, state): self.Set(*state) |
| 834 | |
| 835 | |
| 836 | class RealPointPtr(RealPoint): |
| 837 | def __init__(self, this): |
| 838 | self.this = this |
| 839 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 840 | self.__class__ = RealPoint |
| 841 | _core.RealPoint_swigregister(RealPointPtr) |
| 842 | |
| 843 | #--------------------------------------------------------------------------- |
| 844 | |
| 845 | class Point(object): |
| 846 | """A data structure for representing a point or position with integer x and y |
| 847 | properties. Most places in wxPython that expect a wx.Point can also accept a |
| 848 | (x,y) tuple.""" |
| 849 | def __repr__(self): |
| 850 | return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 851 | x = property(_core.Point_x_get, _core.Point_x_set) |
| 852 | y = property(_core.Point_y_get, _core.Point_y_set) |
| 853 | def __init__(self, *args, **kwargs): |
| 854 | """__init__(int x=0, int y=0) -> Point |
| 855 | |
| 856 | Create a wx.Point object""" |
| 857 | newobj = _core.new_Point(*args, **kwargs) |
| 858 | self.this = newobj.this |
| 859 | self.thisown = 1 |
| 860 | del newobj.thisown |
| 861 | def __del__(self, destroy=_core.delete_Point): |
| 862 | """__del__()""" |
| 863 | try: |
| 864 | if self.thisown: destroy(self) |
| 865 | except: pass |
| 866 | |
| 867 | def __eq__(*args, **kwargs): |
| 868 | """__eq__(Point pt) -> bool |
| 869 | |
| 870 | Test for equality of wx.Point objects.""" |
| 871 | return _core.Point___eq__(*args, **kwargs) |
| 872 | |
| 873 | def __ne__(*args, **kwargs): |
| 874 | """__ne__(Point pt) -> bool |
| 875 | |
| 876 | Test for inequality of wx.Point objects.""" |
| 877 | return _core.Point___ne__(*args, **kwargs) |
| 878 | |
| 879 | def __add__(*args, **kwargs): |
| 880 | """__add__(Point pt) -> Point |
| 881 | |
| 882 | Add pt's proprties to this and return the result.""" |
| 883 | return _core.Point___add__(*args, **kwargs) |
| 884 | |
| 885 | def __sub__(*args, **kwargs): |
| 886 | """__sub__(Point pt) -> Point |
| 887 | |
| 888 | Subtract pt's proprties from this and return the result""" |
| 889 | return _core.Point___sub__(*args, **kwargs) |
| 890 | |
| 891 | def __iadd__(*args, **kwargs): |
| 892 | """__iadd__(Point pt) -> Point |
| 893 | |
| 894 | Add pt to this object.""" |
| 895 | return _core.Point___iadd__(*args, **kwargs) |
| 896 | |
| 897 | def __isub__(*args, **kwargs): |
| 898 | """__isub__(Point pt) -> Point |
| 899 | |
| 900 | Subtract pt from this object.""" |
| 901 | return _core.Point___isub__(*args, **kwargs) |
| 902 | |
| 903 | def Set(*args, **kwargs): |
| 904 | """Set(long x, long y) |
| 905 | |
| 906 | Set both the x and y properties""" |
| 907 | return _core.Point_Set(*args, **kwargs) |
| 908 | |
| 909 | def Get(*args, **kwargs): |
| 910 | """Get() -> (x,y) |
| 911 | |
| 912 | Return the x and y properties as a tuple. """ |
| 913 | return _core.Point_Get(*args, **kwargs) |
| 914 | |
| 915 | asTuple = Get |
| 916 | def __str__(self): return str(self.Get()) |
| 917 | def __repr__(self): return 'wx.Point'+str(self.Get()) |
| 918 | def __len__(self): return len(self.Get()) |
| 919 | def __getitem__(self, index): return self.Get()[index] |
| 920 | def __setitem__(self, index, val): |
| 921 | if index == 0: self.x = val |
| 922 | elif index == 1: self.y = val |
| 923 | else: raise IndexError |
| 924 | def __nonzero__(self): return self.Get() != (0,0) |
| 925 | def __getinitargs__(self): return () |
| 926 | def __getstate__(self): return self.Get() |
| 927 | def __setstate__(self, state): self.Set(*state) |
| 928 | |
| 929 | |
| 930 | class PointPtr(Point): |
| 931 | def __init__(self, this): |
| 932 | self.this = this |
| 933 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 934 | self.__class__ = Point |
| 935 | _core.Point_swigregister(PointPtr) |
| 936 | |
| 937 | #--------------------------------------------------------------------------- |
| 938 | |
| 939 | class Rect(object): |
| 940 | """A class for representing and manipulating rectangles. It has x, y, width and |
| 941 | height properties. In wxPython most palces that expect a wx.Rect can also |
| 942 | accept a (x,y,width,height) tuple.""" |
| 943 | def __repr__(self): |
| 944 | return "<%s.%s; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 945 | def __init__(self, *args, **kwargs): |
| 946 | """__init__(int x=0, int y=0, int width=0, int height=0) -> Rect |
| 947 | |
| 948 | Create a new Rect object.""" |
| 949 | newobj = _core.new_Rect(*args, **kwargs) |
| 950 | self.this = newobj.this |
| 951 | self.thisown = 1 |
| 952 | del newobj.thisown |
| 953 | def __del__(self, destroy=_core.delete_Rect): |
| 954 | """__del__()""" |
| 955 | try: |
| 956 | if self.thisown: destroy(self) |
| 957 | except: pass |
| 958 | |
| 959 | def GetX(*args, **kwargs): |
| 960 | """GetX() -> int""" |
| 961 | return _core.Rect_GetX(*args, **kwargs) |
| 962 | |
| 963 | def SetX(*args, **kwargs): |
| 964 | """SetX(int x)""" |
| 965 | return _core.Rect_SetX(*args, **kwargs) |
| 966 | |
| 967 | def GetY(*args, **kwargs): |
| 968 | """GetY() -> int""" |
| 969 | return _core.Rect_GetY(*args, **kwargs) |
| 970 | |
| 971 | def SetY(*args, **kwargs): |
| 972 | """SetY(int y)""" |
| 973 | return _core.Rect_SetY(*args, **kwargs) |
| 974 | |
| 975 | def GetWidth(*args, **kwargs): |
| 976 | """GetWidth() -> int""" |
| 977 | return _core.Rect_GetWidth(*args, **kwargs) |
| 978 | |
| 979 | def SetWidth(*args, **kwargs): |
| 980 | """SetWidth(int w)""" |
| 981 | return _core.Rect_SetWidth(*args, **kwargs) |
| 982 | |
| 983 | def GetHeight(*args, **kwargs): |
| 984 | """GetHeight() -> int""" |
| 985 | return _core.Rect_GetHeight(*args, **kwargs) |
| 986 | |
| 987 | def SetHeight(*args, **kwargs): |
| 988 | """SetHeight(int h)""" |
| 989 | return _core.Rect_SetHeight(*args, **kwargs) |
| 990 | |
| 991 | def GetPosition(*args, **kwargs): |
| 992 | """GetPosition() -> Point""" |
| 993 | return _core.Rect_GetPosition(*args, **kwargs) |
| 994 | |
| 995 | def SetPosition(*args, **kwargs): |
| 996 | """SetPosition(Point p)""" |
| 997 | return _core.Rect_SetPosition(*args, **kwargs) |
| 998 | |
| 999 | def GetSize(*args, **kwargs): |
| 1000 | """GetSize() -> Size""" |
| 1001 | return _core.Rect_GetSize(*args, **kwargs) |
| 1002 | |
| 1003 | def SetSize(*args, **kwargs): |
| 1004 | """SetSize(Size s)""" |
| 1005 | return _core.Rect_SetSize(*args, **kwargs) |
| 1006 | |
| 1007 | def GetLeft(*args, **kwargs): |
| 1008 | """GetLeft() -> int""" |
| 1009 | return _core.Rect_GetLeft(*args, **kwargs) |
| 1010 | |
| 1011 | def GetTop(*args, **kwargs): |
| 1012 | """GetTop() -> int""" |
| 1013 | return _core.Rect_GetTop(*args, **kwargs) |
| 1014 | |
| 1015 | def GetBottom(*args, **kwargs): |
| 1016 | """GetBottom() -> int""" |
| 1017 | return _core.Rect_GetBottom(*args, **kwargs) |
| 1018 | |
| 1019 | def GetRight(*args, **kwargs): |
| 1020 | """GetRight() -> int""" |
| 1021 | return _core.Rect_GetRight(*args, **kwargs) |
| 1022 | |
| 1023 | def SetLeft(*args, **kwargs): |
| 1024 | """SetLeft(int left)""" |
| 1025 | return _core.Rect_SetLeft(*args, **kwargs) |
| 1026 | |
| 1027 | def SetRight(*args, **kwargs): |
| 1028 | """SetRight(int right)""" |
| 1029 | return _core.Rect_SetRight(*args, **kwargs) |
| 1030 | |
| 1031 | def SetTop(*args, **kwargs): |
| 1032 | """SetTop(int top)""" |
| 1033 | return _core.Rect_SetTop(*args, **kwargs) |
| 1034 | |
| 1035 | def SetBottom(*args, **kwargs): |
| 1036 | """SetBottom(int bottom)""" |
| 1037 | return _core.Rect_SetBottom(*args, **kwargs) |
| 1038 | |
| 1039 | position = property(GetPosition, SetPosition) |
| 1040 | size = property(GetSize, SetSize) |
| 1041 | left = property(GetLeft, SetLeft) |
| 1042 | right = property(GetRight, SetRight) |
| 1043 | top = property(GetTop, SetTop) |
| 1044 | bottom = property(GetBottom, SetBottom) |
| 1045 | |
| 1046 | def Inflate(*args, **kwargs): |
| 1047 | """Inflate(int dx, int dy) -> Rect |
| 1048 | |
| 1049 | Increase the rectangle size by dx in x direction and dy in y direction. Both |
| 1050 | (or one of) parameters may be negative to decrease the rectangle size.""" |
| 1051 | return _core.Rect_Inflate(*args, **kwargs) |
| 1052 | |
| 1053 | def Deflate(*args, **kwargs): |
| 1054 | """Deflate(int dx, int dy) -> Rect |
| 1055 | |
| 1056 | Decrease the rectangle size by dx in x direction and dy in y direction. Both |
| 1057 | (or one of) parameters may be negative to increase the rectngle size. This |
| 1058 | method is the opposite of Inflate.""" |
| 1059 | return _core.Rect_Deflate(*args, **kwargs) |
| 1060 | |
| 1061 | def OffsetXY(*args, **kwargs): |
| 1062 | """OffsetXY(int dx, int dy) |
| 1063 | |
| 1064 | Moves the rectangle by the specified offset. If dx is positive, the rectangle |
| 1065 | is moved to the right, if dy is positive, it is moved to the bottom, otherwise |
| 1066 | it is moved to the left or top respectively.""" |
| 1067 | return _core.Rect_OffsetXY(*args, **kwargs) |
| 1068 | |
| 1069 | def Offset(*args, **kwargs): |
| 1070 | """Offset(Point pt) |
| 1071 | |
| 1072 | Same as OffsetXY but uses dx,dy from Point""" |
| 1073 | return _core.Rect_Offset(*args, **kwargs) |
| 1074 | |
| 1075 | def Intersect(*args, **kwargs): |
| 1076 | """Intersect(Rect rect) -> Rect |
| 1077 | |
| 1078 | Return the intersectsion of this rectangle and rect.""" |
| 1079 | return _core.Rect_Intersect(*args, **kwargs) |
| 1080 | |
| 1081 | def __add__(*args, **kwargs): |
| 1082 | """__add__(Rect rect) -> Rect |
| 1083 | |
| 1084 | Add the properties of rect to this rectangle and return the result.""" |
| 1085 | return _core.Rect___add__(*args, **kwargs) |
| 1086 | |
| 1087 | def __iadd__(*args, **kwargs): |
| 1088 | """__iadd__(Rect rect) -> Rect |
| 1089 | |
| 1090 | Add the properties of rect to this rectangle, updating this rectangle.""" |
| 1091 | return _core.Rect___iadd__(*args, **kwargs) |
| 1092 | |
| 1093 | def __eq__(*args, **kwargs): |
| 1094 | """__eq__(Rect rect) -> bool |
| 1095 | |
| 1096 | Test for equality.""" |
| 1097 | return _core.Rect___eq__(*args, **kwargs) |
| 1098 | |
| 1099 | def __ne__(*args, **kwargs): |
| 1100 | """__ne__(Rect rect) -> bool |
| 1101 | |
| 1102 | Test for inequality.""" |
| 1103 | return _core.Rect___ne__(*args, **kwargs) |
| 1104 | |
| 1105 | def InsideXY(*args, **kwargs): |
| 1106 | """InsideXY(int x, int y) -> bool |
| 1107 | |
| 1108 | Return True if the point is (not strcitly) inside the rect.""" |
| 1109 | return _core.Rect_InsideXY(*args, **kwargs) |
| 1110 | |
| 1111 | def Inside(*args, **kwargs): |
| 1112 | """Inside(Point pt) -> bool |
| 1113 | |
| 1114 | Return True if the point is (not strcitly) inside the rect.""" |
| 1115 | return _core.Rect_Inside(*args, **kwargs) |
| 1116 | |
| 1117 | def Intersects(*args, **kwargs): |
| 1118 | """Intersects(Rect rect) -> bool |
| 1119 | |
| 1120 | Returns True if the rectangles have a non empty intersection.""" |
| 1121 | return _core.Rect_Intersects(*args, **kwargs) |
| 1122 | |
| 1123 | x = property(_core.Rect_x_get, _core.Rect_x_set) |
| 1124 | y = property(_core.Rect_y_get, _core.Rect_y_set) |
| 1125 | width = property(_core.Rect_width_get, _core.Rect_width_set) |
| 1126 | height = property(_core.Rect_height_get, _core.Rect_height_set) |
| 1127 | def Set(*args, **kwargs): |
| 1128 | """Set(int x=0, int y=0, int width=0, int height=0) |
| 1129 | |
| 1130 | Set all rectangle properties.""" |
| 1131 | return _core.Rect_Set(*args, **kwargs) |
| 1132 | |
| 1133 | def Get(*args, **kwargs): |
| 1134 | """Get() -> (x,y,width,height) |
| 1135 | |
| 1136 | Return the rectangle properties as a tuple.""" |
| 1137 | return _core.Rect_Get(*args, **kwargs) |
| 1138 | |
| 1139 | asTuple = Get |
| 1140 | def __str__(self): return str(self.Get()) |
| 1141 | def __repr__(self): return 'wx.Rect'+str(self.Get()) |
| 1142 | def __len__(self): return len(self.Get()) |
| 1143 | def __getitem__(self, index): return self.Get()[index] |
| 1144 | def __setitem__(self, index, val): |
| 1145 | if index == 0: self.x = val |
| 1146 | elif index == 1: self.y = val |
| 1147 | elif index == 2: self.width = val |
| 1148 | elif index == 3: self.height = val |
| 1149 | else: raise IndexError |
| 1150 | def __nonzero__(self): return self.Get() != (0,0,0,0) |
| 1151 | def __getinitargs__(self): return () |
| 1152 | def __getstate__(self): return self.Get() |
| 1153 | def __setstate__(self, state): self.Set(*state) |
| 1154 | |
| 1155 | |
| 1156 | class RectPtr(Rect): |
| 1157 | def __init__(self, this): |
| 1158 | self.this = this |
| 1159 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1160 | self.__class__ = Rect |
| 1161 | _core.Rect_swigregister(RectPtr) |
| 1162 | |
| 1163 | def RectPP(*args, **kwargs): |
| 1164 | """RectPP(Point topLeft, Point bottomRight) -> Rect |
| 1165 | |
| 1166 | Create a new Rect object from Points representing two corners.""" |
| 1167 | val = _core.new_RectPP(*args, **kwargs) |
| 1168 | val.thisown = 1 |
| 1169 | return val |
| 1170 | |
| 1171 | def RectPS(*args, **kwargs): |
| 1172 | """RectPS(Point pos, Size size) -> Rect |
| 1173 | |
| 1174 | Create a new Rect from a position and size.""" |
| 1175 | val = _core.new_RectPS(*args, **kwargs) |
| 1176 | val.thisown = 1 |
| 1177 | return val |
| 1178 | |
| 1179 | |
| 1180 | def IntersectRect(*args, **kwargs): |
| 1181 | """IntersectRect(Rect r1, Rect r2) -> Rect |
| 1182 | |
| 1183 | Calculate and return the intersection of r1 and r2.""" |
| 1184 | return _core.IntersectRect(*args, **kwargs) |
| 1185 | #--------------------------------------------------------------------------- |
| 1186 | |
| 1187 | class Point2D(object): |
| 1188 | """wx.Point2Ds represent a point or a vector in a 2d coordinate system with floating point values.""" |
| 1189 | def __repr__(self): |
| 1190 | return "<%s.%s; proxy of C++ wxPoint2D instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1191 | def __init__(self, *args, **kwargs): |
| 1192 | """__init__(double x=0.0, double y=0.0) -> Point2D |
| 1193 | |
| 1194 | Create a w.Point2D object.""" |
| 1195 | newobj = _core.new_Point2D(*args, **kwargs) |
| 1196 | self.this = newobj.this |
| 1197 | self.thisown = 1 |
| 1198 | del newobj.thisown |
| 1199 | def GetFloor(*args, **kwargs): |
| 1200 | """GetFloor() -> (x,y) |
| 1201 | |
| 1202 | Convert to integer""" |
| 1203 | return _core.Point2D_GetFloor(*args, **kwargs) |
| 1204 | |
| 1205 | def GetRounded(*args, **kwargs): |
| 1206 | """GetRounded() -> (x,y) |
| 1207 | |
| 1208 | Convert to integer""" |
| 1209 | return _core.Point2D_GetRounded(*args, **kwargs) |
| 1210 | |
| 1211 | def GetVectorLength(*args, **kwargs): |
| 1212 | """GetVectorLength() -> double""" |
| 1213 | return _core.Point2D_GetVectorLength(*args, **kwargs) |
| 1214 | |
| 1215 | def GetVectorAngle(*args, **kwargs): |
| 1216 | """GetVectorAngle() -> double""" |
| 1217 | return _core.Point2D_GetVectorAngle(*args, **kwargs) |
| 1218 | |
| 1219 | def SetVectorLength(*args, **kwargs): |
| 1220 | """SetVectorLength(double length)""" |
| 1221 | return _core.Point2D_SetVectorLength(*args, **kwargs) |
| 1222 | |
| 1223 | def SetVectorAngle(*args, **kwargs): |
| 1224 | """SetVectorAngle(double degrees)""" |
| 1225 | return _core.Point2D_SetVectorAngle(*args, **kwargs) |
| 1226 | |
| 1227 | def SetPolarCoordinates(self, angle, length): |
| 1228 | self.SetVectorLength(length) |
| 1229 | self.SetVectorAngle(angle) |
| 1230 | def Normalize(self): |
| 1231 | self.SetVectorLength(1.0) |
| 1232 | |
| 1233 | def GetDistance(*args, **kwargs): |
| 1234 | """GetDistance(Point2D pt) -> double""" |
| 1235 | return _core.Point2D_GetDistance(*args, **kwargs) |
| 1236 | |
| 1237 | def GetDistanceSquare(*args, **kwargs): |
| 1238 | """GetDistanceSquare(Point2D pt) -> double""" |
| 1239 | return _core.Point2D_GetDistanceSquare(*args, **kwargs) |
| 1240 | |
| 1241 | def GetDotProduct(*args, **kwargs): |
| 1242 | """GetDotProduct(Point2D vec) -> double""" |
| 1243 | return _core.Point2D_GetDotProduct(*args, **kwargs) |
| 1244 | |
| 1245 | def GetCrossProduct(*args, **kwargs): |
| 1246 | """GetCrossProduct(Point2D vec) -> double""" |
| 1247 | return _core.Point2D_GetCrossProduct(*args, **kwargs) |
| 1248 | |
| 1249 | def __neg__(*args, **kwargs): |
| 1250 | """__neg__() -> Point2D |
| 1251 | |
| 1252 | the reflection of this point""" |
| 1253 | return _core.Point2D___neg__(*args, **kwargs) |
| 1254 | |
| 1255 | def __iadd__(*args, **kwargs): |
| 1256 | """__iadd__(Point2D pt) -> Point2D""" |
| 1257 | return _core.Point2D___iadd__(*args, **kwargs) |
| 1258 | |
| 1259 | def __isub__(*args, **kwargs): |
| 1260 | """__isub__(Point2D pt) -> Point2D""" |
| 1261 | return _core.Point2D___isub__(*args, **kwargs) |
| 1262 | |
| 1263 | def __imul__(*args, **kwargs): |
| 1264 | """__imul__(Point2D pt) -> Point2D""" |
| 1265 | return _core.Point2D___imul__(*args, **kwargs) |
| 1266 | |
| 1267 | def __idiv__(*args, **kwargs): |
| 1268 | """__idiv__(Point2D pt) -> Point2D""" |
| 1269 | return _core.Point2D___idiv__(*args, **kwargs) |
| 1270 | |
| 1271 | def __eq__(*args, **kwargs): |
| 1272 | """__eq__(Point2D pt) -> bool |
| 1273 | |
| 1274 | Test for equality""" |
| 1275 | return _core.Point2D___eq__(*args, **kwargs) |
| 1276 | |
| 1277 | def __ne__(*args, **kwargs): |
| 1278 | """__ne__(Point2D pt) -> bool |
| 1279 | |
| 1280 | Test for inequality""" |
| 1281 | return _core.Point2D___ne__(*args, **kwargs) |
| 1282 | |
| 1283 | x = property(_core.Point2D_x_get, _core.Point2D_x_set) |
| 1284 | y = property(_core.Point2D_y_get, _core.Point2D_y_set) |
| 1285 | def Set(*args, **kwargs): |
| 1286 | """Set(double x=0, double y=0)""" |
| 1287 | return _core.Point2D_Set(*args, **kwargs) |
| 1288 | |
| 1289 | def Get(*args, **kwargs): |
| 1290 | """Get() -> (x,y) |
| 1291 | |
| 1292 | Return x and y properties as a tuple.""" |
| 1293 | return _core.Point2D_Get(*args, **kwargs) |
| 1294 | |
| 1295 | asTuple = Get |
| 1296 | def __str__(self): return str(self.Get()) |
| 1297 | def __repr__(self): return 'wx.Point2D'+str(self.Get()) |
| 1298 | def __len__(self): return len(self.Get()) |
| 1299 | def __getitem__(self, index): return self.Get()[index] |
| 1300 | def __setitem__(self, index, val): |
| 1301 | if index == 0: self.x = val |
| 1302 | elif index == 1: self.y = val |
| 1303 | else: raise IndexError |
| 1304 | def __nonzero__(self): return self.Get() != (0.0, 0.0) |
| 1305 | def __getinitargs__(self): return () |
| 1306 | def __getstate__(self): return self.Get() |
| 1307 | def __setstate__(self, state): self.Set(*state) |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | class Point2DPtr(Point2D): |
| 1312 | def __init__(self, this): |
| 1313 | self.this = this |
| 1314 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1315 | self.__class__ = Point2D |
| 1316 | _core.Point2D_swigregister(Point2DPtr) |
| 1317 | |
| 1318 | def Point2DCopy(*args, **kwargs): |
| 1319 | """Point2DCopy(Point2D pt) -> Point2D |
| 1320 | |
| 1321 | Create a w.Point2D object.""" |
| 1322 | val = _core.new_Point2DCopy(*args, **kwargs) |
| 1323 | val.thisown = 1 |
| 1324 | return val |
| 1325 | |
| 1326 | def Point2DFromPoint(*args, **kwargs): |
| 1327 | """Point2DFromPoint(Point pt) -> Point2D |
| 1328 | |
| 1329 | Create a w.Point2D object.""" |
| 1330 | val = _core.new_Point2DFromPoint(*args, **kwargs) |
| 1331 | val.thisown = 1 |
| 1332 | return val |
| 1333 | |
| 1334 | #--------------------------------------------------------------------------- |
| 1335 | |
| 1336 | FromStart = _core.FromStart |
| 1337 | FromCurrent = _core.FromCurrent |
| 1338 | FromEnd = _core.FromEnd |
| 1339 | class InputStream(object): |
| 1340 | """""" |
| 1341 | def __repr__(self): |
| 1342 | return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1343 | def __init__(self, *args, **kwargs): |
| 1344 | """__init__(PyObject p) -> InputStream""" |
| 1345 | newobj = _core.new_InputStream(*args, **kwargs) |
| 1346 | self.this = newobj.this |
| 1347 | self.thisown = 1 |
| 1348 | del newobj.thisown |
| 1349 | def close(*args, **kwargs): |
| 1350 | """close()""" |
| 1351 | return _core.InputStream_close(*args, **kwargs) |
| 1352 | |
| 1353 | def flush(*args, **kwargs): |
| 1354 | """flush()""" |
| 1355 | return _core.InputStream_flush(*args, **kwargs) |
| 1356 | |
| 1357 | def eof(*args, **kwargs): |
| 1358 | """eof() -> bool""" |
| 1359 | return _core.InputStream_eof(*args, **kwargs) |
| 1360 | |
| 1361 | def read(*args, **kwargs): |
| 1362 | """read(int size=-1) -> PyObject""" |
| 1363 | return _core.InputStream_read(*args, **kwargs) |
| 1364 | |
| 1365 | def readline(*args, **kwargs): |
| 1366 | """readline(int size=-1) -> PyObject""" |
| 1367 | return _core.InputStream_readline(*args, **kwargs) |
| 1368 | |
| 1369 | def readlines(*args, **kwargs): |
| 1370 | """readlines(int sizehint=-1) -> PyObject""" |
| 1371 | return _core.InputStream_readlines(*args, **kwargs) |
| 1372 | |
| 1373 | def seek(*args, **kwargs): |
| 1374 | """seek(int offset, int whence=0)""" |
| 1375 | return _core.InputStream_seek(*args, **kwargs) |
| 1376 | |
| 1377 | def tell(*args, **kwargs): |
| 1378 | """tell() -> int""" |
| 1379 | return _core.InputStream_tell(*args, **kwargs) |
| 1380 | |
| 1381 | def Peek(*args, **kwargs): |
| 1382 | """Peek() -> char""" |
| 1383 | return _core.InputStream_Peek(*args, **kwargs) |
| 1384 | |
| 1385 | def GetC(*args, **kwargs): |
| 1386 | """GetC() -> char""" |
| 1387 | return _core.InputStream_GetC(*args, **kwargs) |
| 1388 | |
| 1389 | def LastRead(*args, **kwargs): |
| 1390 | """LastRead() -> size_t""" |
| 1391 | return _core.InputStream_LastRead(*args, **kwargs) |
| 1392 | |
| 1393 | def CanRead(*args, **kwargs): |
| 1394 | """CanRead() -> bool""" |
| 1395 | return _core.InputStream_CanRead(*args, **kwargs) |
| 1396 | |
| 1397 | def Eof(*args, **kwargs): |
| 1398 | """Eof() -> bool""" |
| 1399 | return _core.InputStream_Eof(*args, **kwargs) |
| 1400 | |
| 1401 | def Ungetch(*args, **kwargs): |
| 1402 | """Ungetch(char c) -> bool""" |
| 1403 | return _core.InputStream_Ungetch(*args, **kwargs) |
| 1404 | |
| 1405 | def SeekI(*args, **kwargs): |
| 1406 | """SeekI(long pos, wxSeekMode mode=FromStart) -> long""" |
| 1407 | return _core.InputStream_SeekI(*args, **kwargs) |
| 1408 | |
| 1409 | def TellI(*args, **kwargs): |
| 1410 | """TellI() -> long""" |
| 1411 | return _core.InputStream_TellI(*args, **kwargs) |
| 1412 | |
| 1413 | |
| 1414 | class InputStreamPtr(InputStream): |
| 1415 | def __init__(self, this): |
| 1416 | self.this = this |
| 1417 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1418 | self.__class__ = InputStream |
| 1419 | _core.InputStream_swigregister(InputStreamPtr) |
| 1420 | cvar = _core.cvar |
| 1421 | DefaultPosition = cvar.DefaultPosition |
| 1422 | DefaultSize = cvar.DefaultSize |
| 1423 | |
| 1424 | class OutputStream(object): |
| 1425 | """""" |
| 1426 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 1427 | def __repr__(self): |
| 1428 | return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1429 | def write(*args, **kwargs): |
| 1430 | """write(PyObject obj)""" |
| 1431 | return _core.OutputStream_write(*args, **kwargs) |
| 1432 | |
| 1433 | |
| 1434 | class OutputStreamPtr(OutputStream): |
| 1435 | def __init__(self, this): |
| 1436 | self.this = this |
| 1437 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1438 | self.__class__ = OutputStream |
| 1439 | _core.OutputStream_swigregister(OutputStreamPtr) |
| 1440 | |
| 1441 | #--------------------------------------------------------------------------- |
| 1442 | |
| 1443 | class FSFile(Object): |
| 1444 | """""" |
| 1445 | def __repr__(self): |
| 1446 | return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1447 | def __init__(self, *args, **kwargs): |
| 1448 | """__init__(wxInputStream stream, wxString loc, wxString mimetype, |
| 1449 | wxString anchor, wxDateTime modif) -> FSFile""" |
| 1450 | newobj = _core.new_FSFile(*args, **kwargs) |
| 1451 | self.this = newobj.this |
| 1452 | self.thisown = 1 |
| 1453 | del newobj.thisown |
| 1454 | def __del__(self, destroy=_core.delete_FSFile): |
| 1455 | """__del__()""" |
| 1456 | try: |
| 1457 | if self.thisown: destroy(self) |
| 1458 | except: pass |
| 1459 | |
| 1460 | def GetStream(*args, **kwargs): |
| 1461 | """GetStream() -> wxInputStream""" |
| 1462 | return _core.FSFile_GetStream(*args, **kwargs) |
| 1463 | |
| 1464 | def GetMimeType(*args, **kwargs): |
| 1465 | """GetMimeType() -> wxString""" |
| 1466 | return _core.FSFile_GetMimeType(*args, **kwargs) |
| 1467 | |
| 1468 | def GetLocation(*args, **kwargs): |
| 1469 | """GetLocation() -> wxString""" |
| 1470 | return _core.FSFile_GetLocation(*args, **kwargs) |
| 1471 | |
| 1472 | def GetAnchor(*args, **kwargs): |
| 1473 | """GetAnchor() -> wxString""" |
| 1474 | return _core.FSFile_GetAnchor(*args, **kwargs) |
| 1475 | |
| 1476 | def GetModificationTime(*args, **kwargs): |
| 1477 | """GetModificationTime() -> wxDateTime""" |
| 1478 | return _core.FSFile_GetModificationTime(*args, **kwargs) |
| 1479 | |
| 1480 | |
| 1481 | class FSFilePtr(FSFile): |
| 1482 | def __init__(self, this): |
| 1483 | self.this = this |
| 1484 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1485 | self.__class__ = FSFile |
| 1486 | _core.FSFile_swigregister(FSFilePtr) |
| 1487 | |
| 1488 | class CPPFileSystemHandler(object): |
| 1489 | """""" |
| 1490 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 1491 | def __repr__(self): |
| 1492 | return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1493 | |
| 1494 | class CPPFileSystemHandlerPtr(CPPFileSystemHandler): |
| 1495 | def __init__(self, this): |
| 1496 | self.this = this |
| 1497 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1498 | self.__class__ = CPPFileSystemHandler |
| 1499 | _core.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr) |
| 1500 | |
| 1501 | class FileSystemHandler(CPPFileSystemHandler): |
| 1502 | """""" |
| 1503 | def __repr__(self): |
| 1504 | return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1505 | def __init__(self, *args, **kwargs): |
| 1506 | """__init__() -> FileSystemHandler""" |
| 1507 | newobj = _core.new_FileSystemHandler(*args, **kwargs) |
| 1508 | self.this = newobj.this |
| 1509 | self.thisown = 1 |
| 1510 | del newobj.thisown |
| 1511 | self._setCallbackInfo(self, FileSystemHandler) |
| 1512 | |
| 1513 | def _setCallbackInfo(*args, **kwargs): |
| 1514 | """_setCallbackInfo(PyObject self, PyObject _class)""" |
| 1515 | return _core.FileSystemHandler__setCallbackInfo(*args, **kwargs) |
| 1516 | |
| 1517 | def CanOpen(*args, **kwargs): |
| 1518 | """CanOpen(wxString location) -> bool""" |
| 1519 | return _core.FileSystemHandler_CanOpen(*args, **kwargs) |
| 1520 | |
| 1521 | def OpenFile(*args, **kwargs): |
| 1522 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" |
| 1523 | return _core.FileSystemHandler_OpenFile(*args, **kwargs) |
| 1524 | |
| 1525 | def FindFirst(*args, **kwargs): |
| 1526 | """FindFirst(wxString spec, int flags=0) -> wxString""" |
| 1527 | return _core.FileSystemHandler_FindFirst(*args, **kwargs) |
| 1528 | |
| 1529 | def FindNext(*args, **kwargs): |
| 1530 | """FindNext() -> wxString""" |
| 1531 | return _core.FileSystemHandler_FindNext(*args, **kwargs) |
| 1532 | |
| 1533 | def GetProtocol(*args, **kwargs): |
| 1534 | """GetProtocol(wxString location) -> wxString""" |
| 1535 | return _core.FileSystemHandler_GetProtocol(*args, **kwargs) |
| 1536 | |
| 1537 | def GetLeftLocation(*args, **kwargs): |
| 1538 | """GetLeftLocation(wxString location) -> wxString""" |
| 1539 | return _core.FileSystemHandler_GetLeftLocation(*args, **kwargs) |
| 1540 | |
| 1541 | def GetAnchor(*args, **kwargs): |
| 1542 | """GetAnchor(wxString location) -> wxString""" |
| 1543 | return _core.FileSystemHandler_GetAnchor(*args, **kwargs) |
| 1544 | |
| 1545 | def GetRightLocation(*args, **kwargs): |
| 1546 | """GetRightLocation(wxString location) -> wxString""" |
| 1547 | return _core.FileSystemHandler_GetRightLocation(*args, **kwargs) |
| 1548 | |
| 1549 | def GetMimeTypeFromExt(*args, **kwargs): |
| 1550 | """GetMimeTypeFromExt(wxString location) -> wxString""" |
| 1551 | return _core.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs) |
| 1552 | |
| 1553 | |
| 1554 | class FileSystemHandlerPtr(FileSystemHandler): |
| 1555 | def __init__(self, this): |
| 1556 | self.this = this |
| 1557 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1558 | self.__class__ = FileSystemHandler |
| 1559 | _core.FileSystemHandler_swigregister(FileSystemHandlerPtr) |
| 1560 | |
| 1561 | class FileSystem(Object): |
| 1562 | """""" |
| 1563 | def __repr__(self): |
| 1564 | return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1565 | def __init__(self, *args, **kwargs): |
| 1566 | """__init__() -> FileSystem""" |
| 1567 | newobj = _core.new_FileSystem(*args, **kwargs) |
| 1568 | self.this = newobj.this |
| 1569 | self.thisown = 1 |
| 1570 | del newobj.thisown |
| 1571 | def __del__(self, destroy=_core.delete_FileSystem): |
| 1572 | """__del__()""" |
| 1573 | try: |
| 1574 | if self.thisown: destroy(self) |
| 1575 | except: pass |
| 1576 | |
| 1577 | def ChangePathTo(*args, **kwargs): |
| 1578 | """ChangePathTo(wxString location, bool is_dir=False)""" |
| 1579 | return _core.FileSystem_ChangePathTo(*args, **kwargs) |
| 1580 | |
| 1581 | def GetPath(*args, **kwargs): |
| 1582 | """GetPath() -> wxString""" |
| 1583 | return _core.FileSystem_GetPath(*args, **kwargs) |
| 1584 | |
| 1585 | def OpenFile(*args, **kwargs): |
| 1586 | """OpenFile(wxString location) -> FSFile""" |
| 1587 | return _core.FileSystem_OpenFile(*args, **kwargs) |
| 1588 | |
| 1589 | def FindFirst(*args, **kwargs): |
| 1590 | """FindFirst(wxString spec, int flags=0) -> wxString""" |
| 1591 | return _core.FileSystem_FindFirst(*args, **kwargs) |
| 1592 | |
| 1593 | def FindNext(*args, **kwargs): |
| 1594 | """FindNext() -> wxString""" |
| 1595 | return _core.FileSystem_FindNext(*args, **kwargs) |
| 1596 | |
| 1597 | def AddHandler(*args, **kwargs): |
| 1598 | """FileSystem.AddHandler(CPPFileSystemHandler handler)""" |
| 1599 | return _core.FileSystem_AddHandler(*args, **kwargs) |
| 1600 | |
| 1601 | AddHandler = staticmethod(AddHandler) |
| 1602 | def CleanUpHandlers(*args, **kwargs): |
| 1603 | """FileSystem.CleanUpHandlers()""" |
| 1604 | return _core.FileSystem_CleanUpHandlers(*args, **kwargs) |
| 1605 | |
| 1606 | CleanUpHandlers = staticmethod(CleanUpHandlers) |
| 1607 | def FileNameToURL(*args, **kwargs): |
| 1608 | """FileSystem.FileNameToURL(wxString filename) -> wxString""" |
| 1609 | return _core.FileSystem_FileNameToURL(*args, **kwargs) |
| 1610 | |
| 1611 | FileNameToURL = staticmethod(FileNameToURL) |
| 1612 | |
| 1613 | class FileSystemPtr(FileSystem): |
| 1614 | def __init__(self, this): |
| 1615 | self.this = this |
| 1616 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1617 | self.__class__ = FileSystem |
| 1618 | _core.FileSystem_swigregister(FileSystemPtr) |
| 1619 | |
| 1620 | def FileSystem_AddHandler(*args, **kwargs): |
| 1621 | """FileSystem_AddHandler(CPPFileSystemHandler handler)""" |
| 1622 | return _core.FileSystem_AddHandler(*args, **kwargs) |
| 1623 | |
| 1624 | def FileSystem_CleanUpHandlers(*args, **kwargs): |
| 1625 | """FileSystem_CleanUpHandlers()""" |
| 1626 | return _core.FileSystem_CleanUpHandlers(*args, **kwargs) |
| 1627 | |
| 1628 | def FileSystem_FileNameToURL(*args, **kwargs): |
| 1629 | """FileSystem_FileNameToURL(wxString filename) -> wxString""" |
| 1630 | return _core.FileSystem_FileNameToURL(*args, **kwargs) |
| 1631 | |
| 1632 | |
| 1633 | def FileSystem_URLToFileName(*args, **kwargs): |
| 1634 | """FileSystem_URLToFileName(wxString url) -> wxString""" |
| 1635 | return _core.FileSystem_URLToFileName(*args, **kwargs) |
| 1636 | class InternetFSHandler(CPPFileSystemHandler): |
| 1637 | """""" |
| 1638 | def __repr__(self): |
| 1639 | return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1640 | def __init__(self, *args, **kwargs): |
| 1641 | """__init__() -> InternetFSHandler""" |
| 1642 | newobj = _core.new_InternetFSHandler(*args, **kwargs) |
| 1643 | self.this = newobj.this |
| 1644 | self.thisown = 1 |
| 1645 | del newobj.thisown |
| 1646 | def CanOpen(*args, **kwargs): |
| 1647 | """CanOpen(wxString location) -> bool""" |
| 1648 | return _core.InternetFSHandler_CanOpen(*args, **kwargs) |
| 1649 | |
| 1650 | def OpenFile(*args, **kwargs): |
| 1651 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" |
| 1652 | return _core.InternetFSHandler_OpenFile(*args, **kwargs) |
| 1653 | |
| 1654 | |
| 1655 | class InternetFSHandlerPtr(InternetFSHandler): |
| 1656 | def __init__(self, this): |
| 1657 | self.this = this |
| 1658 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1659 | self.__class__ = InternetFSHandler |
| 1660 | _core.InternetFSHandler_swigregister(InternetFSHandlerPtr) |
| 1661 | |
| 1662 | class ZipFSHandler(CPPFileSystemHandler): |
| 1663 | """""" |
| 1664 | def __repr__(self): |
| 1665 | return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1666 | def __init__(self, *args, **kwargs): |
| 1667 | """__init__() -> ZipFSHandler""" |
| 1668 | newobj = _core.new_ZipFSHandler(*args, **kwargs) |
| 1669 | self.this = newobj.this |
| 1670 | self.thisown = 1 |
| 1671 | del newobj.thisown |
| 1672 | def CanOpen(*args, **kwargs): |
| 1673 | """CanOpen(wxString location) -> bool""" |
| 1674 | return _core.ZipFSHandler_CanOpen(*args, **kwargs) |
| 1675 | |
| 1676 | def OpenFile(*args, **kwargs): |
| 1677 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" |
| 1678 | return _core.ZipFSHandler_OpenFile(*args, **kwargs) |
| 1679 | |
| 1680 | def FindFirst(*args, **kwargs): |
| 1681 | """FindFirst(wxString spec, int flags=0) -> wxString""" |
| 1682 | return _core.ZipFSHandler_FindFirst(*args, **kwargs) |
| 1683 | |
| 1684 | def FindNext(*args, **kwargs): |
| 1685 | """FindNext() -> wxString""" |
| 1686 | return _core.ZipFSHandler_FindNext(*args, **kwargs) |
| 1687 | |
| 1688 | |
| 1689 | class ZipFSHandlerPtr(ZipFSHandler): |
| 1690 | def __init__(self, this): |
| 1691 | self.this = this |
| 1692 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1693 | self.__class__ = ZipFSHandler |
| 1694 | _core.ZipFSHandler_swigregister(ZipFSHandlerPtr) |
| 1695 | |
| 1696 | |
| 1697 | def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs): |
| 1698 | """__wxMemoryFSHandler_AddFile_wxImage(wxString filename, Image image, long type)""" |
| 1699 | return _core.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs) |
| 1700 | |
| 1701 | def __wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs): |
| 1702 | """__wxMemoryFSHandler_AddFile_wxBitmap(wxString filename, wxBitmap bitmap, long type)""" |
| 1703 | return _core.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs) |
| 1704 | |
| 1705 | def __wxMemoryFSHandler_AddFile_Data(*args, **kwargs): |
| 1706 | """__wxMemoryFSHandler_AddFile_Data(wxString filename, PyObject data)""" |
| 1707 | return _core.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs) |
| 1708 | def MemoryFSHandler_AddFile(filename, a, b=''): |
| 1709 | if isinstance(a, wx.Image): |
| 1710 | __wxMemoryFSHandler_AddFile_wxImage(filename, a, b) |
| 1711 | elif isinstance(a, wx.Bitmap): |
| 1712 | __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b) |
| 1713 | elif type(a) == str: |
| 1714 | __wxMemoryFSHandler_AddFile_Data(filename, a) |
| 1715 | else: raise TypeError, 'wx.Image, wx.Bitmap or string expected' |
| 1716 | |
| 1717 | class MemoryFSHandler(CPPFileSystemHandler): |
| 1718 | """""" |
| 1719 | def __repr__(self): |
| 1720 | return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1721 | def __init__(self, *args, **kwargs): |
| 1722 | """__init__() -> MemoryFSHandler""" |
| 1723 | newobj = _core.new_MemoryFSHandler(*args, **kwargs) |
| 1724 | self.this = newobj.this |
| 1725 | self.thisown = 1 |
| 1726 | del newobj.thisown |
| 1727 | def RemoveFile(*args, **kwargs): |
| 1728 | """MemoryFSHandler.RemoveFile(wxString filename)""" |
| 1729 | return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) |
| 1730 | |
| 1731 | RemoveFile = staticmethod(RemoveFile) |
| 1732 | AddFile = staticmethod(MemoryFSHandler_AddFile) |
| 1733 | def CanOpen(*args, **kwargs): |
| 1734 | """CanOpen(wxString location) -> bool""" |
| 1735 | return _core.MemoryFSHandler_CanOpen(*args, **kwargs) |
| 1736 | |
| 1737 | def OpenFile(*args, **kwargs): |
| 1738 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" |
| 1739 | return _core.MemoryFSHandler_OpenFile(*args, **kwargs) |
| 1740 | |
| 1741 | def FindFirst(*args, **kwargs): |
| 1742 | """FindFirst(wxString spec, int flags=0) -> wxString""" |
| 1743 | return _core.MemoryFSHandler_FindFirst(*args, **kwargs) |
| 1744 | |
| 1745 | def FindNext(*args, **kwargs): |
| 1746 | """FindNext() -> wxString""" |
| 1747 | return _core.MemoryFSHandler_FindNext(*args, **kwargs) |
| 1748 | |
| 1749 | |
| 1750 | class MemoryFSHandlerPtr(MemoryFSHandler): |
| 1751 | def __init__(self, this): |
| 1752 | self.this = this |
| 1753 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1754 | self.__class__ = MemoryFSHandler |
| 1755 | _core.MemoryFSHandler_swigregister(MemoryFSHandlerPtr) |
| 1756 | |
| 1757 | def MemoryFSHandler_RemoveFile(*args, **kwargs): |
| 1758 | """MemoryFSHandler_RemoveFile(wxString filename)""" |
| 1759 | return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) |
| 1760 | |
| 1761 | #--------------------------------------------------------------------------- |
| 1762 | |
| 1763 | class ImageHandler(Object): |
| 1764 | """""" |
| 1765 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 1766 | def __repr__(self): |
| 1767 | return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1768 | def GetName(*args, **kwargs): |
| 1769 | """GetName() -> wxString""" |
| 1770 | return _core.ImageHandler_GetName(*args, **kwargs) |
| 1771 | |
| 1772 | def GetExtension(*args, **kwargs): |
| 1773 | """GetExtension() -> wxString""" |
| 1774 | return _core.ImageHandler_GetExtension(*args, **kwargs) |
| 1775 | |
| 1776 | def GetType(*args, **kwargs): |
| 1777 | """GetType() -> long""" |
| 1778 | return _core.ImageHandler_GetType(*args, **kwargs) |
| 1779 | |
| 1780 | def GetMimeType(*args, **kwargs): |
| 1781 | """GetMimeType() -> wxString""" |
| 1782 | return _core.ImageHandler_GetMimeType(*args, **kwargs) |
| 1783 | |
| 1784 | def CanRead(*args, **kwargs): |
| 1785 | """CanRead(wxString name) -> bool""" |
| 1786 | return _core.ImageHandler_CanRead(*args, **kwargs) |
| 1787 | |
| 1788 | def SetName(*args, **kwargs): |
| 1789 | """SetName(wxString name)""" |
| 1790 | return _core.ImageHandler_SetName(*args, **kwargs) |
| 1791 | |
| 1792 | def SetExtension(*args, **kwargs): |
| 1793 | """SetExtension(wxString extension)""" |
| 1794 | return _core.ImageHandler_SetExtension(*args, **kwargs) |
| 1795 | |
| 1796 | def SetType(*args, **kwargs): |
| 1797 | """SetType(long type)""" |
| 1798 | return _core.ImageHandler_SetType(*args, **kwargs) |
| 1799 | |
| 1800 | def SetMimeType(*args, **kwargs): |
| 1801 | """SetMimeType(wxString mimetype)""" |
| 1802 | return _core.ImageHandler_SetMimeType(*args, **kwargs) |
| 1803 | |
| 1804 | |
| 1805 | class ImageHandlerPtr(ImageHandler): |
| 1806 | def __init__(self, this): |
| 1807 | self.this = this |
| 1808 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1809 | self.__class__ = ImageHandler |
| 1810 | _core.ImageHandler_swigregister(ImageHandlerPtr) |
| 1811 | |
| 1812 | class ImageHistogram(object): |
| 1813 | """""" |
| 1814 | def __repr__(self): |
| 1815 | return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1816 | def __init__(self, *args, **kwargs): |
| 1817 | """__init__() -> ImageHistogram""" |
| 1818 | newobj = _core.new_ImageHistogram(*args, **kwargs) |
| 1819 | self.this = newobj.this |
| 1820 | self.thisown = 1 |
| 1821 | del newobj.thisown |
| 1822 | def MakeKey(*args, **kwargs): |
| 1823 | """ImageHistogram.MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long |
| 1824 | |
| 1825 | Get the key in the histogram for the given RGB values""" |
| 1826 | return _core.ImageHistogram_MakeKey(*args, **kwargs) |
| 1827 | |
| 1828 | MakeKey = staticmethod(MakeKey) |
| 1829 | def FindFirstUnusedColour(*args, **kwargs): |
| 1830 | """FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) |
| 1831 | |
| 1832 | Find first colour that is not used in the image and has higher RGB values than |
| 1833 | startR, startG, startB. Returns a tuple consisting of a success flag and rgb |
| 1834 | values.""" |
| 1835 | return _core.ImageHistogram_FindFirstUnusedColour(*args, **kwargs) |
| 1836 | |
| 1837 | |
| 1838 | class ImageHistogramPtr(ImageHistogram): |
| 1839 | def __init__(self, this): |
| 1840 | self.this = this |
| 1841 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 1842 | self.__class__ = ImageHistogram |
| 1843 | _core.ImageHistogram_swigregister(ImageHistogramPtr) |
| 1844 | |
| 1845 | def ImageHistogram_MakeKey(*args, **kwargs): |
| 1846 | """ImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long |
| 1847 | |
| 1848 | Get the key in the histogram for the given RGB values""" |
| 1849 | return _core.ImageHistogram_MakeKey(*args, **kwargs) |
| 1850 | |
| 1851 | class Image(Object): |
| 1852 | """""" |
| 1853 | def __repr__(self): |
| 1854 | return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 1855 | def __init__(self, *args, **kwargs): |
| 1856 | """__init__(wxString name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" |
| 1857 | newobj = _core.new_Image(*args, **kwargs) |
| 1858 | self.this = newobj.this |
| 1859 | self.thisown = 1 |
| 1860 | del newobj.thisown |
| 1861 | def __del__(self, destroy=_core.delete_Image): |
| 1862 | """__del__()""" |
| 1863 | try: |
| 1864 | if self.thisown: destroy(self) |
| 1865 | except: pass |
| 1866 | |
| 1867 | def Create(*args, **kwargs): |
| 1868 | """Create(int width, int height)""" |
| 1869 | return _core.Image_Create(*args, **kwargs) |
| 1870 | |
| 1871 | def Destroy(*args, **kwargs): |
| 1872 | """Destroy() |
| 1873 | |
| 1874 | Deletes the C++ object this Python object is a proxy for.""" |
| 1875 | return _core.Image_Destroy(*args, **kwargs) |
| 1876 | |
| 1877 | def Scale(*args, **kwargs): |
| 1878 | """Scale(int width, int height) -> Image""" |
| 1879 | return _core.Image_Scale(*args, **kwargs) |
| 1880 | |
| 1881 | def ShrinkBy(*args, **kwargs): |
| 1882 | """ShrinkBy(int xFactor, int yFactor) -> Image""" |
| 1883 | return _core.Image_ShrinkBy(*args, **kwargs) |
| 1884 | |
| 1885 | def Rescale(*args, **kwargs): |
| 1886 | """Rescale(int width, int height) -> Image""" |
| 1887 | return _core.Image_Rescale(*args, **kwargs) |
| 1888 | |
| 1889 | def SetRGB(*args, **kwargs): |
| 1890 | """SetRGB(int x, int y, unsigned char r, unsigned char g, unsigned char b)""" |
| 1891 | return _core.Image_SetRGB(*args, **kwargs) |
| 1892 | |
| 1893 | def GetRed(*args, **kwargs): |
| 1894 | """GetRed(int x, int y) -> unsigned char""" |
| 1895 | return _core.Image_GetRed(*args, **kwargs) |
| 1896 | |
| 1897 | def GetGreen(*args, **kwargs): |
| 1898 | """GetGreen(int x, int y) -> unsigned char""" |
| 1899 | return _core.Image_GetGreen(*args, **kwargs) |
| 1900 | |
| 1901 | def GetBlue(*args, **kwargs): |
| 1902 | """GetBlue(int x, int y) -> unsigned char""" |
| 1903 | return _core.Image_GetBlue(*args, **kwargs) |
| 1904 | |
| 1905 | def SetAlpha(*args, **kwargs): |
| 1906 | """SetAlpha(int x, int y, unsigned char alpha)""" |
| 1907 | return _core.Image_SetAlpha(*args, **kwargs) |
| 1908 | |
| 1909 | def GetAlpha(*args, **kwargs): |
| 1910 | """GetAlpha(int x, int y) -> unsigned char""" |
| 1911 | return _core.Image_GetAlpha(*args, **kwargs) |
| 1912 | |
| 1913 | def HasAlpha(*args, **kwargs): |
| 1914 | """HasAlpha() -> bool""" |
| 1915 | return _core.Image_HasAlpha(*args, **kwargs) |
| 1916 | |
| 1917 | def FindFirstUnusedColour(*args, **kwargs): |
| 1918 | """FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) |
| 1919 | |
| 1920 | Find first colour that is not used in the image and has higher RGB values than |
| 1921 | startR, startG, startB. Returns a tuple consisting of a success flag and rgb |
| 1922 | values.""" |
| 1923 | return _core.Image_FindFirstUnusedColour(*args, **kwargs) |
| 1924 | |
| 1925 | def SetMaskFromImage(*args, **kwargs): |
| 1926 | """SetMaskFromImage(Image mask, byte mr, byte mg, byte mb) -> bool""" |
| 1927 | return _core.Image_SetMaskFromImage(*args, **kwargs) |
| 1928 | |
| 1929 | def CanRead(*args, **kwargs): |
| 1930 | """Image.CanRead(wxString name) -> bool""" |
| 1931 | return _core.Image_CanRead(*args, **kwargs) |
| 1932 | |
| 1933 | CanRead = staticmethod(CanRead) |
| 1934 | def GetImageCount(*args, **kwargs): |
| 1935 | """Image.GetImageCount(wxString name, long type=BITMAP_TYPE_ANY) -> int""" |
| 1936 | return _core.Image_GetImageCount(*args, **kwargs) |
| 1937 | |
| 1938 | GetImageCount = staticmethod(GetImageCount) |
| 1939 | def LoadFile(*args, **kwargs): |
| 1940 | """LoadFile(wxString name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" |
| 1941 | return _core.Image_LoadFile(*args, **kwargs) |
| 1942 | |
| 1943 | def LoadMimeFile(*args, **kwargs): |
| 1944 | """LoadMimeFile(wxString name, wxString mimetype, int index=-1) -> bool""" |
| 1945 | return _core.Image_LoadMimeFile(*args, **kwargs) |
| 1946 | |
| 1947 | def SaveFile(*args, **kwargs): |
| 1948 | """SaveFile(wxString name, int type) -> bool""" |
| 1949 | return _core.Image_SaveFile(*args, **kwargs) |
| 1950 | |
| 1951 | def SaveMimeFile(*args, **kwargs): |
| 1952 | """SaveMimeFile(wxString name, wxString mimetype) -> bool""" |
| 1953 | return _core.Image_SaveMimeFile(*args, **kwargs) |
| 1954 | |
| 1955 | def CanReadStream(*args, **kwargs): |
| 1956 | """Image.CanReadStream(wxInputStream stream) -> bool""" |
| 1957 | return _core.Image_CanReadStream(*args, **kwargs) |
| 1958 | |
| 1959 | CanReadStream = staticmethod(CanReadStream) |
| 1960 | def LoadStream(*args, **kwargs): |
| 1961 | """LoadStream(wxInputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" |
| 1962 | return _core.Image_LoadStream(*args, **kwargs) |
| 1963 | |
| 1964 | def LoadMimeStream(*args, **kwargs): |
| 1965 | """LoadMimeStream(wxInputStream stream, wxString mimetype, int index=-1) -> bool""" |
| 1966 | return _core.Image_LoadMimeStream(*args, **kwargs) |
| 1967 | |
| 1968 | def Ok(*args, **kwargs): |
| 1969 | """Ok() -> bool""" |
| 1970 | return _core.Image_Ok(*args, **kwargs) |
| 1971 | |
| 1972 | def GetWidth(*args, **kwargs): |
| 1973 | """GetWidth() -> int""" |
| 1974 | return _core.Image_GetWidth(*args, **kwargs) |
| 1975 | |
| 1976 | def GetHeight(*args, **kwargs): |
| 1977 | """GetHeight() -> int""" |
| 1978 | return _core.Image_GetHeight(*args, **kwargs) |
| 1979 | |
| 1980 | def GetSubImage(*args, **kwargs): |
| 1981 | """GetSubImage(Rect rect) -> Image""" |
| 1982 | return _core.Image_GetSubImage(*args, **kwargs) |
| 1983 | |
| 1984 | def Copy(*args, **kwargs): |
| 1985 | """Copy() -> Image""" |
| 1986 | return _core.Image_Copy(*args, **kwargs) |
| 1987 | |
| 1988 | def Paste(*args, **kwargs): |
| 1989 | """Paste(Image image, int x, int y)""" |
| 1990 | return _core.Image_Paste(*args, **kwargs) |
| 1991 | |
| 1992 | def GetData(*args, **kwargs): |
| 1993 | """GetData() -> PyObject""" |
| 1994 | return _core.Image_GetData(*args, **kwargs) |
| 1995 | |
| 1996 | def SetData(*args, **kwargs): |
| 1997 | """SetData(PyObject data)""" |
| 1998 | return _core.Image_SetData(*args, **kwargs) |
| 1999 | |
| 2000 | def GetDataBuffer(*args, **kwargs): |
| 2001 | """GetDataBuffer() -> PyObject""" |
| 2002 | return _core.Image_GetDataBuffer(*args, **kwargs) |
| 2003 | |
| 2004 | def SetDataBuffer(*args, **kwargs): |
| 2005 | """SetDataBuffer(PyObject data)""" |
| 2006 | return _core.Image_SetDataBuffer(*args, **kwargs) |
| 2007 | |
| 2008 | def GetAlphaData(*args, **kwargs): |
| 2009 | """GetAlphaData() -> PyObject""" |
| 2010 | return _core.Image_GetAlphaData(*args, **kwargs) |
| 2011 | |
| 2012 | def SetAlphaData(*args, **kwargs): |
| 2013 | """SetAlphaData(PyObject data)""" |
| 2014 | return _core.Image_SetAlphaData(*args, **kwargs) |
| 2015 | |
| 2016 | def GetAlphaBuffer(*args, **kwargs): |
| 2017 | """GetAlphaBuffer() -> PyObject""" |
| 2018 | return _core.Image_GetAlphaBuffer(*args, **kwargs) |
| 2019 | |
| 2020 | def SetAlphaBuffer(*args, **kwargs): |
| 2021 | """SetAlphaBuffer(PyObject data)""" |
| 2022 | return _core.Image_SetAlphaBuffer(*args, **kwargs) |
| 2023 | |
| 2024 | def SetMaskColour(*args, **kwargs): |
| 2025 | """SetMaskColour(unsigned char r, unsigned char g, unsigned char b)""" |
| 2026 | return _core.Image_SetMaskColour(*args, **kwargs) |
| 2027 | |
| 2028 | def GetMaskRed(*args, **kwargs): |
| 2029 | """GetMaskRed() -> unsigned char""" |
| 2030 | return _core.Image_GetMaskRed(*args, **kwargs) |
| 2031 | |
| 2032 | def GetMaskGreen(*args, **kwargs): |
| 2033 | """GetMaskGreen() -> unsigned char""" |
| 2034 | return _core.Image_GetMaskGreen(*args, **kwargs) |
| 2035 | |
| 2036 | def GetMaskBlue(*args, **kwargs): |
| 2037 | """GetMaskBlue() -> unsigned char""" |
| 2038 | return _core.Image_GetMaskBlue(*args, **kwargs) |
| 2039 | |
| 2040 | def SetMask(*args, **kwargs): |
| 2041 | """SetMask(bool mask=True)""" |
| 2042 | return _core.Image_SetMask(*args, **kwargs) |
| 2043 | |
| 2044 | def HasMask(*args, **kwargs): |
| 2045 | """HasMask() -> bool""" |
| 2046 | return _core.Image_HasMask(*args, **kwargs) |
| 2047 | |
| 2048 | def Rotate(*args, **kwargs): |
| 2049 | """Rotate(double angle, Point centre_of_rotation, bool interpolating=True, |
| 2050 | Point offset_after_rotation=None) -> Image""" |
| 2051 | return _core.Image_Rotate(*args, **kwargs) |
| 2052 | |
| 2053 | def Rotate90(*args, **kwargs): |
| 2054 | """Rotate90(bool clockwise=True) -> Image""" |
| 2055 | return _core.Image_Rotate90(*args, **kwargs) |
| 2056 | |
| 2057 | def Mirror(*args, **kwargs): |
| 2058 | """Mirror(bool horizontally=True) -> Image""" |
| 2059 | return _core.Image_Mirror(*args, **kwargs) |
| 2060 | |
| 2061 | def Replace(*args, **kwargs): |
| 2062 | """Replace(unsigned char r1, unsigned char g1, unsigned char b1, |
| 2063 | unsigned char r2, unsigned char g2, unsigned char b2)""" |
| 2064 | return _core.Image_Replace(*args, **kwargs) |
| 2065 | |
| 2066 | def ConvertToMono(*args, **kwargs): |
| 2067 | """ConvertToMono(unsigned char r, unsigned char g, unsigned char b) -> Image""" |
| 2068 | return _core.Image_ConvertToMono(*args, **kwargs) |
| 2069 | |
| 2070 | def SetOption(*args, **kwargs): |
| 2071 | """SetOption(wxString name, wxString value)""" |
| 2072 | return _core.Image_SetOption(*args, **kwargs) |
| 2073 | |
| 2074 | def SetOptionInt(*args, **kwargs): |
| 2075 | """SetOptionInt(wxString name, int value)""" |
| 2076 | return _core.Image_SetOptionInt(*args, **kwargs) |
| 2077 | |
| 2078 | def GetOption(*args, **kwargs): |
| 2079 | """GetOption(wxString name) -> wxString""" |
| 2080 | return _core.Image_GetOption(*args, **kwargs) |
| 2081 | |
| 2082 | def GetOptionInt(*args, **kwargs): |
| 2083 | """GetOptionInt(wxString name) -> int""" |
| 2084 | return _core.Image_GetOptionInt(*args, **kwargs) |
| 2085 | |
| 2086 | def HasOption(*args, **kwargs): |
| 2087 | """HasOption(wxString name) -> bool""" |
| 2088 | return _core.Image_HasOption(*args, **kwargs) |
| 2089 | |
| 2090 | def CountColours(*args, **kwargs): |
| 2091 | """CountColours(unsigned long stopafter=(unsigned long) -1) -> unsigned long""" |
| 2092 | return _core.Image_CountColours(*args, **kwargs) |
| 2093 | |
| 2094 | def ComputeHistogram(*args, **kwargs): |
| 2095 | """ComputeHistogram(ImageHistogram h) -> unsigned long""" |
| 2096 | return _core.Image_ComputeHistogram(*args, **kwargs) |
| 2097 | |
| 2098 | def AddHandler(*args, **kwargs): |
| 2099 | """Image.AddHandler(ImageHandler handler)""" |
| 2100 | return _core.Image_AddHandler(*args, **kwargs) |
| 2101 | |
| 2102 | AddHandler = staticmethod(AddHandler) |
| 2103 | def InsertHandler(*args, **kwargs): |
| 2104 | """Image.InsertHandler(ImageHandler handler)""" |
| 2105 | return _core.Image_InsertHandler(*args, **kwargs) |
| 2106 | |
| 2107 | InsertHandler = staticmethod(InsertHandler) |
| 2108 | def RemoveHandler(*args, **kwargs): |
| 2109 | """Image.RemoveHandler(wxString name) -> bool""" |
| 2110 | return _core.Image_RemoveHandler(*args, **kwargs) |
| 2111 | |
| 2112 | RemoveHandler = staticmethod(RemoveHandler) |
| 2113 | def GetImageExtWildcard(*args, **kwargs): |
| 2114 | """Image.GetImageExtWildcard() -> wxString""" |
| 2115 | return _core.Image_GetImageExtWildcard(*args, **kwargs) |
| 2116 | |
| 2117 | GetImageExtWildcard = staticmethod(GetImageExtWildcard) |
| 2118 | def ConvertToBitmap(*args, **kwargs): |
| 2119 | """ConvertToBitmap() -> wxBitmap""" |
| 2120 | return _core.Image_ConvertToBitmap(*args, **kwargs) |
| 2121 | |
| 2122 | def ConvertToMonoBitmap(*args, **kwargs): |
| 2123 | """ConvertToMonoBitmap(unsigned char red, unsigned char green, unsigned char blue) -> wxBitmap""" |
| 2124 | return _core.Image_ConvertToMonoBitmap(*args, **kwargs) |
| 2125 | |
| 2126 | def __nonzero__(self): return self.Ok() |
| 2127 | |
| 2128 | class ImagePtr(Image): |
| 2129 | def __init__(self, this): |
| 2130 | self.this = this |
| 2131 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2132 | self.__class__ = Image |
| 2133 | _core.Image_swigregister(ImagePtr) |
| 2134 | |
| 2135 | def ImageFromMime(*args, **kwargs): |
| 2136 | """ImageFromMime(wxString name, wxString mimetype, int index=-1) -> Image""" |
| 2137 | val = _core.new_ImageFromMime(*args, **kwargs) |
| 2138 | val.thisown = 1 |
| 2139 | return val |
| 2140 | |
| 2141 | def ImageFromStream(*args, **kwargs): |
| 2142 | """ImageFromStream(wxInputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" |
| 2143 | val = _core.new_ImageFromStream(*args, **kwargs) |
| 2144 | val.thisown = 1 |
| 2145 | return val |
| 2146 | |
| 2147 | def ImageFromStreamMime(*args, **kwargs): |
| 2148 | """ImageFromStreamMime(wxInputStream stream, wxString mimetype, int index=-1) -> Image""" |
| 2149 | val = _core.new_ImageFromStreamMime(*args, **kwargs) |
| 2150 | val.thisown = 1 |
| 2151 | return val |
| 2152 | |
| 2153 | def EmptyImage(*args, **kwargs): |
| 2154 | """EmptyImage(int width=0, int height=0, bool clear=True) -> Image""" |
| 2155 | val = _core.new_EmptyImage(*args, **kwargs) |
| 2156 | val.thisown = 1 |
| 2157 | return val |
| 2158 | |
| 2159 | def ImageFromBitmap(*args, **kwargs): |
| 2160 | """ImageFromBitmap(wxBitmap bitmap) -> Image""" |
| 2161 | val = _core.new_ImageFromBitmap(*args, **kwargs) |
| 2162 | val.thisown = 1 |
| 2163 | return val |
| 2164 | |
| 2165 | def ImageFromData(*args, **kwargs): |
| 2166 | """ImageFromData(int width, int height, unsigned char data) -> Image""" |
| 2167 | val = _core.new_ImageFromData(*args, **kwargs) |
| 2168 | val.thisown = 1 |
| 2169 | return val |
| 2170 | |
| 2171 | def Image_CanRead(*args, **kwargs): |
| 2172 | """Image_CanRead(wxString name) -> bool""" |
| 2173 | return _core.Image_CanRead(*args, **kwargs) |
| 2174 | |
| 2175 | def Image_GetImageCount(*args, **kwargs): |
| 2176 | """Image_GetImageCount(wxString name, long type=BITMAP_TYPE_ANY) -> int""" |
| 2177 | return _core.Image_GetImageCount(*args, **kwargs) |
| 2178 | |
| 2179 | def Image_CanReadStream(*args, **kwargs): |
| 2180 | """Image_CanReadStream(wxInputStream stream) -> bool""" |
| 2181 | return _core.Image_CanReadStream(*args, **kwargs) |
| 2182 | |
| 2183 | def Image_AddHandler(*args, **kwargs): |
| 2184 | """Image_AddHandler(ImageHandler handler)""" |
| 2185 | return _core.Image_AddHandler(*args, **kwargs) |
| 2186 | |
| 2187 | def Image_InsertHandler(*args, **kwargs): |
| 2188 | """Image_InsertHandler(ImageHandler handler)""" |
| 2189 | return _core.Image_InsertHandler(*args, **kwargs) |
| 2190 | |
| 2191 | def Image_RemoveHandler(*args, **kwargs): |
| 2192 | """Image_RemoveHandler(wxString name) -> bool""" |
| 2193 | return _core.Image_RemoveHandler(*args, **kwargs) |
| 2194 | |
| 2195 | def Image_GetImageExtWildcard(*args, **kwargs): |
| 2196 | """Image_GetImageExtWildcard() -> wxString""" |
| 2197 | return _core.Image_GetImageExtWildcard(*args, **kwargs) |
| 2198 | |
| 2199 | |
| 2200 | def InitAllImageHandlers(*args, **kwargs): |
| 2201 | """InitAllImageHandlers()""" |
| 2202 | return _core.InitAllImageHandlers(*args, **kwargs) |
| 2203 | IMAGE_RESOLUTION_INCHES = _core.IMAGE_RESOLUTION_INCHES |
| 2204 | IMAGE_RESOLUTION_CM = _core.IMAGE_RESOLUTION_CM |
| 2205 | BMP_24BPP = _core.BMP_24BPP |
| 2206 | BMP_8BPP = _core.BMP_8BPP |
| 2207 | BMP_8BPP_GREY = _core.BMP_8BPP_GREY |
| 2208 | BMP_8BPP_GRAY = _core.BMP_8BPP_GRAY |
| 2209 | BMP_8BPP_RED = _core.BMP_8BPP_RED |
| 2210 | BMP_8BPP_PALETTE = _core.BMP_8BPP_PALETTE |
| 2211 | BMP_4BPP = _core.BMP_4BPP |
| 2212 | BMP_1BPP = _core.BMP_1BPP |
| 2213 | BMP_1BPP_BW = _core.BMP_1BPP_BW |
| 2214 | class BMPHandler(ImageHandler): |
| 2215 | """""" |
| 2216 | def __repr__(self): |
| 2217 | return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2218 | def __init__(self, *args, **kwargs): |
| 2219 | """__init__() -> BMPHandler""" |
| 2220 | newobj = _core.new_BMPHandler(*args, **kwargs) |
| 2221 | self.this = newobj.this |
| 2222 | self.thisown = 1 |
| 2223 | del newobj.thisown |
| 2224 | |
| 2225 | class BMPHandlerPtr(BMPHandler): |
| 2226 | def __init__(self, this): |
| 2227 | self.this = this |
| 2228 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2229 | self.__class__ = BMPHandler |
| 2230 | _core.BMPHandler_swigregister(BMPHandlerPtr) |
| 2231 | NullImage = cvar.NullImage |
| 2232 | IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT |
| 2233 | IMAGE_OPTION_CUR_HOTSPOT_X = cvar.IMAGE_OPTION_CUR_HOTSPOT_X |
| 2234 | IMAGE_OPTION_CUR_HOTSPOT_Y = cvar.IMAGE_OPTION_CUR_HOTSPOT_Y |
| 2235 | IMAGE_OPTION_RESOLUTION = cvar.IMAGE_OPTION_RESOLUTION |
| 2236 | IMAGE_OPTION_RESOLUTIONUNIT = cvar.IMAGE_OPTION_RESOLUTIONUNIT |
| 2237 | |
| 2238 | class ICOHandler(BMPHandler): |
| 2239 | """""" |
| 2240 | def __repr__(self): |
| 2241 | return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2242 | def __init__(self, *args, **kwargs): |
| 2243 | """__init__() -> ICOHandler""" |
| 2244 | newobj = _core.new_ICOHandler(*args, **kwargs) |
| 2245 | self.this = newobj.this |
| 2246 | self.thisown = 1 |
| 2247 | del newobj.thisown |
| 2248 | |
| 2249 | class ICOHandlerPtr(ICOHandler): |
| 2250 | def __init__(self, this): |
| 2251 | self.this = this |
| 2252 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2253 | self.__class__ = ICOHandler |
| 2254 | _core.ICOHandler_swigregister(ICOHandlerPtr) |
| 2255 | |
| 2256 | class CURHandler(ICOHandler): |
| 2257 | """""" |
| 2258 | def __repr__(self): |
| 2259 | return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2260 | def __init__(self, *args, **kwargs): |
| 2261 | """__init__() -> CURHandler""" |
| 2262 | newobj = _core.new_CURHandler(*args, **kwargs) |
| 2263 | self.this = newobj.this |
| 2264 | self.thisown = 1 |
| 2265 | del newobj.thisown |
| 2266 | |
| 2267 | class CURHandlerPtr(CURHandler): |
| 2268 | def __init__(self, this): |
| 2269 | self.this = this |
| 2270 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2271 | self.__class__ = CURHandler |
| 2272 | _core.CURHandler_swigregister(CURHandlerPtr) |
| 2273 | |
| 2274 | class ANIHandler(CURHandler): |
| 2275 | """""" |
| 2276 | def __repr__(self): |
| 2277 | return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2278 | def __init__(self, *args, **kwargs): |
| 2279 | """__init__() -> ANIHandler""" |
| 2280 | newobj = _core.new_ANIHandler(*args, **kwargs) |
| 2281 | self.this = newobj.this |
| 2282 | self.thisown = 1 |
| 2283 | del newobj.thisown |
| 2284 | |
| 2285 | class ANIHandlerPtr(ANIHandler): |
| 2286 | def __init__(self, this): |
| 2287 | self.this = this |
| 2288 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2289 | self.__class__ = ANIHandler |
| 2290 | _core.ANIHandler_swigregister(ANIHandlerPtr) |
| 2291 | |
| 2292 | class PNGHandler(ImageHandler): |
| 2293 | """""" |
| 2294 | def __repr__(self): |
| 2295 | return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2296 | def __init__(self, *args, **kwargs): |
| 2297 | """__init__() -> PNGHandler""" |
| 2298 | newobj = _core.new_PNGHandler(*args, **kwargs) |
| 2299 | self.this = newobj.this |
| 2300 | self.thisown = 1 |
| 2301 | del newobj.thisown |
| 2302 | |
| 2303 | class PNGHandlerPtr(PNGHandler): |
| 2304 | def __init__(self, this): |
| 2305 | self.this = this |
| 2306 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2307 | self.__class__ = PNGHandler |
| 2308 | _core.PNGHandler_swigregister(PNGHandlerPtr) |
| 2309 | |
| 2310 | class GIFHandler(ImageHandler): |
| 2311 | """""" |
| 2312 | def __repr__(self): |
| 2313 | return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2314 | def __init__(self, *args, **kwargs): |
| 2315 | """__init__() -> GIFHandler""" |
| 2316 | newobj = _core.new_GIFHandler(*args, **kwargs) |
| 2317 | self.this = newobj.this |
| 2318 | self.thisown = 1 |
| 2319 | del newobj.thisown |
| 2320 | |
| 2321 | class GIFHandlerPtr(GIFHandler): |
| 2322 | def __init__(self, this): |
| 2323 | self.this = this |
| 2324 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2325 | self.__class__ = GIFHandler |
| 2326 | _core.GIFHandler_swigregister(GIFHandlerPtr) |
| 2327 | |
| 2328 | class PCXHandler(ImageHandler): |
| 2329 | """""" |
| 2330 | def __repr__(self): |
| 2331 | return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2332 | def __init__(self, *args, **kwargs): |
| 2333 | """__init__() -> PCXHandler""" |
| 2334 | newobj = _core.new_PCXHandler(*args, **kwargs) |
| 2335 | self.this = newobj.this |
| 2336 | self.thisown = 1 |
| 2337 | del newobj.thisown |
| 2338 | |
| 2339 | class PCXHandlerPtr(PCXHandler): |
| 2340 | def __init__(self, this): |
| 2341 | self.this = this |
| 2342 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2343 | self.__class__ = PCXHandler |
| 2344 | _core.PCXHandler_swigregister(PCXHandlerPtr) |
| 2345 | |
| 2346 | class JPEGHandler(ImageHandler): |
| 2347 | """""" |
| 2348 | def __repr__(self): |
| 2349 | return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2350 | def __init__(self, *args, **kwargs): |
| 2351 | """__init__() -> JPEGHandler""" |
| 2352 | newobj = _core.new_JPEGHandler(*args, **kwargs) |
| 2353 | self.this = newobj.this |
| 2354 | self.thisown = 1 |
| 2355 | del newobj.thisown |
| 2356 | |
| 2357 | class JPEGHandlerPtr(JPEGHandler): |
| 2358 | def __init__(self, this): |
| 2359 | self.this = this |
| 2360 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2361 | self.__class__ = JPEGHandler |
| 2362 | _core.JPEGHandler_swigregister(JPEGHandlerPtr) |
| 2363 | |
| 2364 | class PNMHandler(ImageHandler): |
| 2365 | """""" |
| 2366 | def __repr__(self): |
| 2367 | return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2368 | def __init__(self, *args, **kwargs): |
| 2369 | """__init__() -> PNMHandler""" |
| 2370 | newobj = _core.new_PNMHandler(*args, **kwargs) |
| 2371 | self.this = newobj.this |
| 2372 | self.thisown = 1 |
| 2373 | del newobj.thisown |
| 2374 | |
| 2375 | class PNMHandlerPtr(PNMHandler): |
| 2376 | def __init__(self, this): |
| 2377 | self.this = this |
| 2378 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2379 | self.__class__ = PNMHandler |
| 2380 | _core.PNMHandler_swigregister(PNMHandlerPtr) |
| 2381 | |
| 2382 | class XPMHandler(ImageHandler): |
| 2383 | """""" |
| 2384 | def __repr__(self): |
| 2385 | return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2386 | def __init__(self, *args, **kwargs): |
| 2387 | """__init__() -> XPMHandler""" |
| 2388 | newobj = _core.new_XPMHandler(*args, **kwargs) |
| 2389 | self.this = newobj.this |
| 2390 | self.thisown = 1 |
| 2391 | del newobj.thisown |
| 2392 | |
| 2393 | class XPMHandlerPtr(XPMHandler): |
| 2394 | def __init__(self, this): |
| 2395 | self.this = this |
| 2396 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2397 | self.__class__ = XPMHandler |
| 2398 | _core.XPMHandler_swigregister(XPMHandlerPtr) |
| 2399 | |
| 2400 | class TIFFHandler(ImageHandler): |
| 2401 | """""" |
| 2402 | def __repr__(self): |
| 2403 | return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2404 | def __init__(self, *args, **kwargs): |
| 2405 | """__init__() -> TIFFHandler""" |
| 2406 | newobj = _core.new_TIFFHandler(*args, **kwargs) |
| 2407 | self.this = newobj.this |
| 2408 | self.thisown = 1 |
| 2409 | del newobj.thisown |
| 2410 | |
| 2411 | class TIFFHandlerPtr(TIFFHandler): |
| 2412 | def __init__(self, this): |
| 2413 | self.this = this |
| 2414 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2415 | self.__class__ = TIFFHandler |
| 2416 | _core.TIFFHandler_swigregister(TIFFHandlerPtr) |
| 2417 | |
| 2418 | #--------------------------------------------------------------------------- |
| 2419 | |
| 2420 | class EvtHandler(Object): |
| 2421 | """""" |
| 2422 | def __repr__(self): |
| 2423 | return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2424 | def __init__(self, *args, **kwargs): |
| 2425 | """__init__() -> EvtHandler""" |
| 2426 | newobj = _core.new_EvtHandler(*args, **kwargs) |
| 2427 | self.this = newobj.this |
| 2428 | self.thisown = 1 |
| 2429 | del newobj.thisown |
| 2430 | def GetNextHandler(*args, **kwargs): |
| 2431 | """GetNextHandler() -> EvtHandler""" |
| 2432 | return _core.EvtHandler_GetNextHandler(*args, **kwargs) |
| 2433 | |
| 2434 | def GetPreviousHandler(*args, **kwargs): |
| 2435 | """GetPreviousHandler() -> EvtHandler""" |
| 2436 | return _core.EvtHandler_GetPreviousHandler(*args, **kwargs) |
| 2437 | |
| 2438 | def SetNextHandler(*args, **kwargs): |
| 2439 | """SetNextHandler(EvtHandler handler)""" |
| 2440 | return _core.EvtHandler_SetNextHandler(*args, **kwargs) |
| 2441 | |
| 2442 | def SetPreviousHandler(*args, **kwargs): |
| 2443 | """SetPreviousHandler(EvtHandler handler)""" |
| 2444 | return _core.EvtHandler_SetPreviousHandler(*args, **kwargs) |
| 2445 | |
| 2446 | def GetEvtHandlerEnabled(*args, **kwargs): |
| 2447 | """GetEvtHandlerEnabled() -> bool""" |
| 2448 | return _core.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs) |
| 2449 | |
| 2450 | def SetEvtHandlerEnabled(*args, **kwargs): |
| 2451 | """SetEvtHandlerEnabled(bool enabled)""" |
| 2452 | return _core.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs) |
| 2453 | |
| 2454 | def ProcessEvent(*args, **kwargs): |
| 2455 | """ProcessEvent(Event event) -> bool""" |
| 2456 | return _core.EvtHandler_ProcessEvent(*args, **kwargs) |
| 2457 | |
| 2458 | def AddPendingEvent(*args, **kwargs): |
| 2459 | """AddPendingEvent(Event event)""" |
| 2460 | return _core.EvtHandler_AddPendingEvent(*args, **kwargs) |
| 2461 | |
| 2462 | def ProcessPendingEvents(*args, **kwargs): |
| 2463 | """ProcessPendingEvents()""" |
| 2464 | return _core.EvtHandler_ProcessPendingEvents(*args, **kwargs) |
| 2465 | |
| 2466 | def Connect(*args, **kwargs): |
| 2467 | """Connect(int id, int lastId, int eventType, PyObject func)""" |
| 2468 | return _core.EvtHandler_Connect(*args, **kwargs) |
| 2469 | |
| 2470 | def Disconnect(*args, **kwargs): |
| 2471 | """Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool""" |
| 2472 | return _core.EvtHandler_Disconnect(*args, **kwargs) |
| 2473 | |
| 2474 | def _setOORInfo(*args, **kwargs): |
| 2475 | """_setOORInfo(PyObject _self)""" |
| 2476 | return _core.EvtHandler__setOORInfo(*args, **kwargs) |
| 2477 | |
| 2478 | def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): |
| 2479 | """ |
| 2480 | Bind an event to an event handler. |
| 2481 | |
| 2482 | event One of the EVT_* objects that specifies the |
| 2483 | type of event to bind, |
| 2484 | |
| 2485 | handler A callable object to be invoked when the event |
| 2486 | is delivered to self. Pass None to disconnect an |
| 2487 | event handler. |
| 2488 | |
| 2489 | source Sometimes the event originates from a different window |
| 2490 | than self, but you still want to catch it in self. (For |
| 2491 | example, a button event delivered to a frame.) By |
| 2492 | passing the source of the event, the event handling |
| 2493 | system is able to differentiate between the same event |
| 2494 | type from different controls. |
| 2495 | |
| 2496 | id,id2 Used for menu IDs or for event types that require a |
| 2497 | range of IDs |
| 2498 | """ |
| 2499 | if source is not None: |
| 2500 | id = source.GetId() |
| 2501 | event.Bind(self, id, id2, handler) |
| 2502 | |
| 2503 | |
| 2504 | |
| 2505 | class EvtHandlerPtr(EvtHandler): |
| 2506 | def __init__(self, this): |
| 2507 | self.this = this |
| 2508 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2509 | self.__class__ = EvtHandler |
| 2510 | _core.EvtHandler_swigregister(EvtHandlerPtr) |
| 2511 | |
| 2512 | #--------------------------------------------------------------------------- |
| 2513 | |
| 2514 | class PyEventBinder(object): |
| 2515 | """ |
| 2516 | Instances of this class are used to bind specific events to event |
| 2517 | handlers. |
| 2518 | """ |
| 2519 | def __init__(self, evtType, expectedIDs=0): |
| 2520 | if expectedIDs not in [0, 1, 2]: |
| 2521 | raise ValueError, "Invalid number of expectedIDs" |
| 2522 | self.expectedIDs = expectedIDs |
| 2523 | |
| 2524 | if type(evtType) == list or type(evtType) == tuple: |
| 2525 | self.evtType = evtType |
| 2526 | else: |
| 2527 | self.evtType = [evtType] |
| 2528 | |
| 2529 | |
| 2530 | def Bind(self, target, id1, id2, function): |
| 2531 | """Bind this set of event types to target.""" |
| 2532 | for et in self.evtType: |
| 2533 | target.Connect(id1, id2, et, function) |
| 2534 | |
| 2535 | |
| 2536 | def __call__(self, *args): |
| 2537 | """ |
| 2538 | For backwards compatibility with the old EVT_* functions. |
| 2539 | Should be called with either (window, func), (window, ID, |
| 2540 | func) or (window, ID1, ID2, func) parameters depending on the |
| 2541 | type of the event. |
| 2542 | """ |
| 2543 | assert len(args) == 2 + self.expectedIDs |
| 2544 | id1 = wx.ID_ANY |
| 2545 | id2 = wx.ID_ANY |
| 2546 | target = args[0] |
| 2547 | if self.expectedIDs == 0: |
| 2548 | func = args[1] |
| 2549 | elif self.expectedIDs == 1: |
| 2550 | id1 = args[1] |
| 2551 | func = args[2] |
| 2552 | elif self.expectedIDs == 2: |
| 2553 | id1 = args[1] |
| 2554 | id2 = args[2] |
| 2555 | func = args[3] |
| 2556 | else: |
| 2557 | raise ValueError, "Unexpected number of IDs" |
| 2558 | |
| 2559 | self.Bind(target, id1, id2, func) |
| 2560 | |
| 2561 | |
| 2562 | # These two are square pegs that don't fit the PyEventBinder hole... |
| 2563 | def EVT_COMMAND(win, id, cmd, func): |
| 2564 | win.Connect(id, -1, cmd, func) |
| 2565 | def EVT_COMMAND_RANGE(win, id1, id2, cmd, func): |
| 2566 | win.Connect(id1, id2, cmd, func) |
| 2567 | |
| 2568 | |
| 2569 | #--------------------------------------------------------------------------- |
| 2570 | |
| 2571 | #--------------------------------------------------------------------------- |
| 2572 | |
| 2573 | EVENT_PROPAGATE_NONE = _core.EVENT_PROPAGATE_NONE |
| 2574 | EVENT_PROPAGATE_MAX = _core.EVENT_PROPAGATE_MAX |
| 2575 | |
| 2576 | def NewEventType(*args, **kwargs): |
| 2577 | """NewEventType() -> wxEventType""" |
| 2578 | return _core.NewEventType(*args, **kwargs) |
| 2579 | wxEVT_NULL = _core.wxEVT_NULL |
| 2580 | wxEVT_FIRST = _core.wxEVT_FIRST |
| 2581 | wxEVT_USER_FIRST = _core.wxEVT_USER_FIRST |
| 2582 | wxEVT_COMMAND_BUTTON_CLICKED = _core.wxEVT_COMMAND_BUTTON_CLICKED |
| 2583 | wxEVT_COMMAND_CHECKBOX_CLICKED = _core.wxEVT_COMMAND_CHECKBOX_CLICKED |
| 2584 | wxEVT_COMMAND_CHOICE_SELECTED = _core.wxEVT_COMMAND_CHOICE_SELECTED |
| 2585 | wxEVT_COMMAND_LISTBOX_SELECTED = _core.wxEVT_COMMAND_LISTBOX_SELECTED |
| 2586 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED |
| 2587 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED |
| 2588 | wxEVT_COMMAND_MENU_SELECTED = _core.wxEVT_COMMAND_MENU_SELECTED |
| 2589 | wxEVT_COMMAND_TOOL_CLICKED = _core.wxEVT_COMMAND_TOOL_CLICKED |
| 2590 | wxEVT_COMMAND_SLIDER_UPDATED = _core.wxEVT_COMMAND_SLIDER_UPDATED |
| 2591 | wxEVT_COMMAND_RADIOBOX_SELECTED = _core.wxEVT_COMMAND_RADIOBOX_SELECTED |
| 2592 | wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core.wxEVT_COMMAND_RADIOBUTTON_SELECTED |
| 2593 | wxEVT_COMMAND_SCROLLBAR_UPDATED = _core.wxEVT_COMMAND_SCROLLBAR_UPDATED |
| 2594 | wxEVT_COMMAND_VLBOX_SELECTED = _core.wxEVT_COMMAND_VLBOX_SELECTED |
| 2595 | wxEVT_COMMAND_COMBOBOX_SELECTED = _core.wxEVT_COMMAND_COMBOBOX_SELECTED |
| 2596 | wxEVT_COMMAND_TOOL_RCLICKED = _core.wxEVT_COMMAND_TOOL_RCLICKED |
| 2597 | wxEVT_COMMAND_TOOL_ENTER = _core.wxEVT_COMMAND_TOOL_ENTER |
| 2598 | wxEVT_LEFT_DOWN = _core.wxEVT_LEFT_DOWN |
| 2599 | wxEVT_LEFT_UP = _core.wxEVT_LEFT_UP |
| 2600 | wxEVT_MIDDLE_DOWN = _core.wxEVT_MIDDLE_DOWN |
| 2601 | wxEVT_MIDDLE_UP = _core.wxEVT_MIDDLE_UP |
| 2602 | wxEVT_RIGHT_DOWN = _core.wxEVT_RIGHT_DOWN |
| 2603 | wxEVT_RIGHT_UP = _core.wxEVT_RIGHT_UP |
| 2604 | wxEVT_MOTION = _core.wxEVT_MOTION |
| 2605 | wxEVT_ENTER_WINDOW = _core.wxEVT_ENTER_WINDOW |
| 2606 | wxEVT_LEAVE_WINDOW = _core.wxEVT_LEAVE_WINDOW |
| 2607 | wxEVT_LEFT_DCLICK = _core.wxEVT_LEFT_DCLICK |
| 2608 | wxEVT_MIDDLE_DCLICK = _core.wxEVT_MIDDLE_DCLICK |
| 2609 | wxEVT_RIGHT_DCLICK = _core.wxEVT_RIGHT_DCLICK |
| 2610 | wxEVT_SET_FOCUS = _core.wxEVT_SET_FOCUS |
| 2611 | wxEVT_KILL_FOCUS = _core.wxEVT_KILL_FOCUS |
| 2612 | wxEVT_CHILD_FOCUS = _core.wxEVT_CHILD_FOCUS |
| 2613 | wxEVT_MOUSEWHEEL = _core.wxEVT_MOUSEWHEEL |
| 2614 | wxEVT_NC_LEFT_DOWN = _core.wxEVT_NC_LEFT_DOWN |
| 2615 | wxEVT_NC_LEFT_UP = _core.wxEVT_NC_LEFT_UP |
| 2616 | wxEVT_NC_MIDDLE_DOWN = _core.wxEVT_NC_MIDDLE_DOWN |
| 2617 | wxEVT_NC_MIDDLE_UP = _core.wxEVT_NC_MIDDLE_UP |
| 2618 | wxEVT_NC_RIGHT_DOWN = _core.wxEVT_NC_RIGHT_DOWN |
| 2619 | wxEVT_NC_RIGHT_UP = _core.wxEVT_NC_RIGHT_UP |
| 2620 | wxEVT_NC_MOTION = _core.wxEVT_NC_MOTION |
| 2621 | wxEVT_NC_ENTER_WINDOW = _core.wxEVT_NC_ENTER_WINDOW |
| 2622 | wxEVT_NC_LEAVE_WINDOW = _core.wxEVT_NC_LEAVE_WINDOW |
| 2623 | wxEVT_NC_LEFT_DCLICK = _core.wxEVT_NC_LEFT_DCLICK |
| 2624 | wxEVT_NC_MIDDLE_DCLICK = _core.wxEVT_NC_MIDDLE_DCLICK |
| 2625 | wxEVT_NC_RIGHT_DCLICK = _core.wxEVT_NC_RIGHT_DCLICK |
| 2626 | wxEVT_CHAR = _core.wxEVT_CHAR |
| 2627 | wxEVT_CHAR_HOOK = _core.wxEVT_CHAR_HOOK |
| 2628 | wxEVT_NAVIGATION_KEY = _core.wxEVT_NAVIGATION_KEY |
| 2629 | wxEVT_KEY_DOWN = _core.wxEVT_KEY_DOWN |
| 2630 | wxEVT_KEY_UP = _core.wxEVT_KEY_UP |
| 2631 | wxEVT_HOTKEY = _core.wxEVT_HOTKEY |
| 2632 | wxEVT_SET_CURSOR = _core.wxEVT_SET_CURSOR |
| 2633 | wxEVT_SCROLL_TOP = _core.wxEVT_SCROLL_TOP |
| 2634 | wxEVT_SCROLL_BOTTOM = _core.wxEVT_SCROLL_BOTTOM |
| 2635 | wxEVT_SCROLL_LINEUP = _core.wxEVT_SCROLL_LINEUP |
| 2636 | wxEVT_SCROLL_LINEDOWN = _core.wxEVT_SCROLL_LINEDOWN |
| 2637 | wxEVT_SCROLL_PAGEUP = _core.wxEVT_SCROLL_PAGEUP |
| 2638 | wxEVT_SCROLL_PAGEDOWN = _core.wxEVT_SCROLL_PAGEDOWN |
| 2639 | wxEVT_SCROLL_THUMBTRACK = _core.wxEVT_SCROLL_THUMBTRACK |
| 2640 | wxEVT_SCROLL_THUMBRELEASE = _core.wxEVT_SCROLL_THUMBRELEASE |
| 2641 | wxEVT_SCROLL_ENDSCROLL = _core.wxEVT_SCROLL_ENDSCROLL |
| 2642 | wxEVT_SCROLLWIN_TOP = _core.wxEVT_SCROLLWIN_TOP |
| 2643 | wxEVT_SCROLLWIN_BOTTOM = _core.wxEVT_SCROLLWIN_BOTTOM |
| 2644 | wxEVT_SCROLLWIN_LINEUP = _core.wxEVT_SCROLLWIN_LINEUP |
| 2645 | wxEVT_SCROLLWIN_LINEDOWN = _core.wxEVT_SCROLLWIN_LINEDOWN |
| 2646 | wxEVT_SCROLLWIN_PAGEUP = _core.wxEVT_SCROLLWIN_PAGEUP |
| 2647 | wxEVT_SCROLLWIN_PAGEDOWN = _core.wxEVT_SCROLLWIN_PAGEDOWN |
| 2648 | wxEVT_SCROLLWIN_THUMBTRACK = _core.wxEVT_SCROLLWIN_THUMBTRACK |
| 2649 | wxEVT_SCROLLWIN_THUMBRELEASE = _core.wxEVT_SCROLLWIN_THUMBRELEASE |
| 2650 | wxEVT_SIZE = _core.wxEVT_SIZE |
| 2651 | wxEVT_MOVE = _core.wxEVT_MOVE |
| 2652 | wxEVT_CLOSE_WINDOW = _core.wxEVT_CLOSE_WINDOW |
| 2653 | wxEVT_END_SESSION = _core.wxEVT_END_SESSION |
| 2654 | wxEVT_QUERY_END_SESSION = _core.wxEVT_QUERY_END_SESSION |
| 2655 | wxEVT_ACTIVATE_APP = _core.wxEVT_ACTIVATE_APP |
| 2656 | wxEVT_POWER = _core.wxEVT_POWER |
| 2657 | wxEVT_ACTIVATE = _core.wxEVT_ACTIVATE |
| 2658 | wxEVT_CREATE = _core.wxEVT_CREATE |
| 2659 | wxEVT_DESTROY = _core.wxEVT_DESTROY |
| 2660 | wxEVT_SHOW = _core.wxEVT_SHOW |
| 2661 | wxEVT_ICONIZE = _core.wxEVT_ICONIZE |
| 2662 | wxEVT_MAXIMIZE = _core.wxEVT_MAXIMIZE |
| 2663 | wxEVT_MOUSE_CAPTURE_CHANGED = _core.wxEVT_MOUSE_CAPTURE_CHANGED |
| 2664 | wxEVT_PAINT = _core.wxEVT_PAINT |
| 2665 | wxEVT_ERASE_BACKGROUND = _core.wxEVT_ERASE_BACKGROUND |
| 2666 | wxEVT_NC_PAINT = _core.wxEVT_NC_PAINT |
| 2667 | wxEVT_PAINT_ICON = _core.wxEVT_PAINT_ICON |
| 2668 | wxEVT_MENU_OPEN = _core.wxEVT_MENU_OPEN |
| 2669 | wxEVT_MENU_CLOSE = _core.wxEVT_MENU_CLOSE |
| 2670 | wxEVT_MENU_HIGHLIGHT = _core.wxEVT_MENU_HIGHLIGHT |
| 2671 | wxEVT_CONTEXT_MENU = _core.wxEVT_CONTEXT_MENU |
| 2672 | wxEVT_SYS_COLOUR_CHANGED = _core.wxEVT_SYS_COLOUR_CHANGED |
| 2673 | wxEVT_DISPLAY_CHANGED = _core.wxEVT_DISPLAY_CHANGED |
| 2674 | wxEVT_SETTING_CHANGED = _core.wxEVT_SETTING_CHANGED |
| 2675 | wxEVT_QUERY_NEW_PALETTE = _core.wxEVT_QUERY_NEW_PALETTE |
| 2676 | wxEVT_PALETTE_CHANGED = _core.wxEVT_PALETTE_CHANGED |
| 2677 | wxEVT_DROP_FILES = _core.wxEVT_DROP_FILES |
| 2678 | wxEVT_DRAW_ITEM = _core.wxEVT_DRAW_ITEM |
| 2679 | wxEVT_MEASURE_ITEM = _core.wxEVT_MEASURE_ITEM |
| 2680 | wxEVT_COMPARE_ITEM = _core.wxEVT_COMPARE_ITEM |
| 2681 | wxEVT_INIT_DIALOG = _core.wxEVT_INIT_DIALOG |
| 2682 | wxEVT_IDLE = _core.wxEVT_IDLE |
| 2683 | wxEVT_UPDATE_UI = _core.wxEVT_UPDATE_UI |
| 2684 | wxEVT_SIZING = _core.wxEVT_SIZING |
| 2685 | wxEVT_MOVING = _core.wxEVT_MOVING |
| 2686 | wxEVT_COMMAND_LEFT_CLICK = _core.wxEVT_COMMAND_LEFT_CLICK |
| 2687 | wxEVT_COMMAND_LEFT_DCLICK = _core.wxEVT_COMMAND_LEFT_DCLICK |
| 2688 | wxEVT_COMMAND_RIGHT_CLICK = _core.wxEVT_COMMAND_RIGHT_CLICK |
| 2689 | wxEVT_COMMAND_RIGHT_DCLICK = _core.wxEVT_COMMAND_RIGHT_DCLICK |
| 2690 | wxEVT_COMMAND_SET_FOCUS = _core.wxEVT_COMMAND_SET_FOCUS |
| 2691 | wxEVT_COMMAND_KILL_FOCUS = _core.wxEVT_COMMAND_KILL_FOCUS |
| 2692 | wxEVT_COMMAND_ENTER = _core.wxEVT_COMMAND_ENTER |
| 2693 | # |
| 2694 | # Create some event binders |
| 2695 | EVT_SIZE = wx.PyEventBinder( wxEVT_SIZE ) |
| 2696 | EVT_SIZING = wx.PyEventBinder( wxEVT_SIZING ) |
| 2697 | EVT_MOVE = wx.PyEventBinder( wxEVT_MOVE ) |
| 2698 | EVT_MOVING = wx.PyEventBinder( wxEVT_MOVING ) |
| 2699 | EVT_CLOSE = wx.PyEventBinder( wxEVT_CLOSE_WINDOW ) |
| 2700 | EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) |
| 2701 | EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) |
| 2702 | EVT_PAINT = wx.PyEventBinder( wxEVT_PAINT ) |
| 2703 | EVT_NC_PAINT = wx.PyEventBinder( wxEVT_NC_PAINT ) |
| 2704 | EVT_ERASE_BACKGROUND = wx.PyEventBinder( wxEVT_ERASE_BACKGROUND ) |
| 2705 | EVT_CHAR = wx.PyEventBinder( wxEVT_CHAR ) |
| 2706 | EVT_KEY_DOWN = wx.PyEventBinder( wxEVT_KEY_DOWN ) |
| 2707 | EVT_KEY_UP = wx.PyEventBinder( wxEVT_KEY_UP ) |
| 2708 | EVT_HOTKEY = wx.PyEventBinder( wxEVT_HOTKEY, 1) |
| 2709 | EVT_CHAR_HOOK = wx.PyEventBinder( wxEVT_CHAR_HOOK ) |
| 2710 | EVT_MENU_OPEN = wx.PyEventBinder( wxEVT_MENU_OPEN ) |
| 2711 | EVT_MENU_CLOSE = wx.PyEventBinder( wxEVT_MENU_CLOSE ) |
| 2712 | EVT_MENU_HIGHLIGHT = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT, 1) |
| 2713 | EVT_MENU_HIGHLIGHT_ALL = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT ) |
| 2714 | EVT_SET_FOCUS = wx.PyEventBinder( wxEVT_SET_FOCUS ) |
| 2715 | EVT_KILL_FOCUS = wx.PyEventBinder( wxEVT_KILL_FOCUS ) |
| 2716 | EVT_CHILD_FOCUS = wx.PyEventBinder( wxEVT_CHILD_FOCUS ) |
| 2717 | EVT_ACTIVATE = wx.PyEventBinder( wxEVT_ACTIVATE ) |
| 2718 | EVT_ACTIVATE_APP = wx.PyEventBinder( wxEVT_ACTIVATE_APP ) |
| 2719 | EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) |
| 2720 | EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) |
| 2721 | EVT_DROP_FILES = wx.PyEventBinder( wxEVT_DROP_FILES ) |
| 2722 | EVT_INIT_DIALOG = wx.PyEventBinder( wxEVT_INIT_DIALOG ) |
| 2723 | EVT_SYS_COLOUR_CHANGED = wx.PyEventBinder( wxEVT_SYS_COLOUR_CHANGED ) |
| 2724 | EVT_DISPLAY_CHANGED = wx.PyEventBinder( wxEVT_DISPLAY_CHANGED ) |
| 2725 | EVT_SHOW = wx.PyEventBinder( wxEVT_SHOW ) |
| 2726 | EVT_MAXIMIZE = wx.PyEventBinder( wxEVT_MAXIMIZE ) |
| 2727 | EVT_ICONIZE = wx.PyEventBinder( wxEVT_ICONIZE ) |
| 2728 | EVT_NAVIGATION_KEY = wx.PyEventBinder( wxEVT_NAVIGATION_KEY ) |
| 2729 | EVT_PALETTE_CHANGED = wx.PyEventBinder( wxEVT_PALETTE_CHANGED ) |
| 2730 | EVT_QUERY_NEW_PALETTE = wx.PyEventBinder( wxEVT_QUERY_NEW_PALETTE ) |
| 2731 | EVT_WINDOW_CREATE = wx.PyEventBinder( wxEVT_CREATE ) |
| 2732 | EVT_WINDOW_DESTROY = wx.PyEventBinder( wxEVT_DESTROY ) |
| 2733 | EVT_SET_CURSOR = wx.PyEventBinder( wxEVT_SET_CURSOR ) |
| 2734 | EVT_MOUSE_CAPTURE_CHANGED = wx.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED ) |
| 2735 | |
| 2736 | EVT_LEFT_DOWN = wx.PyEventBinder( wxEVT_LEFT_DOWN ) |
| 2737 | EVT_LEFT_UP = wx.PyEventBinder( wxEVT_LEFT_UP ) |
| 2738 | EVT_MIDDLE_DOWN = wx.PyEventBinder( wxEVT_MIDDLE_DOWN ) |
| 2739 | EVT_MIDDLE_UP = wx.PyEventBinder( wxEVT_MIDDLE_UP ) |
| 2740 | EVT_RIGHT_DOWN = wx.PyEventBinder( wxEVT_RIGHT_DOWN ) |
| 2741 | EVT_RIGHT_UP = wx.PyEventBinder( wxEVT_RIGHT_UP ) |
| 2742 | EVT_MOTION = wx.PyEventBinder( wxEVT_MOTION ) |
| 2743 | EVT_LEFT_DCLICK = wx.PyEventBinder( wxEVT_LEFT_DCLICK ) |
| 2744 | EVT_MIDDLE_DCLICK = wx.PyEventBinder( wxEVT_MIDDLE_DCLICK ) |
| 2745 | EVT_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_RIGHT_DCLICK ) |
| 2746 | EVT_LEAVE_WINDOW = wx.PyEventBinder( wxEVT_LEAVE_WINDOW ) |
| 2747 | EVT_ENTER_WINDOW = wx.PyEventBinder( wxEVT_ENTER_WINDOW ) |
| 2748 | EVT_MOUSEWHEEL = wx.PyEventBinder( wxEVT_MOUSEWHEEL ) |
| 2749 | |
| 2750 | EVT_MOUSE_EVENTS = wx.PyEventBinder([ wxEVT_LEFT_DOWN, |
| 2751 | wxEVT_LEFT_UP, |
| 2752 | wxEVT_MIDDLE_DOWN, |
| 2753 | wxEVT_MIDDLE_UP, |
| 2754 | wxEVT_RIGHT_DOWN, |
| 2755 | wxEVT_RIGHT_UP, |
| 2756 | wxEVT_MOTION, |
| 2757 | wxEVT_LEFT_DCLICK, |
| 2758 | wxEVT_MIDDLE_DCLICK, |
| 2759 | wxEVT_RIGHT_DCLICK, |
| 2760 | wxEVT_ENTER_WINDOW, |
| 2761 | wxEVT_LEAVE_WINDOW, |
| 2762 | wxEVT_MOUSEWHEEL |
| 2763 | ]) |
| 2764 | |
| 2765 | |
| 2766 | # Scrolling from wxWindow (sent to wxScrolledWindow) |
| 2767 | EVT_SCROLLWIN = wx.PyEventBinder([ wxEVT_SCROLLWIN_TOP, |
| 2768 | wxEVT_SCROLLWIN_BOTTOM, |
| 2769 | wxEVT_SCROLLWIN_LINEUP, |
| 2770 | wxEVT_SCROLLWIN_LINEDOWN, |
| 2771 | wxEVT_SCROLLWIN_PAGEUP, |
| 2772 | wxEVT_SCROLLWIN_PAGEDOWN, |
| 2773 | wxEVT_SCROLLWIN_THUMBTRACK, |
| 2774 | wxEVT_SCROLLWIN_THUMBRELEASE, |
| 2775 | ]) |
| 2776 | |
| 2777 | EVT_SCROLLWIN_TOP = wx.PyEventBinder( wxEVT_SCROLLWIN_TOP ) |
| 2778 | EVT_SCROLLWIN_BOTTOM = wx.PyEventBinder( wxEVT_SCROLLWIN_BOTTOM ) |
| 2779 | EVT_SCROLLWIN_LINEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEUP ) |
| 2780 | EVT_SCROLLWIN_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEDOWN ) |
| 2781 | EVT_SCROLLWIN_PAGEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEUP ) |
| 2782 | EVT_SCROLLWIN_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEDOWN ) |
| 2783 | EVT_SCROLLWIN_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK ) |
| 2784 | EVT_SCROLLWIN_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE ) |
| 2785 | |
| 2786 | # Scrolling from wxSlider and wxScrollBar |
| 2787 | EVT_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, |
| 2788 | wxEVT_SCROLL_BOTTOM, |
| 2789 | wxEVT_SCROLL_LINEUP, |
| 2790 | wxEVT_SCROLL_LINEDOWN, |
| 2791 | wxEVT_SCROLL_PAGEUP, |
| 2792 | wxEVT_SCROLL_PAGEDOWN, |
| 2793 | wxEVT_SCROLL_THUMBTRACK, |
| 2794 | wxEVT_SCROLL_THUMBRELEASE, |
| 2795 | wxEVT_SCROLL_ENDSCROLL, |
| 2796 | ]) |
| 2797 | |
| 2798 | EVT_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP ) |
| 2799 | EVT_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM ) |
| 2800 | EVT_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP ) |
| 2801 | EVT_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN ) |
| 2802 | EVT_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP ) |
| 2803 | EVT_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN ) |
| 2804 | EVT_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK ) |
| 2805 | EVT_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE ) |
| 2806 | EVT_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL ) |
| 2807 | |
| 2808 | # Scrolling from wxSlider and wxScrollBar, with an id |
| 2809 | EVT_COMMAND_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, |
| 2810 | wxEVT_SCROLL_BOTTOM, |
| 2811 | wxEVT_SCROLL_LINEUP, |
| 2812 | wxEVT_SCROLL_LINEDOWN, |
| 2813 | wxEVT_SCROLL_PAGEUP, |
| 2814 | wxEVT_SCROLL_PAGEDOWN, |
| 2815 | wxEVT_SCROLL_THUMBTRACK, |
| 2816 | wxEVT_SCROLL_THUMBRELEASE, |
| 2817 | wxEVT_SCROLL_ENDSCROLL, |
| 2818 | ], 1) |
| 2819 | |
| 2820 | EVT_COMMAND_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP, 1) |
| 2821 | EVT_COMMAND_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM, 1) |
| 2822 | EVT_COMMAND_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1) |
| 2823 | EVT_COMMAND_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1) |
| 2824 | EVT_COMMAND_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP, 1) |
| 2825 | EVT_COMMAND_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN, 1) |
| 2826 | EVT_COMMAND_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1) |
| 2827 | EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE, 1) |
| 2828 | EVT_COMMAND_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL, 1) |
| 2829 | |
| 2830 | EVT_SPIN_UP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1) |
| 2831 | EVT_SPIN_DOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1) |
| 2832 | EVT_SPIN = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1) |
| 2833 | |
| 2834 | EVT_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED, 1) |
| 2835 | EVT_CHECKBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED, 1) |
| 2836 | EVT_CHOICE = wx.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED, 1) |
| 2837 | EVT_LISTBOX = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_SELECTED, 1) |
| 2838 | EVT_LISTBOX_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 1) |
| 2839 | EVT_MENU = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 1) |
| 2840 | EVT_MENU_RANGE = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 2) |
| 2841 | EVT_SLIDER = wx.PyEventBinder( wxEVT_COMMAND_SLIDER_UPDATED, 1) |
| 2842 | EVT_RADIOBOX = wx.PyEventBinder( wxEVT_COMMAND_RADIOBOX_SELECTED, 1) |
| 2843 | EVT_RADIOBUTTON = wx.PyEventBinder( wxEVT_COMMAND_RADIOBUTTON_SELECTED, 1) |
| 2844 | |
| 2845 | EVT_SCROLLBAR = wx.PyEventBinder( wxEVT_COMMAND_SCROLLBAR_UPDATED, 1) |
| 2846 | EVT_VLBOX = wx.PyEventBinder( wxEVT_COMMAND_VLBOX_SELECTED, 1) |
| 2847 | EVT_COMBOBOX = wx.PyEventBinder( wxEVT_COMMAND_COMBOBOX_SELECTED, 1) |
| 2848 | EVT_TOOL = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 1) |
| 2849 | EVT_TOOL_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 2) |
| 2850 | EVT_TOOL_RCLICKED = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 1) |
| 2851 | EVT_TOOL_RCLICKED_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 2) |
| 2852 | EVT_TOOL_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TOOL_ENTER, 1) |
| 2853 | EVT_CHECKLISTBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 1) |
| 2854 | |
| 2855 | |
| 2856 | EVT_COMMAND_LEFT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_CLICK, 1) |
| 2857 | EVT_COMMAND_LEFT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_DCLICK, 1) |
| 2858 | EVT_COMMAND_RIGHT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_CLICK, 1) |
| 2859 | EVT_COMMAND_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_DCLICK, 1) |
| 2860 | EVT_COMMAND_SET_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_SET_FOCUS, 1) |
| 2861 | EVT_COMMAND_KILL_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_KILL_FOCUS, 1) |
| 2862 | EVT_COMMAND_ENTER = wx.PyEventBinder( wxEVT_COMMAND_ENTER, 1) |
| 2863 | |
| 2864 | EVT_IDLE = wx.PyEventBinder( wxEVT_IDLE ) |
| 2865 | |
| 2866 | EVT_UPDATE_UI = wx.PyEventBinder( wxEVT_UPDATE_UI, 1) |
| 2867 | EVT_UPDATE_UI_RANGE = wx.PyEventBinder( wxEVT_UPDATE_UI, 2) |
| 2868 | |
| 2869 | EVT_CONTEXT_MENU = wx.PyEventBinder( wxEVT_CONTEXT_MENU ) |
| 2870 | |
| 2871 | |
| 2872 | |
| 2873 | #--------------------------------------------------------------------------- |
| 2874 | |
| 2875 | class Event(Object): |
| 2876 | """""" |
| 2877 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 2878 | def __repr__(self): |
| 2879 | return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2880 | def __del__(self, destroy=_core.delete_Event): |
| 2881 | """__del__()""" |
| 2882 | try: |
| 2883 | if self.thisown: destroy(self) |
| 2884 | except: pass |
| 2885 | |
| 2886 | def SetEventType(*args, **kwargs): |
| 2887 | """SetEventType(wxEventType typ)""" |
| 2888 | return _core.Event_SetEventType(*args, **kwargs) |
| 2889 | |
| 2890 | def GetEventType(*args, **kwargs): |
| 2891 | """GetEventType() -> wxEventType""" |
| 2892 | return _core.Event_GetEventType(*args, **kwargs) |
| 2893 | |
| 2894 | def GetEventObject(*args, **kwargs): |
| 2895 | """GetEventObject() -> Object""" |
| 2896 | return _core.Event_GetEventObject(*args, **kwargs) |
| 2897 | |
| 2898 | def SetEventObject(*args, **kwargs): |
| 2899 | """SetEventObject(Object obj)""" |
| 2900 | return _core.Event_SetEventObject(*args, **kwargs) |
| 2901 | |
| 2902 | def GetTimestamp(*args, **kwargs): |
| 2903 | """GetTimestamp() -> long""" |
| 2904 | return _core.Event_GetTimestamp(*args, **kwargs) |
| 2905 | |
| 2906 | def SetTimestamp(*args, **kwargs): |
| 2907 | """SetTimestamp(long ts=0)""" |
| 2908 | return _core.Event_SetTimestamp(*args, **kwargs) |
| 2909 | |
| 2910 | def GetId(*args, **kwargs): |
| 2911 | """GetId() -> int""" |
| 2912 | return _core.Event_GetId(*args, **kwargs) |
| 2913 | |
| 2914 | def SetId(*args, **kwargs): |
| 2915 | """SetId(int Id)""" |
| 2916 | return _core.Event_SetId(*args, **kwargs) |
| 2917 | |
| 2918 | def IsCommandEvent(*args, **kwargs): |
| 2919 | """IsCommandEvent() -> bool""" |
| 2920 | return _core.Event_IsCommandEvent(*args, **kwargs) |
| 2921 | |
| 2922 | def Skip(*args, **kwargs): |
| 2923 | """Skip(bool skip=True)""" |
| 2924 | return _core.Event_Skip(*args, **kwargs) |
| 2925 | |
| 2926 | def GetSkipped(*args, **kwargs): |
| 2927 | """GetSkipped() -> bool""" |
| 2928 | return _core.Event_GetSkipped(*args, **kwargs) |
| 2929 | |
| 2930 | def ShouldPropagate(*args, **kwargs): |
| 2931 | """ShouldPropagate() -> bool""" |
| 2932 | return _core.Event_ShouldPropagate(*args, **kwargs) |
| 2933 | |
| 2934 | def StopPropagation(*args, **kwargs): |
| 2935 | """StopPropagation() -> int""" |
| 2936 | return _core.Event_StopPropagation(*args, **kwargs) |
| 2937 | |
| 2938 | def ResumePropagation(*args, **kwargs): |
| 2939 | """ResumePropagation(int propagationLevel)""" |
| 2940 | return _core.Event_ResumePropagation(*args, **kwargs) |
| 2941 | |
| 2942 | def Clone(*args, **kwargs): |
| 2943 | """Clone() -> Event""" |
| 2944 | return _core.Event_Clone(*args, **kwargs) |
| 2945 | |
| 2946 | |
| 2947 | class EventPtr(Event): |
| 2948 | def __init__(self, this): |
| 2949 | self.this = this |
| 2950 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2951 | self.__class__ = Event |
| 2952 | _core.Event_swigregister(EventPtr) |
| 2953 | |
| 2954 | #--------------------------------------------------------------------------- |
| 2955 | |
| 2956 | class PropagationDisabler(object): |
| 2957 | """""" |
| 2958 | def __repr__(self): |
| 2959 | return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2960 | def __init__(self, *args, **kwargs): |
| 2961 | """__init__(Event event) -> PropagationDisabler""" |
| 2962 | newobj = _core.new_PropagationDisabler(*args, **kwargs) |
| 2963 | self.this = newobj.this |
| 2964 | self.thisown = 1 |
| 2965 | del newobj.thisown |
| 2966 | def __del__(self, destroy=_core.delete_PropagationDisabler): |
| 2967 | """__del__()""" |
| 2968 | try: |
| 2969 | if self.thisown: destroy(self) |
| 2970 | except: pass |
| 2971 | |
| 2972 | |
| 2973 | class PropagationDisablerPtr(PropagationDisabler): |
| 2974 | def __init__(self, this): |
| 2975 | self.this = this |
| 2976 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 2977 | self.__class__ = PropagationDisabler |
| 2978 | _core.PropagationDisabler_swigregister(PropagationDisablerPtr) |
| 2979 | |
| 2980 | class PropagateOnce(object): |
| 2981 | """""" |
| 2982 | def __repr__(self): |
| 2983 | return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 2984 | def __init__(self, *args, **kwargs): |
| 2985 | """__init__(Event event) -> PropagateOnce""" |
| 2986 | newobj = _core.new_PropagateOnce(*args, **kwargs) |
| 2987 | self.this = newobj.this |
| 2988 | self.thisown = 1 |
| 2989 | del newobj.thisown |
| 2990 | def __del__(self, destroy=_core.delete_PropagateOnce): |
| 2991 | """__del__()""" |
| 2992 | try: |
| 2993 | if self.thisown: destroy(self) |
| 2994 | except: pass |
| 2995 | |
| 2996 | |
| 2997 | class PropagateOncePtr(PropagateOnce): |
| 2998 | def __init__(self, this): |
| 2999 | self.this = this |
| 3000 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3001 | self.__class__ = PropagateOnce |
| 3002 | _core.PropagateOnce_swigregister(PropagateOncePtr) |
| 3003 | |
| 3004 | #--------------------------------------------------------------------------- |
| 3005 | |
| 3006 | class CommandEvent(Event): |
| 3007 | """""" |
| 3008 | def __repr__(self): |
| 3009 | return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3010 | def __init__(self, *args, **kwargs): |
| 3011 | """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent""" |
| 3012 | newobj = _core.new_CommandEvent(*args, **kwargs) |
| 3013 | self.this = newobj.this |
| 3014 | self.thisown = 1 |
| 3015 | del newobj.thisown |
| 3016 | def GetSelection(*args, **kwargs): |
| 3017 | """GetSelection() -> int""" |
| 3018 | return _core.CommandEvent_GetSelection(*args, **kwargs) |
| 3019 | |
| 3020 | def SetString(*args, **kwargs): |
| 3021 | """SetString(wxString s)""" |
| 3022 | return _core.CommandEvent_SetString(*args, **kwargs) |
| 3023 | |
| 3024 | def GetString(*args, **kwargs): |
| 3025 | """GetString() -> wxString""" |
| 3026 | return _core.CommandEvent_GetString(*args, **kwargs) |
| 3027 | |
| 3028 | def IsChecked(*args, **kwargs): |
| 3029 | """IsChecked() -> bool""" |
| 3030 | return _core.CommandEvent_IsChecked(*args, **kwargs) |
| 3031 | |
| 3032 | def IsSelection(*args, **kwargs): |
| 3033 | """IsSelection() -> bool""" |
| 3034 | return _core.CommandEvent_IsSelection(*args, **kwargs) |
| 3035 | |
| 3036 | def SetExtraLong(*args, **kwargs): |
| 3037 | """SetExtraLong(long extraLong)""" |
| 3038 | return _core.CommandEvent_SetExtraLong(*args, **kwargs) |
| 3039 | |
| 3040 | def GetExtraLong(*args, **kwargs): |
| 3041 | """GetExtraLong() -> long""" |
| 3042 | return _core.CommandEvent_GetExtraLong(*args, **kwargs) |
| 3043 | |
| 3044 | def SetInt(*args, **kwargs): |
| 3045 | """SetInt(int i)""" |
| 3046 | return _core.CommandEvent_SetInt(*args, **kwargs) |
| 3047 | |
| 3048 | def GetInt(*args, **kwargs): |
| 3049 | """GetInt() -> long""" |
| 3050 | return _core.CommandEvent_GetInt(*args, **kwargs) |
| 3051 | |
| 3052 | def Clone(*args, **kwargs): |
| 3053 | """Clone() -> Event""" |
| 3054 | return _core.CommandEvent_Clone(*args, **kwargs) |
| 3055 | |
| 3056 | |
| 3057 | class CommandEventPtr(CommandEvent): |
| 3058 | def __init__(self, this): |
| 3059 | self.this = this |
| 3060 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3061 | self.__class__ = CommandEvent |
| 3062 | _core.CommandEvent_swigregister(CommandEventPtr) |
| 3063 | |
| 3064 | #--------------------------------------------------------------------------- |
| 3065 | |
| 3066 | class NotifyEvent(CommandEvent): |
| 3067 | """""" |
| 3068 | def __repr__(self): |
| 3069 | return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3070 | def __init__(self, *args, **kwargs): |
| 3071 | """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent""" |
| 3072 | newobj = _core.new_NotifyEvent(*args, **kwargs) |
| 3073 | self.this = newobj.this |
| 3074 | self.thisown = 1 |
| 3075 | del newobj.thisown |
| 3076 | def Veto(*args, **kwargs): |
| 3077 | """Veto()""" |
| 3078 | return _core.NotifyEvent_Veto(*args, **kwargs) |
| 3079 | |
| 3080 | def Allow(*args, **kwargs): |
| 3081 | """Allow()""" |
| 3082 | return _core.NotifyEvent_Allow(*args, **kwargs) |
| 3083 | |
| 3084 | def IsAllowed(*args, **kwargs): |
| 3085 | """IsAllowed() -> bool""" |
| 3086 | return _core.NotifyEvent_IsAllowed(*args, **kwargs) |
| 3087 | |
| 3088 | |
| 3089 | class NotifyEventPtr(NotifyEvent): |
| 3090 | def __init__(self, this): |
| 3091 | self.this = this |
| 3092 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3093 | self.__class__ = NotifyEvent |
| 3094 | _core.NotifyEvent_swigregister(NotifyEventPtr) |
| 3095 | |
| 3096 | #--------------------------------------------------------------------------- |
| 3097 | |
| 3098 | class ScrollEvent(CommandEvent): |
| 3099 | """""" |
| 3100 | def __repr__(self): |
| 3101 | return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3102 | def __init__(self, *args, **kwargs): |
| 3103 | """__init__(wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0, |
| 3104 | int orient=0) -> ScrollEvent""" |
| 3105 | newobj = _core.new_ScrollEvent(*args, **kwargs) |
| 3106 | self.this = newobj.this |
| 3107 | self.thisown = 1 |
| 3108 | del newobj.thisown |
| 3109 | def GetOrientation(*args, **kwargs): |
| 3110 | """GetOrientation() -> int""" |
| 3111 | return _core.ScrollEvent_GetOrientation(*args, **kwargs) |
| 3112 | |
| 3113 | def GetPosition(*args, **kwargs): |
| 3114 | """GetPosition() -> int""" |
| 3115 | return _core.ScrollEvent_GetPosition(*args, **kwargs) |
| 3116 | |
| 3117 | def SetOrientation(*args, **kwargs): |
| 3118 | """SetOrientation(int orient)""" |
| 3119 | return _core.ScrollEvent_SetOrientation(*args, **kwargs) |
| 3120 | |
| 3121 | def SetPosition(*args, **kwargs): |
| 3122 | """SetPosition(int pos)""" |
| 3123 | return _core.ScrollEvent_SetPosition(*args, **kwargs) |
| 3124 | |
| 3125 | |
| 3126 | class ScrollEventPtr(ScrollEvent): |
| 3127 | def __init__(self, this): |
| 3128 | self.this = this |
| 3129 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3130 | self.__class__ = ScrollEvent |
| 3131 | _core.ScrollEvent_swigregister(ScrollEventPtr) |
| 3132 | |
| 3133 | #--------------------------------------------------------------------------- |
| 3134 | |
| 3135 | class ScrollWinEvent(Event): |
| 3136 | """""" |
| 3137 | def __repr__(self): |
| 3138 | return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3139 | def __init__(self, *args, **kwargs): |
| 3140 | """__init__(wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent""" |
| 3141 | newobj = _core.new_ScrollWinEvent(*args, **kwargs) |
| 3142 | self.this = newobj.this |
| 3143 | self.thisown = 1 |
| 3144 | del newobj.thisown |
| 3145 | def GetOrientation(*args, **kwargs): |
| 3146 | """GetOrientation() -> int""" |
| 3147 | return _core.ScrollWinEvent_GetOrientation(*args, **kwargs) |
| 3148 | |
| 3149 | def GetPosition(*args, **kwargs): |
| 3150 | """GetPosition() -> int""" |
| 3151 | return _core.ScrollWinEvent_GetPosition(*args, **kwargs) |
| 3152 | |
| 3153 | def SetOrientation(*args, **kwargs): |
| 3154 | """SetOrientation(int orient)""" |
| 3155 | return _core.ScrollWinEvent_SetOrientation(*args, **kwargs) |
| 3156 | |
| 3157 | def SetPosition(*args, **kwargs): |
| 3158 | """SetPosition(int pos)""" |
| 3159 | return _core.ScrollWinEvent_SetPosition(*args, **kwargs) |
| 3160 | |
| 3161 | |
| 3162 | class ScrollWinEventPtr(ScrollWinEvent): |
| 3163 | def __init__(self, this): |
| 3164 | self.this = this |
| 3165 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3166 | self.__class__ = ScrollWinEvent |
| 3167 | _core.ScrollWinEvent_swigregister(ScrollWinEventPtr) |
| 3168 | |
| 3169 | #--------------------------------------------------------------------------- |
| 3170 | |
| 3171 | MOUSE_BTN_ANY = _core.MOUSE_BTN_ANY |
| 3172 | MOUSE_BTN_NONE = _core.MOUSE_BTN_NONE |
| 3173 | MOUSE_BTN_LEFT = _core.MOUSE_BTN_LEFT |
| 3174 | MOUSE_BTN_MIDDLE = _core.MOUSE_BTN_MIDDLE |
| 3175 | MOUSE_BTN_RIGHT = _core.MOUSE_BTN_RIGHT |
| 3176 | class MouseEvent(Event): |
| 3177 | """""" |
| 3178 | def __repr__(self): |
| 3179 | return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3180 | def __init__(self, *args, **kwargs): |
| 3181 | """__init__(wxEventType mouseType=wxEVT_NULL) -> MouseEvent""" |
| 3182 | newobj = _core.new_MouseEvent(*args, **kwargs) |
| 3183 | self.this = newobj.this |
| 3184 | self.thisown = 1 |
| 3185 | del newobj.thisown |
| 3186 | def IsButton(*args, **kwargs): |
| 3187 | """IsButton() -> bool""" |
| 3188 | return _core.MouseEvent_IsButton(*args, **kwargs) |
| 3189 | |
| 3190 | def ButtonDown(*args, **kwargs): |
| 3191 | """ButtonDown(int but=MOUSE_BTN_ANY) -> bool""" |
| 3192 | return _core.MouseEvent_ButtonDown(*args, **kwargs) |
| 3193 | |
| 3194 | def ButtonDClick(*args, **kwargs): |
| 3195 | """ButtonDClick(int but=MOUSE_BTN_ANY) -> bool""" |
| 3196 | return _core.MouseEvent_ButtonDClick(*args, **kwargs) |
| 3197 | |
| 3198 | def ButtonUp(*args, **kwargs): |
| 3199 | """ButtonUp(int but=MOUSE_BTN_ANY) -> bool""" |
| 3200 | return _core.MouseEvent_ButtonUp(*args, **kwargs) |
| 3201 | |
| 3202 | def Button(*args, **kwargs): |
| 3203 | """Button(int but) -> bool""" |
| 3204 | return _core.MouseEvent_Button(*args, **kwargs) |
| 3205 | |
| 3206 | def ButtonIsDown(*args, **kwargs): |
| 3207 | """ButtonIsDown(int but) -> bool""" |
| 3208 | return _core.MouseEvent_ButtonIsDown(*args, **kwargs) |
| 3209 | |
| 3210 | def GetButton(*args, **kwargs): |
| 3211 | """GetButton() -> int""" |
| 3212 | return _core.MouseEvent_GetButton(*args, **kwargs) |
| 3213 | |
| 3214 | def ControlDown(*args, **kwargs): |
| 3215 | """ControlDown() -> bool""" |
| 3216 | return _core.MouseEvent_ControlDown(*args, **kwargs) |
| 3217 | |
| 3218 | def MetaDown(*args, **kwargs): |
| 3219 | """MetaDown() -> bool""" |
| 3220 | return _core.MouseEvent_MetaDown(*args, **kwargs) |
| 3221 | |
| 3222 | def AltDown(*args, **kwargs): |
| 3223 | """AltDown() -> bool""" |
| 3224 | return _core.MouseEvent_AltDown(*args, **kwargs) |
| 3225 | |
| 3226 | def ShiftDown(*args, **kwargs): |
| 3227 | """ShiftDown() -> bool""" |
| 3228 | return _core.MouseEvent_ShiftDown(*args, **kwargs) |
| 3229 | |
| 3230 | def LeftDown(*args, **kwargs): |
| 3231 | """LeftDown() -> bool""" |
| 3232 | return _core.MouseEvent_LeftDown(*args, **kwargs) |
| 3233 | |
| 3234 | def MiddleDown(*args, **kwargs): |
| 3235 | """MiddleDown() -> bool""" |
| 3236 | return _core.MouseEvent_MiddleDown(*args, **kwargs) |
| 3237 | |
| 3238 | def RightDown(*args, **kwargs): |
| 3239 | """RightDown() -> bool""" |
| 3240 | return _core.MouseEvent_RightDown(*args, **kwargs) |
| 3241 | |
| 3242 | def LeftUp(*args, **kwargs): |
| 3243 | """LeftUp() -> bool""" |
| 3244 | return _core.MouseEvent_LeftUp(*args, **kwargs) |
| 3245 | |
| 3246 | def MiddleUp(*args, **kwargs): |
| 3247 | """MiddleUp() -> bool""" |
| 3248 | return _core.MouseEvent_MiddleUp(*args, **kwargs) |
| 3249 | |
| 3250 | def RightUp(*args, **kwargs): |
| 3251 | """RightUp() -> bool""" |
| 3252 | return _core.MouseEvent_RightUp(*args, **kwargs) |
| 3253 | |
| 3254 | def LeftDClick(*args, **kwargs): |
| 3255 | """LeftDClick() -> bool""" |
| 3256 | return _core.MouseEvent_LeftDClick(*args, **kwargs) |
| 3257 | |
| 3258 | def MiddleDClick(*args, **kwargs): |
| 3259 | """MiddleDClick() -> bool""" |
| 3260 | return _core.MouseEvent_MiddleDClick(*args, **kwargs) |
| 3261 | |
| 3262 | def RightDClick(*args, **kwargs): |
| 3263 | """RightDClick() -> bool""" |
| 3264 | return _core.MouseEvent_RightDClick(*args, **kwargs) |
| 3265 | |
| 3266 | def LeftIsDown(*args, **kwargs): |
| 3267 | """LeftIsDown() -> bool""" |
| 3268 | return _core.MouseEvent_LeftIsDown(*args, **kwargs) |
| 3269 | |
| 3270 | def MiddleIsDown(*args, **kwargs): |
| 3271 | """MiddleIsDown() -> bool""" |
| 3272 | return _core.MouseEvent_MiddleIsDown(*args, **kwargs) |
| 3273 | |
| 3274 | def RightIsDown(*args, **kwargs): |
| 3275 | """RightIsDown() -> bool""" |
| 3276 | return _core.MouseEvent_RightIsDown(*args, **kwargs) |
| 3277 | |
| 3278 | def Dragging(*args, **kwargs): |
| 3279 | """Dragging() -> bool""" |
| 3280 | return _core.MouseEvent_Dragging(*args, **kwargs) |
| 3281 | |
| 3282 | def Moving(*args, **kwargs): |
| 3283 | """Moving() -> bool""" |
| 3284 | return _core.MouseEvent_Moving(*args, **kwargs) |
| 3285 | |
| 3286 | def Entering(*args, **kwargs): |
| 3287 | """Entering() -> bool""" |
| 3288 | return _core.MouseEvent_Entering(*args, **kwargs) |
| 3289 | |
| 3290 | def Leaving(*args, **kwargs): |
| 3291 | """Leaving() -> bool""" |
| 3292 | return _core.MouseEvent_Leaving(*args, **kwargs) |
| 3293 | |
| 3294 | def GetPosition(*args, **kwargs): |
| 3295 | """GetPosition() -> Point |
| 3296 | |
| 3297 | Returns the position of the mouse in window coordinates when the event happened.""" |
| 3298 | return _core.MouseEvent_GetPosition(*args, **kwargs) |
| 3299 | |
| 3300 | def GetPositionTuple(*args, **kwargs): |
| 3301 | """GetPositionTuple() -> (x,y) |
| 3302 | |
| 3303 | Returns the position of the mouse in window coordinates when the event happened.""" |
| 3304 | return _core.MouseEvent_GetPositionTuple(*args, **kwargs) |
| 3305 | |
| 3306 | def GetLogicalPosition(*args, **kwargs): |
| 3307 | """GetLogicalPosition(wxDC dc) -> Point""" |
| 3308 | return _core.MouseEvent_GetLogicalPosition(*args, **kwargs) |
| 3309 | |
| 3310 | def GetX(*args, **kwargs): |
| 3311 | """GetX() -> int""" |
| 3312 | return _core.MouseEvent_GetX(*args, **kwargs) |
| 3313 | |
| 3314 | def GetY(*args, **kwargs): |
| 3315 | """GetY() -> int""" |
| 3316 | return _core.MouseEvent_GetY(*args, **kwargs) |
| 3317 | |
| 3318 | def GetWheelRotation(*args, **kwargs): |
| 3319 | """GetWheelRotation() -> int""" |
| 3320 | return _core.MouseEvent_GetWheelRotation(*args, **kwargs) |
| 3321 | |
| 3322 | def GetWheelDelta(*args, **kwargs): |
| 3323 | """GetWheelDelta() -> int""" |
| 3324 | return _core.MouseEvent_GetWheelDelta(*args, **kwargs) |
| 3325 | |
| 3326 | def GetLinesPerAction(*args, **kwargs): |
| 3327 | """GetLinesPerAction() -> int""" |
| 3328 | return _core.MouseEvent_GetLinesPerAction(*args, **kwargs) |
| 3329 | |
| 3330 | def IsPageScroll(*args, **kwargs): |
| 3331 | """IsPageScroll() -> bool""" |
| 3332 | return _core.MouseEvent_IsPageScroll(*args, **kwargs) |
| 3333 | |
| 3334 | m_x = property(_core.MouseEvent_m_x_get, _core.MouseEvent_m_x_set) |
| 3335 | m_y = property(_core.MouseEvent_m_y_get, _core.MouseEvent_m_y_set) |
| 3336 | m_leftDown = property(_core.MouseEvent_m_leftDown_get, _core.MouseEvent_m_leftDown_set) |
| 3337 | m_middleDown = property(_core.MouseEvent_m_middleDown_get, _core.MouseEvent_m_middleDown_set) |
| 3338 | m_rightDown = property(_core.MouseEvent_m_rightDown_get, _core.MouseEvent_m_rightDown_set) |
| 3339 | m_controlDown = property(_core.MouseEvent_m_controlDown_get, _core.MouseEvent_m_controlDown_set) |
| 3340 | m_shiftDown = property(_core.MouseEvent_m_shiftDown_get, _core.MouseEvent_m_shiftDown_set) |
| 3341 | m_altDown = property(_core.MouseEvent_m_altDown_get, _core.MouseEvent_m_altDown_set) |
| 3342 | m_metaDown = property(_core.MouseEvent_m_metaDown_get, _core.MouseEvent_m_metaDown_set) |
| 3343 | m_wheelRotation = property(_core.MouseEvent_m_wheelRotation_get, _core.MouseEvent_m_wheelRotation_set) |
| 3344 | m_wheelDelta = property(_core.MouseEvent_m_wheelDelta_get, _core.MouseEvent_m_wheelDelta_set) |
| 3345 | m_linesPerAction = property(_core.MouseEvent_m_linesPerAction_get, _core.MouseEvent_m_linesPerAction_set) |
| 3346 | |
| 3347 | class MouseEventPtr(MouseEvent): |
| 3348 | def __init__(self, this): |
| 3349 | self.this = this |
| 3350 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3351 | self.__class__ = MouseEvent |
| 3352 | _core.MouseEvent_swigregister(MouseEventPtr) |
| 3353 | |
| 3354 | #--------------------------------------------------------------------------- |
| 3355 | |
| 3356 | class SetCursorEvent(Event): |
| 3357 | """""" |
| 3358 | def __repr__(self): |
| 3359 | return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3360 | def __init__(self, *args, **kwargs): |
| 3361 | """__init__(int x=0, int y=0) -> SetCursorEvent""" |
| 3362 | newobj = _core.new_SetCursorEvent(*args, **kwargs) |
| 3363 | self.this = newobj.this |
| 3364 | self.thisown = 1 |
| 3365 | del newobj.thisown |
| 3366 | def GetX(*args, **kwargs): |
| 3367 | """GetX() -> int""" |
| 3368 | return _core.SetCursorEvent_GetX(*args, **kwargs) |
| 3369 | |
| 3370 | def GetY(*args, **kwargs): |
| 3371 | """GetY() -> int""" |
| 3372 | return _core.SetCursorEvent_GetY(*args, **kwargs) |
| 3373 | |
| 3374 | def SetCursor(*args, **kwargs): |
| 3375 | """SetCursor(wxCursor cursor)""" |
| 3376 | return _core.SetCursorEvent_SetCursor(*args, **kwargs) |
| 3377 | |
| 3378 | def GetCursor(*args, **kwargs): |
| 3379 | """GetCursor() -> wxCursor""" |
| 3380 | return _core.SetCursorEvent_GetCursor(*args, **kwargs) |
| 3381 | |
| 3382 | def HasCursor(*args, **kwargs): |
| 3383 | """HasCursor() -> bool""" |
| 3384 | return _core.SetCursorEvent_HasCursor(*args, **kwargs) |
| 3385 | |
| 3386 | |
| 3387 | class SetCursorEventPtr(SetCursorEvent): |
| 3388 | def __init__(self, this): |
| 3389 | self.this = this |
| 3390 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3391 | self.__class__ = SetCursorEvent |
| 3392 | _core.SetCursorEvent_swigregister(SetCursorEventPtr) |
| 3393 | |
| 3394 | #--------------------------------------------------------------------------- |
| 3395 | |
| 3396 | class KeyEvent(Event): |
| 3397 | """""" |
| 3398 | def __repr__(self): |
| 3399 | return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3400 | def __init__(self, *args, **kwargs): |
| 3401 | """__init__(wxEventType keyType=wxEVT_NULL) -> KeyEvent""" |
| 3402 | newobj = _core.new_KeyEvent(*args, **kwargs) |
| 3403 | self.this = newobj.this |
| 3404 | self.thisown = 1 |
| 3405 | del newobj.thisown |
| 3406 | def ControlDown(*args, **kwargs): |
| 3407 | """ControlDown() -> bool""" |
| 3408 | return _core.KeyEvent_ControlDown(*args, **kwargs) |
| 3409 | |
| 3410 | def MetaDown(*args, **kwargs): |
| 3411 | """MetaDown() -> bool""" |
| 3412 | return _core.KeyEvent_MetaDown(*args, **kwargs) |
| 3413 | |
| 3414 | def AltDown(*args, **kwargs): |
| 3415 | """AltDown() -> bool""" |
| 3416 | return _core.KeyEvent_AltDown(*args, **kwargs) |
| 3417 | |
| 3418 | def ShiftDown(*args, **kwargs): |
| 3419 | """ShiftDown() -> bool""" |
| 3420 | return _core.KeyEvent_ShiftDown(*args, **kwargs) |
| 3421 | |
| 3422 | def HasModifiers(*args, **kwargs): |
| 3423 | """HasModifiers() -> bool""" |
| 3424 | return _core.KeyEvent_HasModifiers(*args, **kwargs) |
| 3425 | |
| 3426 | def GetKeyCode(*args, **kwargs): |
| 3427 | """GetKeyCode() -> int""" |
| 3428 | return _core.KeyEvent_GetKeyCode(*args, **kwargs) |
| 3429 | |
| 3430 | KeyCode = GetKeyCode |
| 3431 | def GetUniChar(*args, **kwargs): |
| 3432 | """GetUniChar() -> int""" |
| 3433 | return _core.KeyEvent_GetUniChar(*args, **kwargs) |
| 3434 | |
| 3435 | def GetRawKeyCode(*args, **kwargs): |
| 3436 | """GetRawKeyCode() -> unsigned int""" |
| 3437 | return _core.KeyEvent_GetRawKeyCode(*args, **kwargs) |
| 3438 | |
| 3439 | def GetRawKeyFlags(*args, **kwargs): |
| 3440 | """GetRawKeyFlags() -> unsigned int""" |
| 3441 | return _core.KeyEvent_GetRawKeyFlags(*args, **kwargs) |
| 3442 | |
| 3443 | def GetPosition(*args, **kwargs): |
| 3444 | """GetPosition() -> Point |
| 3445 | |
| 3446 | Find the position of the event.""" |
| 3447 | return _core.KeyEvent_GetPosition(*args, **kwargs) |
| 3448 | |
| 3449 | def GetPositionTuple(*args, **kwargs): |
| 3450 | """GetPositionTuple() -> (x,y) |
| 3451 | |
| 3452 | Find the position of the event.""" |
| 3453 | return _core.KeyEvent_GetPositionTuple(*args, **kwargs) |
| 3454 | |
| 3455 | def GetX(*args, **kwargs): |
| 3456 | """GetX() -> int""" |
| 3457 | return _core.KeyEvent_GetX(*args, **kwargs) |
| 3458 | |
| 3459 | def GetY(*args, **kwargs): |
| 3460 | """GetY() -> int""" |
| 3461 | return _core.KeyEvent_GetY(*args, **kwargs) |
| 3462 | |
| 3463 | m_x = property(_core.KeyEvent_m_x_get, _core.KeyEvent_m_x_set) |
| 3464 | m_y = property(_core.KeyEvent_m_y_get, _core.KeyEvent_m_y_set) |
| 3465 | m_keyCode = property(_core.KeyEvent_m_keyCode_get, _core.KeyEvent_m_keyCode_set) |
| 3466 | m_controlDown = property(_core.KeyEvent_m_controlDown_get, _core.KeyEvent_m_controlDown_set) |
| 3467 | m_shiftDown = property(_core.KeyEvent_m_shiftDown_get, _core.KeyEvent_m_shiftDown_set) |
| 3468 | m_altDown = property(_core.KeyEvent_m_altDown_get, _core.KeyEvent_m_altDown_set) |
| 3469 | m_metaDown = property(_core.KeyEvent_m_metaDown_get, _core.KeyEvent_m_metaDown_set) |
| 3470 | m_scanCode = property(_core.KeyEvent_m_scanCode_get, _core.KeyEvent_m_scanCode_set) |
| 3471 | m_rawCode = property(_core.KeyEvent_m_rawCode_get, _core.KeyEvent_m_rawCode_set) |
| 3472 | m_rawFlags = property(_core.KeyEvent_m_rawFlags_get, _core.KeyEvent_m_rawFlags_set) |
| 3473 | |
| 3474 | class KeyEventPtr(KeyEvent): |
| 3475 | def __init__(self, this): |
| 3476 | self.this = this |
| 3477 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3478 | self.__class__ = KeyEvent |
| 3479 | _core.KeyEvent_swigregister(KeyEventPtr) |
| 3480 | |
| 3481 | #--------------------------------------------------------------------------- |
| 3482 | |
| 3483 | class SizeEvent(Event): |
| 3484 | """""" |
| 3485 | def __repr__(self): |
| 3486 | return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3487 | def __init__(self, *args, **kwargs): |
| 3488 | """__init__(Size sz=DefaultSize, int winid=0) -> SizeEvent""" |
| 3489 | newobj = _core.new_SizeEvent(*args, **kwargs) |
| 3490 | self.this = newobj.this |
| 3491 | self.thisown = 1 |
| 3492 | del newobj.thisown |
| 3493 | def GetSize(*args, **kwargs): |
| 3494 | """GetSize() -> Size""" |
| 3495 | return _core.SizeEvent_GetSize(*args, **kwargs) |
| 3496 | |
| 3497 | def GetRect(*args, **kwargs): |
| 3498 | """GetRect() -> Rect""" |
| 3499 | return _core.SizeEvent_GetRect(*args, **kwargs) |
| 3500 | |
| 3501 | def SetRect(*args, **kwargs): |
| 3502 | """SetRect(Rect rect)""" |
| 3503 | return _core.SizeEvent_SetRect(*args, **kwargs) |
| 3504 | |
| 3505 | def SetSize(*args, **kwargs): |
| 3506 | """SetSize(Size size)""" |
| 3507 | return _core.SizeEvent_SetSize(*args, **kwargs) |
| 3508 | |
| 3509 | m_size = property(_core.SizeEvent_m_size_get, _core.SizeEvent_m_size_set) |
| 3510 | m_rect = property(_core.SizeEvent_m_rect_get, _core.SizeEvent_m_rect_set) |
| 3511 | |
| 3512 | class SizeEventPtr(SizeEvent): |
| 3513 | def __init__(self, this): |
| 3514 | self.this = this |
| 3515 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3516 | self.__class__ = SizeEvent |
| 3517 | _core.SizeEvent_swigregister(SizeEventPtr) |
| 3518 | |
| 3519 | #--------------------------------------------------------------------------- |
| 3520 | |
| 3521 | class MoveEvent(Event): |
| 3522 | """""" |
| 3523 | def __repr__(self): |
| 3524 | return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3525 | def __init__(self, *args, **kwargs): |
| 3526 | """__init__(Point pos=DefaultPosition, int winid=0) -> MoveEvent""" |
| 3527 | newobj = _core.new_MoveEvent(*args, **kwargs) |
| 3528 | self.this = newobj.this |
| 3529 | self.thisown = 1 |
| 3530 | del newobj.thisown |
| 3531 | def GetPosition(*args, **kwargs): |
| 3532 | """GetPosition() -> Point""" |
| 3533 | return _core.MoveEvent_GetPosition(*args, **kwargs) |
| 3534 | |
| 3535 | def GetRect(*args, **kwargs): |
| 3536 | """GetRect() -> Rect""" |
| 3537 | return _core.MoveEvent_GetRect(*args, **kwargs) |
| 3538 | |
| 3539 | def SetRect(*args, **kwargs): |
| 3540 | """SetRect(Rect rect)""" |
| 3541 | return _core.MoveEvent_SetRect(*args, **kwargs) |
| 3542 | |
| 3543 | def SetPosition(*args, **kwargs): |
| 3544 | """SetPosition(Point pos)""" |
| 3545 | return _core.MoveEvent_SetPosition(*args, **kwargs) |
| 3546 | |
| 3547 | m_pos = property(_core.MoveEvent_m_pos_get, _core.MoveEvent_m_pos_set) |
| 3548 | m_rect = property(_core.MoveEvent_m_rect_get, _core.MoveEvent_m_rect_set) |
| 3549 | |
| 3550 | class MoveEventPtr(MoveEvent): |
| 3551 | def __init__(self, this): |
| 3552 | self.this = this |
| 3553 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3554 | self.__class__ = MoveEvent |
| 3555 | _core.MoveEvent_swigregister(MoveEventPtr) |
| 3556 | |
| 3557 | #--------------------------------------------------------------------------- |
| 3558 | |
| 3559 | class PaintEvent(Event): |
| 3560 | """""" |
| 3561 | def __repr__(self): |
| 3562 | return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3563 | def __init__(self, *args, **kwargs): |
| 3564 | """__init__(int Id=0) -> PaintEvent""" |
| 3565 | newobj = _core.new_PaintEvent(*args, **kwargs) |
| 3566 | self.this = newobj.this |
| 3567 | self.thisown = 1 |
| 3568 | del newobj.thisown |
| 3569 | |
| 3570 | class PaintEventPtr(PaintEvent): |
| 3571 | def __init__(self, this): |
| 3572 | self.this = this |
| 3573 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3574 | self.__class__ = PaintEvent |
| 3575 | _core.PaintEvent_swigregister(PaintEventPtr) |
| 3576 | |
| 3577 | class NcPaintEvent(Event): |
| 3578 | """""" |
| 3579 | def __repr__(self): |
| 3580 | return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3581 | def __init__(self, *args, **kwargs): |
| 3582 | """__init__(int winid=0) -> NcPaintEvent""" |
| 3583 | newobj = _core.new_NcPaintEvent(*args, **kwargs) |
| 3584 | self.this = newobj.this |
| 3585 | self.thisown = 1 |
| 3586 | del newobj.thisown |
| 3587 | |
| 3588 | class NcPaintEventPtr(NcPaintEvent): |
| 3589 | def __init__(self, this): |
| 3590 | self.this = this |
| 3591 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3592 | self.__class__ = NcPaintEvent |
| 3593 | _core.NcPaintEvent_swigregister(NcPaintEventPtr) |
| 3594 | |
| 3595 | #--------------------------------------------------------------------------- |
| 3596 | |
| 3597 | class EraseEvent(Event): |
| 3598 | """""" |
| 3599 | def __repr__(self): |
| 3600 | return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3601 | def __init__(self, *args, **kwargs): |
| 3602 | """__init__(int Id=0, wxDC dc=(wxDC *) NULL) -> EraseEvent""" |
| 3603 | newobj = _core.new_EraseEvent(*args, **kwargs) |
| 3604 | self.this = newobj.this |
| 3605 | self.thisown = 1 |
| 3606 | del newobj.thisown |
| 3607 | def GetDC(*args, **kwargs): |
| 3608 | """GetDC() -> wxDC""" |
| 3609 | return _core.EraseEvent_GetDC(*args, **kwargs) |
| 3610 | |
| 3611 | |
| 3612 | class EraseEventPtr(EraseEvent): |
| 3613 | def __init__(self, this): |
| 3614 | self.this = this |
| 3615 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3616 | self.__class__ = EraseEvent |
| 3617 | _core.EraseEvent_swigregister(EraseEventPtr) |
| 3618 | |
| 3619 | #--------------------------------------------------------------------------- |
| 3620 | |
| 3621 | class FocusEvent(Event): |
| 3622 | """""" |
| 3623 | def __repr__(self): |
| 3624 | return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3625 | def __init__(self, *args, **kwargs): |
| 3626 | """__init__(wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent""" |
| 3627 | newobj = _core.new_FocusEvent(*args, **kwargs) |
| 3628 | self.this = newobj.this |
| 3629 | self.thisown = 1 |
| 3630 | del newobj.thisown |
| 3631 | def GetWindow(*args, **kwargs): |
| 3632 | """GetWindow() -> Window""" |
| 3633 | return _core.FocusEvent_GetWindow(*args, **kwargs) |
| 3634 | |
| 3635 | def SetWindow(*args, **kwargs): |
| 3636 | """SetWindow(Window win)""" |
| 3637 | return _core.FocusEvent_SetWindow(*args, **kwargs) |
| 3638 | |
| 3639 | |
| 3640 | class FocusEventPtr(FocusEvent): |
| 3641 | def __init__(self, this): |
| 3642 | self.this = this |
| 3643 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3644 | self.__class__ = FocusEvent |
| 3645 | _core.FocusEvent_swigregister(FocusEventPtr) |
| 3646 | |
| 3647 | #--------------------------------------------------------------------------- |
| 3648 | |
| 3649 | class ChildFocusEvent(CommandEvent): |
| 3650 | """""" |
| 3651 | def __repr__(self): |
| 3652 | return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3653 | def __init__(self, *args, **kwargs): |
| 3654 | """__init__(Window win=None) -> ChildFocusEvent""" |
| 3655 | newobj = _core.new_ChildFocusEvent(*args, **kwargs) |
| 3656 | self.this = newobj.this |
| 3657 | self.thisown = 1 |
| 3658 | del newobj.thisown |
| 3659 | def GetWindow(*args, **kwargs): |
| 3660 | """GetWindow() -> Window""" |
| 3661 | return _core.ChildFocusEvent_GetWindow(*args, **kwargs) |
| 3662 | |
| 3663 | |
| 3664 | class ChildFocusEventPtr(ChildFocusEvent): |
| 3665 | def __init__(self, this): |
| 3666 | self.this = this |
| 3667 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3668 | self.__class__ = ChildFocusEvent |
| 3669 | _core.ChildFocusEvent_swigregister(ChildFocusEventPtr) |
| 3670 | |
| 3671 | #--------------------------------------------------------------------------- |
| 3672 | |
| 3673 | class ActivateEvent(Event): |
| 3674 | """""" |
| 3675 | def __repr__(self): |
| 3676 | return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3677 | def __init__(self, *args, **kwargs): |
| 3678 | """__init__(wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent""" |
| 3679 | newobj = _core.new_ActivateEvent(*args, **kwargs) |
| 3680 | self.this = newobj.this |
| 3681 | self.thisown = 1 |
| 3682 | del newobj.thisown |
| 3683 | def GetActive(*args, **kwargs): |
| 3684 | """GetActive() -> bool""" |
| 3685 | return _core.ActivateEvent_GetActive(*args, **kwargs) |
| 3686 | |
| 3687 | |
| 3688 | class ActivateEventPtr(ActivateEvent): |
| 3689 | def __init__(self, this): |
| 3690 | self.this = this |
| 3691 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3692 | self.__class__ = ActivateEvent |
| 3693 | _core.ActivateEvent_swigregister(ActivateEventPtr) |
| 3694 | |
| 3695 | #--------------------------------------------------------------------------- |
| 3696 | |
| 3697 | class InitDialogEvent(Event): |
| 3698 | """""" |
| 3699 | def __repr__(self): |
| 3700 | return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3701 | def __init__(self, *args, **kwargs): |
| 3702 | """__init__(int Id=0) -> InitDialogEvent""" |
| 3703 | newobj = _core.new_InitDialogEvent(*args, **kwargs) |
| 3704 | self.this = newobj.this |
| 3705 | self.thisown = 1 |
| 3706 | del newobj.thisown |
| 3707 | |
| 3708 | class InitDialogEventPtr(InitDialogEvent): |
| 3709 | def __init__(self, this): |
| 3710 | self.this = this |
| 3711 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3712 | self.__class__ = InitDialogEvent |
| 3713 | _core.InitDialogEvent_swigregister(InitDialogEventPtr) |
| 3714 | |
| 3715 | #--------------------------------------------------------------------------- |
| 3716 | |
| 3717 | class MenuEvent(Event): |
| 3718 | """""" |
| 3719 | def __repr__(self): |
| 3720 | return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3721 | def __init__(self, *args, **kwargs): |
| 3722 | """__init__(wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent""" |
| 3723 | newobj = _core.new_MenuEvent(*args, **kwargs) |
| 3724 | self.this = newobj.this |
| 3725 | self.thisown = 1 |
| 3726 | del newobj.thisown |
| 3727 | def GetMenuId(*args, **kwargs): |
| 3728 | """GetMenuId() -> int""" |
| 3729 | return _core.MenuEvent_GetMenuId(*args, **kwargs) |
| 3730 | |
| 3731 | def IsPopup(*args, **kwargs): |
| 3732 | """IsPopup() -> bool""" |
| 3733 | return _core.MenuEvent_IsPopup(*args, **kwargs) |
| 3734 | |
| 3735 | def GetMenu(*args, **kwargs): |
| 3736 | """GetMenu() -> Menu""" |
| 3737 | return _core.MenuEvent_GetMenu(*args, **kwargs) |
| 3738 | |
| 3739 | |
| 3740 | class MenuEventPtr(MenuEvent): |
| 3741 | def __init__(self, this): |
| 3742 | self.this = this |
| 3743 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3744 | self.__class__ = MenuEvent |
| 3745 | _core.MenuEvent_swigregister(MenuEventPtr) |
| 3746 | |
| 3747 | #--------------------------------------------------------------------------- |
| 3748 | |
| 3749 | class CloseEvent(Event): |
| 3750 | """""" |
| 3751 | def __repr__(self): |
| 3752 | return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3753 | def __init__(self, *args, **kwargs): |
| 3754 | """__init__(wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent""" |
| 3755 | newobj = _core.new_CloseEvent(*args, **kwargs) |
| 3756 | self.this = newobj.this |
| 3757 | self.thisown = 1 |
| 3758 | del newobj.thisown |
| 3759 | def SetLoggingOff(*args, **kwargs): |
| 3760 | """SetLoggingOff(bool logOff)""" |
| 3761 | return _core.CloseEvent_SetLoggingOff(*args, **kwargs) |
| 3762 | |
| 3763 | def GetLoggingOff(*args, **kwargs): |
| 3764 | """GetLoggingOff() -> bool""" |
| 3765 | return _core.CloseEvent_GetLoggingOff(*args, **kwargs) |
| 3766 | |
| 3767 | def Veto(*args, **kwargs): |
| 3768 | """Veto(bool veto=True)""" |
| 3769 | return _core.CloseEvent_Veto(*args, **kwargs) |
| 3770 | |
| 3771 | def SetCanVeto(*args, **kwargs): |
| 3772 | """SetCanVeto(bool canVeto)""" |
| 3773 | return _core.CloseEvent_SetCanVeto(*args, **kwargs) |
| 3774 | |
| 3775 | def CanVeto(*args, **kwargs): |
| 3776 | """CanVeto() -> bool""" |
| 3777 | return _core.CloseEvent_CanVeto(*args, **kwargs) |
| 3778 | |
| 3779 | def GetVeto(*args, **kwargs): |
| 3780 | """GetVeto() -> bool""" |
| 3781 | return _core.CloseEvent_GetVeto(*args, **kwargs) |
| 3782 | |
| 3783 | |
| 3784 | class CloseEventPtr(CloseEvent): |
| 3785 | def __init__(self, this): |
| 3786 | self.this = this |
| 3787 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3788 | self.__class__ = CloseEvent |
| 3789 | _core.CloseEvent_swigregister(CloseEventPtr) |
| 3790 | |
| 3791 | #--------------------------------------------------------------------------- |
| 3792 | |
| 3793 | class ShowEvent(Event): |
| 3794 | """""" |
| 3795 | def __repr__(self): |
| 3796 | return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3797 | def __init__(self, *args, **kwargs): |
| 3798 | """__init__(int winid=0, bool show=False) -> ShowEvent""" |
| 3799 | newobj = _core.new_ShowEvent(*args, **kwargs) |
| 3800 | self.this = newobj.this |
| 3801 | self.thisown = 1 |
| 3802 | del newobj.thisown |
| 3803 | def SetShow(*args, **kwargs): |
| 3804 | """SetShow(bool show)""" |
| 3805 | return _core.ShowEvent_SetShow(*args, **kwargs) |
| 3806 | |
| 3807 | def GetShow(*args, **kwargs): |
| 3808 | """GetShow() -> bool""" |
| 3809 | return _core.ShowEvent_GetShow(*args, **kwargs) |
| 3810 | |
| 3811 | |
| 3812 | class ShowEventPtr(ShowEvent): |
| 3813 | def __init__(self, this): |
| 3814 | self.this = this |
| 3815 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3816 | self.__class__ = ShowEvent |
| 3817 | _core.ShowEvent_swigregister(ShowEventPtr) |
| 3818 | |
| 3819 | #--------------------------------------------------------------------------- |
| 3820 | |
| 3821 | class IconizeEvent(Event): |
| 3822 | """""" |
| 3823 | def __repr__(self): |
| 3824 | return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3825 | def __init__(self, *args, **kwargs): |
| 3826 | """__init__(int id=0, bool iconized=True) -> IconizeEvent""" |
| 3827 | newobj = _core.new_IconizeEvent(*args, **kwargs) |
| 3828 | self.this = newobj.this |
| 3829 | self.thisown = 1 |
| 3830 | del newobj.thisown |
| 3831 | def Iconized(*args, **kwargs): |
| 3832 | """Iconized() -> bool""" |
| 3833 | return _core.IconizeEvent_Iconized(*args, **kwargs) |
| 3834 | |
| 3835 | |
| 3836 | class IconizeEventPtr(IconizeEvent): |
| 3837 | def __init__(self, this): |
| 3838 | self.this = this |
| 3839 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3840 | self.__class__ = IconizeEvent |
| 3841 | _core.IconizeEvent_swigregister(IconizeEventPtr) |
| 3842 | |
| 3843 | #--------------------------------------------------------------------------- |
| 3844 | |
| 3845 | class MaximizeEvent(Event): |
| 3846 | """""" |
| 3847 | def __repr__(self): |
| 3848 | return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3849 | def __init__(self, *args, **kwargs): |
| 3850 | """__init__(int id=0) -> MaximizeEvent""" |
| 3851 | newobj = _core.new_MaximizeEvent(*args, **kwargs) |
| 3852 | self.this = newobj.this |
| 3853 | self.thisown = 1 |
| 3854 | del newobj.thisown |
| 3855 | |
| 3856 | class MaximizeEventPtr(MaximizeEvent): |
| 3857 | def __init__(self, this): |
| 3858 | self.this = this |
| 3859 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3860 | self.__class__ = MaximizeEvent |
| 3861 | _core.MaximizeEvent_swigregister(MaximizeEventPtr) |
| 3862 | |
| 3863 | #--------------------------------------------------------------------------- |
| 3864 | |
| 3865 | class DropFilesEvent(Event): |
| 3866 | """""" |
| 3867 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 3868 | def __repr__(self): |
| 3869 | return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3870 | def GetPosition(*args, **kwargs): |
| 3871 | """GetPosition() -> Point""" |
| 3872 | return _core.DropFilesEvent_GetPosition(*args, **kwargs) |
| 3873 | |
| 3874 | def GetNumberOfFiles(*args, **kwargs): |
| 3875 | """GetNumberOfFiles() -> int""" |
| 3876 | return _core.DropFilesEvent_GetNumberOfFiles(*args, **kwargs) |
| 3877 | |
| 3878 | def GetFiles(*args, **kwargs): |
| 3879 | """GetFiles() -> PyObject""" |
| 3880 | return _core.DropFilesEvent_GetFiles(*args, **kwargs) |
| 3881 | |
| 3882 | |
| 3883 | class DropFilesEventPtr(DropFilesEvent): |
| 3884 | def __init__(self, this): |
| 3885 | self.this = this |
| 3886 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3887 | self.__class__ = DropFilesEvent |
| 3888 | _core.DropFilesEvent_swigregister(DropFilesEventPtr) |
| 3889 | |
| 3890 | #--------------------------------------------------------------------------- |
| 3891 | |
| 3892 | UPDATE_UI_PROCESS_ALL = _core.UPDATE_UI_PROCESS_ALL |
| 3893 | UPDATE_UI_PROCESS_SPECIFIED = _core.UPDATE_UI_PROCESS_SPECIFIED |
| 3894 | class UpdateUIEvent(CommandEvent): |
| 3895 | """""" |
| 3896 | def __repr__(self): |
| 3897 | return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 3898 | def __init__(self, *args, **kwargs): |
| 3899 | """__init__(int commandId=0) -> UpdateUIEvent""" |
| 3900 | newobj = _core.new_UpdateUIEvent(*args, **kwargs) |
| 3901 | self.this = newobj.this |
| 3902 | self.thisown = 1 |
| 3903 | del newobj.thisown |
| 3904 | def GetChecked(*args, **kwargs): |
| 3905 | """GetChecked() -> bool""" |
| 3906 | return _core.UpdateUIEvent_GetChecked(*args, **kwargs) |
| 3907 | |
| 3908 | def GetEnabled(*args, **kwargs): |
| 3909 | """GetEnabled() -> bool""" |
| 3910 | return _core.UpdateUIEvent_GetEnabled(*args, **kwargs) |
| 3911 | |
| 3912 | def GetText(*args, **kwargs): |
| 3913 | """GetText() -> wxString""" |
| 3914 | return _core.UpdateUIEvent_GetText(*args, **kwargs) |
| 3915 | |
| 3916 | def GetSetText(*args, **kwargs): |
| 3917 | """GetSetText() -> bool""" |
| 3918 | return _core.UpdateUIEvent_GetSetText(*args, **kwargs) |
| 3919 | |
| 3920 | def GetSetChecked(*args, **kwargs): |
| 3921 | """GetSetChecked() -> bool""" |
| 3922 | return _core.UpdateUIEvent_GetSetChecked(*args, **kwargs) |
| 3923 | |
| 3924 | def GetSetEnabled(*args, **kwargs): |
| 3925 | """GetSetEnabled() -> bool""" |
| 3926 | return _core.UpdateUIEvent_GetSetEnabled(*args, **kwargs) |
| 3927 | |
| 3928 | def Check(*args, **kwargs): |
| 3929 | """Check(bool check)""" |
| 3930 | return _core.UpdateUIEvent_Check(*args, **kwargs) |
| 3931 | |
| 3932 | def Enable(*args, **kwargs): |
| 3933 | """Enable(bool enable)""" |
| 3934 | return _core.UpdateUIEvent_Enable(*args, **kwargs) |
| 3935 | |
| 3936 | def SetText(*args, **kwargs): |
| 3937 | """SetText(wxString text)""" |
| 3938 | return _core.UpdateUIEvent_SetText(*args, **kwargs) |
| 3939 | |
| 3940 | def SetUpdateInterval(*args, **kwargs): |
| 3941 | """UpdateUIEvent.SetUpdateInterval(long updateInterval)""" |
| 3942 | return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) |
| 3943 | |
| 3944 | SetUpdateInterval = staticmethod(SetUpdateInterval) |
| 3945 | def GetUpdateInterval(*args, **kwargs): |
| 3946 | """UpdateUIEvent.GetUpdateInterval() -> long""" |
| 3947 | return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) |
| 3948 | |
| 3949 | GetUpdateInterval = staticmethod(GetUpdateInterval) |
| 3950 | def CanUpdate(*args, **kwargs): |
| 3951 | """UpdateUIEvent.CanUpdate(Window win) -> bool""" |
| 3952 | return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) |
| 3953 | |
| 3954 | CanUpdate = staticmethod(CanUpdate) |
| 3955 | def ResetUpdateTime(*args, **kwargs): |
| 3956 | """UpdateUIEvent.ResetUpdateTime()""" |
| 3957 | return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) |
| 3958 | |
| 3959 | ResetUpdateTime = staticmethod(ResetUpdateTime) |
| 3960 | def SetMode(*args, **kwargs): |
| 3961 | """UpdateUIEvent.SetMode(wxUpdateUIMode mode)""" |
| 3962 | return _core.UpdateUIEvent_SetMode(*args, **kwargs) |
| 3963 | |
| 3964 | SetMode = staticmethod(SetMode) |
| 3965 | def GetMode(*args, **kwargs): |
| 3966 | """UpdateUIEvent.GetMode() -> wxUpdateUIMode""" |
| 3967 | return _core.UpdateUIEvent_GetMode(*args, **kwargs) |
| 3968 | |
| 3969 | GetMode = staticmethod(GetMode) |
| 3970 | |
| 3971 | class UpdateUIEventPtr(UpdateUIEvent): |
| 3972 | def __init__(self, this): |
| 3973 | self.this = this |
| 3974 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 3975 | self.__class__ = UpdateUIEvent |
| 3976 | _core.UpdateUIEvent_swigregister(UpdateUIEventPtr) |
| 3977 | |
| 3978 | def UpdateUIEvent_SetUpdateInterval(*args, **kwargs): |
| 3979 | """UpdateUIEvent_SetUpdateInterval(long updateInterval)""" |
| 3980 | return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) |
| 3981 | |
| 3982 | def UpdateUIEvent_GetUpdateInterval(*args, **kwargs): |
| 3983 | """UpdateUIEvent_GetUpdateInterval() -> long""" |
| 3984 | return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) |
| 3985 | |
| 3986 | def UpdateUIEvent_CanUpdate(*args, **kwargs): |
| 3987 | """UpdateUIEvent_CanUpdate(Window win) -> bool""" |
| 3988 | return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) |
| 3989 | |
| 3990 | def UpdateUIEvent_ResetUpdateTime(*args, **kwargs): |
| 3991 | """UpdateUIEvent_ResetUpdateTime()""" |
| 3992 | return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) |
| 3993 | |
| 3994 | def UpdateUIEvent_SetMode(*args, **kwargs): |
| 3995 | """UpdateUIEvent_SetMode(wxUpdateUIMode mode)""" |
| 3996 | return _core.UpdateUIEvent_SetMode(*args, **kwargs) |
| 3997 | |
| 3998 | def UpdateUIEvent_GetMode(*args, **kwargs): |
| 3999 | """UpdateUIEvent_GetMode() -> wxUpdateUIMode""" |
| 4000 | return _core.UpdateUIEvent_GetMode(*args, **kwargs) |
| 4001 | |
| 4002 | #--------------------------------------------------------------------------- |
| 4003 | |
| 4004 | class SysColourChangedEvent(Event): |
| 4005 | """""" |
| 4006 | def __repr__(self): |
| 4007 | return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4008 | def __init__(self, *args, **kwargs): |
| 4009 | """__init__() -> SysColourChangedEvent""" |
| 4010 | newobj = _core.new_SysColourChangedEvent(*args, **kwargs) |
| 4011 | self.this = newobj.this |
| 4012 | self.thisown = 1 |
| 4013 | del newobj.thisown |
| 4014 | |
| 4015 | class SysColourChangedEventPtr(SysColourChangedEvent): |
| 4016 | def __init__(self, this): |
| 4017 | self.this = this |
| 4018 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4019 | self.__class__ = SysColourChangedEvent |
| 4020 | _core.SysColourChangedEvent_swigregister(SysColourChangedEventPtr) |
| 4021 | |
| 4022 | #--------------------------------------------------------------------------- |
| 4023 | |
| 4024 | class MouseCaptureChangedEvent(Event): |
| 4025 | """""" |
| 4026 | def __repr__(self): |
| 4027 | return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4028 | def __init__(self, *args, **kwargs): |
| 4029 | """__init__(int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent""" |
| 4030 | newobj = _core.new_MouseCaptureChangedEvent(*args, **kwargs) |
| 4031 | self.this = newobj.this |
| 4032 | self.thisown = 1 |
| 4033 | del newobj.thisown |
| 4034 | def GetCapturedWindow(*args, **kwargs): |
| 4035 | """GetCapturedWindow() -> Window""" |
| 4036 | return _core.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs) |
| 4037 | |
| 4038 | |
| 4039 | class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent): |
| 4040 | def __init__(self, this): |
| 4041 | self.this = this |
| 4042 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4043 | self.__class__ = MouseCaptureChangedEvent |
| 4044 | _core.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr) |
| 4045 | |
| 4046 | #--------------------------------------------------------------------------- |
| 4047 | |
| 4048 | class DisplayChangedEvent(Event): |
| 4049 | """""" |
| 4050 | def __repr__(self): |
| 4051 | return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4052 | def __init__(self, *args, **kwargs): |
| 4053 | """__init__() -> DisplayChangedEvent""" |
| 4054 | newobj = _core.new_DisplayChangedEvent(*args, **kwargs) |
| 4055 | self.this = newobj.this |
| 4056 | self.thisown = 1 |
| 4057 | del newobj.thisown |
| 4058 | |
| 4059 | class DisplayChangedEventPtr(DisplayChangedEvent): |
| 4060 | def __init__(self, this): |
| 4061 | self.this = this |
| 4062 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4063 | self.__class__ = DisplayChangedEvent |
| 4064 | _core.DisplayChangedEvent_swigregister(DisplayChangedEventPtr) |
| 4065 | |
| 4066 | #--------------------------------------------------------------------------- |
| 4067 | |
| 4068 | class PaletteChangedEvent(Event): |
| 4069 | """""" |
| 4070 | def __repr__(self): |
| 4071 | return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4072 | def __init__(self, *args, **kwargs): |
| 4073 | """__init__(int id=0) -> PaletteChangedEvent""" |
| 4074 | newobj = _core.new_PaletteChangedEvent(*args, **kwargs) |
| 4075 | self.this = newobj.this |
| 4076 | self.thisown = 1 |
| 4077 | del newobj.thisown |
| 4078 | def SetChangedWindow(*args, **kwargs): |
| 4079 | """SetChangedWindow(Window win)""" |
| 4080 | return _core.PaletteChangedEvent_SetChangedWindow(*args, **kwargs) |
| 4081 | |
| 4082 | def GetChangedWindow(*args, **kwargs): |
| 4083 | """GetChangedWindow() -> Window""" |
| 4084 | return _core.PaletteChangedEvent_GetChangedWindow(*args, **kwargs) |
| 4085 | |
| 4086 | |
| 4087 | class PaletteChangedEventPtr(PaletteChangedEvent): |
| 4088 | def __init__(self, this): |
| 4089 | self.this = this |
| 4090 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4091 | self.__class__ = PaletteChangedEvent |
| 4092 | _core.PaletteChangedEvent_swigregister(PaletteChangedEventPtr) |
| 4093 | |
| 4094 | #--------------------------------------------------------------------------- |
| 4095 | |
| 4096 | class QueryNewPaletteEvent(Event): |
| 4097 | """""" |
| 4098 | def __repr__(self): |
| 4099 | return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4100 | def __init__(self, *args, **kwargs): |
| 4101 | """__init__(int winid=0) -> QueryNewPaletteEvent""" |
| 4102 | newobj = _core.new_QueryNewPaletteEvent(*args, **kwargs) |
| 4103 | self.this = newobj.this |
| 4104 | self.thisown = 1 |
| 4105 | del newobj.thisown |
| 4106 | def SetPaletteRealized(*args, **kwargs): |
| 4107 | """SetPaletteRealized(bool realized)""" |
| 4108 | return _core.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs) |
| 4109 | |
| 4110 | def GetPaletteRealized(*args, **kwargs): |
| 4111 | """GetPaletteRealized() -> bool""" |
| 4112 | return _core.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs) |
| 4113 | |
| 4114 | |
| 4115 | class QueryNewPaletteEventPtr(QueryNewPaletteEvent): |
| 4116 | def __init__(self, this): |
| 4117 | self.this = this |
| 4118 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4119 | self.__class__ = QueryNewPaletteEvent |
| 4120 | _core.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr) |
| 4121 | |
| 4122 | #--------------------------------------------------------------------------- |
| 4123 | |
| 4124 | class NavigationKeyEvent(Event): |
| 4125 | """""" |
| 4126 | def __repr__(self): |
| 4127 | return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4128 | def __init__(self, *args, **kwargs): |
| 4129 | """__init__() -> NavigationKeyEvent""" |
| 4130 | newobj = _core.new_NavigationKeyEvent(*args, **kwargs) |
| 4131 | self.this = newobj.this |
| 4132 | self.thisown = 1 |
| 4133 | del newobj.thisown |
| 4134 | def GetDirection(*args, **kwargs): |
| 4135 | """GetDirection() -> bool""" |
| 4136 | return _core.NavigationKeyEvent_GetDirection(*args, **kwargs) |
| 4137 | |
| 4138 | def SetDirection(*args, **kwargs): |
| 4139 | """SetDirection(bool bForward)""" |
| 4140 | return _core.NavigationKeyEvent_SetDirection(*args, **kwargs) |
| 4141 | |
| 4142 | def IsWindowChange(*args, **kwargs): |
| 4143 | """IsWindowChange() -> bool""" |
| 4144 | return _core.NavigationKeyEvent_IsWindowChange(*args, **kwargs) |
| 4145 | |
| 4146 | def SetWindowChange(*args, **kwargs): |
| 4147 | """SetWindowChange(bool bIs)""" |
| 4148 | return _core.NavigationKeyEvent_SetWindowChange(*args, **kwargs) |
| 4149 | |
| 4150 | def GetCurrentFocus(*args, **kwargs): |
| 4151 | """GetCurrentFocus() -> Window""" |
| 4152 | return _core.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs) |
| 4153 | |
| 4154 | def SetCurrentFocus(*args, **kwargs): |
| 4155 | """SetCurrentFocus(Window win)""" |
| 4156 | return _core.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs) |
| 4157 | |
| 4158 | |
| 4159 | class NavigationKeyEventPtr(NavigationKeyEvent): |
| 4160 | def __init__(self, this): |
| 4161 | self.this = this |
| 4162 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4163 | self.__class__ = NavigationKeyEvent |
| 4164 | _core.NavigationKeyEvent_swigregister(NavigationKeyEventPtr) |
| 4165 | |
| 4166 | #--------------------------------------------------------------------------- |
| 4167 | |
| 4168 | class WindowCreateEvent(CommandEvent): |
| 4169 | """""" |
| 4170 | def __repr__(self): |
| 4171 | return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4172 | def __init__(self, *args, **kwargs): |
| 4173 | """__init__(Window win=None) -> WindowCreateEvent""" |
| 4174 | newobj = _core.new_WindowCreateEvent(*args, **kwargs) |
| 4175 | self.this = newobj.this |
| 4176 | self.thisown = 1 |
| 4177 | del newobj.thisown |
| 4178 | def GetWindow(*args, **kwargs): |
| 4179 | """GetWindow() -> Window""" |
| 4180 | return _core.WindowCreateEvent_GetWindow(*args, **kwargs) |
| 4181 | |
| 4182 | |
| 4183 | class WindowCreateEventPtr(WindowCreateEvent): |
| 4184 | def __init__(self, this): |
| 4185 | self.this = this |
| 4186 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4187 | self.__class__ = WindowCreateEvent |
| 4188 | _core.WindowCreateEvent_swigregister(WindowCreateEventPtr) |
| 4189 | |
| 4190 | class WindowDestroyEvent(CommandEvent): |
| 4191 | """""" |
| 4192 | def __repr__(self): |
| 4193 | return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4194 | def __init__(self, *args, **kwargs): |
| 4195 | """__init__(Window win=None) -> WindowDestroyEvent""" |
| 4196 | newobj = _core.new_WindowDestroyEvent(*args, **kwargs) |
| 4197 | self.this = newobj.this |
| 4198 | self.thisown = 1 |
| 4199 | del newobj.thisown |
| 4200 | def GetWindow(*args, **kwargs): |
| 4201 | """GetWindow() -> Window""" |
| 4202 | return _core.WindowDestroyEvent_GetWindow(*args, **kwargs) |
| 4203 | |
| 4204 | |
| 4205 | class WindowDestroyEventPtr(WindowDestroyEvent): |
| 4206 | def __init__(self, this): |
| 4207 | self.this = this |
| 4208 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4209 | self.__class__ = WindowDestroyEvent |
| 4210 | _core.WindowDestroyEvent_swigregister(WindowDestroyEventPtr) |
| 4211 | |
| 4212 | #--------------------------------------------------------------------------- |
| 4213 | |
| 4214 | class ContextMenuEvent(CommandEvent): |
| 4215 | """""" |
| 4216 | def __repr__(self): |
| 4217 | return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4218 | def __init__(self, *args, **kwargs): |
| 4219 | """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent""" |
| 4220 | newobj = _core.new_ContextMenuEvent(*args, **kwargs) |
| 4221 | self.this = newobj.this |
| 4222 | self.thisown = 1 |
| 4223 | del newobj.thisown |
| 4224 | def GetPosition(*args, **kwargs): |
| 4225 | """GetPosition() -> Point""" |
| 4226 | return _core.ContextMenuEvent_GetPosition(*args, **kwargs) |
| 4227 | |
| 4228 | def SetPosition(*args, **kwargs): |
| 4229 | """SetPosition(Point pos)""" |
| 4230 | return _core.ContextMenuEvent_SetPosition(*args, **kwargs) |
| 4231 | |
| 4232 | |
| 4233 | class ContextMenuEventPtr(ContextMenuEvent): |
| 4234 | def __init__(self, this): |
| 4235 | self.this = this |
| 4236 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4237 | self.__class__ = ContextMenuEvent |
| 4238 | _core.ContextMenuEvent_swigregister(ContextMenuEventPtr) |
| 4239 | |
| 4240 | #--------------------------------------------------------------------------- |
| 4241 | |
| 4242 | IDLE_PROCESS_ALL = _core.IDLE_PROCESS_ALL |
| 4243 | IDLE_PROCESS_SPECIFIED = _core.IDLE_PROCESS_SPECIFIED |
| 4244 | class IdleEvent(Event): |
| 4245 | """""" |
| 4246 | def __repr__(self): |
| 4247 | return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4248 | def __init__(self, *args, **kwargs): |
| 4249 | """__init__() -> IdleEvent""" |
| 4250 | newobj = _core.new_IdleEvent(*args, **kwargs) |
| 4251 | self.this = newobj.this |
| 4252 | self.thisown = 1 |
| 4253 | del newobj.thisown |
| 4254 | def RequestMore(*args, **kwargs): |
| 4255 | """RequestMore(bool needMore=True)""" |
| 4256 | return _core.IdleEvent_RequestMore(*args, **kwargs) |
| 4257 | |
| 4258 | def MoreRequested(*args, **kwargs): |
| 4259 | """MoreRequested() -> bool""" |
| 4260 | return _core.IdleEvent_MoreRequested(*args, **kwargs) |
| 4261 | |
| 4262 | def SetMode(*args, **kwargs): |
| 4263 | """IdleEvent.SetMode(wxIdleMode mode)""" |
| 4264 | return _core.IdleEvent_SetMode(*args, **kwargs) |
| 4265 | |
| 4266 | SetMode = staticmethod(SetMode) |
| 4267 | def GetMode(*args, **kwargs): |
| 4268 | """IdleEvent.GetMode() -> wxIdleMode""" |
| 4269 | return _core.IdleEvent_GetMode(*args, **kwargs) |
| 4270 | |
| 4271 | GetMode = staticmethod(GetMode) |
| 4272 | def CanSend(*args, **kwargs): |
| 4273 | """IdleEvent.CanSend(Window win) -> bool""" |
| 4274 | return _core.IdleEvent_CanSend(*args, **kwargs) |
| 4275 | |
| 4276 | CanSend = staticmethod(CanSend) |
| 4277 | |
| 4278 | class IdleEventPtr(IdleEvent): |
| 4279 | def __init__(self, this): |
| 4280 | self.this = this |
| 4281 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4282 | self.__class__ = IdleEvent |
| 4283 | _core.IdleEvent_swigregister(IdleEventPtr) |
| 4284 | |
| 4285 | def IdleEvent_SetMode(*args, **kwargs): |
| 4286 | """IdleEvent_SetMode(wxIdleMode mode)""" |
| 4287 | return _core.IdleEvent_SetMode(*args, **kwargs) |
| 4288 | |
| 4289 | def IdleEvent_GetMode(*args, **kwargs): |
| 4290 | """IdleEvent_GetMode() -> wxIdleMode""" |
| 4291 | return _core.IdleEvent_GetMode(*args, **kwargs) |
| 4292 | |
| 4293 | def IdleEvent_CanSend(*args, **kwargs): |
| 4294 | """IdleEvent_CanSend(Window win) -> bool""" |
| 4295 | return _core.IdleEvent_CanSend(*args, **kwargs) |
| 4296 | |
| 4297 | #--------------------------------------------------------------------------- |
| 4298 | |
| 4299 | class PyEvent(Event): |
| 4300 | """""" |
| 4301 | def __repr__(self): |
| 4302 | return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4303 | def __init__(self, *args, **kwargs): |
| 4304 | """__init__(int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent""" |
| 4305 | newobj = _core.new_PyEvent(*args, **kwargs) |
| 4306 | self.this = newobj.this |
| 4307 | self.thisown = 1 |
| 4308 | del newobj.thisown |
| 4309 | self.SetSelf(self) |
| 4310 | |
| 4311 | def __del__(self, destroy=_core.delete_PyEvent): |
| 4312 | """__del__()""" |
| 4313 | try: |
| 4314 | if self.thisown: destroy(self) |
| 4315 | except: pass |
| 4316 | |
| 4317 | def SetSelf(*args, **kwargs): |
| 4318 | """SetSelf(PyObject self)""" |
| 4319 | return _core.PyEvent_SetSelf(*args, **kwargs) |
| 4320 | |
| 4321 | def GetSelf(*args, **kwargs): |
| 4322 | """GetSelf() -> PyObject""" |
| 4323 | return _core.PyEvent_GetSelf(*args, **kwargs) |
| 4324 | |
| 4325 | |
| 4326 | class PyEventPtr(PyEvent): |
| 4327 | def __init__(self, this): |
| 4328 | self.this = this |
| 4329 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4330 | self.__class__ = PyEvent |
| 4331 | _core.PyEvent_swigregister(PyEventPtr) |
| 4332 | |
| 4333 | class PyCommandEvent(CommandEvent): |
| 4334 | """""" |
| 4335 | def __repr__(self): |
| 4336 | return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4337 | def __init__(self, *args, **kwargs): |
| 4338 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent""" |
| 4339 | newobj = _core.new_PyCommandEvent(*args, **kwargs) |
| 4340 | self.this = newobj.this |
| 4341 | self.thisown = 1 |
| 4342 | del newobj.thisown |
| 4343 | self.SetSelf(self) |
| 4344 | |
| 4345 | def __del__(self, destroy=_core.delete_PyCommandEvent): |
| 4346 | """__del__()""" |
| 4347 | try: |
| 4348 | if self.thisown: destroy(self) |
| 4349 | except: pass |
| 4350 | |
| 4351 | def SetSelf(*args, **kwargs): |
| 4352 | """SetSelf(PyObject self)""" |
| 4353 | return _core.PyCommandEvent_SetSelf(*args, **kwargs) |
| 4354 | |
| 4355 | def GetSelf(*args, **kwargs): |
| 4356 | """GetSelf() -> PyObject""" |
| 4357 | return _core.PyCommandEvent_GetSelf(*args, **kwargs) |
| 4358 | |
| 4359 | |
| 4360 | class PyCommandEventPtr(PyCommandEvent): |
| 4361 | def __init__(self, this): |
| 4362 | self.this = this |
| 4363 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4364 | self.__class__ = PyCommandEvent |
| 4365 | _core.PyCommandEvent_swigregister(PyCommandEventPtr) |
| 4366 | |
| 4367 | #--------------------------------------------------------------------------- |
| 4368 | |
| 4369 | PYAPP_ASSERT_SUPPRESS = _core.PYAPP_ASSERT_SUPPRESS |
| 4370 | PYAPP_ASSERT_EXCEPTION = _core.PYAPP_ASSERT_EXCEPTION |
| 4371 | PYAPP_ASSERT_DIALOG = _core.PYAPP_ASSERT_DIALOG |
| 4372 | PYAPP_ASSERT_LOG = _core.PYAPP_ASSERT_LOG |
| 4373 | PRINT_WINDOWS = _core.PRINT_WINDOWS |
| 4374 | PRINT_POSTSCRIPT = _core.PRINT_POSTSCRIPT |
| 4375 | class PyApp(EvtHandler): |
| 4376 | """""" |
| 4377 | def __repr__(self): |
| 4378 | return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4379 | def __init__(self, *args, **kwargs): |
| 4380 | """__init__() -> PyApp""" |
| 4381 | newobj = _core.new_PyApp(*args, **kwargs) |
| 4382 | self.this = newobj.this |
| 4383 | self.thisown = 1 |
| 4384 | del newobj.thisown |
| 4385 | self._setCallbackInfo(self, PyApp) |
| 4386 | self._setOORInfo(self) |
| 4387 | |
| 4388 | def __del__(self, destroy=_core.delete_PyApp): |
| 4389 | """__del__()""" |
| 4390 | try: |
| 4391 | if self.thisown: destroy(self) |
| 4392 | except: pass |
| 4393 | |
| 4394 | def _setCallbackInfo(*args, **kwargs): |
| 4395 | """_setCallbackInfo(PyObject self, PyObject _class)""" |
| 4396 | return _core.PyApp__setCallbackInfo(*args, **kwargs) |
| 4397 | |
| 4398 | def GetAppName(*args, **kwargs): |
| 4399 | """GetAppName() -> wxString |
| 4400 | |
| 4401 | Get the application name.""" |
| 4402 | return _core.PyApp_GetAppName(*args, **kwargs) |
| 4403 | |
| 4404 | def SetAppName(*args, **kwargs): |
| 4405 | """SetAppName(wxString name) |
| 4406 | |
| 4407 | Set the application name. This value may be used automatically |
| 4408 | by wxConfig and such.""" |
| 4409 | return _core.PyApp_SetAppName(*args, **kwargs) |
| 4410 | |
| 4411 | def GetClassName(*args, **kwargs): |
| 4412 | """GetClassName() -> wxString |
| 4413 | |
| 4414 | Get the application's class name.""" |
| 4415 | return _core.PyApp_GetClassName(*args, **kwargs) |
| 4416 | |
| 4417 | def SetClassName(*args, **kwargs): |
| 4418 | """SetClassName(wxString name) |
| 4419 | |
| 4420 | Set the application's class name. This value may be used for X-resources if |
| 4421 | applicable for the platform""" |
| 4422 | return _core.PyApp_SetClassName(*args, **kwargs) |
| 4423 | |
| 4424 | def GetVendorName(*args, **kwargs): |
| 4425 | """GetVendorName() -> wxString |
| 4426 | |
| 4427 | Get the application's vendor name.""" |
| 4428 | return _core.PyApp_GetVendorName(*args, **kwargs) |
| 4429 | |
| 4430 | def SetVendorName(*args, **kwargs): |
| 4431 | """SetVendorName(wxString name) |
| 4432 | |
| 4433 | Set the application's vendor name. This value may be used automatically |
| 4434 | by wxConfig and such.""" |
| 4435 | return _core.PyApp_SetVendorName(*args, **kwargs) |
| 4436 | |
| 4437 | def GetTraits(*args, **kwargs): |
| 4438 | """GetTraits() -> wxAppTraits |
| 4439 | |
| 4440 | Create the app traits object to which we delegate for everything which either |
| 4441 | should be configurable by the user (then he can change the default behaviour |
| 4442 | simply by overriding CreateTraits() and returning his own traits object) or |
| 4443 | which is GUI/console dependent as then wxAppTraits allows us to abstract the |
| 4444 | differences behind the common facade""" |
| 4445 | return _core.PyApp_GetTraits(*args, **kwargs) |
| 4446 | |
| 4447 | def ProcessPendingEvents(*args, **kwargs): |
| 4448 | """ProcessPendingEvents() |
| 4449 | |
| 4450 | Process all events in the wxPendingEvents list -- it is necessary to call this |
| 4451 | function to process posted events. This happens during each event loop |
| 4452 | iteration.""" |
| 4453 | return _core.PyApp_ProcessPendingEvents(*args, **kwargs) |
| 4454 | |
| 4455 | def Yield(*args, **kwargs): |
| 4456 | """Yield(bool onlyIfNeeded=False) -> bool |
| 4457 | |
| 4458 | Process all currently pending events right now, instead of waiting until |
| 4459 | return to the event loop. It is an error to call Yield() recursively unless |
| 4460 | the value of onlyIfNeeded is True. |
| 4461 | |
| 4462 | WARNING: This function is dangerous as it can lead to unexpected |
| 4463 | reentrancies (i.e. when called from an event handler it |
| 4464 | may result in calling the same event handler again), use |
| 4465 | with _extreme_ care or, better, don't use at all! |
| 4466 | """ |
| 4467 | return _core.PyApp_Yield(*args, **kwargs) |
| 4468 | |
| 4469 | def WakeUpIdle(*args, **kwargs): |
| 4470 | """WakeUpIdle() |
| 4471 | |
| 4472 | Make sure that idle events are sent again""" |
| 4473 | return _core.PyApp_WakeUpIdle(*args, **kwargs) |
| 4474 | |
| 4475 | def MainLoop(*args, **kwargs): |
| 4476 | """MainLoop() -> int |
| 4477 | |
| 4478 | Execute the main GUI loop, the function returns when the loop ends.""" |
| 4479 | return _core.PyApp_MainLoop(*args, **kwargs) |
| 4480 | |
| 4481 | def Exit(*args, **kwargs): |
| 4482 | """Exit() |
| 4483 | |
| 4484 | Exit the main loop thus terminating the application.""" |
| 4485 | return _core.PyApp_Exit(*args, **kwargs) |
| 4486 | |
| 4487 | def ExitMainLoop(*args, **kwargs): |
| 4488 | """ExitMainLoop() |
| 4489 | |
| 4490 | Exit the main GUI loop during the next iteration (i.e. it does not |
| 4491 | stop the program immediately!)""" |
| 4492 | return _core.PyApp_ExitMainLoop(*args, **kwargs) |
| 4493 | |
| 4494 | def Pending(*args, **kwargs): |
| 4495 | """Pending() -> bool |
| 4496 | |
| 4497 | Returns True if there are unprocessed events in the event queue.""" |
| 4498 | return _core.PyApp_Pending(*args, **kwargs) |
| 4499 | |
| 4500 | def Dispatch(*args, **kwargs): |
| 4501 | """Dispatch() -> bool |
| 4502 | |
| 4503 | Process the first event in the event queue (blocks until an event |
| 4504 | appears if there are none currently)""" |
| 4505 | return _core.PyApp_Dispatch(*args, **kwargs) |
| 4506 | |
| 4507 | def ProcessIdle(*args, **kwargs): |
| 4508 | """ProcessIdle() -> bool |
| 4509 | |
| 4510 | Called from the MainLoop when the application becomes idle and sends an |
| 4511 | IdleEvent to all interested parties. Returns True is more idle events are |
| 4512 | needed, False if not.""" |
| 4513 | return _core.PyApp_ProcessIdle(*args, **kwargs) |
| 4514 | |
| 4515 | def SendIdleEvents(*args, **kwargs): |
| 4516 | """SendIdleEvents(Window win, IdleEvent event) -> bool |
| 4517 | |
| 4518 | Send idle event to window and all subwindows. Returns True if more idle time |
| 4519 | is requested.""" |
| 4520 | return _core.PyApp_SendIdleEvents(*args, **kwargs) |
| 4521 | |
| 4522 | def IsActive(*args, **kwargs): |
| 4523 | """IsActive() -> bool |
| 4524 | |
| 4525 | Return True if our app has focus.""" |
| 4526 | return _core.PyApp_IsActive(*args, **kwargs) |
| 4527 | |
| 4528 | def SetTopWindow(*args, **kwargs): |
| 4529 | """SetTopWindow(Window win) |
| 4530 | |
| 4531 | Set the "main" top level window""" |
| 4532 | return _core.PyApp_SetTopWindow(*args, **kwargs) |
| 4533 | |
| 4534 | def GetTopWindow(*args, **kwargs): |
| 4535 | """GetTopWindow() -> Window |
| 4536 | |
| 4537 | Return the "main" top level window (if it hadn't been set previously with |
| 4538 | SetTopWindow(), will return just some top level window and, if there not any, |
| 4539 | will return None)""" |
| 4540 | return _core.PyApp_GetTopWindow(*args, **kwargs) |
| 4541 | |
| 4542 | def SetExitOnFrameDelete(*args, **kwargs): |
| 4543 | """SetExitOnFrameDelete(bool flag) |
| 4544 | |
| 4545 | Control the exit behaviour: by default, the program will exit the main loop |
| 4546 | (and so, usually, terminate) when the last top-level program window is |
| 4547 | deleted. Beware that if you disable this behaviour (with |
| 4548 | SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop() explicitly |
| 4549 | from somewhere. |
| 4550 | """ |
| 4551 | return _core.PyApp_SetExitOnFrameDelete(*args, **kwargs) |
| 4552 | |
| 4553 | def GetExitOnFrameDelete(*args, **kwargs): |
| 4554 | """GetExitOnFrameDelete() -> bool |
| 4555 | |
| 4556 | Get the current exit behaviour setting.""" |
| 4557 | return _core.PyApp_GetExitOnFrameDelete(*args, **kwargs) |
| 4558 | |
| 4559 | def SetUseBestVisual(*args, **kwargs): |
| 4560 | """SetUseBestVisual(bool flag) |
| 4561 | |
| 4562 | Set whether the app should try to use the best available visual on systems |
| 4563 | where more than one is available, (Sun, SGI, XFree86 4, etc.)""" |
| 4564 | return _core.PyApp_SetUseBestVisual(*args, **kwargs) |
| 4565 | |
| 4566 | def GetUseBestVisual(*args, **kwargs): |
| 4567 | """GetUseBestVisual() -> bool |
| 4568 | |
| 4569 | Get current UseBestVisual setting.""" |
| 4570 | return _core.PyApp_GetUseBestVisual(*args, **kwargs) |
| 4571 | |
| 4572 | def SetPrintMode(*args, **kwargs): |
| 4573 | """SetPrintMode(int mode)""" |
| 4574 | return _core.PyApp_SetPrintMode(*args, **kwargs) |
| 4575 | |
| 4576 | def GetPrintMode(*args, **kwargs): |
| 4577 | """GetPrintMode() -> int""" |
| 4578 | return _core.PyApp_GetPrintMode(*args, **kwargs) |
| 4579 | |
| 4580 | def SetAssertMode(*args, **kwargs): |
| 4581 | """SetAssertMode(int mode) |
| 4582 | |
| 4583 | Set the OnAssert behaviour for debug and hybrid builds. The following flags |
| 4584 | may be or'd together: |
| 4585 | |
| 4586 | wxPYAPP_ASSERT_SUPPRESS Don't do anything |
| 4587 | wxPYAPP_ASSERT_EXCEPTION Turn it into a Python exception if possible (default) |
| 4588 | wxPYAPP_ASSERT_DIALOG Display a message dialog |
| 4589 | wxPYAPP_ASSERT_LOG Write the assertion info to the wxLog |
| 4590 | """ |
| 4591 | return _core.PyApp_SetAssertMode(*args, **kwargs) |
| 4592 | |
| 4593 | def GetAssertMode(*args, **kwargs): |
| 4594 | """GetAssertMode() -> int |
| 4595 | |
| 4596 | Get the current OnAssert behaviour setting.""" |
| 4597 | return _core.PyApp_GetAssertMode(*args, **kwargs) |
| 4598 | |
| 4599 | def GetMacSupportPCMenuShortcuts(*args, **kwargs): |
| 4600 | """PyApp.GetMacSupportPCMenuShortcuts() -> bool""" |
| 4601 | return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) |
| 4602 | |
| 4603 | GetMacSupportPCMenuShortcuts = staticmethod(GetMacSupportPCMenuShortcuts) |
| 4604 | def GetMacAboutMenuItemId(*args, **kwargs): |
| 4605 | """PyApp.GetMacAboutMenuItemId() -> long""" |
| 4606 | return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) |
| 4607 | |
| 4608 | GetMacAboutMenuItemId = staticmethod(GetMacAboutMenuItemId) |
| 4609 | def GetMacPreferencesMenuItemId(*args, **kwargs): |
| 4610 | """PyApp.GetMacPreferencesMenuItemId() -> long""" |
| 4611 | return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) |
| 4612 | |
| 4613 | GetMacPreferencesMenuItemId = staticmethod(GetMacPreferencesMenuItemId) |
| 4614 | def GetMacExitMenuItemId(*args, **kwargs): |
| 4615 | """PyApp.GetMacExitMenuItemId() -> long""" |
| 4616 | return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) |
| 4617 | |
| 4618 | GetMacExitMenuItemId = staticmethod(GetMacExitMenuItemId) |
| 4619 | def GetMacHelpMenuTitleName(*args, **kwargs): |
| 4620 | """PyApp.GetMacHelpMenuTitleName() -> wxString""" |
| 4621 | return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) |
| 4622 | |
| 4623 | GetMacHelpMenuTitleName = staticmethod(GetMacHelpMenuTitleName) |
| 4624 | def SetMacSupportPCMenuShortcuts(*args, **kwargs): |
| 4625 | """PyApp.SetMacSupportPCMenuShortcuts(bool val)""" |
| 4626 | return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) |
| 4627 | |
| 4628 | SetMacSupportPCMenuShortcuts = staticmethod(SetMacSupportPCMenuShortcuts) |
| 4629 | def SetMacAboutMenuItemId(*args, **kwargs): |
| 4630 | """PyApp.SetMacAboutMenuItemId(long val)""" |
| 4631 | return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) |
| 4632 | |
| 4633 | SetMacAboutMenuItemId = staticmethod(SetMacAboutMenuItemId) |
| 4634 | def SetMacPreferencesMenuItemId(*args, **kwargs): |
| 4635 | """PyApp.SetMacPreferencesMenuItemId(long val)""" |
| 4636 | return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) |
| 4637 | |
| 4638 | SetMacPreferencesMenuItemId = staticmethod(SetMacPreferencesMenuItemId) |
| 4639 | def SetMacExitMenuItemId(*args, **kwargs): |
| 4640 | """PyApp.SetMacExitMenuItemId(long val)""" |
| 4641 | return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) |
| 4642 | |
| 4643 | SetMacExitMenuItemId = staticmethod(SetMacExitMenuItemId) |
| 4644 | def SetMacHelpMenuTitleName(*args, **kwargs): |
| 4645 | """PyApp.SetMacHelpMenuTitleName(wxString val)""" |
| 4646 | return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) |
| 4647 | |
| 4648 | SetMacHelpMenuTitleName = staticmethod(SetMacHelpMenuTitleName) |
| 4649 | def _BootstrapApp(*args, **kwargs): |
| 4650 | """_BootstrapApp() |
| 4651 | |
| 4652 | For internal use only""" |
| 4653 | return _core.PyApp__BootstrapApp(*args, **kwargs) |
| 4654 | |
| 4655 | def GetComCtl32Version(*args, **kwargs): |
| 4656 | """PyApp.GetComCtl32Version() -> int |
| 4657 | |
| 4658 | Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it |
| 4659 | wasn't found at all. Raises an exception on non-Windows platforms.""" |
| 4660 | return _core.PyApp_GetComCtl32Version(*args, **kwargs) |
| 4661 | |
| 4662 | GetComCtl32Version = staticmethod(GetComCtl32Version) |
| 4663 | |
| 4664 | class PyAppPtr(PyApp): |
| 4665 | def __init__(self, this): |
| 4666 | self.this = this |
| 4667 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 4668 | self.__class__ = PyApp |
| 4669 | _core.PyApp_swigregister(PyAppPtr) |
| 4670 | |
| 4671 | def PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs): |
| 4672 | """PyApp_GetMacSupportPCMenuShortcuts() -> bool""" |
| 4673 | return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) |
| 4674 | |
| 4675 | def PyApp_GetMacAboutMenuItemId(*args, **kwargs): |
| 4676 | """PyApp_GetMacAboutMenuItemId() -> long""" |
| 4677 | return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) |
| 4678 | |
| 4679 | def PyApp_GetMacPreferencesMenuItemId(*args, **kwargs): |
| 4680 | """PyApp_GetMacPreferencesMenuItemId() -> long""" |
| 4681 | return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) |
| 4682 | |
| 4683 | def PyApp_GetMacExitMenuItemId(*args, **kwargs): |
| 4684 | """PyApp_GetMacExitMenuItemId() -> long""" |
| 4685 | return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) |
| 4686 | |
| 4687 | def PyApp_GetMacHelpMenuTitleName(*args, **kwargs): |
| 4688 | """PyApp_GetMacHelpMenuTitleName() -> wxString""" |
| 4689 | return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) |
| 4690 | |
| 4691 | def PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs): |
| 4692 | """PyApp_SetMacSupportPCMenuShortcuts(bool val)""" |
| 4693 | return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) |
| 4694 | |
| 4695 | def PyApp_SetMacAboutMenuItemId(*args, **kwargs): |
| 4696 | """PyApp_SetMacAboutMenuItemId(long val)""" |
| 4697 | return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) |
| 4698 | |
| 4699 | def PyApp_SetMacPreferencesMenuItemId(*args, **kwargs): |
| 4700 | """PyApp_SetMacPreferencesMenuItemId(long val)""" |
| 4701 | return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) |
| 4702 | |
| 4703 | def PyApp_SetMacExitMenuItemId(*args, **kwargs): |
| 4704 | """PyApp_SetMacExitMenuItemId(long val)""" |
| 4705 | return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) |
| 4706 | |
| 4707 | def PyApp_SetMacHelpMenuTitleName(*args, **kwargs): |
| 4708 | """PyApp_SetMacHelpMenuTitleName(wxString val)""" |
| 4709 | return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) |
| 4710 | |
| 4711 | def PyApp_GetComCtl32Version(*args, **kwargs): |
| 4712 | """PyApp_GetComCtl32Version() -> int |
| 4713 | |
| 4714 | Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it |
| 4715 | wasn't found at all. Raises an exception on non-Windows platforms.""" |
| 4716 | return _core.PyApp_GetComCtl32Version(*args, **kwargs) |
| 4717 | |
| 4718 | #--------------------------------------------------------------------------- |
| 4719 | |
| 4720 | |
| 4721 | def Exit(*args, **kwargs): |
| 4722 | """Exit() |
| 4723 | |
| 4724 | Force an exit of the application. Convenience for wx.GetApp().Exit()""" |
| 4725 | return _core.Exit(*args, **kwargs) |
| 4726 | |
| 4727 | def Yield(*args, **kwargs): |
| 4728 | """Yield() -> bool |
| 4729 | |
| 4730 | Yield to other apps/messages. Convenience for wx.GetApp().Yield()""" |
| 4731 | return _core.Yield(*args, **kwargs) |
| 4732 | |
| 4733 | def YieldIfNeeded(*args, **kwargs): |
| 4734 | """YieldIfNeeded() -> bool |
| 4735 | |
| 4736 | Yield to other apps/messages. Convenience for wx.GetApp().Yield(True)""" |
| 4737 | return _core.YieldIfNeeded(*args, **kwargs) |
| 4738 | |
| 4739 | def SafeYield(*args, **kwargs): |
| 4740 | """SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool |
| 4741 | |
| 4742 | This function is similar to wx.Yield, except that it disables the user input |
| 4743 | to all program windows before calling wx.Yield and re-enables it again |
| 4744 | afterwards. If win is not None, this window will remain enabled, allowing the |
| 4745 | implementation of some limited user interaction. |
| 4746 | |
| 4747 | Returns the result of the call to wx.Yield.""" |
| 4748 | return _core.SafeYield(*args, **kwargs) |
| 4749 | |
| 4750 | def WakeUpIdle(*args, **kwargs): |
| 4751 | """WakeUpIdle() |
| 4752 | |
| 4753 | Cause the message queue to become empty again, so idle events will be sent.""" |
| 4754 | return _core.WakeUpIdle(*args, **kwargs) |
| 4755 | |
| 4756 | def PostEvent(*args, **kwargs): |
| 4757 | """PostEvent(EvtHandler dest, Event event) |
| 4758 | |
| 4759 | Send an event to a window or other wx.EvtHandler to be processed later.""" |
| 4760 | return _core.PostEvent(*args, **kwargs) |
| 4761 | |
| 4762 | def App_CleanUp(*args, **kwargs): |
| 4763 | """App_CleanUp() |
| 4764 | |
| 4765 | For internal use only, it is used to cleanup after wxWindows when Python shuts down.""" |
| 4766 | return _core.App_CleanUp(*args, **kwargs) |
| 4767 | |
| 4768 | def GetApp(*args, **kwargs): |
| 4769 | """GetApp() -> PyApp |
| 4770 | |
| 4771 | Return a reference to the current wxApp object.""" |
| 4772 | return _core.GetApp(*args, **kwargs) |
| 4773 | #---------------------------------------------------------------------- |
| 4774 | |
| 4775 | class PyOnDemandOutputWindow: |
| 4776 | """ |
| 4777 | A class that can be used for redirecting Python's stdout and |
| 4778 | stderr streams. It will do nothing until something is wrriten to |
| 4779 | the stream at which point it will create a Frame with a text area |
| 4780 | and write the text there. |
| 4781 | """ |
| 4782 | def __init__(self, title = "wxPython: stdout/stderr"): |
| 4783 | self.frame = None |
| 4784 | self.title = title |
| 4785 | self.parent = None |
| 4786 | |
| 4787 | def SetParent(self, parent): |
| 4788 | """Set the window to be used as the popup Frame's parent.""" |
| 4789 | self.parent = parent |
| 4790 | |
| 4791 | |
| 4792 | def CreateOutputWindow(self, st): |
| 4793 | self.frame = wx.Frame(self.parent, -1, self.title, |
| 4794 | style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) |
| 4795 | self.text = wxTextCtrl(self.frame, -1, "", |
| 4796 | style = wx.TE_MULTILINE | wx.TE_READONLY) |
| 4797 | self.frame.SetSize((450, 300)) |
| 4798 | self.frame.Show(True) |
| 4799 | EVT_CLOSE(self.frame, self.OnCloseWindow) |
| 4800 | |
| 4801 | |
| 4802 | # These methods provide the file-like output behaviour. |
| 4803 | def write(self, text): |
| 4804 | """ |
| 4805 | Create the output window if needed and write the string to it. |
| 4806 | If not called in the context of the gui thread then uses |
| 4807 | CallAfter to do the work there. |
| 4808 | """ |
| 4809 | if self.frame is None: |
| 4810 | if not wx.Thread_IsMain(): |
| 4811 | wx.CallAfter(self.CreateOutputWindow, text) |
| 4812 | else: |
| 4813 | self.CreateOutputWindow(text) |
| 4814 | else: |
| 4815 | if not wx.Thread_IsMain(): |
| 4816 | wx.CallAfter(self.text.AppendText, text) |
| 4817 | else: |
| 4818 | self.text.AppendText(text) |
| 4819 | |
| 4820 | |
| 4821 | def close(self): |
| 4822 | if self.frame is not None: |
| 4823 | wx.CallAfter(self.frame.Close) |
| 4824 | |
| 4825 | |
| 4826 | def OnCloseWindow(self, event): |
| 4827 | if self.frame is not None: |
| 4828 | self.frame.Destroy() |
| 4829 | self.frame = None |
| 4830 | self.text = None |
| 4831 | |
| 4832 | #---------------------------------------------------------------------- |
| 4833 | |
| 4834 | _defRedirect = (wx.Platform == '__WXMSW__' or wx.Platform == '__WXMAC__') |
| 4835 | |
| 4836 | class App(wx.PyApp): |
| 4837 | """ |
| 4838 | The main application class. Derive from this and implement an OnInit |
| 4839 | method that creates a frame and then calls self.SetTopWindow(frame) |
| 4840 | """ |
| 4841 | outputWindowClass = PyOnDemandOutputWindow |
| 4842 | |
| 4843 | def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False): |
| 4844 | wx.PyApp.__init__(self) |
| 4845 | |
| 4846 | if wx.Platform == "__WXMAC__": |
| 4847 | try: |
| 4848 | import MacOS |
| 4849 | if not MacOS.WMAvailable(): |
| 4850 | print """\ |
| 4851 | This program needs access to the screen. Please run with 'pythonw', |
| 4852 | not 'python', and only when you are logged in on the main display of |
| 4853 | your Mac.""" |
| 4854 | _sys.exit(1) |
| 4855 | except: |
| 4856 | pass |
| 4857 | |
| 4858 | # This has to be done before OnInit |
| 4859 | self.SetUseBestVisual(useBestVisual) |
| 4860 | |
| 4861 | # Set the default handler for SIGINT. This fixes a problem |
| 4862 | # where if Ctrl-C is pressed in the console that started this |
| 4863 | # app then it will not appear to do anything, (not even send |
| 4864 | # KeyboardInterrupt???) but will later segfault on exit. By |
| 4865 | # setting the default handler then the app will exit, as |
| 4866 | # expected (depending on platform.) |
| 4867 | try: |
| 4868 | import signal |
| 4869 | signal.signal(signal.SIGINT, signal.SIG_DFL) |
| 4870 | except: |
| 4871 | pass |
| 4872 | |
| 4873 | # Save and redirect the stdio to a window? |
| 4874 | self.stdioWin = None |
| 4875 | self.saveStdio = (_sys.stdout, _sys.stderr) |
| 4876 | if redirect: |
| 4877 | self.RedirectStdio(filename) |
| 4878 | |
| 4879 | # This finishes the initialization of wxWindows and then calls |
| 4880 | # the OnInit that should be present in the derived class |
| 4881 | self._BootstrapApp() |
| 4882 | |
| 4883 | |
| 4884 | def __del__(self): |
| 4885 | try: |
| 4886 | self.RestoreStdio() # Just in case the MainLoop was overridden |
| 4887 | except: |
| 4888 | pass |
| 4889 | |
| 4890 | |
| 4891 | def SetTopWindow(self, frame): |
| 4892 | if self.stdioWin: |
| 4893 | self.stdioWin.SetParent(frame) |
| 4894 | wx.PyApp.SetTopWindow(self, frame) |
| 4895 | |
| 4896 | |
| 4897 | def MainLoop(self): |
| 4898 | wx.PyApp.MainLoop(self) |
| 4899 | self.RestoreStdio() |
| 4900 | |
| 4901 | |
| 4902 | def RedirectStdio(self, filename): |
| 4903 | if filename: |
| 4904 | _sys.stdout = _sys.stderr = open(filename, 'a') |
| 4905 | else: |
| 4906 | self.stdioWin = self.outputWindowClass() |
| 4907 | _sys.stdout = _sys.stderr = self.stdioWin |
| 4908 | |
| 4909 | |
| 4910 | def RestoreStdio(self): |
| 4911 | _sys.stdout, _sys.stderr = self.saveStdio |
| 4912 | |
| 4913 | |
| 4914 | |
| 4915 | # change from wxPyApp_ to wxApp_ |
| 4916 | App_GetMacSupportPCMenuShortcuts = _core.PyApp_GetMacSupportPCMenuShortcuts |
| 4917 | App_GetMacAboutMenuItemId = _core.PyApp_GetMacAboutMenuItemId |
| 4918 | App_GetMacPreferencesMenuItemId = _core.PyApp_GetMacPreferencesMenuItemId |
| 4919 | App_GetMacExitMenuItemId = _core.PyApp_GetMacExitMenuItemId |
| 4920 | App_GetMacHelpMenuTitleName = _core.PyApp_GetMacHelpMenuTitleName |
| 4921 | App_SetMacSupportPCMenuShortcuts = _core.PyApp_SetMacSupportPCMenuShortcuts |
| 4922 | App_SetMacAboutMenuItemId = _core.PyApp_SetMacAboutMenuItemId |
| 4923 | App_SetMacPreferencesMenuItemId = _core.PyApp_SetMacPreferencesMenuItemId |
| 4924 | App_SetMacExitMenuItemId = _core.PyApp_SetMacExitMenuItemId |
| 4925 | App_SetMacHelpMenuTitleName = _core.PyApp_SetMacHelpMenuTitleName |
| 4926 | App_GetComCtl32Version = _core.PyApp_GetComCtl32Version |
| 4927 | |
| 4928 | #---------------------------------------------------------------------------- |
| 4929 | |
| 4930 | class PySimpleApp(wx.App): |
| 4931 | """ |
| 4932 | A simple application class. You can just create one of these and |
| 4933 | then then make your top level windows later, and not have to worry |
| 4934 | about OnInit.""" |
| 4935 | |
| 4936 | def __init__(self, redirect=False, filename=None, useBestVisual=False): |
| 4937 | wx.App.__init__(self, redirect, filename, useBestVisual) |
| 4938 | |
| 4939 | def OnInit(self): |
| 4940 | wx.InitAllImageHandlers() |
| 4941 | return True |
| 4942 | |
| 4943 | |
| 4944 | # Is anybody using this one? |
| 4945 | class PyWidgetTester(wx.App): |
| 4946 | def __init__(self, size = (250, 100)): |
| 4947 | self.size = size |
| 4948 | wx.App.__init__(self, 0) |
| 4949 | |
| 4950 | def OnInit(self): |
| 4951 | self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size) |
| 4952 | self.SetTopWindow(self.frame) |
| 4953 | return True |
| 4954 | |
| 4955 | def SetWidget(self, widgetClass, *args): |
| 4956 | w = widgetClass(self.frame, *args) |
| 4957 | self.frame.Show(True) |
| 4958 | |
| 4959 | #---------------------------------------------------------------------------- |
| 4960 | # DO NOT hold any other references to this object. This is how we |
| 4961 | # know when to cleanup system resources that wxWin is holding. When |
| 4962 | # the sys module is unloaded, the refcount on sys.__wxPythonCleanup |
| 4963 | # goes to zero and it calls the wxApp_CleanUp function. |
| 4964 | |
| 4965 | class __wxPyCleanup: |
| 4966 | def __init__(self): |
| 4967 | self.cleanup = _core.App_CleanUp |
| 4968 | def __del__(self): |
| 4969 | self.cleanup() |
| 4970 | |
| 4971 | _sys.__wxPythonCleanup = __wxPyCleanup() |
| 4972 | |
| 4973 | ## # another possible solution, but it gets called too early... |
| 4974 | ## if sys.version[0] == '2': |
| 4975 | ## import atexit |
| 4976 | ## atexit.register(_core.wxApp_CleanUp) |
| 4977 | ## else: |
| 4978 | ## sys.exitfunc = _core.wxApp_CleanUp |
| 4979 | |
| 4980 | |
| 4981 | #---------------------------------------------------------------------------- |
| 4982 | |
| 4983 | #--------------------------------------------------------------------------- |
| 4984 | |
| 4985 | class Window(EvtHandler): |
| 4986 | """""" |
| 4987 | def __repr__(self): |
| 4988 | return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 4989 | def __init__(self, *args, **kwargs): |
| 4990 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
| 4991 | long style=0, wxString name=PanelNameStr) -> Window""" |
| 4992 | newobj = _core.new_Window(*args, **kwargs) |
| 4993 | self.this = newobj.this |
| 4994 | self.thisown = 1 |
| 4995 | del newobj.thisown |
| 4996 | self._setOORInfo(self) |
| 4997 | |
| 4998 | def Create(*args, **kwargs): |
| 4999 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
| 5000 | long style=0, wxString name=PanelNameStr) -> bool""" |
| 5001 | return _core.Window_Create(*args, **kwargs) |
| 5002 | |
| 5003 | def Close(*args, **kwargs): |
| 5004 | """Close(bool force=False) -> bool""" |
| 5005 | return _core.Window_Close(*args, **kwargs) |
| 5006 | |
| 5007 | def Destroy(*args, **kwargs): |
| 5008 | """Destroy() -> bool |
| 5009 | |
| 5010 | Deletes the C++ object this Python object is a proxy for.""" |
| 5011 | return _core.Window_Destroy(*args, **kwargs) |
| 5012 | |
| 5013 | def DestroyChildren(*args, **kwargs): |
| 5014 | """DestroyChildren() -> bool""" |
| 5015 | return _core.Window_DestroyChildren(*args, **kwargs) |
| 5016 | |
| 5017 | def IsBeingDeleted(*args, **kwargs): |
| 5018 | """IsBeingDeleted() -> bool""" |
| 5019 | return _core.Window_IsBeingDeleted(*args, **kwargs) |
| 5020 | |
| 5021 | def SetTitle(*args, **kwargs): |
| 5022 | """SetTitle(wxString title)""" |
| 5023 | return _core.Window_SetTitle(*args, **kwargs) |
| 5024 | |
| 5025 | def GetTitle(*args, **kwargs): |
| 5026 | """GetTitle() -> wxString""" |
| 5027 | return _core.Window_GetTitle(*args, **kwargs) |
| 5028 | |
| 5029 | def SetLabel(*args, **kwargs): |
| 5030 | """SetLabel(wxString label)""" |
| 5031 | return _core.Window_SetLabel(*args, **kwargs) |
| 5032 | |
| 5033 | def GetLabel(*args, **kwargs): |
| 5034 | """GetLabel() -> wxString""" |
| 5035 | return _core.Window_GetLabel(*args, **kwargs) |
| 5036 | |
| 5037 | def SetName(*args, **kwargs): |
| 5038 | """SetName(wxString name)""" |
| 5039 | return _core.Window_SetName(*args, **kwargs) |
| 5040 | |
| 5041 | def GetName(*args, **kwargs): |
| 5042 | """GetName() -> wxString""" |
| 5043 | return _core.Window_GetName(*args, **kwargs) |
| 5044 | |
| 5045 | def SetId(*args, **kwargs): |
| 5046 | """SetId(int winid)""" |
| 5047 | return _core.Window_SetId(*args, **kwargs) |
| 5048 | |
| 5049 | def GetId(*args, **kwargs): |
| 5050 | """GetId() -> int""" |
| 5051 | return _core.Window_GetId(*args, **kwargs) |
| 5052 | |
| 5053 | def NewControlId(*args, **kwargs): |
| 5054 | """Window.NewControlId() -> int""" |
| 5055 | return _core.Window_NewControlId(*args, **kwargs) |
| 5056 | |
| 5057 | NewControlId = staticmethod(NewControlId) |
| 5058 | def NextControlId(*args, **kwargs): |
| 5059 | """Window.NextControlId(int winid) -> int""" |
| 5060 | return _core.Window_NextControlId(*args, **kwargs) |
| 5061 | |
| 5062 | NextControlId = staticmethod(NextControlId) |
| 5063 | def PrevControlId(*args, **kwargs): |
| 5064 | """Window.PrevControlId(int winid) -> int""" |
| 5065 | return _core.Window_PrevControlId(*args, **kwargs) |
| 5066 | |
| 5067 | PrevControlId = staticmethod(PrevControlId) |
| 5068 | def SetSize(*args, **kwargs): |
| 5069 | """SetSize(Size size)""" |
| 5070 | return _core.Window_SetSize(*args, **kwargs) |
| 5071 | |
| 5072 | def SetDimensions(*args, **kwargs): |
| 5073 | """SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" |
| 5074 | return _core.Window_SetDimensions(*args, **kwargs) |
| 5075 | |
| 5076 | def SetRect(*args, **kwargs): |
| 5077 | """SetRect(Rect rect, int sizeFlags=SIZE_AUTO)""" |
| 5078 | return _core.Window_SetRect(*args, **kwargs) |
| 5079 | |
| 5080 | def SetSizeWH(*args, **kwargs): |
| 5081 | """SetSizeWH(int width, int height)""" |
| 5082 | return _core.Window_SetSizeWH(*args, **kwargs) |
| 5083 | |
| 5084 | def Move(*args, **kwargs): |
| 5085 | """Move(Point pt, int flags=SIZE_USE_EXISTING)""" |
| 5086 | return _core.Window_Move(*args, **kwargs) |
| 5087 | |
| 5088 | SetPosition = Move |
| 5089 | def MoveXY(*args, **kwargs): |
| 5090 | """MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)""" |
| 5091 | return _core.Window_MoveXY(*args, **kwargs) |
| 5092 | |
| 5093 | def Raise(*args, **kwargs): |
| 5094 | """Raise()""" |
| 5095 | return _core.Window_Raise(*args, **kwargs) |
| 5096 | |
| 5097 | def Lower(*args, **kwargs): |
| 5098 | """Lower()""" |
| 5099 | return _core.Window_Lower(*args, **kwargs) |
| 5100 | |
| 5101 | def SetClientSize(*args, **kwargs): |
| 5102 | """SetClientSize(Size size)""" |
| 5103 | return _core.Window_SetClientSize(*args, **kwargs) |
| 5104 | |
| 5105 | def SetClientSizeWH(*args, **kwargs): |
| 5106 | """SetClientSizeWH(int width, int height)""" |
| 5107 | return _core.Window_SetClientSizeWH(*args, **kwargs) |
| 5108 | |
| 5109 | def SetClientRect(*args, **kwargs): |
| 5110 | """SetClientRect(Rect rect)""" |
| 5111 | return _core.Window_SetClientRect(*args, **kwargs) |
| 5112 | |
| 5113 | def GetPosition(*args, **kwargs): |
| 5114 | """GetPosition() -> Point |
| 5115 | |
| 5116 | Get the window's position.""" |
| 5117 | return _core.Window_GetPosition(*args, **kwargs) |
| 5118 | |
| 5119 | def GetPositionTuple(*args, **kwargs): |
| 5120 | """GetPositionTuple() -> (x,y) |
| 5121 | |
| 5122 | Get the window's position.""" |
| 5123 | return _core.Window_GetPositionTuple(*args, **kwargs) |
| 5124 | |
| 5125 | def GetSize(*args, **kwargs): |
| 5126 | """GetSize() -> Size |
| 5127 | |
| 5128 | Get the window size.""" |
| 5129 | return _core.Window_GetSize(*args, **kwargs) |
| 5130 | |
| 5131 | def GetSizeTuple(*args, **kwargs): |
| 5132 | """GetSizeTuple() -> (width, height) |
| 5133 | |
| 5134 | Get the window size.""" |
| 5135 | return _core.Window_GetSizeTuple(*args, **kwargs) |
| 5136 | |
| 5137 | def GetRect(*args, **kwargs): |
| 5138 | """GetRect() -> Rect""" |
| 5139 | return _core.Window_GetRect(*args, **kwargs) |
| 5140 | |
| 5141 | def GetClientSize(*args, **kwargs): |
| 5142 | """GetClientSize() -> Size |
| 5143 | |
| 5144 | Get the window's client size.""" |
| 5145 | return _core.Window_GetClientSize(*args, **kwargs) |
| 5146 | |
| 5147 | def GetClientSizeTuple(*args, **kwargs): |
| 5148 | """GetClientSizeTuple() -> (width, height) |
| 5149 | |
| 5150 | Get the window's client size.""" |
| 5151 | return _core.Window_GetClientSizeTuple(*args, **kwargs) |
| 5152 | |
| 5153 | def GetClientAreaOrigin(*args, **kwargs): |
| 5154 | """GetClientAreaOrigin() -> Point""" |
| 5155 | return _core.Window_GetClientAreaOrigin(*args, **kwargs) |
| 5156 | |
| 5157 | def GetClientRect(*args, **kwargs): |
| 5158 | """GetClientRect() -> Rect""" |
| 5159 | return _core.Window_GetClientRect(*args, **kwargs) |
| 5160 | |
| 5161 | def GetBestSize(*args, **kwargs): |
| 5162 | """GetBestSize() -> Size |
| 5163 | |
| 5164 | Get the size best suited for the window (in fact, minimal acceptable size |
| 5165 | using which it will still look "nice")""" |
| 5166 | return _core.Window_GetBestSize(*args, **kwargs) |
| 5167 | |
| 5168 | def GetBestSizeTuple(*args, **kwargs): |
| 5169 | """GetBestSizeTuple() -> (width, height) |
| 5170 | |
| 5171 | Get the size best suited for the window (in fact, minimal acceptable size |
| 5172 | using which it will still look "nice")""" |
| 5173 | return _core.Window_GetBestSizeTuple(*args, **kwargs) |
| 5174 | |
| 5175 | def GetAdjustedBestSize(*args, **kwargs): |
| 5176 | """GetAdjustedBestSize() -> Size""" |
| 5177 | return _core.Window_GetAdjustedBestSize(*args, **kwargs) |
| 5178 | |
| 5179 | def Center(*args, **kwargs): |
| 5180 | """Center(int direction=BOTH)""" |
| 5181 | return _core.Window_Center(*args, **kwargs) |
| 5182 | |
| 5183 | Centre = Center |
| 5184 | def CenterOnScreen(*args, **kwargs): |
| 5185 | """CenterOnScreen(int dir=BOTH)""" |
| 5186 | return _core.Window_CenterOnScreen(*args, **kwargs) |
| 5187 | |
| 5188 | CentreOnScreen = CenterOnScreen |
| 5189 | def CenterOnParent(*args, **kwargs): |
| 5190 | """CenterOnParent(int dir=BOTH)""" |
| 5191 | return _core.Window_CenterOnParent(*args, **kwargs) |
| 5192 | |
| 5193 | CentreOnParent = CenterOnParent |
| 5194 | def Fit(*args, **kwargs): |
| 5195 | """Fit()""" |
| 5196 | return _core.Window_Fit(*args, **kwargs) |
| 5197 | |
| 5198 | def FitInside(*args, **kwargs): |
| 5199 | """FitInside()""" |
| 5200 | return _core.Window_FitInside(*args, **kwargs) |
| 5201 | |
| 5202 | def SetSizeHints(*args, **kwargs): |
| 5203 | """SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, |
| 5204 | int incH=-1)""" |
| 5205 | return _core.Window_SetSizeHints(*args, **kwargs) |
| 5206 | |
| 5207 | def SetVirtualSizeHints(*args, **kwargs): |
| 5208 | """SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)""" |
| 5209 | return _core.Window_SetVirtualSizeHints(*args, **kwargs) |
| 5210 | |
| 5211 | def GetMinWidth(*args, **kwargs): |
| 5212 | """GetMinWidth() -> int""" |
| 5213 | return _core.Window_GetMinWidth(*args, **kwargs) |
| 5214 | |
| 5215 | def GetMinHeight(*args, **kwargs): |
| 5216 | """GetMinHeight() -> int""" |
| 5217 | return _core.Window_GetMinHeight(*args, **kwargs) |
| 5218 | |
| 5219 | def GetMaxWidth(*args, **kwargs): |
| 5220 | """GetMaxWidth() -> int""" |
| 5221 | return _core.Window_GetMaxWidth(*args, **kwargs) |
| 5222 | |
| 5223 | def GetMaxHeight(*args, **kwargs): |
| 5224 | """GetMaxHeight() -> int""" |
| 5225 | return _core.Window_GetMaxHeight(*args, **kwargs) |
| 5226 | |
| 5227 | def GetMaxSize(*args, **kwargs): |
| 5228 | """GetMaxSize() -> Size""" |
| 5229 | return _core.Window_GetMaxSize(*args, **kwargs) |
| 5230 | |
| 5231 | def SetVirtualSize(*args, **kwargs): |
| 5232 | """SetVirtualSize(Size size) |
| 5233 | |
| 5234 | Set the the virtual size of a window. For most windows this is just the |
| 5235 | client area of the window, but for some like scrolled windows it is more or |
| 5236 | less independent of the screen window size.""" |
| 5237 | return _core.Window_SetVirtualSize(*args, **kwargs) |
| 5238 | |
| 5239 | def SetVirtualSizeWH(*args, **kwargs): |
| 5240 | """SetVirtualSizeWH(int w, int h) |
| 5241 | |
| 5242 | Set the the virtual size of a window. For most windows this is just the |
| 5243 | client area of the window, but for some like scrolled windows it is more or |
| 5244 | less independent of the screen window size.""" |
| 5245 | return _core.Window_SetVirtualSizeWH(*args, **kwargs) |
| 5246 | |
| 5247 | def GetVirtualSize(*args, **kwargs): |
| 5248 | """GetVirtualSize() -> Size |
| 5249 | |
| 5250 | Get the the virtual size of the window. For most windows this is just |
| 5251 | the client area of the window, but for some like scrolled windows it is |
| 5252 | more or less independent of the screen window size.""" |
| 5253 | return _core.Window_GetVirtualSize(*args, **kwargs) |
| 5254 | |
| 5255 | def GetVirtualSizeTuple(*args, **kwargs): |
| 5256 | """GetVirtualSizeTuple() -> (width, height) |
| 5257 | |
| 5258 | Get the the virtual size of the window. For most windows this is just |
| 5259 | the client area of the window, but for some like scrolled windows it is |
| 5260 | more or less independent of the screen window size.""" |
| 5261 | return _core.Window_GetVirtualSizeTuple(*args, **kwargs) |
| 5262 | |
| 5263 | def GetBestVirtualSize(*args, **kwargs): |
| 5264 | """GetBestVirtualSize() -> Size""" |
| 5265 | return _core.Window_GetBestVirtualSize(*args, **kwargs) |
| 5266 | |
| 5267 | def Show(*args, **kwargs): |
| 5268 | """Show(bool show=True) -> bool""" |
| 5269 | return _core.Window_Show(*args, **kwargs) |
| 5270 | |
| 5271 | def Hide(*args, **kwargs): |
| 5272 | """Hide() -> bool""" |
| 5273 | return _core.Window_Hide(*args, **kwargs) |
| 5274 | |
| 5275 | def Enable(*args, **kwargs): |
| 5276 | """Enable(bool enable=True) -> bool""" |
| 5277 | return _core.Window_Enable(*args, **kwargs) |
| 5278 | |
| 5279 | def Disable(*args, **kwargs): |
| 5280 | """Disable() -> bool""" |
| 5281 | return _core.Window_Disable(*args, **kwargs) |
| 5282 | |
| 5283 | def IsShown(*args, **kwargs): |
| 5284 | """IsShown() -> bool""" |
| 5285 | return _core.Window_IsShown(*args, **kwargs) |
| 5286 | |
| 5287 | def IsEnabled(*args, **kwargs): |
| 5288 | """IsEnabled() -> bool""" |
| 5289 | return _core.Window_IsEnabled(*args, **kwargs) |
| 5290 | |
| 5291 | def SetWindowStyleFlag(*args, **kwargs): |
| 5292 | """SetWindowStyleFlag(long style)""" |
| 5293 | return _core.Window_SetWindowStyleFlag(*args, **kwargs) |
| 5294 | |
| 5295 | def GetWindowStyleFlag(*args, **kwargs): |
| 5296 | """GetWindowStyleFlag() -> long""" |
| 5297 | return _core.Window_GetWindowStyleFlag(*args, **kwargs) |
| 5298 | |
| 5299 | def SetWindowStyle(*args, **kwargs): |
| 5300 | """SetWindowStyle(long style)""" |
| 5301 | return _core.Window_SetWindowStyle(*args, **kwargs) |
| 5302 | |
| 5303 | def GetWindowStyle(*args, **kwargs): |
| 5304 | """GetWindowStyle() -> long""" |
| 5305 | return _core.Window_GetWindowStyle(*args, **kwargs) |
| 5306 | |
| 5307 | def HasFlag(*args, **kwargs): |
| 5308 | """HasFlag(int flag) -> bool""" |
| 5309 | return _core.Window_HasFlag(*args, **kwargs) |
| 5310 | |
| 5311 | def IsRetained(*args, **kwargs): |
| 5312 | """IsRetained() -> bool""" |
| 5313 | return _core.Window_IsRetained(*args, **kwargs) |
| 5314 | |
| 5315 | def SetExtraStyle(*args, **kwargs): |
| 5316 | """SetExtraStyle(long exStyle)""" |
| 5317 | return _core.Window_SetExtraStyle(*args, **kwargs) |
| 5318 | |
| 5319 | def GetExtraStyle(*args, **kwargs): |
| 5320 | """GetExtraStyle() -> long""" |
| 5321 | return _core.Window_GetExtraStyle(*args, **kwargs) |
| 5322 | |
| 5323 | def MakeModal(*args, **kwargs): |
| 5324 | """MakeModal(bool modal=True)""" |
| 5325 | return _core.Window_MakeModal(*args, **kwargs) |
| 5326 | |
| 5327 | def SetThemeEnabled(*args, **kwargs): |
| 5328 | """SetThemeEnabled(bool enableTheme)""" |
| 5329 | return _core.Window_SetThemeEnabled(*args, **kwargs) |
| 5330 | |
| 5331 | def GetThemeEnabled(*args, **kwargs): |
| 5332 | """GetThemeEnabled() -> bool""" |
| 5333 | return _core.Window_GetThemeEnabled(*args, **kwargs) |
| 5334 | |
| 5335 | def ShouldInheritColours(*args, **kwargs): |
| 5336 | """ShouldInheritColours() -> bool""" |
| 5337 | return _core.Window_ShouldInheritColours(*args, **kwargs) |
| 5338 | |
| 5339 | def SetFocus(*args, **kwargs): |
| 5340 | """SetFocus()""" |
| 5341 | return _core.Window_SetFocus(*args, **kwargs) |
| 5342 | |
| 5343 | def SetFocusFromKbd(*args, **kwargs): |
| 5344 | """SetFocusFromKbd()""" |
| 5345 | return _core.Window_SetFocusFromKbd(*args, **kwargs) |
| 5346 | |
| 5347 | def FindFocus(*args, **kwargs): |
| 5348 | """Window.FindFocus() -> Window""" |
| 5349 | return _core.Window_FindFocus(*args, **kwargs) |
| 5350 | |
| 5351 | FindFocus = staticmethod(FindFocus) |
| 5352 | def AcceptsFocus(*args, **kwargs): |
| 5353 | """AcceptsFocus() -> bool""" |
| 5354 | return _core.Window_AcceptsFocus(*args, **kwargs) |
| 5355 | |
| 5356 | def AcceptsFocusFromKeyboard(*args, **kwargs): |
| 5357 | """AcceptsFocusFromKeyboard() -> bool""" |
| 5358 | return _core.Window_AcceptsFocusFromKeyboard(*args, **kwargs) |
| 5359 | |
| 5360 | def GetDefaultItem(*args, **kwargs): |
| 5361 | """GetDefaultItem() -> Window""" |
| 5362 | return _core.Window_GetDefaultItem(*args, **kwargs) |
| 5363 | |
| 5364 | def SetDefaultItem(*args, **kwargs): |
| 5365 | """SetDefaultItem(Window child) -> Window""" |
| 5366 | return _core.Window_SetDefaultItem(*args, **kwargs) |
| 5367 | |
| 5368 | def SetTmpDefaultItem(*args, **kwargs): |
| 5369 | """SetTmpDefaultItem(Window win)""" |
| 5370 | return _core.Window_SetTmpDefaultItem(*args, **kwargs) |
| 5371 | |
| 5372 | def GetChildren(*args, **kwargs): |
| 5373 | """GetChildren() -> PyObject""" |
| 5374 | return _core.Window_GetChildren(*args, **kwargs) |
| 5375 | |
| 5376 | def GetParent(*args, **kwargs): |
| 5377 | """GetParent() -> Window""" |
| 5378 | return _core.Window_GetParent(*args, **kwargs) |
| 5379 | |
| 5380 | def GetGrandParent(*args, **kwargs): |
| 5381 | """GetGrandParent() -> Window""" |
| 5382 | return _core.Window_GetGrandParent(*args, **kwargs) |
| 5383 | |
| 5384 | def IsTopLevel(*args, **kwargs): |
| 5385 | """IsTopLevel() -> bool""" |
| 5386 | return _core.Window_IsTopLevel(*args, **kwargs) |
| 5387 | |
| 5388 | def Reparent(*args, **kwargs): |
| 5389 | """Reparent(Window newParent) -> bool""" |
| 5390 | return _core.Window_Reparent(*args, **kwargs) |
| 5391 | |
| 5392 | def AddChild(*args, **kwargs): |
| 5393 | """AddChild(Window child)""" |
| 5394 | return _core.Window_AddChild(*args, **kwargs) |
| 5395 | |
| 5396 | def RemoveChild(*args, **kwargs): |
| 5397 | """RemoveChild(Window child)""" |
| 5398 | return _core.Window_RemoveChild(*args, **kwargs) |
| 5399 | |
| 5400 | def FindWindowById(*args, **kwargs): |
| 5401 | """FindWindowById(long winid) -> Window""" |
| 5402 | return _core.Window_FindWindowById(*args, **kwargs) |
| 5403 | |
| 5404 | def FindWindowByName(*args, **kwargs): |
| 5405 | """FindWindowByName(wxString name) -> Window""" |
| 5406 | return _core.Window_FindWindowByName(*args, **kwargs) |
| 5407 | |
| 5408 | def GetEventHandler(*args, **kwargs): |
| 5409 | """GetEventHandler() -> EvtHandler""" |
| 5410 | return _core.Window_GetEventHandler(*args, **kwargs) |
| 5411 | |
| 5412 | def SetEventHandler(*args, **kwargs): |
| 5413 | """SetEventHandler(EvtHandler handler)""" |
| 5414 | return _core.Window_SetEventHandler(*args, **kwargs) |
| 5415 | |
| 5416 | def PushEventHandler(*args, **kwargs): |
| 5417 | """PushEventHandler(EvtHandler handler)""" |
| 5418 | return _core.Window_PushEventHandler(*args, **kwargs) |
| 5419 | |
| 5420 | def PopEventHandler(*args, **kwargs): |
| 5421 | """PopEventHandler(bool deleteHandler=False) -> EvtHandler""" |
| 5422 | return _core.Window_PopEventHandler(*args, **kwargs) |
| 5423 | |
| 5424 | def RemoveEventHandler(*args, **kwargs): |
| 5425 | """RemoveEventHandler(EvtHandler handler) -> bool""" |
| 5426 | return _core.Window_RemoveEventHandler(*args, **kwargs) |
| 5427 | |
| 5428 | def SetValidator(*args, **kwargs): |
| 5429 | """SetValidator(Validator validator)""" |
| 5430 | return _core.Window_SetValidator(*args, **kwargs) |
| 5431 | |
| 5432 | def GetValidator(*args, **kwargs): |
| 5433 | """GetValidator() -> Validator""" |
| 5434 | return _core.Window_GetValidator(*args, **kwargs) |
| 5435 | |
| 5436 | def SetAcceleratorTable(*args, **kwargs): |
| 5437 | """SetAcceleratorTable(wxAcceleratorTable accel)""" |
| 5438 | return _core.Window_SetAcceleratorTable(*args, **kwargs) |
| 5439 | |
| 5440 | def GetAcceleratorTable(*args, **kwargs): |
| 5441 | """GetAcceleratorTable() -> wxAcceleratorTable""" |
| 5442 | return _core.Window_GetAcceleratorTable(*args, **kwargs) |
| 5443 | |
| 5444 | def RegisterHotKey(*args, **kwargs): |
| 5445 | """RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool""" |
| 5446 | return _core.Window_RegisterHotKey(*args, **kwargs) |
| 5447 | |
| 5448 | def UnregisterHotKey(*args, **kwargs): |
| 5449 | """UnregisterHotKey(int hotkeyId) -> bool""" |
| 5450 | return _core.Window_UnregisterHotKey(*args, **kwargs) |
| 5451 | |
| 5452 | def ConvertDialogPointToPixels(*args, **kwargs): |
| 5453 | """ConvertDialogPointToPixels(Point pt) -> Point""" |
| 5454 | return _core.Window_ConvertDialogPointToPixels(*args, **kwargs) |
| 5455 | |
| 5456 | def ConvertDialogSizeToPixels(*args, **kwargs): |
| 5457 | """ConvertDialogSizeToPixels(Size sz) -> Size""" |
| 5458 | return _core.Window_ConvertDialogSizeToPixels(*args, **kwargs) |
| 5459 | |
| 5460 | def DLG_PNT(*args, **kwargs): |
| 5461 | """DLG_PNT(Point pt) -> Point""" |
| 5462 | return _core.Window_DLG_PNT(*args, **kwargs) |
| 5463 | |
| 5464 | def DLG_SZE(*args, **kwargs): |
| 5465 | """DLG_SZE(Size sz) -> Size""" |
| 5466 | return _core.Window_DLG_SZE(*args, **kwargs) |
| 5467 | |
| 5468 | def ConvertPixelPointToDialog(*args, **kwargs): |
| 5469 | """ConvertPixelPointToDialog(Point pt) -> Point""" |
| 5470 | return _core.Window_ConvertPixelPointToDialog(*args, **kwargs) |
| 5471 | |
| 5472 | def ConvertPixelSizeToDialog(*args, **kwargs): |
| 5473 | """ConvertPixelSizeToDialog(Size sz) -> Size""" |
| 5474 | return _core.Window_ConvertPixelSizeToDialog(*args, **kwargs) |
| 5475 | |
| 5476 | def WarpPointer(*args, **kwargs): |
| 5477 | """WarpPointer(int x, int y)""" |
| 5478 | return _core.Window_WarpPointer(*args, **kwargs) |
| 5479 | |
| 5480 | def CaptureMouse(*args, **kwargs): |
| 5481 | """CaptureMouse()""" |
| 5482 | return _core.Window_CaptureMouse(*args, **kwargs) |
| 5483 | |
| 5484 | def ReleaseMouse(*args, **kwargs): |
| 5485 | """ReleaseMouse()""" |
| 5486 | return _core.Window_ReleaseMouse(*args, **kwargs) |
| 5487 | |
| 5488 | def GetCapture(*args, **kwargs): |
| 5489 | """Window.GetCapture() -> Window""" |
| 5490 | return _core.Window_GetCapture(*args, **kwargs) |
| 5491 | |
| 5492 | GetCapture = staticmethod(GetCapture) |
| 5493 | def HasCapture(*args, **kwargs): |
| 5494 | """HasCapture() -> bool""" |
| 5495 | return _core.Window_HasCapture(*args, **kwargs) |
| 5496 | |
| 5497 | def Refresh(*args, **kwargs): |
| 5498 | """Refresh(bool eraseBackground=True, Rect rect=None)""" |
| 5499 | return _core.Window_Refresh(*args, **kwargs) |
| 5500 | |
| 5501 | def RefreshRect(*args, **kwargs): |
| 5502 | """RefreshRect(Rect rect)""" |
| 5503 | return _core.Window_RefreshRect(*args, **kwargs) |
| 5504 | |
| 5505 | def Update(*args, **kwargs): |
| 5506 | """Update()""" |
| 5507 | return _core.Window_Update(*args, **kwargs) |
| 5508 | |
| 5509 | def ClearBackground(*args, **kwargs): |
| 5510 | """ClearBackground()""" |
| 5511 | return _core.Window_ClearBackground(*args, **kwargs) |
| 5512 | |
| 5513 | def Freeze(*args, **kwargs): |
| 5514 | """Freeze()""" |
| 5515 | return _core.Window_Freeze(*args, **kwargs) |
| 5516 | |
| 5517 | def Thaw(*args, **kwargs): |
| 5518 | """Thaw()""" |
| 5519 | return _core.Window_Thaw(*args, **kwargs) |
| 5520 | |
| 5521 | def PrepareDC(*args, **kwargs): |
| 5522 | """PrepareDC(wxDC dc)""" |
| 5523 | return _core.Window_PrepareDC(*args, **kwargs) |
| 5524 | |
| 5525 | def GetUpdateRegion(*args, **kwargs): |
| 5526 | """GetUpdateRegion() -> wxRegion""" |
| 5527 | return _core.Window_GetUpdateRegion(*args, **kwargs) |
| 5528 | |
| 5529 | def GetUpdateClientRect(*args, **kwargs): |
| 5530 | """GetUpdateClientRect() -> Rect""" |
| 5531 | return _core.Window_GetUpdateClientRect(*args, **kwargs) |
| 5532 | |
| 5533 | def IsExposed(*args, **kwargs): |
| 5534 | """IsExposed(int x, int y, int w=1, int h=1) -> bool""" |
| 5535 | return _core.Window_IsExposed(*args, **kwargs) |
| 5536 | |
| 5537 | def IsExposedPoint(*args, **kwargs): |
| 5538 | """IsExposedPoint(Point pt) -> bool""" |
| 5539 | return _core.Window_IsExposedPoint(*args, **kwargs) |
| 5540 | |
| 5541 | def isExposedRect(*args, **kwargs): |
| 5542 | """isExposedRect(Rect rect) -> bool""" |
| 5543 | return _core.Window_isExposedRect(*args, **kwargs) |
| 5544 | |
| 5545 | def SetBackgroundColour(*args, **kwargs): |
| 5546 | """SetBackgroundColour(wxColour colour) -> bool""" |
| 5547 | return _core.Window_SetBackgroundColour(*args, **kwargs) |
| 5548 | |
| 5549 | def SetForegroundColour(*args, **kwargs): |
| 5550 | """SetForegroundColour(wxColour colour) -> bool""" |
| 5551 | return _core.Window_SetForegroundColour(*args, **kwargs) |
| 5552 | |
| 5553 | def GetBackgroundColour(*args, **kwargs): |
| 5554 | """GetBackgroundColour() -> wxColour""" |
| 5555 | return _core.Window_GetBackgroundColour(*args, **kwargs) |
| 5556 | |
| 5557 | def GetForegroundColour(*args, **kwargs): |
| 5558 | """GetForegroundColour() -> wxColour""" |
| 5559 | return _core.Window_GetForegroundColour(*args, **kwargs) |
| 5560 | |
| 5561 | def SetCursor(*args, **kwargs): |
| 5562 | """SetCursor(wxCursor cursor) -> bool""" |
| 5563 | return _core.Window_SetCursor(*args, **kwargs) |
| 5564 | |
| 5565 | def GetCursor(*args, **kwargs): |
| 5566 | """GetCursor() -> wxCursor""" |
| 5567 | return _core.Window_GetCursor(*args, **kwargs) |
| 5568 | |
| 5569 | def SetFont(*args, **kwargs): |
| 5570 | """SetFont(wxFont font) -> bool""" |
| 5571 | return _core.Window_SetFont(*args, **kwargs) |
| 5572 | |
| 5573 | def GetFont(*args, **kwargs): |
| 5574 | """GetFont() -> wxFont""" |
| 5575 | return _core.Window_GetFont(*args, **kwargs) |
| 5576 | |
| 5577 | def SetCaret(*args, **kwargs): |
| 5578 | """SetCaret(wxCaret caret)""" |
| 5579 | return _core.Window_SetCaret(*args, **kwargs) |
| 5580 | |
| 5581 | def GetCaret(*args, **kwargs): |
| 5582 | """GetCaret() -> wxCaret""" |
| 5583 | return _core.Window_GetCaret(*args, **kwargs) |
| 5584 | |
| 5585 | def GetCharHeight(*args, **kwargs): |
| 5586 | """GetCharHeight() -> int""" |
| 5587 | return _core.Window_GetCharHeight(*args, **kwargs) |
| 5588 | |
| 5589 | def GetCharWidth(*args, **kwargs): |
| 5590 | """GetCharWidth() -> int""" |
| 5591 | return _core.Window_GetCharWidth(*args, **kwargs) |
| 5592 | |
| 5593 | def GetTextExtent(*args, **kwargs): |
| 5594 | """GetTextExtent(wxString string) -> (width, height) |
| 5595 | |
| 5596 | Get the width and height of the text using the current font.""" |
| 5597 | return _core.Window_GetTextExtent(*args, **kwargs) |
| 5598 | |
| 5599 | def GetFullTextExtent(*args, **kwargs): |
| 5600 | """GetFullTextExtent(wxString string, Font font=None) -> |
| 5601 | (width, height, descent, externalLeading) |
| 5602 | |
| 5603 | Get the width, height, decent and leading of the text using the current or specified font.""" |
| 5604 | return _core.Window_GetFullTextExtent(*args, **kwargs) |
| 5605 | |
| 5606 | def ClientToScreenXY(*args, **kwargs): |
| 5607 | """ClientToScreenXY(int x, int y)""" |
| 5608 | return _core.Window_ClientToScreenXY(*args, **kwargs) |
| 5609 | |
| 5610 | def ScreenToClientXY(*args, **kwargs): |
| 5611 | """ScreenToClientXY(int x, int y)""" |
| 5612 | return _core.Window_ScreenToClientXY(*args, **kwargs) |
| 5613 | |
| 5614 | def ClientToScreen(*args, **kwargs): |
| 5615 | """ClientToScreen(Point pt) -> Point""" |
| 5616 | return _core.Window_ClientToScreen(*args, **kwargs) |
| 5617 | |
| 5618 | def ScreenToClient(*args, **kwargs): |
| 5619 | """ScreenToClient(Point pt) -> Point""" |
| 5620 | return _core.Window_ScreenToClient(*args, **kwargs) |
| 5621 | |
| 5622 | def HitTestXY(*args, **kwargs): |
| 5623 | """HitTestXY(int x, int y) -> wxHitTest""" |
| 5624 | return _core.Window_HitTestXY(*args, **kwargs) |
| 5625 | |
| 5626 | def HitTest(*args, **kwargs): |
| 5627 | """HitTest(Point pt) -> wxHitTest""" |
| 5628 | return _core.Window_HitTest(*args, **kwargs) |
| 5629 | |
| 5630 | def GetBorderFlags(*args, **kwargs): |
| 5631 | """GetBorderFlags(long flags) -> wxBorder""" |
| 5632 | return _core.Window_GetBorderFlags(*args, **kwargs) |
| 5633 | |
| 5634 | def GetBorder(*args, **kwargs): |
| 5635 | """GetBorder() -> wxBorder""" |
| 5636 | return _core.Window_GetBorder(*args, **kwargs) |
| 5637 | |
| 5638 | def UpdateWindowUI(*args, **kwargs): |
| 5639 | """UpdateWindowUI(long flags=UPDATE_UI_NONE)""" |
| 5640 | return _core.Window_UpdateWindowUI(*args, **kwargs) |
| 5641 | |
| 5642 | def PopupMenuXY(*args, **kwargs): |
| 5643 | """PopupMenuXY(Menu menu, int x, int y) -> bool""" |
| 5644 | return _core.Window_PopupMenuXY(*args, **kwargs) |
| 5645 | |
| 5646 | def PopupMenu(*args, **kwargs): |
| 5647 | """PopupMenu(Menu menu, Point pos) -> bool""" |
| 5648 | return _core.Window_PopupMenu(*args, **kwargs) |
| 5649 | |
| 5650 | def GetHandle(*args, **kwargs): |
| 5651 | """GetHandle() -> long""" |
| 5652 | return _core.Window_GetHandle(*args, **kwargs) |
| 5653 | |
| 5654 | def HasScrollbar(*args, **kwargs): |
| 5655 | """HasScrollbar(int orient) -> bool""" |
| 5656 | return _core.Window_HasScrollbar(*args, **kwargs) |
| 5657 | |
| 5658 | def SetScrollbar(*args, **kwargs): |
| 5659 | """SetScrollbar(int orient, int pos, int thumbvisible, int range, bool refresh=True)""" |
| 5660 | return _core.Window_SetScrollbar(*args, **kwargs) |
| 5661 | |
| 5662 | def SetScrollPos(*args, **kwargs): |
| 5663 | """SetScrollPos(int orient, int pos, bool refresh=True)""" |
| 5664 | return _core.Window_SetScrollPos(*args, **kwargs) |
| 5665 | |
| 5666 | def GetScrollPos(*args, **kwargs): |
| 5667 | """GetScrollPos(int orient) -> int""" |
| 5668 | return _core.Window_GetScrollPos(*args, **kwargs) |
| 5669 | |
| 5670 | def GetScrollThumb(*args, **kwargs): |
| 5671 | """GetScrollThumb(int orient) -> int""" |
| 5672 | return _core.Window_GetScrollThumb(*args, **kwargs) |
| 5673 | |
| 5674 | def GetScrollRange(*args, **kwargs): |
| 5675 | """GetScrollRange(int orient) -> int""" |
| 5676 | return _core.Window_GetScrollRange(*args, **kwargs) |
| 5677 | |
| 5678 | def ScrollWindow(*args, **kwargs): |
| 5679 | """ScrollWindow(int dx, int dy, Rect rect=None)""" |
| 5680 | return _core.Window_ScrollWindow(*args, **kwargs) |
| 5681 | |
| 5682 | def ScrollLines(*args, **kwargs): |
| 5683 | """ScrollLines(int lines) -> bool""" |
| 5684 | return _core.Window_ScrollLines(*args, **kwargs) |
| 5685 | |
| 5686 | def ScrollPages(*args, **kwargs): |
| 5687 | """ScrollPages(int pages) -> bool""" |
| 5688 | return _core.Window_ScrollPages(*args, **kwargs) |
| 5689 | |
| 5690 | def LineUp(*args, **kwargs): |
| 5691 | """LineUp() -> bool""" |
| 5692 | return _core.Window_LineUp(*args, **kwargs) |
| 5693 | |
| 5694 | def LineDown(*args, **kwargs): |
| 5695 | """LineDown() -> bool""" |
| 5696 | return _core.Window_LineDown(*args, **kwargs) |
| 5697 | |
| 5698 | def PageUp(*args, **kwargs): |
| 5699 | """PageUp() -> bool""" |
| 5700 | return _core.Window_PageUp(*args, **kwargs) |
| 5701 | |
| 5702 | def PageDown(*args, **kwargs): |
| 5703 | """PageDown() -> bool""" |
| 5704 | return _core.Window_PageDown(*args, **kwargs) |
| 5705 | |
| 5706 | def SetHelpText(*args, **kwargs): |
| 5707 | """SetHelpText(wxString text)""" |
| 5708 | return _core.Window_SetHelpText(*args, **kwargs) |
| 5709 | |
| 5710 | def SetHelpTextForId(*args, **kwargs): |
| 5711 | """SetHelpTextForId(wxString text)""" |
| 5712 | return _core.Window_SetHelpTextForId(*args, **kwargs) |
| 5713 | |
| 5714 | def GetHelpText(*args, **kwargs): |
| 5715 | """GetHelpText() -> wxString""" |
| 5716 | return _core.Window_GetHelpText(*args, **kwargs) |
| 5717 | |
| 5718 | def SetToolTipString(*args, **kwargs): |
| 5719 | """SetToolTipString(wxString tip)""" |
| 5720 | return _core.Window_SetToolTipString(*args, **kwargs) |
| 5721 | |
| 5722 | def SetToolTip(*args, **kwargs): |
| 5723 | """SetToolTip(wxToolTip tip)""" |
| 5724 | return _core.Window_SetToolTip(*args, **kwargs) |
| 5725 | |
| 5726 | def GetToolTip(*args, **kwargs): |
| 5727 | """GetToolTip() -> wxToolTip""" |
| 5728 | return _core.Window_GetToolTip(*args, **kwargs) |
| 5729 | |
| 5730 | def SetDropTarget(*args, **kwargs): |
| 5731 | """SetDropTarget(wxPyDropTarget dropTarget)""" |
| 5732 | val = _core.Window_SetDropTarget(*args, **kwargs) |
| 5733 | args[1].thisown = 0 |
| 5734 | return val |
| 5735 | |
| 5736 | def GetDropTarget(*args, **kwargs): |
| 5737 | """GetDropTarget() -> wxPyDropTarget""" |
| 5738 | return _core.Window_GetDropTarget(*args, **kwargs) |
| 5739 | |
| 5740 | def SetConstraints(*args, **kwargs): |
| 5741 | """SetConstraints(LayoutConstraints constraints)""" |
| 5742 | return _core.Window_SetConstraints(*args, **kwargs) |
| 5743 | |
| 5744 | def GetConstraints(*args, **kwargs): |
| 5745 | """GetConstraints() -> LayoutConstraints""" |
| 5746 | return _core.Window_GetConstraints(*args, **kwargs) |
| 5747 | |
| 5748 | def SetAutoLayout(*args, **kwargs): |
| 5749 | """SetAutoLayout(bool autoLayout)""" |
| 5750 | return _core.Window_SetAutoLayout(*args, **kwargs) |
| 5751 | |
| 5752 | def GetAutoLayout(*args, **kwargs): |
| 5753 | """GetAutoLayout() -> bool""" |
| 5754 | return _core.Window_GetAutoLayout(*args, **kwargs) |
| 5755 | |
| 5756 | def Layout(*args, **kwargs): |
| 5757 | """Layout() -> bool""" |
| 5758 | return _core.Window_Layout(*args, **kwargs) |
| 5759 | |
| 5760 | def SetSizer(*args, **kwargs): |
| 5761 | """SetSizer(Sizer sizer, bool deleteOld=True)""" |
| 5762 | return _core.Window_SetSizer(*args, **kwargs) |
| 5763 | |
| 5764 | def SetSizerAndFit(*args, **kwargs): |
| 5765 | """SetSizerAndFit(Sizer sizer, bool deleteOld=True)""" |
| 5766 | return _core.Window_SetSizerAndFit(*args, **kwargs) |
| 5767 | |
| 5768 | def GetSizer(*args, **kwargs): |
| 5769 | """GetSizer() -> Sizer""" |
| 5770 | return _core.Window_GetSizer(*args, **kwargs) |
| 5771 | |
| 5772 | def SetContainingSizer(*args, **kwargs): |
| 5773 | """SetContainingSizer(Sizer sizer)""" |
| 5774 | return _core.Window_SetContainingSizer(*args, **kwargs) |
| 5775 | |
| 5776 | def GetContainingSizer(*args, **kwargs): |
| 5777 | """GetContainingSizer() -> Sizer""" |
| 5778 | return _core.Window_GetContainingSizer(*args, **kwargs) |
| 5779 | |
| 5780 | def PostCreate(self, pre): |
| 5781 | """Phase 3 of the 2-phase create <wink!> |
| 5782 | Call this method after precreating the window with the 2-phase create method.""" |
| 5783 | self.this = pre.this |
| 5784 | self.thisown = pre.thisown |
| 5785 | pre.thisown = 0 |
| 5786 | if hasattr(self, '_setOORInfo'): |
| 5787 | self._setOORInfo(self) |
| 5788 | if hasattr(self, '_setCallbackInfo'): |
| 5789 | self._setCallbackInfo(self, self.__class__) |
| 5790 | |
| 5791 | |
| 5792 | class WindowPtr(Window): |
| 5793 | def __init__(self, this): |
| 5794 | self.this = this |
| 5795 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 5796 | self.__class__ = Window |
| 5797 | _core.Window_swigregister(WindowPtr) |
| 5798 | PanelNameStr = cvar.PanelNameStr |
| 5799 | |
| 5800 | def PreWindow(*args, **kwargs): |
| 5801 | """PreWindow() -> Window""" |
| 5802 | val = _core.new_PreWindow(*args, **kwargs) |
| 5803 | val.thisown = 1 |
| 5804 | return val |
| 5805 | |
| 5806 | def Window_NewControlId(*args, **kwargs): |
| 5807 | """Window_NewControlId() -> int""" |
| 5808 | return _core.Window_NewControlId(*args, **kwargs) |
| 5809 | |
| 5810 | def Window_NextControlId(*args, **kwargs): |
| 5811 | """Window_NextControlId(int winid) -> int""" |
| 5812 | return _core.Window_NextControlId(*args, **kwargs) |
| 5813 | |
| 5814 | def Window_PrevControlId(*args, **kwargs): |
| 5815 | """Window_PrevControlId(int winid) -> int""" |
| 5816 | return _core.Window_PrevControlId(*args, **kwargs) |
| 5817 | |
| 5818 | def Window_FindFocus(*args, **kwargs): |
| 5819 | """Window_FindFocus() -> Window""" |
| 5820 | return _core.Window_FindFocus(*args, **kwargs) |
| 5821 | |
| 5822 | def Window_GetCapture(*args, **kwargs): |
| 5823 | """Window_GetCapture() -> Window""" |
| 5824 | return _core.Window_GetCapture(*args, **kwargs) |
| 5825 | |
| 5826 | def DLG_PNT(win, point_or_x, y=None): |
| 5827 | if y is None: |
| 5828 | return win.ConvertDialogPointToPixels(point_or_x) |
| 5829 | else: |
| 5830 | return win.ConvertDialogPointToPixels(wx.Point(point_or_x, y)) |
| 5831 | |
| 5832 | def DLG_SZE(win, size_width, height=None): |
| 5833 | if height is None: |
| 5834 | return win.ConvertDialogSizeToPixels(size_width) |
| 5835 | else: |
| 5836 | return win.ConvertDialogSizeToPixels(wx.Size(size_width, height)) |
| 5837 | |
| 5838 | |
| 5839 | def FindWindowById(*args, **kwargs): |
| 5840 | """FindWindowById(long id, Window parent=None) -> Window""" |
| 5841 | return _core.FindWindowById(*args, **kwargs) |
| 5842 | |
| 5843 | def FindWindowByName(*args, **kwargs): |
| 5844 | """FindWindowByName(wxString name, Window parent=None) -> Window""" |
| 5845 | return _core.FindWindowByName(*args, **kwargs) |
| 5846 | |
| 5847 | def FindWindowByLabel(*args, **kwargs): |
| 5848 | """FindWindowByLabel(wxString label, Window parent=None) -> Window""" |
| 5849 | return _core.FindWindowByLabel(*args, **kwargs) |
| 5850 | |
| 5851 | def Window_FromHWND(*args, **kwargs): |
| 5852 | """Window_FromHWND(unsigned long hWnd) -> Window""" |
| 5853 | return _core.Window_FromHWND(*args, **kwargs) |
| 5854 | #--------------------------------------------------------------------------- |
| 5855 | |
| 5856 | class Validator(EvtHandler): |
| 5857 | """""" |
| 5858 | def __repr__(self): |
| 5859 | return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 5860 | def __init__(self, *args, **kwargs): |
| 5861 | """__init__() -> Validator""" |
| 5862 | newobj = _core.new_Validator(*args, **kwargs) |
| 5863 | self.this = newobj.this |
| 5864 | self.thisown = 1 |
| 5865 | del newobj.thisown |
| 5866 | self._setOORInfo(self) |
| 5867 | |
| 5868 | def Clone(*args, **kwargs): |
| 5869 | """Clone() -> Validator""" |
| 5870 | return _core.Validator_Clone(*args, **kwargs) |
| 5871 | |
| 5872 | def Validate(*args, **kwargs): |
| 5873 | """Validate(Window parent) -> bool""" |
| 5874 | return _core.Validator_Validate(*args, **kwargs) |
| 5875 | |
| 5876 | def TransferToWindow(*args, **kwargs): |
| 5877 | """TransferToWindow() -> bool""" |
| 5878 | return _core.Validator_TransferToWindow(*args, **kwargs) |
| 5879 | |
| 5880 | def TransferFromWindow(*args, **kwargs): |
| 5881 | """TransferFromWindow() -> bool""" |
| 5882 | return _core.Validator_TransferFromWindow(*args, **kwargs) |
| 5883 | |
| 5884 | def GetWindow(*args, **kwargs): |
| 5885 | """GetWindow() -> Window""" |
| 5886 | return _core.Validator_GetWindow(*args, **kwargs) |
| 5887 | |
| 5888 | def SetWindow(*args, **kwargs): |
| 5889 | """SetWindow(Window window)""" |
| 5890 | return _core.Validator_SetWindow(*args, **kwargs) |
| 5891 | |
| 5892 | def IsSilent(*args, **kwargs): |
| 5893 | """Validator.IsSilent() -> bool""" |
| 5894 | return _core.Validator_IsSilent(*args, **kwargs) |
| 5895 | |
| 5896 | IsSilent = staticmethod(IsSilent) |
| 5897 | def SetBellOnError(*args, **kwargs): |
| 5898 | """Validator.SetBellOnError(int doIt=True)""" |
| 5899 | return _core.Validator_SetBellOnError(*args, **kwargs) |
| 5900 | |
| 5901 | SetBellOnError = staticmethod(SetBellOnError) |
| 5902 | |
| 5903 | class ValidatorPtr(Validator): |
| 5904 | def __init__(self, this): |
| 5905 | self.this = this |
| 5906 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 5907 | self.__class__ = Validator |
| 5908 | _core.Validator_swigregister(ValidatorPtr) |
| 5909 | |
| 5910 | def Validator_IsSilent(*args, **kwargs): |
| 5911 | """Validator_IsSilent() -> bool""" |
| 5912 | return _core.Validator_IsSilent(*args, **kwargs) |
| 5913 | |
| 5914 | def Validator_SetBellOnError(*args, **kwargs): |
| 5915 | """Validator_SetBellOnError(int doIt=True)""" |
| 5916 | return _core.Validator_SetBellOnError(*args, **kwargs) |
| 5917 | |
| 5918 | class PyValidator(Validator): |
| 5919 | """""" |
| 5920 | def __repr__(self): |
| 5921 | return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 5922 | def __init__(self, *args, **kwargs): |
| 5923 | """__init__() -> PyValidator""" |
| 5924 | newobj = _core.new_PyValidator(*args, **kwargs) |
| 5925 | self.this = newobj.this |
| 5926 | self.thisown = 1 |
| 5927 | del newobj.thisown |
| 5928 | |
| 5929 | self._setCallbackInfo(self, PyValidator, 1) |
| 5930 | self._setOORInfo(self) |
| 5931 | |
| 5932 | def _setCallbackInfo(*args, **kwargs): |
| 5933 | """_setCallbackInfo(PyObject self, PyObject _class, int incref=True)""" |
| 5934 | return _core.PyValidator__setCallbackInfo(*args, **kwargs) |
| 5935 | |
| 5936 | |
| 5937 | class PyValidatorPtr(PyValidator): |
| 5938 | def __init__(self, this): |
| 5939 | self.this = this |
| 5940 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 5941 | self.__class__ = PyValidator |
| 5942 | _core.PyValidator_swigregister(PyValidatorPtr) |
| 5943 | |
| 5944 | #--------------------------------------------------------------------------- |
| 5945 | |
| 5946 | class Menu(EvtHandler): |
| 5947 | """""" |
| 5948 | def __repr__(self): |
| 5949 | return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 5950 | def __init__(self, *args, **kwargs): |
| 5951 | """__init__(wxString title=wxPyEmptyString, long style=0) -> Menu""" |
| 5952 | newobj = _core.new_Menu(*args, **kwargs) |
| 5953 | self.this = newobj.this |
| 5954 | self.thisown = 1 |
| 5955 | del newobj.thisown |
| 5956 | self._setOORInfo(self) |
| 5957 | |
| 5958 | def Append(*args, **kwargs): |
| 5959 | """Append(int itemid, wxString text, wxString help=wxPyEmptyString, |
| 5960 | wxItemKind kind=ITEM_NORMAL)""" |
| 5961 | return _core.Menu_Append(*args, **kwargs) |
| 5962 | |
| 5963 | def AppendSeparator(*args, **kwargs): |
| 5964 | """AppendSeparator()""" |
| 5965 | return _core.Menu_AppendSeparator(*args, **kwargs) |
| 5966 | |
| 5967 | def AppendCheckItem(*args, **kwargs): |
| 5968 | """AppendCheckItem(int itemid, wxString text, wxString help=wxPyEmptyString)""" |
| 5969 | return _core.Menu_AppendCheckItem(*args, **kwargs) |
| 5970 | |
| 5971 | def AppendRadioItem(*args, **kwargs): |
| 5972 | """AppendRadioItem(int itemid, wxString text, wxString help=wxPyEmptyString)""" |
| 5973 | return _core.Menu_AppendRadioItem(*args, **kwargs) |
| 5974 | |
| 5975 | def AppendMenu(*args, **kwargs): |
| 5976 | """AppendMenu(int itemid, wxString text, Menu submenu, wxString help=wxPyEmptyString)""" |
| 5977 | return _core.Menu_AppendMenu(*args, **kwargs) |
| 5978 | |
| 5979 | def AppendItem(*args, **kwargs): |
| 5980 | """AppendItem(MenuItem item)""" |
| 5981 | return _core.Menu_AppendItem(*args, **kwargs) |
| 5982 | |
| 5983 | def Break(*args, **kwargs): |
| 5984 | """Break()""" |
| 5985 | return _core.Menu_Break(*args, **kwargs) |
| 5986 | |
| 5987 | def InsertItem(*args, **kwargs): |
| 5988 | """InsertItem(size_t pos, MenuItem item) -> bool""" |
| 5989 | return _core.Menu_InsertItem(*args, **kwargs) |
| 5990 | |
| 5991 | def Insert(*args, **kwargs): |
| 5992 | """Insert(size_t pos, int itemid, wxString text, wxString help=wxPyEmptyString, |
| 5993 | wxItemKind kind=ITEM_NORMAL)""" |
| 5994 | return _core.Menu_Insert(*args, **kwargs) |
| 5995 | |
| 5996 | def InsertSeparator(*args, **kwargs): |
| 5997 | """InsertSeparator(size_t pos)""" |
| 5998 | return _core.Menu_InsertSeparator(*args, **kwargs) |
| 5999 | |
| 6000 | def InsertCheckItem(*args, **kwargs): |
| 6001 | """InsertCheckItem(size_t pos, int itemid, wxString text, wxString help=wxPyEmptyString)""" |
| 6002 | return _core.Menu_InsertCheckItem(*args, **kwargs) |
| 6003 | |
| 6004 | def InsertRadioItem(*args, **kwargs): |
| 6005 | """InsertRadioItem(size_t pos, int itemid, wxString text, wxString help=wxPyEmptyString)""" |
| 6006 | return _core.Menu_InsertRadioItem(*args, **kwargs) |
| 6007 | |
| 6008 | def InsertMenu(*args, **kwargs): |
| 6009 | """InsertMenu(size_t pos, int itemid, wxString text, Menu submenu, |
| 6010 | wxString help=wxPyEmptyString)""" |
| 6011 | return _core.Menu_InsertMenu(*args, **kwargs) |
| 6012 | |
| 6013 | def PrependItem(*args, **kwargs): |
| 6014 | """PrependItem(MenuItem item)""" |
| 6015 | return _core.Menu_PrependItem(*args, **kwargs) |
| 6016 | |
| 6017 | def Prepend(*args, **kwargs): |
| 6018 | """Prepend(int itemid, wxString text, wxString help=wxPyEmptyString, |
| 6019 | wxItemKind kind=ITEM_NORMAL)""" |
| 6020 | return _core.Menu_Prepend(*args, **kwargs) |
| 6021 | |
| 6022 | def PrependSeparator(*args, **kwargs): |
| 6023 | """PrependSeparator()""" |
| 6024 | return _core.Menu_PrependSeparator(*args, **kwargs) |
| 6025 | |
| 6026 | def PrependCheckItem(*args, **kwargs): |
| 6027 | """PrependCheckItem(int itemid, wxString text, wxString help=wxPyEmptyString)""" |
| 6028 | return _core.Menu_PrependCheckItem(*args, **kwargs) |
| 6029 | |
| 6030 | def PrependRadioItem(*args, **kwargs): |
| 6031 | """PrependRadioItem(int itemid, wxString text, wxString help=wxPyEmptyString)""" |
| 6032 | return _core.Menu_PrependRadioItem(*args, **kwargs) |
| 6033 | |
| 6034 | def PrependMenu(*args, **kwargs): |
| 6035 | """PrependMenu(int itemid, wxString text, Menu submenu, wxString help=wxPyEmptyString)""" |
| 6036 | return _core.Menu_PrependMenu(*args, **kwargs) |
| 6037 | |
| 6038 | def Remove(*args, **kwargs): |
| 6039 | """Remove(int itemid) -> MenuItem""" |
| 6040 | return _core.Menu_Remove(*args, **kwargs) |
| 6041 | |
| 6042 | def RemoveItem(*args, **kwargs): |
| 6043 | """RemoveItem(MenuItem item) -> MenuItem""" |
| 6044 | return _core.Menu_RemoveItem(*args, **kwargs) |
| 6045 | |
| 6046 | def Delete(*args, **kwargs): |
| 6047 | """Delete(int itemid) -> bool""" |
| 6048 | return _core.Menu_Delete(*args, **kwargs) |
| 6049 | |
| 6050 | def DeleteItem(*args, **kwargs): |
| 6051 | """DeleteItem(MenuItem item) -> bool""" |
| 6052 | return _core.Menu_DeleteItem(*args, **kwargs) |
| 6053 | |
| 6054 | def Destroy(*args, **kwargs): |
| 6055 | """Destroy() |
| 6056 | |
| 6057 | Deletes the C++ object this Python object is a proxy for.""" |
| 6058 | return _core.Menu_Destroy(*args, **kwargs) |
| 6059 | |
| 6060 | def DestroyId(*args, **kwargs): |
| 6061 | """DestroyId(int itemid) -> bool |
| 6062 | |
| 6063 | Deletes the C++ object this Python object is a proxy for.""" |
| 6064 | return _core.Menu_DestroyId(*args, **kwargs) |
| 6065 | |
| 6066 | def DestroyItem(*args, **kwargs): |
| 6067 | """DestroyItem(MenuItem item) -> bool |
| 6068 | |
| 6069 | Deletes the C++ object this Python object is a proxy for.""" |
| 6070 | return _core.Menu_DestroyItem(*args, **kwargs) |
| 6071 | |
| 6072 | def GetMenuItemCount(*args, **kwargs): |
| 6073 | """GetMenuItemCount() -> size_t""" |
| 6074 | return _core.Menu_GetMenuItemCount(*args, **kwargs) |
| 6075 | |
| 6076 | def GetMenuItems(*args, **kwargs): |
| 6077 | """GetMenuItems() -> PyObject""" |
| 6078 | return _core.Menu_GetMenuItems(*args, **kwargs) |
| 6079 | |
| 6080 | def FindItem(*args, **kwargs): |
| 6081 | """FindItem(wxString item) -> int""" |
| 6082 | return _core.Menu_FindItem(*args, **kwargs) |
| 6083 | |
| 6084 | def FindItemById(*args, **kwargs): |
| 6085 | """FindItemById(int itemid) -> MenuItem""" |
| 6086 | return _core.Menu_FindItemById(*args, **kwargs) |
| 6087 | |
| 6088 | def FindItemByPosition(*args, **kwargs): |
| 6089 | """FindItemByPosition(size_t position) -> MenuItem""" |
| 6090 | return _core.Menu_FindItemByPosition(*args, **kwargs) |
| 6091 | |
| 6092 | def Enable(*args, **kwargs): |
| 6093 | """Enable(int itemid, bool enable)""" |
| 6094 | return _core.Menu_Enable(*args, **kwargs) |
| 6095 | |
| 6096 | def IsEnabled(*args, **kwargs): |
| 6097 | """IsEnabled(int itemid) -> bool""" |
| 6098 | return _core.Menu_IsEnabled(*args, **kwargs) |
| 6099 | |
| 6100 | def Check(*args, **kwargs): |
| 6101 | """Check(int itemid, bool check)""" |
| 6102 | return _core.Menu_Check(*args, **kwargs) |
| 6103 | |
| 6104 | def IsChecked(*args, **kwargs): |
| 6105 | """IsChecked(int itemid) -> bool""" |
| 6106 | return _core.Menu_IsChecked(*args, **kwargs) |
| 6107 | |
| 6108 | def SetLabel(*args, **kwargs): |
| 6109 | """SetLabel(int itemid, wxString label)""" |
| 6110 | return _core.Menu_SetLabel(*args, **kwargs) |
| 6111 | |
| 6112 | def GetLabel(*args, **kwargs): |
| 6113 | """GetLabel(int itemid) -> wxString""" |
| 6114 | return _core.Menu_GetLabel(*args, **kwargs) |
| 6115 | |
| 6116 | def SetHelpString(*args, **kwargs): |
| 6117 | """SetHelpString(int itemid, wxString helpString)""" |
| 6118 | return _core.Menu_SetHelpString(*args, **kwargs) |
| 6119 | |
| 6120 | def GetHelpString(*args, **kwargs): |
| 6121 | """GetHelpString(int itemid) -> wxString""" |
| 6122 | return _core.Menu_GetHelpString(*args, **kwargs) |
| 6123 | |
| 6124 | def SetTitle(*args, **kwargs): |
| 6125 | """SetTitle(wxString title)""" |
| 6126 | return _core.Menu_SetTitle(*args, **kwargs) |
| 6127 | |
| 6128 | def GetTitle(*args, **kwargs): |
| 6129 | """GetTitle() -> wxString""" |
| 6130 | return _core.Menu_GetTitle(*args, **kwargs) |
| 6131 | |
| 6132 | def SetEventHandler(*args, **kwargs): |
| 6133 | """SetEventHandler(EvtHandler handler)""" |
| 6134 | return _core.Menu_SetEventHandler(*args, **kwargs) |
| 6135 | |
| 6136 | def GetEventHandler(*args, **kwargs): |
| 6137 | """GetEventHandler() -> EvtHandler""" |
| 6138 | return _core.Menu_GetEventHandler(*args, **kwargs) |
| 6139 | |
| 6140 | def SetInvokingWindow(*args, **kwargs): |
| 6141 | """SetInvokingWindow(Window win)""" |
| 6142 | return _core.Menu_SetInvokingWindow(*args, **kwargs) |
| 6143 | |
| 6144 | def GetInvokingWindow(*args, **kwargs): |
| 6145 | """GetInvokingWindow() -> Window""" |
| 6146 | return _core.Menu_GetInvokingWindow(*args, **kwargs) |
| 6147 | |
| 6148 | def GetStyle(*args, **kwargs): |
| 6149 | """GetStyle() -> long""" |
| 6150 | return _core.Menu_GetStyle(*args, **kwargs) |
| 6151 | |
| 6152 | def UpdateUI(*args, **kwargs): |
| 6153 | """UpdateUI(EvtHandler source=None)""" |
| 6154 | return _core.Menu_UpdateUI(*args, **kwargs) |
| 6155 | |
| 6156 | def GetMenuBar(*args, **kwargs): |
| 6157 | """GetMenuBar() -> MenuBar""" |
| 6158 | return _core.Menu_GetMenuBar(*args, **kwargs) |
| 6159 | |
| 6160 | def Attach(*args, **kwargs): |
| 6161 | """Attach(wxMenuBarBase menubar)""" |
| 6162 | return _core.Menu_Attach(*args, **kwargs) |
| 6163 | |
| 6164 | def Detach(*args, **kwargs): |
| 6165 | """Detach()""" |
| 6166 | return _core.Menu_Detach(*args, **kwargs) |
| 6167 | |
| 6168 | def IsAttached(*args, **kwargs): |
| 6169 | """IsAttached() -> bool""" |
| 6170 | return _core.Menu_IsAttached(*args, **kwargs) |
| 6171 | |
| 6172 | def SetParent(*args, **kwargs): |
| 6173 | """SetParent(Menu parent)""" |
| 6174 | return _core.Menu_SetParent(*args, **kwargs) |
| 6175 | |
| 6176 | def GetParent(*args, **kwargs): |
| 6177 | """GetParent() -> Menu""" |
| 6178 | return _core.Menu_GetParent(*args, **kwargs) |
| 6179 | |
| 6180 | |
| 6181 | class MenuPtr(Menu): |
| 6182 | def __init__(self, this): |
| 6183 | self.this = this |
| 6184 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6185 | self.__class__ = Menu |
| 6186 | _core.Menu_swigregister(MenuPtr) |
| 6187 | DefaultValidator = cvar.DefaultValidator |
| 6188 | |
| 6189 | #--------------------------------------------------------------------------- |
| 6190 | |
| 6191 | class MenuBar(Window): |
| 6192 | """""" |
| 6193 | def __repr__(self): |
| 6194 | return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6195 | def __init__(self, *args, **kwargs): |
| 6196 | """__init__(long style=0) -> MenuBar""" |
| 6197 | newobj = _core.new_MenuBar(*args, **kwargs) |
| 6198 | self.this = newobj.this |
| 6199 | self.thisown = 1 |
| 6200 | del newobj.thisown |
| 6201 | self._setOORInfo(self) |
| 6202 | |
| 6203 | def Append(*args, **kwargs): |
| 6204 | """Append(Menu menu, wxString title) -> bool""" |
| 6205 | return _core.MenuBar_Append(*args, **kwargs) |
| 6206 | |
| 6207 | def Insert(*args, **kwargs): |
| 6208 | """Insert(size_t pos, Menu menu, wxString title) -> bool""" |
| 6209 | return _core.MenuBar_Insert(*args, **kwargs) |
| 6210 | |
| 6211 | def GetMenuCount(*args, **kwargs): |
| 6212 | """GetMenuCount() -> size_t""" |
| 6213 | return _core.MenuBar_GetMenuCount(*args, **kwargs) |
| 6214 | |
| 6215 | def GetMenu(*args, **kwargs): |
| 6216 | """GetMenu(size_t pos) -> Menu""" |
| 6217 | return _core.MenuBar_GetMenu(*args, **kwargs) |
| 6218 | |
| 6219 | def Replace(*args, **kwargs): |
| 6220 | """Replace(size_t pos, Menu menu, wxString title) -> Menu""" |
| 6221 | return _core.MenuBar_Replace(*args, **kwargs) |
| 6222 | |
| 6223 | def Remove(*args, **kwargs): |
| 6224 | """Remove(size_t pos) -> Menu""" |
| 6225 | return _core.MenuBar_Remove(*args, **kwargs) |
| 6226 | |
| 6227 | def EnableTop(*args, **kwargs): |
| 6228 | """EnableTop(size_t pos, bool enable)""" |
| 6229 | return _core.MenuBar_EnableTop(*args, **kwargs) |
| 6230 | |
| 6231 | def IsEnabledTop(*args, **kwargs): |
| 6232 | """IsEnabledTop(size_t pos) -> bool""" |
| 6233 | return _core.MenuBar_IsEnabledTop(*args, **kwargs) |
| 6234 | |
| 6235 | def SetLabelTop(*args, **kwargs): |
| 6236 | """SetLabelTop(size_t pos, wxString label)""" |
| 6237 | return _core.MenuBar_SetLabelTop(*args, **kwargs) |
| 6238 | |
| 6239 | def GetLabelTop(*args, **kwargs): |
| 6240 | """GetLabelTop(size_t pos) -> wxString""" |
| 6241 | return _core.MenuBar_GetLabelTop(*args, **kwargs) |
| 6242 | |
| 6243 | def FindMenuItem(*args, **kwargs): |
| 6244 | """FindMenuItem(wxString menu, wxString item) -> int""" |
| 6245 | return _core.MenuBar_FindMenuItem(*args, **kwargs) |
| 6246 | |
| 6247 | def FindItemById(*args, **kwargs): |
| 6248 | """FindItemById(int itemid) -> MenuItem""" |
| 6249 | return _core.MenuBar_FindItemById(*args, **kwargs) |
| 6250 | |
| 6251 | def FindMenu(*args, **kwargs): |
| 6252 | """FindMenu(wxString title) -> int""" |
| 6253 | return _core.MenuBar_FindMenu(*args, **kwargs) |
| 6254 | |
| 6255 | def Enable(*args, **kwargs): |
| 6256 | """Enable(int itemid, bool enable)""" |
| 6257 | return _core.MenuBar_Enable(*args, **kwargs) |
| 6258 | |
| 6259 | def Check(*args, **kwargs): |
| 6260 | """Check(int itemid, bool check)""" |
| 6261 | return _core.MenuBar_Check(*args, **kwargs) |
| 6262 | |
| 6263 | def IsChecked(*args, **kwargs): |
| 6264 | """IsChecked(int itemid) -> bool""" |
| 6265 | return _core.MenuBar_IsChecked(*args, **kwargs) |
| 6266 | |
| 6267 | def IsEnabled(*args, **kwargs): |
| 6268 | """IsEnabled(int itemid) -> bool""" |
| 6269 | return _core.MenuBar_IsEnabled(*args, **kwargs) |
| 6270 | |
| 6271 | def SetLabel(*args, **kwargs): |
| 6272 | """SetLabel(int itemid, wxString label)""" |
| 6273 | return _core.MenuBar_SetLabel(*args, **kwargs) |
| 6274 | |
| 6275 | def GetLabel(*args, **kwargs): |
| 6276 | """GetLabel(int itemid) -> wxString""" |
| 6277 | return _core.MenuBar_GetLabel(*args, **kwargs) |
| 6278 | |
| 6279 | def SetHelpString(*args, **kwargs): |
| 6280 | """SetHelpString(int itemid, wxString helpString)""" |
| 6281 | return _core.MenuBar_SetHelpString(*args, **kwargs) |
| 6282 | |
| 6283 | def GetHelpString(*args, **kwargs): |
| 6284 | """GetHelpString(int itemid) -> wxString""" |
| 6285 | return _core.MenuBar_GetHelpString(*args, **kwargs) |
| 6286 | |
| 6287 | def GetFrame(*args, **kwargs): |
| 6288 | """GetFrame() -> wxFrame""" |
| 6289 | return _core.MenuBar_GetFrame(*args, **kwargs) |
| 6290 | |
| 6291 | def IsAttached(*args, **kwargs): |
| 6292 | """IsAttached() -> bool""" |
| 6293 | return _core.MenuBar_IsAttached(*args, **kwargs) |
| 6294 | |
| 6295 | def Attach(*args, **kwargs): |
| 6296 | """Attach(wxFrame frame)""" |
| 6297 | return _core.MenuBar_Attach(*args, **kwargs) |
| 6298 | |
| 6299 | def Detach(*args, **kwargs): |
| 6300 | """Detach()""" |
| 6301 | return _core.MenuBar_Detach(*args, **kwargs) |
| 6302 | |
| 6303 | |
| 6304 | class MenuBarPtr(MenuBar): |
| 6305 | def __init__(self, this): |
| 6306 | self.this = this |
| 6307 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6308 | self.__class__ = MenuBar |
| 6309 | _core.MenuBar_swigregister(MenuBarPtr) |
| 6310 | |
| 6311 | #--------------------------------------------------------------------------- |
| 6312 | |
| 6313 | class MenuItem(Object): |
| 6314 | """""" |
| 6315 | def __repr__(self): |
| 6316 | return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6317 | def __init__(self, *args, **kwargs): |
| 6318 | """__init__(Menu parentMenu=None, int id=ID_SEPARATOR, wxString text=wxPyEmptyString, |
| 6319 | wxString help=wxPyEmptyString, |
| 6320 | wxItemKind kind=ITEM_NORMAL, Menu subMenu=None) -> MenuItem""" |
| 6321 | newobj = _core.new_MenuItem(*args, **kwargs) |
| 6322 | self.this = newobj.this |
| 6323 | self.thisown = 1 |
| 6324 | del newobj.thisown |
| 6325 | def GetMenu(*args, **kwargs): |
| 6326 | """GetMenu() -> Menu""" |
| 6327 | return _core.MenuItem_GetMenu(*args, **kwargs) |
| 6328 | |
| 6329 | def SetMenu(*args, **kwargs): |
| 6330 | """SetMenu(Menu menu)""" |
| 6331 | return _core.MenuItem_SetMenu(*args, **kwargs) |
| 6332 | |
| 6333 | def SetId(*args, **kwargs): |
| 6334 | """SetId(int itemid)""" |
| 6335 | return _core.MenuItem_SetId(*args, **kwargs) |
| 6336 | |
| 6337 | def GetId(*args, **kwargs): |
| 6338 | """GetId() -> int""" |
| 6339 | return _core.MenuItem_GetId(*args, **kwargs) |
| 6340 | |
| 6341 | def IsSeparator(*args, **kwargs): |
| 6342 | """IsSeparator() -> bool""" |
| 6343 | return _core.MenuItem_IsSeparator(*args, **kwargs) |
| 6344 | |
| 6345 | def SetText(*args, **kwargs): |
| 6346 | """SetText(wxString str)""" |
| 6347 | return _core.MenuItem_SetText(*args, **kwargs) |
| 6348 | |
| 6349 | def GetLabel(*args, **kwargs): |
| 6350 | """GetLabel() -> wxString""" |
| 6351 | return _core.MenuItem_GetLabel(*args, **kwargs) |
| 6352 | |
| 6353 | def GetText(*args, **kwargs): |
| 6354 | """GetText() -> wxString""" |
| 6355 | return _core.MenuItem_GetText(*args, **kwargs) |
| 6356 | |
| 6357 | def GetLabelFromText(*args, **kwargs): |
| 6358 | """MenuItem.GetLabelFromText(wxString text) -> wxString""" |
| 6359 | return _core.MenuItem_GetLabelFromText(*args, **kwargs) |
| 6360 | |
| 6361 | GetLabelFromText = staticmethod(GetLabelFromText) |
| 6362 | def GetKind(*args, **kwargs): |
| 6363 | """GetKind() -> wxItemKind""" |
| 6364 | return _core.MenuItem_GetKind(*args, **kwargs) |
| 6365 | |
| 6366 | def SetCheckable(*args, **kwargs): |
| 6367 | """SetCheckable(bool checkable)""" |
| 6368 | return _core.MenuItem_SetCheckable(*args, **kwargs) |
| 6369 | |
| 6370 | def IsCheckable(*args, **kwargs): |
| 6371 | """IsCheckable() -> bool""" |
| 6372 | return _core.MenuItem_IsCheckable(*args, **kwargs) |
| 6373 | |
| 6374 | def IsSubMenu(*args, **kwargs): |
| 6375 | """IsSubMenu() -> bool""" |
| 6376 | return _core.MenuItem_IsSubMenu(*args, **kwargs) |
| 6377 | |
| 6378 | def SetSubMenu(*args, **kwargs): |
| 6379 | """SetSubMenu(Menu menu)""" |
| 6380 | return _core.MenuItem_SetSubMenu(*args, **kwargs) |
| 6381 | |
| 6382 | def GetSubMenu(*args, **kwargs): |
| 6383 | """GetSubMenu() -> Menu""" |
| 6384 | return _core.MenuItem_GetSubMenu(*args, **kwargs) |
| 6385 | |
| 6386 | def Enable(*args, **kwargs): |
| 6387 | """Enable(bool enable=True)""" |
| 6388 | return _core.MenuItem_Enable(*args, **kwargs) |
| 6389 | |
| 6390 | def IsEnabled(*args, **kwargs): |
| 6391 | """IsEnabled() -> bool""" |
| 6392 | return _core.MenuItem_IsEnabled(*args, **kwargs) |
| 6393 | |
| 6394 | def Check(*args, **kwargs): |
| 6395 | """Check(bool check=True)""" |
| 6396 | return _core.MenuItem_Check(*args, **kwargs) |
| 6397 | |
| 6398 | def IsChecked(*args, **kwargs): |
| 6399 | """IsChecked() -> bool""" |
| 6400 | return _core.MenuItem_IsChecked(*args, **kwargs) |
| 6401 | |
| 6402 | def Toggle(*args, **kwargs): |
| 6403 | """Toggle()""" |
| 6404 | return _core.MenuItem_Toggle(*args, **kwargs) |
| 6405 | |
| 6406 | def SetHelp(*args, **kwargs): |
| 6407 | """SetHelp(wxString str)""" |
| 6408 | return _core.MenuItem_SetHelp(*args, **kwargs) |
| 6409 | |
| 6410 | def GetHelp(*args, **kwargs): |
| 6411 | """GetHelp() -> wxString""" |
| 6412 | return _core.MenuItem_GetHelp(*args, **kwargs) |
| 6413 | |
| 6414 | def GetAccel(*args, **kwargs): |
| 6415 | """GetAccel() -> wxAcceleratorEntry""" |
| 6416 | return _core.MenuItem_GetAccel(*args, **kwargs) |
| 6417 | |
| 6418 | def SetAccel(*args, **kwargs): |
| 6419 | """SetAccel(wxAcceleratorEntry accel)""" |
| 6420 | return _core.MenuItem_SetAccel(*args, **kwargs) |
| 6421 | |
| 6422 | def GetDefaultMarginWidth(*args, **kwargs): |
| 6423 | """MenuItem.GetDefaultMarginWidth() -> int""" |
| 6424 | return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) |
| 6425 | |
| 6426 | GetDefaultMarginWidth = staticmethod(GetDefaultMarginWidth) |
| 6427 | def SetBitmap(*args, **kwargs): |
| 6428 | """SetBitmap(wxBitmap bitmap)""" |
| 6429 | return _core.MenuItem_SetBitmap(*args, **kwargs) |
| 6430 | |
| 6431 | def GetBitmap(*args, **kwargs): |
| 6432 | """GetBitmap() -> wxBitmap""" |
| 6433 | return _core.MenuItem_GetBitmap(*args, **kwargs) |
| 6434 | |
| 6435 | |
| 6436 | class MenuItemPtr(MenuItem): |
| 6437 | def __init__(self, this): |
| 6438 | self.this = this |
| 6439 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6440 | self.__class__ = MenuItem |
| 6441 | _core.MenuItem_swigregister(MenuItemPtr) |
| 6442 | |
| 6443 | def MenuItem_GetLabelFromText(*args, **kwargs): |
| 6444 | """MenuItem_GetLabelFromText(wxString text) -> wxString""" |
| 6445 | return _core.MenuItem_GetLabelFromText(*args, **kwargs) |
| 6446 | |
| 6447 | def MenuItem_GetDefaultMarginWidth(*args, **kwargs): |
| 6448 | """MenuItem_GetDefaultMarginWidth() -> int""" |
| 6449 | return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) |
| 6450 | |
| 6451 | #--------------------------------------------------------------------------- |
| 6452 | |
| 6453 | class Control(Window): |
| 6454 | """""" |
| 6455 | def __repr__(self): |
| 6456 | return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6457 | def __init__(self, *args, **kwargs): |
| 6458 | """__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
| 6459 | long style=0, Validator validator=DefaultValidator, |
| 6460 | wxString name=wxPyControlNameStr) -> Control""" |
| 6461 | newobj = _core.new_Control(*args, **kwargs) |
| 6462 | self.this = newobj.this |
| 6463 | self.thisown = 1 |
| 6464 | del newobj.thisown |
| 6465 | self._setOORInfo(self) |
| 6466 | |
| 6467 | def Create(*args, **kwargs): |
| 6468 | """Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, |
| 6469 | long style=0, Validator validator=DefaultValidator, |
| 6470 | wxString name=wxPyControlNameStr) -> bool""" |
| 6471 | return _core.Control_Create(*args, **kwargs) |
| 6472 | |
| 6473 | def Command(*args, **kwargs): |
| 6474 | """Command(CommandEvent event)""" |
| 6475 | return _core.Control_Command(*args, **kwargs) |
| 6476 | |
| 6477 | def GetLabel(*args, **kwargs): |
| 6478 | """GetLabel() -> wxString""" |
| 6479 | return _core.Control_GetLabel(*args, **kwargs) |
| 6480 | |
| 6481 | def SetLabel(*args, **kwargs): |
| 6482 | """SetLabel(wxString label)""" |
| 6483 | return _core.Control_SetLabel(*args, **kwargs) |
| 6484 | |
| 6485 | |
| 6486 | class ControlPtr(Control): |
| 6487 | def __init__(self, this): |
| 6488 | self.this = this |
| 6489 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6490 | self.__class__ = Control |
| 6491 | _core.Control_swigregister(ControlPtr) |
| 6492 | |
| 6493 | def PreControl(*args, **kwargs): |
| 6494 | """PreControl() -> Control""" |
| 6495 | val = _core.new_PreControl(*args, **kwargs) |
| 6496 | val.thisown = 1 |
| 6497 | return val |
| 6498 | |
| 6499 | #--------------------------------------------------------------------------- |
| 6500 | |
| 6501 | class ItemContainer(object): |
| 6502 | """""" |
| 6503 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 6504 | def __repr__(self): |
| 6505 | return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6506 | def Append(*args, **kwargs): |
| 6507 | """Append(wxString item, PyObject clientData=None) -> int""" |
| 6508 | return _core.ItemContainer_Append(*args, **kwargs) |
| 6509 | |
| 6510 | def AppendItems(*args, **kwargs): |
| 6511 | """AppendItems(wxArrayString strings)""" |
| 6512 | return _core.ItemContainer_AppendItems(*args, **kwargs) |
| 6513 | |
| 6514 | def Insert(*args, **kwargs): |
| 6515 | """Insert(wxString item, int pos, PyObject clientData=None) -> int""" |
| 6516 | return _core.ItemContainer_Insert(*args, **kwargs) |
| 6517 | |
| 6518 | def Clear(*args, **kwargs): |
| 6519 | """Clear()""" |
| 6520 | return _core.ItemContainer_Clear(*args, **kwargs) |
| 6521 | |
| 6522 | def Delete(*args, **kwargs): |
| 6523 | """Delete(int n)""" |
| 6524 | return _core.ItemContainer_Delete(*args, **kwargs) |
| 6525 | |
| 6526 | def GetCount(*args, **kwargs): |
| 6527 | """GetCount() -> int""" |
| 6528 | return _core.ItemContainer_GetCount(*args, **kwargs) |
| 6529 | |
| 6530 | def IsEmpty(*args, **kwargs): |
| 6531 | """IsEmpty() -> bool""" |
| 6532 | return _core.ItemContainer_IsEmpty(*args, **kwargs) |
| 6533 | |
| 6534 | def GetString(*args, **kwargs): |
| 6535 | """GetString(int n) -> wxString""" |
| 6536 | return _core.ItemContainer_GetString(*args, **kwargs) |
| 6537 | |
| 6538 | def GetStrings(*args, **kwargs): |
| 6539 | """GetStrings() -> wxArrayString""" |
| 6540 | return _core.ItemContainer_GetStrings(*args, **kwargs) |
| 6541 | |
| 6542 | def SetString(*args, **kwargs): |
| 6543 | """SetString(int n, wxString s)""" |
| 6544 | return _core.ItemContainer_SetString(*args, **kwargs) |
| 6545 | |
| 6546 | def FindString(*args, **kwargs): |
| 6547 | """FindString(wxString s) -> int""" |
| 6548 | return _core.ItemContainer_FindString(*args, **kwargs) |
| 6549 | |
| 6550 | def Select(*args, **kwargs): |
| 6551 | """Select(int n)""" |
| 6552 | return _core.ItemContainer_Select(*args, **kwargs) |
| 6553 | |
| 6554 | def GetSelection(*args, **kwargs): |
| 6555 | """GetSelection() -> int""" |
| 6556 | return _core.ItemContainer_GetSelection(*args, **kwargs) |
| 6557 | |
| 6558 | def GetStringSelection(*args, **kwargs): |
| 6559 | """GetStringSelection() -> wxString""" |
| 6560 | return _core.ItemContainer_GetStringSelection(*args, **kwargs) |
| 6561 | |
| 6562 | def GetClientData(*args, **kwargs): |
| 6563 | """GetClientData(int n) -> PyObject""" |
| 6564 | return _core.ItemContainer_GetClientData(*args, **kwargs) |
| 6565 | |
| 6566 | def SetClientData(*args, **kwargs): |
| 6567 | """SetClientData(int n, PyObject clientData)""" |
| 6568 | return _core.ItemContainer_SetClientData(*args, **kwargs) |
| 6569 | |
| 6570 | |
| 6571 | class ItemContainerPtr(ItemContainer): |
| 6572 | def __init__(self, this): |
| 6573 | self.this = this |
| 6574 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6575 | self.__class__ = ItemContainer |
| 6576 | _core.ItemContainer_swigregister(ItemContainerPtr) |
| 6577 | |
| 6578 | #--------------------------------------------------------------------------- |
| 6579 | |
| 6580 | class ControlWithItems(Control,ItemContainer): |
| 6581 | """""" |
| 6582 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 6583 | def __repr__(self): |
| 6584 | return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6585 | |
| 6586 | class ControlWithItemsPtr(ControlWithItems): |
| 6587 | def __init__(self, this): |
| 6588 | self.this = this |
| 6589 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6590 | self.__class__ = ControlWithItems |
| 6591 | _core.ControlWithItems_swigregister(ControlWithItemsPtr) |
| 6592 | |
| 6593 | #--------------------------------------------------------------------------- |
| 6594 | |
| 6595 | class SizerItem(Object): |
| 6596 | """""" |
| 6597 | def __repr__(self): |
| 6598 | return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6599 | def __init__(self, *args, **kwargs): |
| 6600 | """__init__() -> SizerItem""" |
| 6601 | newobj = _core.new_SizerItem(*args, **kwargs) |
| 6602 | self.this = newobj.this |
| 6603 | self.thisown = 1 |
| 6604 | del newobj.thisown |
| 6605 | def DeleteWindows(*args, **kwargs): |
| 6606 | """DeleteWindows()""" |
| 6607 | return _core.SizerItem_DeleteWindows(*args, **kwargs) |
| 6608 | |
| 6609 | def DetachSizer(*args, **kwargs): |
| 6610 | """DetachSizer()""" |
| 6611 | return _core.SizerItem_DetachSizer(*args, **kwargs) |
| 6612 | |
| 6613 | def GetSize(*args, **kwargs): |
| 6614 | """GetSize() -> Size""" |
| 6615 | return _core.SizerItem_GetSize(*args, **kwargs) |
| 6616 | |
| 6617 | def CalcMin(*args, **kwargs): |
| 6618 | """CalcMin() -> Size""" |
| 6619 | return _core.SizerItem_CalcMin(*args, **kwargs) |
| 6620 | |
| 6621 | def SetDimension(*args, **kwargs): |
| 6622 | """SetDimension(Point pos, Size size)""" |
| 6623 | return _core.SizerItem_SetDimension(*args, **kwargs) |
| 6624 | |
| 6625 | def GetMinSize(*args, **kwargs): |
| 6626 | """GetMinSize() -> Size""" |
| 6627 | return _core.SizerItem_GetMinSize(*args, **kwargs) |
| 6628 | |
| 6629 | def SetInitSize(*args, **kwargs): |
| 6630 | """SetInitSize(int x, int y)""" |
| 6631 | return _core.SizerItem_SetInitSize(*args, **kwargs) |
| 6632 | |
| 6633 | def SetRatioWH(*args, **kwargs): |
| 6634 | """SetRatioWH(int width, int height)""" |
| 6635 | return _core.SizerItem_SetRatioWH(*args, **kwargs) |
| 6636 | |
| 6637 | def SetRatioSize(*args, **kwargs): |
| 6638 | """SetRatioSize(Size size)""" |
| 6639 | return _core.SizerItem_SetRatioSize(*args, **kwargs) |
| 6640 | |
| 6641 | def SetRatio(*args, **kwargs): |
| 6642 | """SetRatio(float ratio)""" |
| 6643 | return _core.SizerItem_SetRatio(*args, **kwargs) |
| 6644 | |
| 6645 | def GetRatio(*args, **kwargs): |
| 6646 | """GetRatio() -> float""" |
| 6647 | return _core.SizerItem_GetRatio(*args, **kwargs) |
| 6648 | |
| 6649 | def IsWindow(*args, **kwargs): |
| 6650 | """IsWindow() -> bool""" |
| 6651 | return _core.SizerItem_IsWindow(*args, **kwargs) |
| 6652 | |
| 6653 | def IsSizer(*args, **kwargs): |
| 6654 | """IsSizer() -> bool""" |
| 6655 | return _core.SizerItem_IsSizer(*args, **kwargs) |
| 6656 | |
| 6657 | def IsSpacer(*args, **kwargs): |
| 6658 | """IsSpacer() -> bool""" |
| 6659 | return _core.SizerItem_IsSpacer(*args, **kwargs) |
| 6660 | |
| 6661 | def SetProportion(*args, **kwargs): |
| 6662 | """SetProportion(int proportion)""" |
| 6663 | return _core.SizerItem_SetProportion(*args, **kwargs) |
| 6664 | |
| 6665 | def GetProportion(*args, **kwargs): |
| 6666 | """GetProportion() -> int""" |
| 6667 | return _core.SizerItem_GetProportion(*args, **kwargs) |
| 6668 | |
| 6669 | def SetFlag(*args, **kwargs): |
| 6670 | """SetFlag(int flag)""" |
| 6671 | return _core.SizerItem_SetFlag(*args, **kwargs) |
| 6672 | |
| 6673 | def GetFlag(*args, **kwargs): |
| 6674 | """GetFlag() -> int""" |
| 6675 | return _core.SizerItem_GetFlag(*args, **kwargs) |
| 6676 | |
| 6677 | def SetBorder(*args, **kwargs): |
| 6678 | """SetBorder(int border)""" |
| 6679 | return _core.SizerItem_SetBorder(*args, **kwargs) |
| 6680 | |
| 6681 | def GetBorder(*args, **kwargs): |
| 6682 | """GetBorder() -> int""" |
| 6683 | return _core.SizerItem_GetBorder(*args, **kwargs) |
| 6684 | |
| 6685 | def GetWindow(*args, **kwargs): |
| 6686 | """GetWindow() -> Window""" |
| 6687 | return _core.SizerItem_GetWindow(*args, **kwargs) |
| 6688 | |
| 6689 | def SetWindow(*args, **kwargs): |
| 6690 | """SetWindow(Window window)""" |
| 6691 | return _core.SizerItem_SetWindow(*args, **kwargs) |
| 6692 | |
| 6693 | def GetSizer(*args, **kwargs): |
| 6694 | """GetSizer() -> Sizer""" |
| 6695 | return _core.SizerItem_GetSizer(*args, **kwargs) |
| 6696 | |
| 6697 | def SetSizer(*args, **kwargs): |
| 6698 | """SetSizer(Sizer sizer)""" |
| 6699 | return _core.SizerItem_SetSizer(*args, **kwargs) |
| 6700 | |
| 6701 | def GetSpacer(*args, **kwargs): |
| 6702 | """GetSpacer() -> Size""" |
| 6703 | return _core.SizerItem_GetSpacer(*args, **kwargs) |
| 6704 | |
| 6705 | def SetSpacer(*args, **kwargs): |
| 6706 | """SetSpacer(Size size)""" |
| 6707 | return _core.SizerItem_SetSpacer(*args, **kwargs) |
| 6708 | |
| 6709 | def Show(*args, **kwargs): |
| 6710 | """Show(bool show)""" |
| 6711 | return _core.SizerItem_Show(*args, **kwargs) |
| 6712 | |
| 6713 | def IsShown(*args, **kwargs): |
| 6714 | """IsShown() -> bool""" |
| 6715 | return _core.SizerItem_IsShown(*args, **kwargs) |
| 6716 | |
| 6717 | def GetPosition(*args, **kwargs): |
| 6718 | """GetPosition() -> Point""" |
| 6719 | return _core.SizerItem_GetPosition(*args, **kwargs) |
| 6720 | |
| 6721 | def GetUserData(*args, **kwargs): |
| 6722 | """GetUserData() -> PyObject""" |
| 6723 | return _core.SizerItem_GetUserData(*args, **kwargs) |
| 6724 | |
| 6725 | |
| 6726 | class SizerItemPtr(SizerItem): |
| 6727 | def __init__(self, this): |
| 6728 | self.this = this |
| 6729 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6730 | self.__class__ = SizerItem |
| 6731 | _core.SizerItem_swigregister(SizerItemPtr) |
| 6732 | |
| 6733 | def SizerItemSpacer(*args, **kwargs): |
| 6734 | """SizerItemSpacer(int width, int height, int proportion, int flag, int border, |
| 6735 | Object userData) -> SizerItem""" |
| 6736 | val = _core.new_SizerItemSpacer(*args, **kwargs) |
| 6737 | val.thisown = 1 |
| 6738 | return val |
| 6739 | |
| 6740 | def SizerItemWindow(*args, **kwargs): |
| 6741 | """SizerItemWindow(Window window, int proportion, int flag, int border, |
| 6742 | Object userData) -> SizerItem""" |
| 6743 | val = _core.new_SizerItemWindow(*args, **kwargs) |
| 6744 | val.thisown = 1 |
| 6745 | return val |
| 6746 | |
| 6747 | def SizerItemSizer(*args, **kwargs): |
| 6748 | """SizerItemSizer(Sizer sizer, int proportion, int flag, int border, |
| 6749 | Object userData) -> SizerItem""" |
| 6750 | val = _core.new_SizerItemSizer(*args, **kwargs) |
| 6751 | val.thisown = 1 |
| 6752 | return val |
| 6753 | |
| 6754 | class Sizer(Object): |
| 6755 | """""" |
| 6756 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 6757 | def __repr__(self): |
| 6758 | return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6759 | def _setOORInfo(*args, **kwargs): |
| 6760 | """_setOORInfo(PyObject _self)""" |
| 6761 | return _core.Sizer__setOORInfo(*args, **kwargs) |
| 6762 | |
| 6763 | def Add(*args, **kwargs): |
| 6764 | """Add(PyObject item, int proportion=0, int flag=0, int border=0, |
| 6765 | PyObject userData=None)""" |
| 6766 | return _core.Sizer_Add(*args, **kwargs) |
| 6767 | |
| 6768 | def Insert(*args, **kwargs): |
| 6769 | """Insert(int before, PyObject item, int proportion=0, int flag=0, |
| 6770 | int border=0, PyObject userData=None)""" |
| 6771 | return _core.Sizer_Insert(*args, **kwargs) |
| 6772 | |
| 6773 | def Prepend(*args, **kwargs): |
| 6774 | """Prepend(PyObject item, int proportion=0, int flag=0, int border=0, |
| 6775 | PyObject userData=None)""" |
| 6776 | return _core.Sizer_Prepend(*args, **kwargs) |
| 6777 | |
| 6778 | def Remove(*args, **kwargs): |
| 6779 | """Remove(PyObject item) -> bool""" |
| 6780 | return _core.Sizer_Remove(*args, **kwargs) |
| 6781 | |
| 6782 | def _SetItemMinSize(*args, **kwargs): |
| 6783 | """_SetItemMinSize(PyObject item, Size size)""" |
| 6784 | return _core.Sizer__SetItemMinSize(*args, **kwargs) |
| 6785 | |
| 6786 | def AddItem(*args, **kwargs): |
| 6787 | """AddItem(SizerItem item)""" |
| 6788 | return _core.Sizer_AddItem(*args, **kwargs) |
| 6789 | |
| 6790 | def InsertItem(*args, **kwargs): |
| 6791 | """InsertItem(size_t index, SizerItem item)""" |
| 6792 | return _core.Sizer_InsertItem(*args, **kwargs) |
| 6793 | |
| 6794 | def PrependItem(*args, **kwargs): |
| 6795 | """PrependItem(SizerItem item)""" |
| 6796 | return _core.Sizer_PrependItem(*args, **kwargs) |
| 6797 | |
| 6798 | def AddMany(self, widgets): |
| 6799 | for childinfo in widgets: |
| 6800 | if type(childinfo) != type(()) or (len(childinfo) == 2 and type(childinfo[0]) == type(1)): |
| 6801 | childinfo = (childinfo, ) |
| 6802 | self.Add(*childinfo) |
| 6803 | |
| 6804 | |
| 6805 | AddWindow = AddSizer = AddSpacer = Add |
| 6806 | PrependWindow = PrependSizer = PrependSpacer = Prepend |
| 6807 | InsertWindow = InsertSizer = InsertSpacer = Insert |
| 6808 | RemoveWindow = RemoveSizer = RemovePos = Remove |
| 6809 | |
| 6810 | |
| 6811 | def SetItemMinSize(self, item, *args): |
| 6812 | if len(args) == 2: |
| 6813 | return self._SetItemMinSize(item, args) |
| 6814 | else: |
| 6815 | return self._SetItemMinSize(item, args[0]) |
| 6816 | |
| 6817 | def SetDimension(*args, **kwargs): |
| 6818 | """SetDimension(int x, int y, int width, int height)""" |
| 6819 | return _core.Sizer_SetDimension(*args, **kwargs) |
| 6820 | |
| 6821 | def SetMinSize(*args, **kwargs): |
| 6822 | """SetMinSize(Size size)""" |
| 6823 | return _core.Sizer_SetMinSize(*args, **kwargs) |
| 6824 | |
| 6825 | def GetSize(*args, **kwargs): |
| 6826 | """GetSize() -> Size""" |
| 6827 | return _core.Sizer_GetSize(*args, **kwargs) |
| 6828 | |
| 6829 | def GetPosition(*args, **kwargs): |
| 6830 | """GetPosition() -> Point""" |
| 6831 | return _core.Sizer_GetPosition(*args, **kwargs) |
| 6832 | |
| 6833 | def GetMinSize(*args, **kwargs): |
| 6834 | """GetMinSize() -> Size""" |
| 6835 | return _core.Sizer_GetMinSize(*args, **kwargs) |
| 6836 | |
| 6837 | def GetSizeTuple(self): |
| 6838 | return self.GetSize().asTuple() |
| 6839 | def GetPositionTuple(self): |
| 6840 | return self.GetPosition().asTuple() |
| 6841 | def GetMinSizeTuple(self): |
| 6842 | return self.GetMinSize().asTuple() |
| 6843 | |
| 6844 | def RecalcSizes(*args, **kwargs): |
| 6845 | """RecalcSizes()""" |
| 6846 | return _core.Sizer_RecalcSizes(*args, **kwargs) |
| 6847 | |
| 6848 | def CalcMin(*args, **kwargs): |
| 6849 | """CalcMin() -> Size""" |
| 6850 | return _core.Sizer_CalcMin(*args, **kwargs) |
| 6851 | |
| 6852 | def Layout(*args, **kwargs): |
| 6853 | """Layout()""" |
| 6854 | return _core.Sizer_Layout(*args, **kwargs) |
| 6855 | |
| 6856 | def Fit(*args, **kwargs): |
| 6857 | """Fit(Window window) -> Size""" |
| 6858 | return _core.Sizer_Fit(*args, **kwargs) |
| 6859 | |
| 6860 | def FitInside(*args, **kwargs): |
| 6861 | """FitInside(Window window)""" |
| 6862 | return _core.Sizer_FitInside(*args, **kwargs) |
| 6863 | |
| 6864 | def SetSizeHints(*args, **kwargs): |
| 6865 | """SetSizeHints(Window window)""" |
| 6866 | return _core.Sizer_SetSizeHints(*args, **kwargs) |
| 6867 | |
| 6868 | def SetVirtualSizeHints(*args, **kwargs): |
| 6869 | """SetVirtualSizeHints(Window window)""" |
| 6870 | return _core.Sizer_SetVirtualSizeHints(*args, **kwargs) |
| 6871 | |
| 6872 | def Clear(*args, **kwargs): |
| 6873 | """Clear(bool delete_windows=False)""" |
| 6874 | return _core.Sizer_Clear(*args, **kwargs) |
| 6875 | |
| 6876 | def DeleteWindows(*args, **kwargs): |
| 6877 | """DeleteWindows()""" |
| 6878 | return _core.Sizer_DeleteWindows(*args, **kwargs) |
| 6879 | |
| 6880 | def GetChildren(*args, **kwargs): |
| 6881 | """GetChildren() -> PyObject""" |
| 6882 | return _core.Sizer_GetChildren(*args, **kwargs) |
| 6883 | |
| 6884 | def Show(*args, **kwargs): |
| 6885 | """Show(PyObject item, bool show=True)""" |
| 6886 | return _core.Sizer_Show(*args, **kwargs) |
| 6887 | |
| 6888 | def Hide(*args, **kwargs): |
| 6889 | """Hide(PyObject item)""" |
| 6890 | return _core.Sizer_Hide(*args, **kwargs) |
| 6891 | |
| 6892 | def IsShown(*args, **kwargs): |
| 6893 | """IsShown(PyObject item) -> bool""" |
| 6894 | return _core.Sizer_IsShown(*args, **kwargs) |
| 6895 | |
| 6896 | def ShowItems(*args, **kwargs): |
| 6897 | """ShowItems(bool show)""" |
| 6898 | return _core.Sizer_ShowItems(*args, **kwargs) |
| 6899 | |
| 6900 | |
| 6901 | class SizerPtr(Sizer): |
| 6902 | def __init__(self, this): |
| 6903 | self.this = this |
| 6904 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6905 | self.__class__ = Sizer |
| 6906 | _core.Sizer_swigregister(SizerPtr) |
| 6907 | |
| 6908 | class PySizer(Sizer): |
| 6909 | """""" |
| 6910 | def __repr__(self): |
| 6911 | return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6912 | def __init__(self, *args, **kwargs): |
| 6913 | """__init__() -> PySizer""" |
| 6914 | newobj = _core.new_PySizer(*args, **kwargs) |
| 6915 | self.this = newobj.this |
| 6916 | self.thisown = 1 |
| 6917 | del newobj.thisown |
| 6918 | self._setCallbackInfo(self, PySizer);self._setOORInfo(self) |
| 6919 | |
| 6920 | def _setCallbackInfo(*args, **kwargs): |
| 6921 | """_setCallbackInfo(PyObject self, PyObject _class)""" |
| 6922 | return _core.PySizer__setCallbackInfo(*args, **kwargs) |
| 6923 | |
| 6924 | |
| 6925 | class PySizerPtr(PySizer): |
| 6926 | def __init__(self, this): |
| 6927 | self.this = this |
| 6928 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6929 | self.__class__ = PySizer |
| 6930 | _core.PySizer_swigregister(PySizerPtr) |
| 6931 | |
| 6932 | #--------------------------------------------------------------------------- |
| 6933 | |
| 6934 | class BoxSizer(Sizer): |
| 6935 | """""" |
| 6936 | def __repr__(self): |
| 6937 | return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6938 | def __init__(self, *args, **kwargs): |
| 6939 | """__init__(int orient=HORIZONTAL) -> BoxSizer""" |
| 6940 | newobj = _core.new_BoxSizer(*args, **kwargs) |
| 6941 | self.this = newobj.this |
| 6942 | self.thisown = 1 |
| 6943 | del newobj.thisown |
| 6944 | self._setOORInfo(self) |
| 6945 | |
| 6946 | def GetOrientation(*args, **kwargs): |
| 6947 | """GetOrientation() -> int""" |
| 6948 | return _core.BoxSizer_GetOrientation(*args, **kwargs) |
| 6949 | |
| 6950 | def SetOrientation(*args, **kwargs): |
| 6951 | """SetOrientation(int orient)""" |
| 6952 | return _core.BoxSizer_SetOrientation(*args, **kwargs) |
| 6953 | |
| 6954 | def RecalcSizes(*args, **kwargs): |
| 6955 | """RecalcSizes()""" |
| 6956 | return _core.BoxSizer_RecalcSizes(*args, **kwargs) |
| 6957 | |
| 6958 | def CalcMin(*args, **kwargs): |
| 6959 | """CalcMin() -> Size""" |
| 6960 | return _core.BoxSizer_CalcMin(*args, **kwargs) |
| 6961 | |
| 6962 | |
| 6963 | class BoxSizerPtr(BoxSizer): |
| 6964 | def __init__(self, this): |
| 6965 | self.this = this |
| 6966 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 6967 | self.__class__ = BoxSizer |
| 6968 | _core.BoxSizer_swigregister(BoxSizerPtr) |
| 6969 | |
| 6970 | #--------------------------------------------------------------------------- |
| 6971 | |
| 6972 | class StaticBoxSizer(BoxSizer): |
| 6973 | """""" |
| 6974 | def __repr__(self): |
| 6975 | return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 6976 | def __init__(self, *args, **kwargs): |
| 6977 | """__init__(wxStaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer""" |
| 6978 | newobj = _core.new_StaticBoxSizer(*args, **kwargs) |
| 6979 | self.this = newobj.this |
| 6980 | self.thisown = 1 |
| 6981 | del newobj.thisown |
| 6982 | self._setOORInfo(self) |
| 6983 | |
| 6984 | def GetStaticBox(*args, **kwargs): |
| 6985 | """GetStaticBox() -> wxStaticBox""" |
| 6986 | return _core.StaticBoxSizer_GetStaticBox(*args, **kwargs) |
| 6987 | |
| 6988 | def RecalcSizes(*args, **kwargs): |
| 6989 | """RecalcSizes()""" |
| 6990 | return _core.StaticBoxSizer_RecalcSizes(*args, **kwargs) |
| 6991 | |
| 6992 | def CalcMin(*args, **kwargs): |
| 6993 | """CalcMin() -> Size""" |
| 6994 | return _core.StaticBoxSizer_CalcMin(*args, **kwargs) |
| 6995 | |
| 6996 | |
| 6997 | class StaticBoxSizerPtr(StaticBoxSizer): |
| 6998 | def __init__(self, this): |
| 6999 | self.this = this |
| 7000 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7001 | self.__class__ = StaticBoxSizer |
| 7002 | _core.StaticBoxSizer_swigregister(StaticBoxSizerPtr) |
| 7003 | |
| 7004 | #--------------------------------------------------------------------------- |
| 7005 | |
| 7006 | class GridSizer(Sizer): |
| 7007 | """""" |
| 7008 | def __repr__(self): |
| 7009 | return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7010 | def __init__(self, *args, **kwargs): |
| 7011 | """__init__(int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer""" |
| 7012 | newobj = _core.new_GridSizer(*args, **kwargs) |
| 7013 | self.this = newobj.this |
| 7014 | self.thisown = 1 |
| 7015 | del newobj.thisown |
| 7016 | self._setOORInfo(self) |
| 7017 | |
| 7018 | def RecalcSizes(*args, **kwargs): |
| 7019 | """RecalcSizes()""" |
| 7020 | return _core.GridSizer_RecalcSizes(*args, **kwargs) |
| 7021 | |
| 7022 | def CalcMin(*args, **kwargs): |
| 7023 | """CalcMin() -> Size""" |
| 7024 | return _core.GridSizer_CalcMin(*args, **kwargs) |
| 7025 | |
| 7026 | def SetCols(*args, **kwargs): |
| 7027 | """SetCols(int cols)""" |
| 7028 | return _core.GridSizer_SetCols(*args, **kwargs) |
| 7029 | |
| 7030 | def SetRows(*args, **kwargs): |
| 7031 | """SetRows(int rows)""" |
| 7032 | return _core.GridSizer_SetRows(*args, **kwargs) |
| 7033 | |
| 7034 | def SetVGap(*args, **kwargs): |
| 7035 | """SetVGap(int gap)""" |
| 7036 | return _core.GridSizer_SetVGap(*args, **kwargs) |
| 7037 | |
| 7038 | def SetHGap(*args, **kwargs): |
| 7039 | """SetHGap(int gap)""" |
| 7040 | return _core.GridSizer_SetHGap(*args, **kwargs) |
| 7041 | |
| 7042 | def GetCols(*args, **kwargs): |
| 7043 | """GetCols() -> int""" |
| 7044 | return _core.GridSizer_GetCols(*args, **kwargs) |
| 7045 | |
| 7046 | def GetRows(*args, **kwargs): |
| 7047 | """GetRows() -> int""" |
| 7048 | return _core.GridSizer_GetRows(*args, **kwargs) |
| 7049 | |
| 7050 | def GetVGap(*args, **kwargs): |
| 7051 | """GetVGap() -> int""" |
| 7052 | return _core.GridSizer_GetVGap(*args, **kwargs) |
| 7053 | |
| 7054 | def GetHGap(*args, **kwargs): |
| 7055 | """GetHGap() -> int""" |
| 7056 | return _core.GridSizer_GetHGap(*args, **kwargs) |
| 7057 | |
| 7058 | |
| 7059 | class GridSizerPtr(GridSizer): |
| 7060 | def __init__(self, this): |
| 7061 | self.this = this |
| 7062 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7063 | self.__class__ = GridSizer |
| 7064 | _core.GridSizer_swigregister(GridSizerPtr) |
| 7065 | |
| 7066 | #--------------------------------------------------------------------------- |
| 7067 | |
| 7068 | FLEX_GROWMODE_NONE = _core.FLEX_GROWMODE_NONE |
| 7069 | FLEX_GROWMODE_SPECIFIED = _core.FLEX_GROWMODE_SPECIFIED |
| 7070 | FLEX_GROWMODE_ALL = _core.FLEX_GROWMODE_ALL |
| 7071 | class FlexGridSizer(GridSizer): |
| 7072 | """""" |
| 7073 | def __repr__(self): |
| 7074 | return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7075 | def __init__(self, *args, **kwargs): |
| 7076 | """__init__(int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer""" |
| 7077 | newobj = _core.new_FlexGridSizer(*args, **kwargs) |
| 7078 | self.this = newobj.this |
| 7079 | self.thisown = 1 |
| 7080 | del newobj.thisown |
| 7081 | self._setOORInfo(self) |
| 7082 | |
| 7083 | def RecalcSizes(*args, **kwargs): |
| 7084 | """RecalcSizes()""" |
| 7085 | return _core.FlexGridSizer_RecalcSizes(*args, **kwargs) |
| 7086 | |
| 7087 | def CalcMin(*args, **kwargs): |
| 7088 | """CalcMin() -> Size""" |
| 7089 | return _core.FlexGridSizer_CalcMin(*args, **kwargs) |
| 7090 | |
| 7091 | def AddGrowableRow(*args, **kwargs): |
| 7092 | """AddGrowableRow(size_t idx, int proportion=0)""" |
| 7093 | return _core.FlexGridSizer_AddGrowableRow(*args, **kwargs) |
| 7094 | |
| 7095 | def RemoveGrowableRow(*args, **kwargs): |
| 7096 | """RemoveGrowableRow(size_t idx)""" |
| 7097 | return _core.FlexGridSizer_RemoveGrowableRow(*args, **kwargs) |
| 7098 | |
| 7099 | def AddGrowableCol(*args, **kwargs): |
| 7100 | """AddGrowableCol(size_t idx, int proportion=0)""" |
| 7101 | return _core.FlexGridSizer_AddGrowableCol(*args, **kwargs) |
| 7102 | |
| 7103 | def RemoveGrowableCol(*args, **kwargs): |
| 7104 | """RemoveGrowableCol(size_t idx)""" |
| 7105 | return _core.FlexGridSizer_RemoveGrowableCol(*args, **kwargs) |
| 7106 | |
| 7107 | def SetFlexibleDirection(*args, **kwargs): |
| 7108 | """SetFlexibleDirection(int direction)""" |
| 7109 | return _core.FlexGridSizer_SetFlexibleDirection(*args, **kwargs) |
| 7110 | |
| 7111 | def GetFlexibleDirection(*args, **kwargs): |
| 7112 | """GetFlexibleDirection() -> int""" |
| 7113 | return _core.FlexGridSizer_GetFlexibleDirection(*args, **kwargs) |
| 7114 | |
| 7115 | def SetNonFlexibleGrowMode(*args, **kwargs): |
| 7116 | """SetNonFlexibleGrowMode(wxFlexSizerGrowMode mode)""" |
| 7117 | return _core.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs) |
| 7118 | |
| 7119 | def GetNonFlexibleGrowMode(*args, **kwargs): |
| 7120 | """GetNonFlexibleGrowMode() -> wxFlexSizerGrowMode""" |
| 7121 | return _core.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs) |
| 7122 | |
| 7123 | def GetRowHeights(*args, **kwargs): |
| 7124 | """GetRowHeights() -> wxArrayInt""" |
| 7125 | return _core.FlexGridSizer_GetRowHeights(*args, **kwargs) |
| 7126 | |
| 7127 | def GetColWidths(*args, **kwargs): |
| 7128 | """GetColWidths() -> wxArrayInt""" |
| 7129 | return _core.FlexGridSizer_GetColWidths(*args, **kwargs) |
| 7130 | |
| 7131 | |
| 7132 | class FlexGridSizerPtr(FlexGridSizer): |
| 7133 | def __init__(self, this): |
| 7134 | self.this = this |
| 7135 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7136 | self.__class__ = FlexGridSizer |
| 7137 | _core.FlexGridSizer_swigregister(FlexGridSizerPtr) |
| 7138 | |
| 7139 | #--------------------------------------------------------------------------- |
| 7140 | |
| 7141 | class GBPosition(object): |
| 7142 | """""" |
| 7143 | def __repr__(self): |
| 7144 | return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7145 | def __init__(self, *args, **kwargs): |
| 7146 | """__init__(int row=0, int col=0) -> GBPosition""" |
| 7147 | newobj = _core.new_GBPosition(*args, **kwargs) |
| 7148 | self.this = newobj.this |
| 7149 | self.thisown = 1 |
| 7150 | del newobj.thisown |
| 7151 | def GetRow(*args, **kwargs): |
| 7152 | """GetRow() -> int""" |
| 7153 | return _core.GBPosition_GetRow(*args, **kwargs) |
| 7154 | |
| 7155 | def GetCol(*args, **kwargs): |
| 7156 | """GetCol() -> int""" |
| 7157 | return _core.GBPosition_GetCol(*args, **kwargs) |
| 7158 | |
| 7159 | def SetRow(*args, **kwargs): |
| 7160 | """SetRow(int row)""" |
| 7161 | return _core.GBPosition_SetRow(*args, **kwargs) |
| 7162 | |
| 7163 | def SetCol(*args, **kwargs): |
| 7164 | """SetCol(int col)""" |
| 7165 | return _core.GBPosition_SetCol(*args, **kwargs) |
| 7166 | |
| 7167 | def __eq__(*args, **kwargs): |
| 7168 | """__eq__(GBPosition p) -> bool""" |
| 7169 | return _core.GBPosition___eq__(*args, **kwargs) |
| 7170 | |
| 7171 | def __ne__(*args, **kwargs): |
| 7172 | """__ne__(GBPosition p) -> bool""" |
| 7173 | return _core.GBPosition___ne__(*args, **kwargs) |
| 7174 | |
| 7175 | def Set(*args, **kwargs): |
| 7176 | """Set(int row=0, int col=0)""" |
| 7177 | return _core.GBPosition_Set(*args, **kwargs) |
| 7178 | |
| 7179 | def Get(*args, **kwargs): |
| 7180 | """Get() -> PyObject""" |
| 7181 | return _core.GBPosition_Get(*args, **kwargs) |
| 7182 | |
| 7183 | asTuple = Get |
| 7184 | def __str__(self): return str(self.Get()) |
| 7185 | def __repr__(self): return 'wx.GBPosition'+str(self.Get()) |
| 7186 | def __len__(self): return len(self.Get()) |
| 7187 | def __getitem__(self, index): return self.Get()[index] |
| 7188 | def __setitem__(self, index, val): |
| 7189 | if index == 0: self.SetRow(val) |
| 7190 | elif index == 1: self.SetCol(val) |
| 7191 | else: raise IndexError |
| 7192 | def __nonzero__(self): return self.Get() != (0,0) |
| 7193 | def __getinitargs__(self): return () |
| 7194 | def __getstate__(self): return self.Get() |
| 7195 | def __setstate__(self, state): self.Set(*state) |
| 7196 | |
| 7197 | row = property(GetRow, SetRow) |
| 7198 | col = property(GetCol, SetCol) |
| 7199 | |
| 7200 | |
| 7201 | class GBPositionPtr(GBPosition): |
| 7202 | def __init__(self, this): |
| 7203 | self.this = this |
| 7204 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7205 | self.__class__ = GBPosition |
| 7206 | _core.GBPosition_swigregister(GBPositionPtr) |
| 7207 | |
| 7208 | class GBSpan(object): |
| 7209 | """""" |
| 7210 | def __repr__(self): |
| 7211 | return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7212 | def __init__(self, *args, **kwargs): |
| 7213 | """__init__(int rowspan=1, int colspan=1) -> GBSpan""" |
| 7214 | newobj = _core.new_GBSpan(*args, **kwargs) |
| 7215 | self.this = newobj.this |
| 7216 | self.thisown = 1 |
| 7217 | del newobj.thisown |
| 7218 | def GetRowspan(*args, **kwargs): |
| 7219 | """GetRowspan() -> int""" |
| 7220 | return _core.GBSpan_GetRowspan(*args, **kwargs) |
| 7221 | |
| 7222 | def GetColspan(*args, **kwargs): |
| 7223 | """GetColspan() -> int""" |
| 7224 | return _core.GBSpan_GetColspan(*args, **kwargs) |
| 7225 | |
| 7226 | def SetRowspan(*args, **kwargs): |
| 7227 | """SetRowspan(int rowspan)""" |
| 7228 | return _core.GBSpan_SetRowspan(*args, **kwargs) |
| 7229 | |
| 7230 | def SetColspan(*args, **kwargs): |
| 7231 | """SetColspan(int colspan)""" |
| 7232 | return _core.GBSpan_SetColspan(*args, **kwargs) |
| 7233 | |
| 7234 | def __eq__(*args, **kwargs): |
| 7235 | """__eq__(GBSpan o) -> bool""" |
| 7236 | return _core.GBSpan___eq__(*args, **kwargs) |
| 7237 | |
| 7238 | def __ne__(*args, **kwargs): |
| 7239 | """__ne__(GBSpan o) -> bool""" |
| 7240 | return _core.GBSpan___ne__(*args, **kwargs) |
| 7241 | |
| 7242 | def Set(*args, **kwargs): |
| 7243 | """Set(int rowspan=1, int colspan=1)""" |
| 7244 | return _core.GBSpan_Set(*args, **kwargs) |
| 7245 | |
| 7246 | def Get(*args, **kwargs): |
| 7247 | """Get() -> PyObject""" |
| 7248 | return _core.GBSpan_Get(*args, **kwargs) |
| 7249 | |
| 7250 | asTuple = Get |
| 7251 | def __str__(self): return str(self.Get()) |
| 7252 | def __repr__(self): return 'wx.GBSpan'+str(self.Get()) |
| 7253 | def __len__(self): return len(self.Get()) |
| 7254 | def __getitem__(self, index): return self.Get()[index] |
| 7255 | def __setitem__(self, index, val): |
| 7256 | if index == 0: self.SetRowspan(val) |
| 7257 | elif index == 1: self.SetColspan(val) |
| 7258 | else: raise IndexError |
| 7259 | def __nonzero__(self): return self.Get() != (0,0) |
| 7260 | def __getinitargs__(self): return () |
| 7261 | def __getstate__(self): return self.Get() |
| 7262 | def __setstate__(self, state): self.Set(*state) |
| 7263 | |
| 7264 | rowspan = property(GetRowspan, SetRowspan) |
| 7265 | colspan = property(GetColspan, SetColspan) |
| 7266 | |
| 7267 | |
| 7268 | class GBSpanPtr(GBSpan): |
| 7269 | def __init__(self, this): |
| 7270 | self.this = this |
| 7271 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7272 | self.__class__ = GBSpan |
| 7273 | _core.GBSpan_swigregister(GBSpanPtr) |
| 7274 | |
| 7275 | class GBSizerItem(SizerItem): |
| 7276 | """""" |
| 7277 | def __repr__(self): |
| 7278 | return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7279 | def __init__(self, *args, **kwargs): |
| 7280 | """__init__() -> GBSizerItem""" |
| 7281 | newobj = _core.new_GBSizerItem(*args, **kwargs) |
| 7282 | self.this = newobj.this |
| 7283 | self.thisown = 1 |
| 7284 | del newobj.thisown |
| 7285 | def GetPos(*args, **kwargs): |
| 7286 | """GetPos() -> GBPosition""" |
| 7287 | return _core.GBSizerItem_GetPos(*args, **kwargs) |
| 7288 | |
| 7289 | def GetPosTuple(self): return self.GetPos().Get() |
| 7290 | def GetSpan(*args, **kwargs): |
| 7291 | """GetSpan() -> GBSpan""" |
| 7292 | return _core.GBSizerItem_GetSpan(*args, **kwargs) |
| 7293 | |
| 7294 | def GetSpanTuple(self): return self.GetSpan().Get() |
| 7295 | def SetPos(*args, **kwargs): |
| 7296 | """SetPos(GBPosition pos) -> bool""" |
| 7297 | return _core.GBSizerItem_SetPos(*args, **kwargs) |
| 7298 | |
| 7299 | def SetSpan(*args, **kwargs): |
| 7300 | """SetSpan(GBSpan span) -> bool""" |
| 7301 | return _core.GBSizerItem_SetSpan(*args, **kwargs) |
| 7302 | |
| 7303 | def Intersects(*args): |
| 7304 | """Intersects(GBSizerItem other) -> bool |
| 7305 | Intersects(GBPosition pos, GBSpan span) -> bool""" |
| 7306 | return _core.GBSizerItem_Intersects(*args) |
| 7307 | |
| 7308 | def GetEndPos(*args, **kwargs): |
| 7309 | """GetEndPos(int row, int col)""" |
| 7310 | return _core.GBSizerItem_GetEndPos(*args, **kwargs) |
| 7311 | |
| 7312 | def GetGBSizer(*args, **kwargs): |
| 7313 | """GetGBSizer() -> GridBagSizer""" |
| 7314 | return _core.GBSizerItem_GetGBSizer(*args, **kwargs) |
| 7315 | |
| 7316 | def SetGBSizer(*args, **kwargs): |
| 7317 | """SetGBSizer(GridBagSizer sizer)""" |
| 7318 | return _core.GBSizerItem_SetGBSizer(*args, **kwargs) |
| 7319 | |
| 7320 | |
| 7321 | class GBSizerItemPtr(GBSizerItem): |
| 7322 | def __init__(self, this): |
| 7323 | self.this = this |
| 7324 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7325 | self.__class__ = GBSizerItem |
| 7326 | _core.GBSizerItem_swigregister(GBSizerItemPtr) |
| 7327 | DefaultSpan = cvar.DefaultSpan |
| 7328 | |
| 7329 | def GBSizerItemWindow(*args, **kwargs): |
| 7330 | """GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag, |
| 7331 | int border, Object userData) -> GBSizerItem""" |
| 7332 | val = _core.new_GBSizerItemWindow(*args, **kwargs) |
| 7333 | val.thisown = 1 |
| 7334 | return val |
| 7335 | |
| 7336 | def GBSizerItemSizer(*args, **kwargs): |
| 7337 | """GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag, |
| 7338 | int border, Object userData) -> GBSizerItem""" |
| 7339 | val = _core.new_GBSizerItemSizer(*args, **kwargs) |
| 7340 | val.thisown = 1 |
| 7341 | return val |
| 7342 | |
| 7343 | def GBSizerItemSpacer(*args, **kwargs): |
| 7344 | """GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span, |
| 7345 | int flag, int border, Object userData) -> GBSizerItem""" |
| 7346 | val = _core.new_GBSizerItemSpacer(*args, **kwargs) |
| 7347 | val.thisown = 1 |
| 7348 | return val |
| 7349 | |
| 7350 | class GridBagSizer(FlexGridSizer): |
| 7351 | """""" |
| 7352 | def __repr__(self): |
| 7353 | return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7354 | def __init__(self, *args, **kwargs): |
| 7355 | """__init__(int vgap=0, int hgap=0) -> GridBagSizer""" |
| 7356 | newobj = _core.new_GridBagSizer(*args, **kwargs) |
| 7357 | self.this = newobj.this |
| 7358 | self.thisown = 1 |
| 7359 | del newobj.thisown |
| 7360 | def Add(*args, **kwargs): |
| 7361 | """Add(PyObject item, GBPosition pos, GBSpan span=DefaultSpan, |
| 7362 | int flag=0, int border=0, PyObject userData=None) -> bool""" |
| 7363 | return _core.GridBagSizer_Add(*args, **kwargs) |
| 7364 | |
| 7365 | def AddItem(*args, **kwargs): |
| 7366 | """AddItem(GBSizerItem item) -> bool""" |
| 7367 | return _core.GridBagSizer_AddItem(*args, **kwargs) |
| 7368 | |
| 7369 | def GetEmptyCellSize(*args, **kwargs): |
| 7370 | """GetEmptyCellSize() -> Size""" |
| 7371 | return _core.GridBagSizer_GetEmptyCellSize(*args, **kwargs) |
| 7372 | |
| 7373 | def SetEmptyCellSize(*args, **kwargs): |
| 7374 | """SetEmptyCellSize(Size sz)""" |
| 7375 | return _core.GridBagSizer_SetEmptyCellSize(*args, **kwargs) |
| 7376 | |
| 7377 | def GetItemPosition(*args): |
| 7378 | """GetItemPosition(Window window) -> GBPosition |
| 7379 | GetItemPosition(Sizer sizer) -> GBPosition |
| 7380 | GetItemPosition(size_t index) -> GBPosition""" |
| 7381 | return _core.GridBagSizer_GetItemPosition(*args) |
| 7382 | |
| 7383 | def SetItemPosition(*args): |
| 7384 | """SetItemPosition(Window window, GBPosition pos) -> bool |
| 7385 | SetItemPosition(Sizer sizer, GBPosition pos) -> bool |
| 7386 | SetItemPosition(size_t index, GBPosition pos) -> bool""" |
| 7387 | return _core.GridBagSizer_SetItemPosition(*args) |
| 7388 | |
| 7389 | def GetItemSpan(*args): |
| 7390 | """GetItemSpan(Window window) -> GBSpan |
| 7391 | GetItemSpan(Sizer sizer) -> GBSpan |
| 7392 | GetItemSpan(size_t index) -> GBSpan""" |
| 7393 | return _core.GridBagSizer_GetItemSpan(*args) |
| 7394 | |
| 7395 | def SetItemSpan(*args): |
| 7396 | """SetItemSpan(Window window, GBSpan span) -> bool |
| 7397 | SetItemSpan(Sizer sizer, GBSpan span) -> bool |
| 7398 | SetItemSpan(size_t index, GBSpan span) -> bool""" |
| 7399 | return _core.GridBagSizer_SetItemSpan(*args) |
| 7400 | |
| 7401 | def FindItem(*args): |
| 7402 | """FindItem(Window window) -> GBSizerItem |
| 7403 | FindItem(Sizer sizer) -> GBSizerItem""" |
| 7404 | return _core.GridBagSizer_FindItem(*args) |
| 7405 | |
| 7406 | def FindItemAtPosition(*args, **kwargs): |
| 7407 | """FindItemAtPosition(GBPosition pos) -> GBSizerItem""" |
| 7408 | return _core.GridBagSizer_FindItemAtPosition(*args, **kwargs) |
| 7409 | |
| 7410 | def FindItemAtPoint(*args, **kwargs): |
| 7411 | """FindItemAtPoint(Point pt) -> GBSizerItem""" |
| 7412 | return _core.GridBagSizer_FindItemAtPoint(*args, **kwargs) |
| 7413 | |
| 7414 | def FindItemWithData(*args, **kwargs): |
| 7415 | """FindItemWithData(Object userData) -> GBSizerItem""" |
| 7416 | return _core.GridBagSizer_FindItemWithData(*args, **kwargs) |
| 7417 | |
| 7418 | def RecalcSizes(*args, **kwargs): |
| 7419 | """RecalcSizes()""" |
| 7420 | return _core.GridBagSizer_RecalcSizes(*args, **kwargs) |
| 7421 | |
| 7422 | def CalcMin(*args, **kwargs): |
| 7423 | """CalcMin() -> Size""" |
| 7424 | return _core.GridBagSizer_CalcMin(*args, **kwargs) |
| 7425 | |
| 7426 | def CheckForIntersection(*args): |
| 7427 | """CheckForIntersection(GBSizerItem item, GBSizerItem excludeItem=None) -> bool |
| 7428 | CheckForIntersection(GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool""" |
| 7429 | return _core.GridBagSizer_CheckForIntersection(*args) |
| 7430 | |
| 7431 | |
| 7432 | class GridBagSizerPtr(GridBagSizer): |
| 7433 | def __init__(self, this): |
| 7434 | self.this = this |
| 7435 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7436 | self.__class__ = GridBagSizer |
| 7437 | _core.GridBagSizer_swigregister(GridBagSizerPtr) |
| 7438 | |
| 7439 | #--------------------------------------------------------------------------- |
| 7440 | |
| 7441 | Left = _core.Left |
| 7442 | Top = _core.Top |
| 7443 | Right = _core.Right |
| 7444 | Bottom = _core.Bottom |
| 7445 | Width = _core.Width |
| 7446 | Height = _core.Height |
| 7447 | Centre = _core.Centre |
| 7448 | Center = _core.Center |
| 7449 | CentreX = _core.CentreX |
| 7450 | CentreY = _core.CentreY |
| 7451 | Unconstrained = _core.Unconstrained |
| 7452 | AsIs = _core.AsIs |
| 7453 | PercentOf = _core.PercentOf |
| 7454 | Above = _core.Above |
| 7455 | Below = _core.Below |
| 7456 | LeftOf = _core.LeftOf |
| 7457 | RightOf = _core.RightOf |
| 7458 | SameAs = _core.SameAs |
| 7459 | Absolute = _core.Absolute |
| 7460 | class IndividualLayoutConstraint(Object): |
| 7461 | """""" |
| 7462 | def __init__(self): raise RuntimeError, "No constructor defined" |
| 7463 | def __repr__(self): |
| 7464 | return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7465 | def Set(*args, **kwargs): |
| 7466 | """Set(wxRelationship rel, Window otherW, wxEdge otherE, int val=0, |
| 7467 | int marg=wxLAYOUT_DEFAULT_MARGIN)""" |
| 7468 | return _core.IndividualLayoutConstraint_Set(*args, **kwargs) |
| 7469 | |
| 7470 | def LeftOf(*args, **kwargs): |
| 7471 | """LeftOf(Window sibling, int marg=0)""" |
| 7472 | return _core.IndividualLayoutConstraint_LeftOf(*args, **kwargs) |
| 7473 | |
| 7474 | def RightOf(*args, **kwargs): |
| 7475 | """RightOf(Window sibling, int marg=0)""" |
| 7476 | return _core.IndividualLayoutConstraint_RightOf(*args, **kwargs) |
| 7477 | |
| 7478 | def Above(*args, **kwargs): |
| 7479 | """Above(Window sibling, int marg=0)""" |
| 7480 | return _core.IndividualLayoutConstraint_Above(*args, **kwargs) |
| 7481 | |
| 7482 | def Below(*args, **kwargs): |
| 7483 | """Below(Window sibling, int marg=0)""" |
| 7484 | return _core.IndividualLayoutConstraint_Below(*args, **kwargs) |
| 7485 | |
| 7486 | def SameAs(*args, **kwargs): |
| 7487 | """SameAs(Window otherW, wxEdge edge, int marg=0)""" |
| 7488 | return _core.IndividualLayoutConstraint_SameAs(*args, **kwargs) |
| 7489 | |
| 7490 | def PercentOf(*args, **kwargs): |
| 7491 | """PercentOf(Window otherW, wxEdge wh, int per)""" |
| 7492 | return _core.IndividualLayoutConstraint_PercentOf(*args, **kwargs) |
| 7493 | |
| 7494 | def Absolute(*args, **kwargs): |
| 7495 | """Absolute(int val)""" |
| 7496 | return _core.IndividualLayoutConstraint_Absolute(*args, **kwargs) |
| 7497 | |
| 7498 | def Unconstrained(*args, **kwargs): |
| 7499 | """Unconstrained()""" |
| 7500 | return _core.IndividualLayoutConstraint_Unconstrained(*args, **kwargs) |
| 7501 | |
| 7502 | def AsIs(*args, **kwargs): |
| 7503 | """AsIs()""" |
| 7504 | return _core.IndividualLayoutConstraint_AsIs(*args, **kwargs) |
| 7505 | |
| 7506 | def GetOtherWindow(*args, **kwargs): |
| 7507 | """GetOtherWindow() -> Window""" |
| 7508 | return _core.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs) |
| 7509 | |
| 7510 | def GetMyEdge(*args, **kwargs): |
| 7511 | """GetMyEdge() -> wxEdge""" |
| 7512 | return _core.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs) |
| 7513 | |
| 7514 | def SetEdge(*args, **kwargs): |
| 7515 | """SetEdge(wxEdge which)""" |
| 7516 | return _core.IndividualLayoutConstraint_SetEdge(*args, **kwargs) |
| 7517 | |
| 7518 | def SetValue(*args, **kwargs): |
| 7519 | """SetValue(int v)""" |
| 7520 | return _core.IndividualLayoutConstraint_SetValue(*args, **kwargs) |
| 7521 | |
| 7522 | def GetMargin(*args, **kwargs): |
| 7523 | """GetMargin() -> int""" |
| 7524 | return _core.IndividualLayoutConstraint_GetMargin(*args, **kwargs) |
| 7525 | |
| 7526 | def SetMargin(*args, **kwargs): |
| 7527 | """SetMargin(int m)""" |
| 7528 | return _core.IndividualLayoutConstraint_SetMargin(*args, **kwargs) |
| 7529 | |
| 7530 | def GetValue(*args, **kwargs): |
| 7531 | """GetValue() -> int""" |
| 7532 | return _core.IndividualLayoutConstraint_GetValue(*args, **kwargs) |
| 7533 | |
| 7534 | def GetPercent(*args, **kwargs): |
| 7535 | """GetPercent() -> int""" |
| 7536 | return _core.IndividualLayoutConstraint_GetPercent(*args, **kwargs) |
| 7537 | |
| 7538 | def GetOtherEdge(*args, **kwargs): |
| 7539 | """GetOtherEdge() -> int""" |
| 7540 | return _core.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs) |
| 7541 | |
| 7542 | def GetDone(*args, **kwargs): |
| 7543 | """GetDone() -> bool""" |
| 7544 | return _core.IndividualLayoutConstraint_GetDone(*args, **kwargs) |
| 7545 | |
| 7546 | def SetDone(*args, **kwargs): |
| 7547 | """SetDone(bool d)""" |
| 7548 | return _core.IndividualLayoutConstraint_SetDone(*args, **kwargs) |
| 7549 | |
| 7550 | def GetRelationship(*args, **kwargs): |
| 7551 | """GetRelationship() -> wxRelationship""" |
| 7552 | return _core.IndividualLayoutConstraint_GetRelationship(*args, **kwargs) |
| 7553 | |
| 7554 | def SetRelationship(*args, **kwargs): |
| 7555 | """SetRelationship(wxRelationship r)""" |
| 7556 | return _core.IndividualLayoutConstraint_SetRelationship(*args, **kwargs) |
| 7557 | |
| 7558 | def ResetIfWin(*args, **kwargs): |
| 7559 | """ResetIfWin(Window otherW) -> bool""" |
| 7560 | return _core.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs) |
| 7561 | |
| 7562 | def SatisfyConstraint(*args, **kwargs): |
| 7563 | """SatisfyConstraint(LayoutConstraints constraints, Window win) -> bool""" |
| 7564 | return _core.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs) |
| 7565 | |
| 7566 | def GetEdge(*args, **kwargs): |
| 7567 | """GetEdge(wxEdge which, Window thisWin, Window other) -> int""" |
| 7568 | return _core.IndividualLayoutConstraint_GetEdge(*args, **kwargs) |
| 7569 | |
| 7570 | |
| 7571 | class IndividualLayoutConstraintPtr(IndividualLayoutConstraint): |
| 7572 | def __init__(self, this): |
| 7573 | self.this = this |
| 7574 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7575 | self.__class__ = IndividualLayoutConstraint |
| 7576 | _core.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr) |
| 7577 | |
| 7578 | class LayoutConstraints(Object): |
| 7579 | """""" |
| 7580 | def __repr__(self): |
| 7581 | return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) |
| 7582 | left = property(_core.LayoutConstraints_left_get) |
| 7583 | top = property(_core.LayoutConstraints_top_get) |
| 7584 | right = property(_core.LayoutConstraints_right_get) |
| 7585 | bottom = property(_core.LayoutConstraints_bottom_get) |
| 7586 | width = property(_core.LayoutConstraints_width_get) |
| 7587 | height = property(_core.LayoutConstraints_height_get) |
| 7588 | centreX = property(_core.LayoutConstraints_centreX_get) |
| 7589 | centreY = property(_core.LayoutConstraints_centreY_get) |
| 7590 | def __init__(self, *args, **kwargs): |
| 7591 | """__init__() -> LayoutConstraints""" |
| 7592 | newobj = _core.new_LayoutConstraints(*args, **kwargs) |
| 7593 | self.this = newobj.this |
| 7594 | self.thisown = 1 |
| 7595 | del newobj.thisown |
| 7596 | def SatisfyConstraints(*args, **kwargs): |
| 7597 | """SatisfyConstraints(Window win) -> (areSatisfied, noChanges)""" |
| 7598 | return _core.LayoutConstraints_SatisfyConstraints(*args, **kwargs) |
| 7599 | |
| 7600 | def AreSatisfied(*args, **kwargs): |
| 7601 | """AreSatisfied() -> bool""" |
| 7602 | return _core.LayoutConstraints_AreSatisfied(*args, **kwargs) |
| 7603 | |
| 7604 | |
| 7605 | class LayoutConstraintsPtr(LayoutConstraints): |
| 7606 | def __init__(self, this): |
| 7607 | self.this = this |
| 7608 | if not hasattr(self,"thisown"): self.thisown = 0 |
| 7609 | self.__class__ = LayoutConstraints |
| 7610 | _core.LayoutConstraints_swigregister(LayoutConstraintsPtr) |
| 7611 | |
| 7612 | #---------------------------------------------------------------------------- |
| 7613 | |
| 7614 | # Use Python's bool constants if available, make some if not |
| 7615 | try: |
| 7616 | True |
| 7617 | except NameError: |
| 7618 | __builtins__.True = 1==1 |
| 7619 | __builtins__.False = 1==0 |
| 7620 | |
| 7621 | |
| 7622 | |
| 7623 | # workarounds for bad wxRTTI names |
| 7624 | __wxPyPtrTypeMap['wxGauge95'] = 'wxGauge' |
| 7625 | __wxPyPtrTypeMap['wxSlider95'] = 'wxSlider' |
| 7626 | __wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar' |
| 7627 | |
| 7628 | |
| 7629 | #---------------------------------------------------------------------------- |
| 7630 | # Load version numbers from __version__... Ensure that major and minor |
| 7631 | # versions are the same for both wxPython and wxWindows. |
| 7632 | |
| 7633 | from __version__ import * |
| 7634 | __version__ = VERSION_STRING |
| 7635 | |
| 7636 | assert MAJOR_VERSION == _core.MAJOR_VERSION, "wxPython/wxWindows version mismatch" |
| 7637 | assert MINOR_VERSION == _core.MINOR_VERSION, "wxPython/wxWindows version mismatch" |
| 7638 | if RELEASE_VERSION != _core.RELEASE_VERSION: |
| 7639 | import warnings |
| 7640 | warnings.warn("wxPython/wxWindows release number mismatch") |
| 7641 | |
| 7642 | #---------------------------------------------------------------------------- |
| 7643 | |
| 7644 | class PyDeadObjectError(AttributeError): |
| 7645 | pass |
| 7646 | |
| 7647 | |
| 7648 | class _wxPyDeadObject(object): |
| 7649 | """ |
| 7650 | Instances of wx objects that are OOR capable will have their __class__ |
| 7651 | changed to this class when the C++ object is deleted. This should help |
| 7652 | prevent crashes due to referencing a bogus C++ pointer. |
| 7653 | """ |
| 7654 | reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)" |
| 7655 | attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed." |
| 7656 | |
| 7657 | def __repr__( self ): |
| 7658 | if not hasattr(self, "_name"): |
| 7659 | self._name = "[unknown]" |
| 7660 | return self.reprStr % self._name |
| 7661 | |
| 7662 | def __getattr__( self, *args ): |
| 7663 | if not hasattr(self, "_name"): |
| 7664 | self._name = "[unknown]" |
| 7665 | raise PyDeadObjectError( self.attrStr % self._name ) |
| 7666 | |
| 7667 | def __nonzero__(self): |
| 7668 | return 0 |
| 7669 | |
| 7670 | |
| 7671 | #---------------------------------------------------------------------------- |
| 7672 | _wxPyCallAfterId = None |
| 7673 | |
| 7674 | def CallAfter(callable, *args, **kw): |
| 7675 | """ |
| 7676 | Call the specified function after the current and pending event |
| 7677 | handlers have been completed. This is also good for making GUI |
| 7678 | method calls from non-GUI threads. |
| 7679 | """ |
| 7680 | app = wx.GetApp() |
| 7681 | assert app, 'No wxApp created yet' |
| 7682 | |
| 7683 | global _wxPyCallAfterId |
| 7684 | if _wxPyCallAfterId is None: |
| 7685 | _wxPyCallAfterId = wx.NewEventType() |
| 7686 | app.Connect(-1, -1, _wxPyCallAfterId, |
| 7687 | lambda event: event.callable(*event.args, **event.kw) ) |
| 7688 | evt = wx.PyEvent() |
| 7689 | evt.SetEventType(_wxPyCallAfterId) |
| 7690 | evt.callable = callable |
| 7691 | evt.args = args |
| 7692 | evt.kw = kw |
| 7693 | wx.PostEvent(app, evt) |
| 7694 | |
| 7695 | |
| 7696 | #---------------------------------------------------------------------------- |
| 7697 | |
| 7698 | |
| 7699 | class FutureCall: |
| 7700 | """ |
| 7701 | A convenience class for wxTimer, that calls the given callable |
| 7702 | object once after the given amount of milliseconds, passing any |
| 7703 | positional or keyword args. The return value of the callable is |
| 7704 | availbale after it has been run with the GetResult method. |
| 7705 | |
| 7706 | If you don't need to get the return value or restart the timer |
| 7707 | then there is no need to hold a reference to this object. It will |
| 7708 | hold a reference to itself while the timer is running (the timer |
| 7709 | has a reference to self.Notify) but the cycle will be broken when |
| 7710 | the timer completes, automatically cleaning up the wx.FutureCall |
| 7711 | object. |
| 7712 | """ |
| 7713 | def __init__(self, millis, callable, *args, **kwargs): |
| 7714 | self.millis = millis |
| 7715 | self.callable = callable |
| 7716 | self.SetArgs(*args, **kwargs) |
| 7717 | self.runCount = 0 |
| 7718 | self.hasRun = False |
| 7719 | self.result = None |
| 7720 | self.timer = None |
| 7721 | self.Start() |
| 7722 | |
| 7723 | def __del__(self): |
| 7724 | self.Stop() |
| 7725 | |
| 7726 | |
| 7727 | def Start(self, millis=None, *args, **kwargs): |
| 7728 | """ |
| 7729 | (Re)start the timer |
| 7730 | """ |
| 7731 | self.hasRun = False |
| 7732 | if millis is not None: |
| 7733 | self.millis = millis |
| 7734 | if args or kwargs: |
| 7735 | self.SetArgs(*args, **kwargs) |
| 7736 | self.Stop() |
| 7737 | self.timer = wx.PyTimer(self.Notify) |
| 7738 | self.timer.Start(self.millis, wx.TIMER_ONE_SHOT) |
| 7739 | Restart = Start |
| 7740 | |
| 7741 | |
| 7742 | def Stop(self): |
| 7743 | """ |
| 7744 | Stop and destroy the timer. |
| 7745 | """ |
| 7746 | if self.timer is not None: |
| 7747 | self.timer.Stop() |
| 7748 | self.timer = None |
| 7749 | |
| 7750 | |
| 7751 | def GetInterval(self): |
| 7752 | if self.timer is not None: |
| 7753 | return self.timer.GetInterval() |
| 7754 | else: |
| 7755 | return 0 |
| 7756 | |
| 7757 | |
| 7758 | def IsRunning(self): |
| 7759 | return self.timer is not None and self.timer.IsRunning() |
| 7760 | |
| 7761 | |
| 7762 | def SetArgs(self, *args, **kwargs): |
| 7763 | """ |
| 7764 | (Re)set the args passed to the callable object. This is |
| 7765 | useful in conjunction with Restart if you want to schedule a |
| 7766 | new call to the same callable object but with different |
| 7767 | parameters. |
| 7768 | """ |
| 7769 | self.args = args |
| 7770 | self.kwargs = kwargs |
| 7771 | |
| 7772 | |
| 7773 | def HasRun(self): |
| 7774 | return self.hasRun |
| 7775 | |
| 7776 | def GetResult(self): |
| 7777 | return self.result |
| 7778 | |
| 7779 | def Notify(self): |
| 7780 | """ |
| 7781 | The timer has expired so call the callable. |
| 7782 | """ |
| 7783 | if self.callable and getattr(self.callable, 'im_self', True): |
| 7784 | self.runCount += 1 |
| 7785 | self.result = self.callable(*self.args, **self.kwargs) |
| 7786 | self.hasRun = True |
| 7787 | wx.CallAfter(self.Stop) |
| 7788 | |
| 7789 | |
| 7790 | #---------------------------------------------------------------------------- |
| 7791 | #---------------------------------------------------------------------------- |
| 7792 | |
| 7793 | # Import other modules in this package that should show up in the |
| 7794 | # "core" wx namespace |
| 7795 | from gdi import * |
| 7796 | from windows import * |
| 7797 | from controls import * |
| 7798 | from misc import * |
| 7799 | |
| 7800 | #---------------------------------------------------------------------------- |
| 7801 | #---------------------------------------------------------------------------- |
| 7802 | |
| 7803 | |