]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
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 | |
0f774bef | 236 | FULL_REPAINT_ON_RESIZE = _core.FULL_REPAINT_ON_RESIZE |
d14a1e28 RD |
237 | LI_HORIZONTAL = _core.LI_HORIZONTAL |
238 | LI_VERTICAL = _core.LI_VERTICAL | |
239 | WS_EX_VALIDATE_RECURSIVELY = _core.WS_EX_VALIDATE_RECURSIVELY | |
240 | WS_EX_BLOCK_EVENTS = _core.WS_EX_BLOCK_EVENTS | |
241 | WS_EX_TRANSIENT = _core.WS_EX_TRANSIENT | |
242 | WS_EX_THEMED_BACKGROUND = _core.WS_EX_THEMED_BACKGROUND | |
243 | WS_EX_PROCESS_IDLE = _core.WS_EX_PROCESS_IDLE | |
244 | WS_EX_PROCESS_UI_UPDATES = _core.WS_EX_PROCESS_UI_UPDATES | |
245 | MM_TEXT = _core.MM_TEXT | |
246 | MM_LOMETRIC = _core.MM_LOMETRIC | |
247 | MM_HIMETRIC = _core.MM_HIMETRIC | |
248 | MM_LOENGLISH = _core.MM_LOENGLISH | |
249 | MM_HIENGLISH = _core.MM_HIENGLISH | |
250 | MM_TWIPS = _core.MM_TWIPS | |
251 | MM_ISOTROPIC = _core.MM_ISOTROPIC | |
252 | MM_ANISOTROPIC = _core.MM_ANISOTROPIC | |
253 | MM_POINTS = _core.MM_POINTS | |
254 | MM_METRIC = _core.MM_METRIC | |
255 | CENTRE = _core.CENTRE | |
256 | CENTER = _core.CENTER | |
257 | HORIZONTAL = _core.HORIZONTAL | |
258 | VERTICAL = _core.VERTICAL | |
259 | BOTH = _core.BOTH | |
260 | LEFT = _core.LEFT | |
261 | RIGHT = _core.RIGHT | |
262 | UP = _core.UP | |
263 | DOWN = _core.DOWN | |
264 | TOP = _core.TOP | |
265 | BOTTOM = _core.BOTTOM | |
266 | NORTH = _core.NORTH | |
267 | SOUTH = _core.SOUTH | |
268 | WEST = _core.WEST | |
269 | EAST = _core.EAST | |
270 | ALL = _core.ALL | |
271 | ALIGN_NOT = _core.ALIGN_NOT | |
272 | ALIGN_CENTER_HORIZONTAL = _core.ALIGN_CENTER_HORIZONTAL | |
273 | ALIGN_CENTRE_HORIZONTAL = _core.ALIGN_CENTRE_HORIZONTAL | |
274 | ALIGN_LEFT = _core.ALIGN_LEFT | |
275 | ALIGN_TOP = _core.ALIGN_TOP | |
276 | ALIGN_RIGHT = _core.ALIGN_RIGHT | |
277 | ALIGN_BOTTOM = _core.ALIGN_BOTTOM | |
278 | ALIGN_CENTER_VERTICAL = _core.ALIGN_CENTER_VERTICAL | |
279 | ALIGN_CENTRE_VERTICAL = _core.ALIGN_CENTRE_VERTICAL | |
280 | ALIGN_CENTER = _core.ALIGN_CENTER | |
281 | ALIGN_CENTRE = _core.ALIGN_CENTRE | |
282 | ALIGN_MASK = _core.ALIGN_MASK | |
283 | STRETCH_NOT = _core.STRETCH_NOT | |
284 | SHRINK = _core.SHRINK | |
285 | GROW = _core.GROW | |
286 | EXPAND = _core.EXPAND | |
287 | SHAPED = _core.SHAPED | |
288 | ADJUST_MINSIZE = _core.ADJUST_MINSIZE | |
289 | TILE = _core.TILE | |
290 | BORDER_DEFAULT = _core.BORDER_DEFAULT | |
291 | BORDER_NONE = _core.BORDER_NONE | |
292 | BORDER_STATIC = _core.BORDER_STATIC | |
293 | BORDER_SIMPLE = _core.BORDER_SIMPLE | |
294 | BORDER_RAISED = _core.BORDER_RAISED | |
295 | BORDER_SUNKEN = _core.BORDER_SUNKEN | |
296 | BORDER_DOUBLE = _core.BORDER_DOUBLE | |
297 | BORDER_MASK = _core.BORDER_MASK | |
298 | DEFAULT = _core.DEFAULT | |
299 | DECORATIVE = _core.DECORATIVE | |
300 | ROMAN = _core.ROMAN | |
301 | SCRIPT = _core.SCRIPT | |
302 | SWISS = _core.SWISS | |
303 | MODERN = _core.MODERN | |
304 | TELETYPE = _core.TELETYPE | |
305 | VARIABLE = _core.VARIABLE | |
306 | FIXED = _core.FIXED | |
307 | NORMAL = _core.NORMAL | |
308 | LIGHT = _core.LIGHT | |
309 | BOLD = _core.BOLD | |
310 | ITALIC = _core.ITALIC | |
311 | SLANT = _core.SLANT | |
312 | SOLID = _core.SOLID | |
313 | DOT = _core.DOT | |
314 | LONG_DASH = _core.LONG_DASH | |
315 | SHORT_DASH = _core.SHORT_DASH | |
316 | DOT_DASH = _core.DOT_DASH | |
317 | USER_DASH = _core.USER_DASH | |
318 | TRANSPARENT = _core.TRANSPARENT | |
319 | STIPPLE = _core.STIPPLE | |
320 | BDIAGONAL_HATCH = _core.BDIAGONAL_HATCH | |
321 | CROSSDIAG_HATCH = _core.CROSSDIAG_HATCH | |
322 | FDIAGONAL_HATCH = _core.FDIAGONAL_HATCH | |
323 | CROSS_HATCH = _core.CROSS_HATCH | |
324 | HORIZONTAL_HATCH = _core.HORIZONTAL_HATCH | |
325 | VERTICAL_HATCH = _core.VERTICAL_HATCH | |
326 | JOIN_BEVEL = _core.JOIN_BEVEL | |
327 | JOIN_MITER = _core.JOIN_MITER | |
328 | JOIN_ROUND = _core.JOIN_ROUND | |
329 | CAP_ROUND = _core.CAP_ROUND | |
330 | CAP_PROJECTING = _core.CAP_PROJECTING | |
331 | CAP_BUTT = _core.CAP_BUTT | |
332 | CLEAR = _core.CLEAR | |
333 | XOR = _core.XOR | |
334 | INVERT = _core.INVERT | |
335 | OR_REVERSE = _core.OR_REVERSE | |
336 | AND_REVERSE = _core.AND_REVERSE | |
337 | COPY = _core.COPY | |
338 | AND = _core.AND | |
339 | AND_INVERT = _core.AND_INVERT | |
340 | NO_OP = _core.NO_OP | |
341 | NOR = _core.NOR | |
342 | EQUIV = _core.EQUIV | |
343 | SRC_INVERT = _core.SRC_INVERT | |
344 | OR_INVERT = _core.OR_INVERT | |
345 | NAND = _core.NAND | |
346 | OR = _core.OR | |
347 | SET = _core.SET | |
348 | WXK_BACK = _core.WXK_BACK | |
349 | WXK_TAB = _core.WXK_TAB | |
350 | WXK_RETURN = _core.WXK_RETURN | |
351 | WXK_ESCAPE = _core.WXK_ESCAPE | |
352 | WXK_SPACE = _core.WXK_SPACE | |
353 | WXK_DELETE = _core.WXK_DELETE | |
354 | WXK_START = _core.WXK_START | |
355 | WXK_LBUTTON = _core.WXK_LBUTTON | |
356 | WXK_RBUTTON = _core.WXK_RBUTTON | |
357 | WXK_CANCEL = _core.WXK_CANCEL | |
358 | WXK_MBUTTON = _core.WXK_MBUTTON | |
359 | WXK_CLEAR = _core.WXK_CLEAR | |
360 | WXK_SHIFT = _core.WXK_SHIFT | |
361 | WXK_ALT = _core.WXK_ALT | |
362 | WXK_CONTROL = _core.WXK_CONTROL | |
363 | WXK_MENU = _core.WXK_MENU | |
364 | WXK_PAUSE = _core.WXK_PAUSE | |
365 | WXK_CAPITAL = _core.WXK_CAPITAL | |
366 | WXK_PRIOR = _core.WXK_PRIOR | |
367 | WXK_NEXT = _core.WXK_NEXT | |
368 | WXK_END = _core.WXK_END | |
369 | WXK_HOME = _core.WXK_HOME | |
370 | WXK_LEFT = _core.WXK_LEFT | |
371 | WXK_UP = _core.WXK_UP | |
372 | WXK_RIGHT = _core.WXK_RIGHT | |
373 | WXK_DOWN = _core.WXK_DOWN | |
374 | WXK_SELECT = _core.WXK_SELECT | |
375 | WXK_PRINT = _core.WXK_PRINT | |
376 | WXK_EXECUTE = _core.WXK_EXECUTE | |
377 | WXK_SNAPSHOT = _core.WXK_SNAPSHOT | |
378 | WXK_INSERT = _core.WXK_INSERT | |
379 | WXK_HELP = _core.WXK_HELP | |
380 | WXK_NUMPAD0 = _core.WXK_NUMPAD0 | |
381 | WXK_NUMPAD1 = _core.WXK_NUMPAD1 | |
382 | WXK_NUMPAD2 = _core.WXK_NUMPAD2 | |
383 | WXK_NUMPAD3 = _core.WXK_NUMPAD3 | |
384 | WXK_NUMPAD4 = _core.WXK_NUMPAD4 | |
385 | WXK_NUMPAD5 = _core.WXK_NUMPAD5 | |
386 | WXK_NUMPAD6 = _core.WXK_NUMPAD6 | |
387 | WXK_NUMPAD7 = _core.WXK_NUMPAD7 | |
388 | WXK_NUMPAD8 = _core.WXK_NUMPAD8 | |
389 | WXK_NUMPAD9 = _core.WXK_NUMPAD9 | |
390 | WXK_MULTIPLY = _core.WXK_MULTIPLY | |
391 | WXK_ADD = _core.WXK_ADD | |
392 | WXK_SEPARATOR = _core.WXK_SEPARATOR | |
393 | WXK_SUBTRACT = _core.WXK_SUBTRACT | |
394 | WXK_DECIMAL = _core.WXK_DECIMAL | |
395 | WXK_DIVIDE = _core.WXK_DIVIDE | |
396 | WXK_F1 = _core.WXK_F1 | |
397 | WXK_F2 = _core.WXK_F2 | |
398 | WXK_F3 = _core.WXK_F3 | |
399 | WXK_F4 = _core.WXK_F4 | |
400 | WXK_F5 = _core.WXK_F5 | |
401 | WXK_F6 = _core.WXK_F6 | |
402 | WXK_F7 = _core.WXK_F7 | |
403 | WXK_F8 = _core.WXK_F8 | |
404 | WXK_F9 = _core.WXK_F9 | |
405 | WXK_F10 = _core.WXK_F10 | |
406 | WXK_F11 = _core.WXK_F11 | |
407 | WXK_F12 = _core.WXK_F12 | |
408 | WXK_F13 = _core.WXK_F13 | |
409 | WXK_F14 = _core.WXK_F14 | |
410 | WXK_F15 = _core.WXK_F15 | |
411 | WXK_F16 = _core.WXK_F16 | |
412 | WXK_F17 = _core.WXK_F17 | |
413 | WXK_F18 = _core.WXK_F18 | |
414 | WXK_F19 = _core.WXK_F19 | |
415 | WXK_F20 = _core.WXK_F20 | |
416 | WXK_F21 = _core.WXK_F21 | |
417 | WXK_F22 = _core.WXK_F22 | |
418 | WXK_F23 = _core.WXK_F23 | |
419 | WXK_F24 = _core.WXK_F24 | |
420 | WXK_NUMLOCK = _core.WXK_NUMLOCK | |
421 | WXK_SCROLL = _core.WXK_SCROLL | |
422 | WXK_PAGEUP = _core.WXK_PAGEUP | |
423 | WXK_PAGEDOWN = _core.WXK_PAGEDOWN | |
424 | WXK_NUMPAD_SPACE = _core.WXK_NUMPAD_SPACE | |
425 | WXK_NUMPAD_TAB = _core.WXK_NUMPAD_TAB | |
426 | WXK_NUMPAD_ENTER = _core.WXK_NUMPAD_ENTER | |
427 | WXK_NUMPAD_F1 = _core.WXK_NUMPAD_F1 | |
428 | WXK_NUMPAD_F2 = _core.WXK_NUMPAD_F2 | |
429 | WXK_NUMPAD_F3 = _core.WXK_NUMPAD_F3 | |
430 | WXK_NUMPAD_F4 = _core.WXK_NUMPAD_F4 | |
431 | WXK_NUMPAD_HOME = _core.WXK_NUMPAD_HOME | |
432 | WXK_NUMPAD_LEFT = _core.WXK_NUMPAD_LEFT | |
433 | WXK_NUMPAD_UP = _core.WXK_NUMPAD_UP | |
434 | WXK_NUMPAD_RIGHT = _core.WXK_NUMPAD_RIGHT | |
435 | WXK_NUMPAD_DOWN = _core.WXK_NUMPAD_DOWN | |
436 | WXK_NUMPAD_PRIOR = _core.WXK_NUMPAD_PRIOR | |
437 | WXK_NUMPAD_PAGEUP = _core.WXK_NUMPAD_PAGEUP | |
438 | WXK_NUMPAD_NEXT = _core.WXK_NUMPAD_NEXT | |
439 | WXK_NUMPAD_PAGEDOWN = _core.WXK_NUMPAD_PAGEDOWN | |
440 | WXK_NUMPAD_END = _core.WXK_NUMPAD_END | |
441 | WXK_NUMPAD_BEGIN = _core.WXK_NUMPAD_BEGIN | |
442 | WXK_NUMPAD_INSERT = _core.WXK_NUMPAD_INSERT | |
443 | WXK_NUMPAD_DELETE = _core.WXK_NUMPAD_DELETE | |
444 | WXK_NUMPAD_EQUAL = _core.WXK_NUMPAD_EQUAL | |
445 | WXK_NUMPAD_MULTIPLY = _core.WXK_NUMPAD_MULTIPLY | |
446 | WXK_NUMPAD_ADD = _core.WXK_NUMPAD_ADD | |
447 | WXK_NUMPAD_SEPARATOR = _core.WXK_NUMPAD_SEPARATOR | |
448 | WXK_NUMPAD_SUBTRACT = _core.WXK_NUMPAD_SUBTRACT | |
449 | WXK_NUMPAD_DECIMAL = _core.WXK_NUMPAD_DECIMAL | |
450 | WXK_NUMPAD_DIVIDE = _core.WXK_NUMPAD_DIVIDE | |
451 | WXK_WINDOWS_LEFT = _core.WXK_WINDOWS_LEFT | |
452 | WXK_WINDOWS_RIGHT = _core.WXK_WINDOWS_RIGHT | |
453 | WXK_WINDOWS_MENU = _core.WXK_WINDOWS_MENU | |
454 | PAPER_NONE = _core.PAPER_NONE | |
455 | PAPER_LETTER = _core.PAPER_LETTER | |
456 | PAPER_LEGAL = _core.PAPER_LEGAL | |
457 | PAPER_A4 = _core.PAPER_A4 | |
458 | PAPER_CSHEET = _core.PAPER_CSHEET | |
459 | PAPER_DSHEET = _core.PAPER_DSHEET | |
460 | PAPER_ESHEET = _core.PAPER_ESHEET | |
461 | PAPER_LETTERSMALL = _core.PAPER_LETTERSMALL | |
462 | PAPER_TABLOID = _core.PAPER_TABLOID | |
463 | PAPER_LEDGER = _core.PAPER_LEDGER | |
464 | PAPER_STATEMENT = _core.PAPER_STATEMENT | |
465 | PAPER_EXECUTIVE = _core.PAPER_EXECUTIVE | |
466 | PAPER_A3 = _core.PAPER_A3 | |
467 | PAPER_A4SMALL = _core.PAPER_A4SMALL | |
468 | PAPER_A5 = _core.PAPER_A5 | |
469 | PAPER_B4 = _core.PAPER_B4 | |
470 | PAPER_B5 = _core.PAPER_B5 | |
471 | PAPER_FOLIO = _core.PAPER_FOLIO | |
472 | PAPER_QUARTO = _core.PAPER_QUARTO | |
473 | PAPER_10X14 = _core.PAPER_10X14 | |
474 | PAPER_11X17 = _core.PAPER_11X17 | |
475 | PAPER_NOTE = _core.PAPER_NOTE | |
476 | PAPER_ENV_9 = _core.PAPER_ENV_9 | |
477 | PAPER_ENV_10 = _core.PAPER_ENV_10 | |
478 | PAPER_ENV_11 = _core.PAPER_ENV_11 | |
479 | PAPER_ENV_12 = _core.PAPER_ENV_12 | |
480 | PAPER_ENV_14 = _core.PAPER_ENV_14 | |
481 | PAPER_ENV_DL = _core.PAPER_ENV_DL | |
482 | PAPER_ENV_C5 = _core.PAPER_ENV_C5 | |
483 | PAPER_ENV_C3 = _core.PAPER_ENV_C3 | |
484 | PAPER_ENV_C4 = _core.PAPER_ENV_C4 | |
485 | PAPER_ENV_C6 = _core.PAPER_ENV_C6 | |
486 | PAPER_ENV_C65 = _core.PAPER_ENV_C65 | |
487 | PAPER_ENV_B4 = _core.PAPER_ENV_B4 | |
488 | PAPER_ENV_B5 = _core.PAPER_ENV_B5 | |
489 | PAPER_ENV_B6 = _core.PAPER_ENV_B6 | |
490 | PAPER_ENV_ITALY = _core.PAPER_ENV_ITALY | |
491 | PAPER_ENV_MONARCH = _core.PAPER_ENV_MONARCH | |
492 | PAPER_ENV_PERSONAL = _core.PAPER_ENV_PERSONAL | |
493 | PAPER_FANFOLD_US = _core.PAPER_FANFOLD_US | |
494 | PAPER_FANFOLD_STD_GERMAN = _core.PAPER_FANFOLD_STD_GERMAN | |
495 | PAPER_FANFOLD_LGL_GERMAN = _core.PAPER_FANFOLD_LGL_GERMAN | |
496 | PAPER_ISO_B4 = _core.PAPER_ISO_B4 | |
497 | PAPER_JAPANESE_POSTCARD = _core.PAPER_JAPANESE_POSTCARD | |
498 | PAPER_9X11 = _core.PAPER_9X11 | |
499 | PAPER_10X11 = _core.PAPER_10X11 | |
500 | PAPER_15X11 = _core.PAPER_15X11 | |
501 | PAPER_ENV_INVITE = _core.PAPER_ENV_INVITE | |
502 | PAPER_LETTER_EXTRA = _core.PAPER_LETTER_EXTRA | |
503 | PAPER_LEGAL_EXTRA = _core.PAPER_LEGAL_EXTRA | |
504 | PAPER_TABLOID_EXTRA = _core.PAPER_TABLOID_EXTRA | |
505 | PAPER_A4_EXTRA = _core.PAPER_A4_EXTRA | |
506 | PAPER_LETTER_TRANSVERSE = _core.PAPER_LETTER_TRANSVERSE | |
507 | PAPER_A4_TRANSVERSE = _core.PAPER_A4_TRANSVERSE | |
508 | PAPER_LETTER_EXTRA_TRANSVERSE = _core.PAPER_LETTER_EXTRA_TRANSVERSE | |
509 | PAPER_A_PLUS = _core.PAPER_A_PLUS | |
510 | PAPER_B_PLUS = _core.PAPER_B_PLUS | |
511 | PAPER_LETTER_PLUS = _core.PAPER_LETTER_PLUS | |
512 | PAPER_A4_PLUS = _core.PAPER_A4_PLUS | |
513 | PAPER_A5_TRANSVERSE = _core.PAPER_A5_TRANSVERSE | |
514 | PAPER_B5_TRANSVERSE = _core.PAPER_B5_TRANSVERSE | |
515 | PAPER_A3_EXTRA = _core.PAPER_A3_EXTRA | |
516 | PAPER_A5_EXTRA = _core.PAPER_A5_EXTRA | |
517 | PAPER_B5_EXTRA = _core.PAPER_B5_EXTRA | |
518 | PAPER_A2 = _core.PAPER_A2 | |
519 | PAPER_A3_TRANSVERSE = _core.PAPER_A3_TRANSVERSE | |
520 | PAPER_A3_EXTRA_TRANSVERSE = _core.PAPER_A3_EXTRA_TRANSVERSE | |
521 | DUPLEX_SIMPLEX = _core.DUPLEX_SIMPLEX | |
522 | DUPLEX_HORIZONTAL = _core.DUPLEX_HORIZONTAL | |
523 | DUPLEX_VERTICAL = _core.DUPLEX_VERTICAL | |
524 | ITEM_SEPARATOR = _core.ITEM_SEPARATOR | |
525 | ITEM_NORMAL = _core.ITEM_NORMAL | |
526 | ITEM_CHECK = _core.ITEM_CHECK | |
527 | ITEM_RADIO = _core.ITEM_RADIO | |
528 | ITEM_MAX = _core.ITEM_MAX | |
529 | HT_NOWHERE = _core.HT_NOWHERE | |
530 | HT_SCROLLBAR_FIRST = _core.HT_SCROLLBAR_FIRST | |
531 | HT_SCROLLBAR_ARROW_LINE_1 = _core.HT_SCROLLBAR_ARROW_LINE_1 | |
532 | HT_SCROLLBAR_ARROW_LINE_2 = _core.HT_SCROLLBAR_ARROW_LINE_2 | |
533 | HT_SCROLLBAR_ARROW_PAGE_1 = _core.HT_SCROLLBAR_ARROW_PAGE_1 | |
534 | HT_SCROLLBAR_ARROW_PAGE_2 = _core.HT_SCROLLBAR_ARROW_PAGE_2 | |
535 | HT_SCROLLBAR_THUMB = _core.HT_SCROLLBAR_THUMB | |
536 | HT_SCROLLBAR_BAR_1 = _core.HT_SCROLLBAR_BAR_1 | |
537 | HT_SCROLLBAR_BAR_2 = _core.HT_SCROLLBAR_BAR_2 | |
538 | HT_SCROLLBAR_LAST = _core.HT_SCROLLBAR_LAST | |
539 | HT_WINDOW_OUTSIDE = _core.HT_WINDOW_OUTSIDE | |
540 | HT_WINDOW_INSIDE = _core.HT_WINDOW_INSIDE | |
541 | HT_WINDOW_VERT_SCROLLBAR = _core.HT_WINDOW_VERT_SCROLLBAR | |
542 | HT_WINDOW_HORZ_SCROLLBAR = _core.HT_WINDOW_HORZ_SCROLLBAR | |
543 | HT_WINDOW_CORNER = _core.HT_WINDOW_CORNER | |
544 | HT_MAX = _core.HT_MAX | |
545 | MOD_NONE = _core.MOD_NONE | |
546 | MOD_ALT = _core.MOD_ALT | |
547 | MOD_CONTROL = _core.MOD_CONTROL | |
548 | MOD_SHIFT = _core.MOD_SHIFT | |
549 | MOD_WIN = _core.MOD_WIN | |
550 | UPDATE_UI_NONE = _core.UPDATE_UI_NONE | |
551 | UPDATE_UI_RECURSE = _core.UPDATE_UI_RECURSE | |
552 | UPDATE_UI_FROMIDLE = _core.UPDATE_UI_FROMIDLE | |
553 | #--------------------------------------------------------------------------- | |
554 | ||
555 | class Object(object): | |
41f1cec7 RD |
556 | """ |
557 | The base class for most wx objects, although in wxPython not | |
558 | much functionality is needed nor exposed. | |
559 | """ | |
d14a1e28 RD |
560 | def __init__(self): raise RuntimeError, "No constructor defined" |
561 | def __repr__(self): | |
562 | return "<%s.%s; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
423f194a | 563 | def GetClassName(*args, **kwargs): |
41f1cec7 RD |
564 | """ |
565 | GetClassName() -> wxString | |
423f194a | 566 | |
41f1cec7 RD |
567 | Returns the class name of the C++ object using wxRTTI. |
568 | """ | |
423f194a RD |
569 | return _core.Object_GetClassName(*args, **kwargs) |
570 | ||
571 | def Destroy(*args, **kwargs): | |
41f1cec7 RD |
572 | """ |
573 | Destroy() | |
423f194a | 574 | |
41f1cec7 RD |
575 | Deletes the C++ object this Python object is a proxy for. |
576 | """ | |
423f194a RD |
577 | return _core.Object_Destroy(*args, **kwargs) |
578 | ||
d14a1e28 RD |
579 | |
580 | class ObjectPtr(Object): | |
581 | def __init__(self, this): | |
582 | self.this = this | |
583 | if not hasattr(self,"thisown"): self.thisown = 0 | |
584 | self.__class__ = Object | |
585 | _core.Object_swigregister(ObjectPtr) | |
586 | _wxPySetDictionary = _core._wxPySetDictionary | |
587 | ||
588 | ||
589 | #--------------------------------------------------------------------------- | |
590 | ||
591 | BITMAP_TYPE_INVALID = _core.BITMAP_TYPE_INVALID | |
592 | BITMAP_TYPE_BMP = _core.BITMAP_TYPE_BMP | |
593 | BITMAP_TYPE_BMP_RESOURCE = _core.BITMAP_TYPE_BMP_RESOURCE | |
594 | BITMAP_TYPE_RESOURCE = _core.BITMAP_TYPE_RESOURCE | |
595 | BITMAP_TYPE_ICO = _core.BITMAP_TYPE_ICO | |
596 | BITMAP_TYPE_ICO_RESOURCE = _core.BITMAP_TYPE_ICO_RESOURCE | |
597 | BITMAP_TYPE_CUR = _core.BITMAP_TYPE_CUR | |
598 | BITMAP_TYPE_CUR_RESOURCE = _core.BITMAP_TYPE_CUR_RESOURCE | |
599 | BITMAP_TYPE_XBM = _core.BITMAP_TYPE_XBM | |
600 | BITMAP_TYPE_XBM_DATA = _core.BITMAP_TYPE_XBM_DATA | |
601 | BITMAP_TYPE_XPM = _core.BITMAP_TYPE_XPM | |
602 | BITMAP_TYPE_XPM_DATA = _core.BITMAP_TYPE_XPM_DATA | |
603 | BITMAP_TYPE_TIF = _core.BITMAP_TYPE_TIF | |
604 | BITMAP_TYPE_TIF_RESOURCE = _core.BITMAP_TYPE_TIF_RESOURCE | |
605 | BITMAP_TYPE_GIF = _core.BITMAP_TYPE_GIF | |
606 | BITMAP_TYPE_GIF_RESOURCE = _core.BITMAP_TYPE_GIF_RESOURCE | |
607 | BITMAP_TYPE_PNG = _core.BITMAP_TYPE_PNG | |
608 | BITMAP_TYPE_PNG_RESOURCE = _core.BITMAP_TYPE_PNG_RESOURCE | |
609 | BITMAP_TYPE_JPEG = _core.BITMAP_TYPE_JPEG | |
610 | BITMAP_TYPE_JPEG_RESOURCE = _core.BITMAP_TYPE_JPEG_RESOURCE | |
611 | BITMAP_TYPE_PNM = _core.BITMAP_TYPE_PNM | |
612 | BITMAP_TYPE_PNM_RESOURCE = _core.BITMAP_TYPE_PNM_RESOURCE | |
613 | BITMAP_TYPE_PCX = _core.BITMAP_TYPE_PCX | |
614 | BITMAP_TYPE_PCX_RESOURCE = _core.BITMAP_TYPE_PCX_RESOURCE | |
615 | BITMAP_TYPE_PICT = _core.BITMAP_TYPE_PICT | |
616 | BITMAP_TYPE_PICT_RESOURCE = _core.BITMAP_TYPE_PICT_RESOURCE | |
617 | BITMAP_TYPE_ICON = _core.BITMAP_TYPE_ICON | |
618 | BITMAP_TYPE_ICON_RESOURCE = _core.BITMAP_TYPE_ICON_RESOURCE | |
619 | BITMAP_TYPE_ANI = _core.BITMAP_TYPE_ANI | |
620 | BITMAP_TYPE_IFF = _core.BITMAP_TYPE_IFF | |
621 | BITMAP_TYPE_MACCURSOR = _core.BITMAP_TYPE_MACCURSOR | |
622 | BITMAP_TYPE_MACCURSOR_RESOURCE = _core.BITMAP_TYPE_MACCURSOR_RESOURCE | |
623 | BITMAP_TYPE_ANY = _core.BITMAP_TYPE_ANY | |
624 | CURSOR_NONE = _core.CURSOR_NONE | |
625 | CURSOR_ARROW = _core.CURSOR_ARROW | |
626 | CURSOR_RIGHT_ARROW = _core.CURSOR_RIGHT_ARROW | |
627 | CURSOR_BULLSEYE = _core.CURSOR_BULLSEYE | |
628 | CURSOR_CHAR = _core.CURSOR_CHAR | |
629 | CURSOR_CROSS = _core.CURSOR_CROSS | |
630 | CURSOR_HAND = _core.CURSOR_HAND | |
631 | CURSOR_IBEAM = _core.CURSOR_IBEAM | |
632 | CURSOR_LEFT_BUTTON = _core.CURSOR_LEFT_BUTTON | |
633 | CURSOR_MAGNIFIER = _core.CURSOR_MAGNIFIER | |
634 | CURSOR_MIDDLE_BUTTON = _core.CURSOR_MIDDLE_BUTTON | |
635 | CURSOR_NO_ENTRY = _core.CURSOR_NO_ENTRY | |
636 | CURSOR_PAINT_BRUSH = _core.CURSOR_PAINT_BRUSH | |
637 | CURSOR_PENCIL = _core.CURSOR_PENCIL | |
638 | CURSOR_POINT_LEFT = _core.CURSOR_POINT_LEFT | |
639 | CURSOR_POINT_RIGHT = _core.CURSOR_POINT_RIGHT | |
640 | CURSOR_QUESTION_ARROW = _core.CURSOR_QUESTION_ARROW | |
641 | CURSOR_RIGHT_BUTTON = _core.CURSOR_RIGHT_BUTTON | |
642 | CURSOR_SIZENESW = _core.CURSOR_SIZENESW | |
643 | CURSOR_SIZENS = _core.CURSOR_SIZENS | |
644 | CURSOR_SIZENWSE = _core.CURSOR_SIZENWSE | |
645 | CURSOR_SIZEWE = _core.CURSOR_SIZEWE | |
646 | CURSOR_SIZING = _core.CURSOR_SIZING | |
647 | CURSOR_SPRAYCAN = _core.CURSOR_SPRAYCAN | |
648 | CURSOR_WAIT = _core.CURSOR_WAIT | |
649 | CURSOR_WATCH = _core.CURSOR_WATCH | |
650 | CURSOR_BLANK = _core.CURSOR_BLANK | |
651 | CURSOR_DEFAULT = _core.CURSOR_DEFAULT | |
652 | CURSOR_COPY_ARROW = _core.CURSOR_COPY_ARROW | |
653 | CURSOR_ARROWWAIT = _core.CURSOR_ARROWWAIT | |
654 | CURSOR_MAX = _core.CURSOR_MAX | |
655 | #--------------------------------------------------------------------------- | |
656 | ||
657 | class Size(object): | |
41f1cec7 RD |
658 | """ |
659 | wx.Size is a useful data structure used to represent the size of something. | |
660 | It simply contians integer width and height proprtites. In most places in | |
661 | wxPython where a wx.Size is expected a (width,height) tuple can be used | |
662 | instead. | |
663 | """ | |
423f194a RD |
664 | def __repr__(self): |
665 | return "<%s.%s; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 RD |
666 | width = property(_core.Size_width_get, _core.Size_width_set) |
667 | height = property(_core.Size_height_get, _core.Size_height_set) | |
0f774bef | 668 | x = width; y = height |
d14a1e28 | 669 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
670 | """ |
671 | __init__(int w=0, int h=0) -> Size | |
423f194a | 672 | |
41f1cec7 RD |
673 | Creates a size object. |
674 | """ | |
d14a1e28 RD |
675 | newobj = _core.new_Size(*args, **kwargs) |
676 | self.this = newobj.this | |
677 | self.thisown = 1 | |
678 | del newobj.thisown | |
679 | def __del__(self, destroy=_core.delete_Size): | |
423f194a | 680 | """__del__()""" |
d14a1e28 RD |
681 | try: |
682 | if self.thisown: destroy(self) | |
683 | except: pass | |
423f194a RD |
684 | |
685 | def __eq__(*args, **kwargs): | |
41f1cec7 RD |
686 | """ |
687 | __eq__(Size sz) -> bool | |
423f194a | 688 | |
41f1cec7 RD |
689 | Test for equality of wx.Size objects. |
690 | """ | |
423f194a RD |
691 | return _core.Size___eq__(*args, **kwargs) |
692 | ||
693 | def __ne__(*args, **kwargs): | |
41f1cec7 RD |
694 | """ |
695 | __ne__(Size sz) -> bool | |
423f194a | 696 | |
41f1cec7 RD |
697 | Test for inequality. |
698 | """ | |
423f194a RD |
699 | return _core.Size___ne__(*args, **kwargs) |
700 | ||
701 | def __add__(*args, **kwargs): | |
41f1cec7 RD |
702 | """ |
703 | __add__(Size sz) -> Size | |
423f194a | 704 | |
41f1cec7 RD |
705 | Add sz's proprties to this and return the result. |
706 | """ | |
423f194a RD |
707 | return _core.Size___add__(*args, **kwargs) |
708 | ||
709 | def __sub__(*args, **kwargs): | |
41f1cec7 RD |
710 | """ |
711 | __sub__(Size sz) -> Size | |
423f194a | 712 | |
41f1cec7 RD |
713 | Subtract sz's properties from this and return the result. |
714 | """ | |
423f194a RD |
715 | return _core.Size___sub__(*args, **kwargs) |
716 | ||
717 | def IncTo(*args, **kwargs): | |
41f1cec7 RD |
718 | """ |
719 | IncTo(Size sz) | |
423f194a | 720 | |
41f1cec7 RD |
721 | Increments this object so that both of its dimensions are not less |
722 | than the corresponding dimensions of the size. | |
723 | """ | |
423f194a RD |
724 | return _core.Size_IncTo(*args, **kwargs) |
725 | ||
726 | def DecTo(*args, **kwargs): | |
41f1cec7 RD |
727 | """ |
728 | DecTo(Size sz) | |
423f194a | 729 | |
41f1cec7 RD |
730 | Decrements this object so that both of its dimensions are not greater |
731 | than the corresponding dimensions of the size. | |
732 | """ | |
423f194a RD |
733 | return _core.Size_DecTo(*args, **kwargs) |
734 | ||
735 | def Set(*args, **kwargs): | |
41f1cec7 RD |
736 | """ |
737 | Set(int w, int h) | |
423f194a | 738 | |
41f1cec7 RD |
739 | Set both width and height. |
740 | """ | |
423f194a RD |
741 | return _core.Size_Set(*args, **kwargs) |
742 | ||
743 | def SetWidth(*args, **kwargs): | |
744 | """SetWidth(int w)""" | |
745 | return _core.Size_SetWidth(*args, **kwargs) | |
746 | ||
747 | def SetHeight(*args, **kwargs): | |
748 | """SetHeight(int h)""" | |
749 | return _core.Size_SetHeight(*args, **kwargs) | |
750 | ||
751 | def GetWidth(*args, **kwargs): | |
752 | """GetWidth() -> int""" | |
753 | return _core.Size_GetWidth(*args, **kwargs) | |
754 | ||
755 | def GetHeight(*args, **kwargs): | |
756 | """GetHeight() -> int""" | |
757 | return _core.Size_GetHeight(*args, **kwargs) | |
758 | ||
759 | def Get(*args, **kwargs): | |
41f1cec7 RD |
760 | """ |
761 | Get() -> (width,height) | |
423f194a | 762 | |
41f1cec7 RD |
763 | Returns the width and height properties as a tuple. |
764 | """ | |
423f194a RD |
765 | return _core.Size_Get(*args, **kwargs) |
766 | ||
767 | asTuple = Get | |
768 | def __str__(self): return str(self.Get()) | |
769 | def __repr__(self): return 'wx.Size'+str(self.Get()) | |
770 | def __len__(self): return len(self.Get()) | |
771 | def __getitem__(self, index): return self.Get()[index] | |
d14a1e28 RD |
772 | def __setitem__(self, index, val): |
773 | if index == 0: self.width = val | |
774 | elif index == 1: self.height = val | |
775 | else: raise IndexError | |
423f194a | 776 | def __nonzero__(self): return self.Get() != (0,0) |
d14a1e28 | 777 | def __getinitargs__(self): return () |
423f194a | 778 | def __getstate__(self): return self.Get() |
d14a1e28 RD |
779 | def __setstate__(self, state): self.Set(*state) |
780 | ||
781 | ||
782 | class SizePtr(Size): | |
783 | def __init__(self, this): | |
784 | self.this = this | |
785 | if not hasattr(self,"thisown"): self.thisown = 0 | |
786 | self.__class__ = Size | |
787 | _core.Size_swigregister(SizePtr) | |
788 | ||
789 | #--------------------------------------------------------------------------- | |
790 | ||
791 | class RealPoint(object): | |
41f1cec7 RD |
792 | """ |
793 | A data structure for representing a point or position with floating point x | |
794 | and y properties. In wxPython most places that expect a wx.RealPoint can also | |
795 | accept a (x,y) tuple. | |
796 | """ | |
423f194a RD |
797 | def __repr__(self): |
798 | return "<%s.%s; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 RD |
799 | x = property(_core.RealPoint_x_get, _core.RealPoint_x_set) |
800 | y = property(_core.RealPoint_y_get, _core.RealPoint_y_set) | |
801 | def __init__(self, *args, **kwargs): | |
41f1cec7 RD |
802 | """ |
803 | __init__(double x=0.0, double y=0.0) -> RealPoint | |
423f194a | 804 | |
41f1cec7 RD |
805 | Create a wx.RealPoint object |
806 | """ | |
d14a1e28 RD |
807 | newobj = _core.new_RealPoint(*args, **kwargs) |
808 | self.this = newobj.this | |
809 | self.thisown = 1 | |
810 | del newobj.thisown | |
811 | def __del__(self, destroy=_core.delete_RealPoint): | |
423f194a | 812 | """__del__()""" |
d14a1e28 RD |
813 | try: |
814 | if self.thisown: destroy(self) | |
815 | except: pass | |
423f194a RD |
816 | |
817 | def __eq__(*args, **kwargs): | |
41f1cec7 RD |
818 | """ |
819 | __eq__(RealPoint pt) -> bool | |
423f194a | 820 | |
41f1cec7 RD |
821 | Test for equality of wx.RealPoint objects. |
822 | """ | |
423f194a RD |
823 | return _core.RealPoint___eq__(*args, **kwargs) |
824 | ||
825 | def __ne__(*args, **kwargs): | |
41f1cec7 RD |
826 | """ |
827 | __ne__(RealPoint pt) -> bool | |
423f194a | 828 | |
41f1cec7 RD |
829 | Test for inequality of wx.RealPoint objects. |
830 | """ | |
423f194a RD |
831 | return _core.RealPoint___ne__(*args, **kwargs) |
832 | ||
833 | def __add__(*args, **kwargs): | |
41f1cec7 RD |
834 | """ |
835 | __add__(RealPoint pt) -> RealPoint | |
423f194a | 836 | |
41f1cec7 RD |
837 | Add pt's proprties to this and return the result. |
838 | """ | |
423f194a RD |
839 | return _core.RealPoint___add__(*args, **kwargs) |
840 | ||
841 | def __sub__(*args, **kwargs): | |
41f1cec7 RD |
842 | """ |
843 | __sub__(RealPoint pt) -> RealPoint | |
423f194a | 844 | |
41f1cec7 RD |
845 | Subtract pt's proprties from this and return the result |
846 | """ | |
423f194a RD |
847 | return _core.RealPoint___sub__(*args, **kwargs) |
848 | ||
849 | def Set(*args, **kwargs): | |
41f1cec7 RD |
850 | """ |
851 | Set(double x, double y) | |
423f194a | 852 | |
41f1cec7 RD |
853 | Set both the x and y properties |
854 | """ | |
423f194a RD |
855 | return _core.RealPoint_Set(*args, **kwargs) |
856 | ||
857 | def Get(*args, **kwargs): | |
41f1cec7 RD |
858 | """ |
859 | Get() -> (x,y) | |
423f194a | 860 | |
41f1cec7 RD |
861 | Return the x and y properties as a tuple. |
862 | """ | |
423f194a RD |
863 | return _core.RealPoint_Get(*args, **kwargs) |
864 | ||
865 | asTuple = Get | |
866 | def __str__(self): return str(self.Get()) | |
867 | def __repr__(self): return 'wx.RealPoint'+str(self.Get()) | |
868 | def __len__(self): return len(self.Get()) | |
869 | def __getitem__(self, index): return self.Get()[index] | |
d14a1e28 | 870 | def __setitem__(self, index, val): |
423f194a RD |
871 | if index == 0: self.x = val |
872 | elif index == 1: self.y = val | |
d14a1e28 | 873 | else: raise IndexError |
423f194a | 874 | def __nonzero__(self): return self.Get() != (0.0, 0.0) |
d14a1e28 | 875 | def __getinitargs__(self): return () |
423f194a | 876 | def __getstate__(self): return self.Get() |
d14a1e28 RD |
877 | def __setstate__(self, state): self.Set(*state) |
878 | ||
879 | ||
880 | class RealPointPtr(RealPoint): | |
881 | def __init__(self, this): | |
882 | self.this = this | |
883 | if not hasattr(self,"thisown"): self.thisown = 0 | |
884 | self.__class__ = RealPoint | |
885 | _core.RealPoint_swigregister(RealPointPtr) | |
886 | ||
887 | #--------------------------------------------------------------------------- | |
888 | ||
889 | class Point(object): | |
41f1cec7 RD |
890 | """ |
891 | A data structure for representing a point or position with integer x and y | |
892 | properties. Most places in wxPython that expect a wx.Point can also accept a | |
893 | (x,y) tuple. | |
894 | """ | |
423f194a RD |
895 | def __repr__(self): |
896 | return "<%s.%s; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 RD |
897 | x = property(_core.Point_x_get, _core.Point_x_set) |
898 | y = property(_core.Point_y_get, _core.Point_y_set) | |
899 | def __init__(self, *args, **kwargs): | |
41f1cec7 RD |
900 | """ |
901 | __init__(int x=0, int y=0) -> Point | |
423f194a | 902 | |
41f1cec7 RD |
903 | Create a wx.Point object |
904 | """ | |
d14a1e28 RD |
905 | newobj = _core.new_Point(*args, **kwargs) |
906 | self.this = newobj.this | |
907 | self.thisown = 1 | |
908 | del newobj.thisown | |
909 | def __del__(self, destroy=_core.delete_Point): | |
423f194a | 910 | """__del__()""" |
d14a1e28 RD |
911 | try: |
912 | if self.thisown: destroy(self) | |
913 | except: pass | |
423f194a RD |
914 | |
915 | def __eq__(*args, **kwargs): | |
41f1cec7 RD |
916 | """ |
917 | __eq__(Point pt) -> bool | |
423f194a | 918 | |
41f1cec7 RD |
919 | Test for equality of wx.Point objects. |
920 | """ | |
423f194a RD |
921 | return _core.Point___eq__(*args, **kwargs) |
922 | ||
923 | def __ne__(*args, **kwargs): | |
41f1cec7 RD |
924 | """ |
925 | __ne__(Point pt) -> bool | |
423f194a | 926 | |
41f1cec7 RD |
927 | Test for inequality of wx.Point objects. |
928 | """ | |
423f194a RD |
929 | return _core.Point___ne__(*args, **kwargs) |
930 | ||
931 | def __add__(*args, **kwargs): | |
41f1cec7 RD |
932 | """ |
933 | __add__(Point pt) -> Point | |
423f194a | 934 | |
41f1cec7 RD |
935 | Add pt's proprties to this and return the result. |
936 | """ | |
423f194a RD |
937 | return _core.Point___add__(*args, **kwargs) |
938 | ||
939 | def __sub__(*args, **kwargs): | |
41f1cec7 RD |
940 | """ |
941 | __sub__(Point pt) -> Point | |
423f194a | 942 | |
41f1cec7 RD |
943 | Subtract pt's proprties from this and return the result |
944 | """ | |
423f194a RD |
945 | return _core.Point___sub__(*args, **kwargs) |
946 | ||
947 | def __iadd__(*args, **kwargs): | |
41f1cec7 RD |
948 | """ |
949 | __iadd__(Point pt) -> Point | |
423f194a | 950 | |
41f1cec7 RD |
951 | Add pt to this object. |
952 | """ | |
423f194a RD |
953 | return _core.Point___iadd__(*args, **kwargs) |
954 | ||
955 | def __isub__(*args, **kwargs): | |
41f1cec7 RD |
956 | """ |
957 | __isub__(Point pt) -> Point | |
423f194a | 958 | |
41f1cec7 RD |
959 | Subtract pt from this object. |
960 | """ | |
423f194a RD |
961 | return _core.Point___isub__(*args, **kwargs) |
962 | ||
963 | def Set(*args, **kwargs): | |
41f1cec7 RD |
964 | """ |
965 | Set(long x, long y) | |
423f194a | 966 | |
41f1cec7 RD |
967 | Set both the x and y properties |
968 | """ | |
423f194a RD |
969 | return _core.Point_Set(*args, **kwargs) |
970 | ||
971 | def Get(*args, **kwargs): | |
41f1cec7 RD |
972 | """ |
973 | Get() -> (x,y) | |
423f194a | 974 | |
41f1cec7 RD |
975 | Return the x and y properties as a tuple. |
976 | """ | |
423f194a RD |
977 | return _core.Point_Get(*args, **kwargs) |
978 | ||
979 | asTuple = Get | |
980 | def __str__(self): return str(self.Get()) | |
981 | def __repr__(self): return 'wx.Point'+str(self.Get()) | |
982 | def __len__(self): return len(self.Get()) | |
983 | def __getitem__(self, index): return self.Get()[index] | |
d14a1e28 RD |
984 | def __setitem__(self, index, val): |
985 | if index == 0: self.x = val | |
986 | elif index == 1: self.y = val | |
987 | else: raise IndexError | |
423f194a | 988 | def __nonzero__(self): return self.Get() != (0,0) |
d14a1e28 | 989 | def __getinitargs__(self): return () |
423f194a | 990 | def __getstate__(self): return self.Get() |
d14a1e28 RD |
991 | def __setstate__(self, state): self.Set(*state) |
992 | ||
993 | ||
994 | class PointPtr(Point): | |
995 | def __init__(self, this): | |
996 | self.this = this | |
997 | if not hasattr(self,"thisown"): self.thisown = 0 | |
998 | self.__class__ = Point | |
999 | _core.Point_swigregister(PointPtr) | |
1000 | ||
1001 | #--------------------------------------------------------------------------- | |
1002 | ||
1003 | class Rect(object): | |
41f1cec7 RD |
1004 | """ |
1005 | A class for representing and manipulating rectangles. It has x, y, width and | |
1006 | height properties. In wxPython most palces that expect a wx.Rect can also | |
1007 | accept a (x,y,width,height) tuple. | |
1008 | """ | |
423f194a RD |
1009 | def __repr__(self): |
1010 | return "<%s.%s; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1011 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
1012 | """ |
1013 | __init__(int x=0, int y=0, int width=0, int height=0) -> Rect | |
423f194a | 1014 | |
41f1cec7 RD |
1015 | Create a new Rect object. |
1016 | """ | |
d14a1e28 RD |
1017 | newobj = _core.new_Rect(*args, **kwargs) |
1018 | self.this = newobj.this | |
1019 | self.thisown = 1 | |
1020 | del newobj.thisown | |
1021 | def __del__(self, destroy=_core.delete_Rect): | |
423f194a | 1022 | """__del__()""" |
d14a1e28 RD |
1023 | try: |
1024 | if self.thisown: destroy(self) | |
1025 | except: pass | |
423f194a RD |
1026 | |
1027 | def GetX(*args, **kwargs): | |
1028 | """GetX() -> int""" | |
1029 | return _core.Rect_GetX(*args, **kwargs) | |
1030 | ||
1031 | def SetX(*args, **kwargs): | |
1032 | """SetX(int x)""" | |
1033 | return _core.Rect_SetX(*args, **kwargs) | |
1034 | ||
1035 | def GetY(*args, **kwargs): | |
1036 | """GetY() -> int""" | |
1037 | return _core.Rect_GetY(*args, **kwargs) | |
1038 | ||
1039 | def SetY(*args, **kwargs): | |
1040 | """SetY(int y)""" | |
1041 | return _core.Rect_SetY(*args, **kwargs) | |
1042 | ||
1043 | def GetWidth(*args, **kwargs): | |
1044 | """GetWidth() -> int""" | |
1045 | return _core.Rect_GetWidth(*args, **kwargs) | |
1046 | ||
1047 | def SetWidth(*args, **kwargs): | |
1048 | """SetWidth(int w)""" | |
1049 | return _core.Rect_SetWidth(*args, **kwargs) | |
1050 | ||
1051 | def GetHeight(*args, **kwargs): | |
1052 | """GetHeight() -> int""" | |
1053 | return _core.Rect_GetHeight(*args, **kwargs) | |
1054 | ||
1055 | def SetHeight(*args, **kwargs): | |
1056 | """SetHeight(int h)""" | |
1057 | return _core.Rect_SetHeight(*args, **kwargs) | |
1058 | ||
1059 | def GetPosition(*args, **kwargs): | |
1060 | """GetPosition() -> Point""" | |
1061 | return _core.Rect_GetPosition(*args, **kwargs) | |
1062 | ||
1063 | def SetPosition(*args, **kwargs): | |
1064 | """SetPosition(Point p)""" | |
1065 | return _core.Rect_SetPosition(*args, **kwargs) | |
1066 | ||
1067 | def GetSize(*args, **kwargs): | |
1068 | """GetSize() -> Size""" | |
1069 | return _core.Rect_GetSize(*args, **kwargs) | |
1070 | ||
1071 | def SetSize(*args, **kwargs): | |
1072 | """SetSize(Size s)""" | |
1073 | return _core.Rect_SetSize(*args, **kwargs) | |
1074 | ||
9fd4be55 RD |
1075 | def GetTopLeft(*args, **kwargs): |
1076 | """GetTopLeft() -> Point""" | |
1077 | return _core.Rect_GetTopLeft(*args, **kwargs) | |
1078 | ||
1079 | def SetTopLeft(*args, **kwargs): | |
1080 | """SetTopLeft(Point p)""" | |
1081 | return _core.Rect_SetTopLeft(*args, **kwargs) | |
1082 | ||
1083 | def GetBottomRight(*args, **kwargs): | |
1084 | """GetBottomRight() -> Point""" | |
1085 | return _core.Rect_GetBottomRight(*args, **kwargs) | |
1086 | ||
1087 | def SetBottomRight(*args, **kwargs): | |
1088 | """SetBottomRight(Point p)""" | |
1089 | return _core.Rect_SetBottomRight(*args, **kwargs) | |
1090 | ||
423f194a RD |
1091 | def GetLeft(*args, **kwargs): |
1092 | """GetLeft() -> int""" | |
1093 | return _core.Rect_GetLeft(*args, **kwargs) | |
1094 | ||
1095 | def GetTop(*args, **kwargs): | |
1096 | """GetTop() -> int""" | |
1097 | return _core.Rect_GetTop(*args, **kwargs) | |
1098 | ||
1099 | def GetBottom(*args, **kwargs): | |
1100 | """GetBottom() -> int""" | |
1101 | return _core.Rect_GetBottom(*args, **kwargs) | |
1102 | ||
1103 | def GetRight(*args, **kwargs): | |
1104 | """GetRight() -> int""" | |
1105 | return _core.Rect_GetRight(*args, **kwargs) | |
1106 | ||
1107 | def SetLeft(*args, **kwargs): | |
1108 | """SetLeft(int left)""" | |
1109 | return _core.Rect_SetLeft(*args, **kwargs) | |
1110 | ||
1111 | def SetRight(*args, **kwargs): | |
1112 | """SetRight(int right)""" | |
1113 | return _core.Rect_SetRight(*args, **kwargs) | |
1114 | ||
1115 | def SetTop(*args, **kwargs): | |
1116 | """SetTop(int top)""" | |
1117 | return _core.Rect_SetTop(*args, **kwargs) | |
1118 | ||
1119 | def SetBottom(*args, **kwargs): | |
1120 | """SetBottom(int bottom)""" | |
1121 | return _core.Rect_SetBottom(*args, **kwargs) | |
1122 | ||
1123 | position = property(GetPosition, SetPosition) | |
1124 | size = property(GetSize, SetSize) | |
1125 | left = property(GetLeft, SetLeft) | |
1126 | right = property(GetRight, SetRight) | |
1127 | top = property(GetTop, SetTop) | |
1128 | bottom = property(GetBottom, SetBottom) | |
1129 | ||
1130 | def Inflate(*args, **kwargs): | |
41f1cec7 RD |
1131 | """ |
1132 | Inflate(int dx, int dy) -> Rect | |
423f194a | 1133 | |
41f1cec7 RD |
1134 | Increase the rectangle size by dx in x direction and dy in y direction. Both |
1135 | (or one of) parameters may be negative to decrease the rectangle size. | |
1136 | """ | |
423f194a RD |
1137 | return _core.Rect_Inflate(*args, **kwargs) |
1138 | ||
1139 | def Deflate(*args, **kwargs): | |
41f1cec7 RD |
1140 | """ |
1141 | Deflate(int dx, int dy) -> Rect | |
423f194a | 1142 | |
41f1cec7 RD |
1143 | Decrease the rectangle size by dx in x direction and dy in y direction. Both |
1144 | (or one of) parameters may be negative to increase the rectngle size. This | |
1145 | method is the opposite of Inflate. | |
1146 | """ | |
423f194a RD |
1147 | return _core.Rect_Deflate(*args, **kwargs) |
1148 | ||
1149 | def OffsetXY(*args, **kwargs): | |
41f1cec7 RD |
1150 | """ |
1151 | OffsetXY(int dx, int dy) | |
423f194a | 1152 | |
41f1cec7 RD |
1153 | Moves the rectangle by the specified offset. If dx is positive, the rectangle |
1154 | is moved to the right, if dy is positive, it is moved to the bottom, otherwise | |
1155 | it is moved to the left or top respectively. | |
1156 | """ | |
423f194a RD |
1157 | return _core.Rect_OffsetXY(*args, **kwargs) |
1158 | ||
1159 | def Offset(*args, **kwargs): | |
41f1cec7 RD |
1160 | """ |
1161 | Offset(Point pt) | |
423f194a | 1162 | |
41f1cec7 RD |
1163 | Same as OffsetXY but uses dx,dy from Point |
1164 | """ | |
423f194a RD |
1165 | return _core.Rect_Offset(*args, **kwargs) |
1166 | ||
1167 | def Intersect(*args, **kwargs): | |
41f1cec7 RD |
1168 | """ |
1169 | Intersect(Rect rect) -> Rect | |
423f194a | 1170 | |
41f1cec7 RD |
1171 | Return the intersectsion of this rectangle and rect. |
1172 | """ | |
423f194a RD |
1173 | return _core.Rect_Intersect(*args, **kwargs) |
1174 | ||
1175 | def __add__(*args, **kwargs): | |
41f1cec7 RD |
1176 | """ |
1177 | __add__(Rect rect) -> Rect | |
423f194a | 1178 | |
41f1cec7 RD |
1179 | Add the properties of rect to this rectangle and return the result. |
1180 | """ | |
423f194a RD |
1181 | return _core.Rect___add__(*args, **kwargs) |
1182 | ||
1183 | def __iadd__(*args, **kwargs): | |
41f1cec7 RD |
1184 | """ |
1185 | __iadd__(Rect rect) -> Rect | |
423f194a | 1186 | |
41f1cec7 RD |
1187 | Add the properties of rect to this rectangle, updating this rectangle. |
1188 | """ | |
423f194a RD |
1189 | return _core.Rect___iadd__(*args, **kwargs) |
1190 | ||
1191 | def __eq__(*args, **kwargs): | |
41f1cec7 RD |
1192 | """ |
1193 | __eq__(Rect rect) -> bool | |
423f194a | 1194 | |
41f1cec7 RD |
1195 | Test for equality. |
1196 | """ | |
423f194a RD |
1197 | return _core.Rect___eq__(*args, **kwargs) |
1198 | ||
1199 | def __ne__(*args, **kwargs): | |
41f1cec7 RD |
1200 | """ |
1201 | __ne__(Rect rect) -> bool | |
423f194a | 1202 | |
41f1cec7 RD |
1203 | Test for inequality. |
1204 | """ | |
423f194a RD |
1205 | return _core.Rect___ne__(*args, **kwargs) |
1206 | ||
1207 | def InsideXY(*args, **kwargs): | |
41f1cec7 RD |
1208 | """ |
1209 | InsideXY(int x, int y) -> bool | |
423f194a | 1210 | |
41f1cec7 RD |
1211 | Return True if the point is (not strcitly) inside the rect. |
1212 | """ | |
423f194a RD |
1213 | return _core.Rect_InsideXY(*args, **kwargs) |
1214 | ||
1215 | def Inside(*args, **kwargs): | |
41f1cec7 RD |
1216 | """ |
1217 | Inside(Point pt) -> bool | |
423f194a | 1218 | |
41f1cec7 RD |
1219 | Return True if the point is (not strcitly) inside the rect. |
1220 | """ | |
423f194a RD |
1221 | return _core.Rect_Inside(*args, **kwargs) |
1222 | ||
1223 | def Intersects(*args, **kwargs): | |
41f1cec7 RD |
1224 | """ |
1225 | Intersects(Rect rect) -> bool | |
423f194a | 1226 | |
41f1cec7 RD |
1227 | Returns True if the rectangles have a non empty intersection. |
1228 | """ | |
423f194a RD |
1229 | return _core.Rect_Intersects(*args, **kwargs) |
1230 | ||
d14a1e28 RD |
1231 | x = property(_core.Rect_x_get, _core.Rect_x_set) |
1232 | y = property(_core.Rect_y_get, _core.Rect_y_set) | |
1233 | width = property(_core.Rect_width_get, _core.Rect_width_set) | |
1234 | height = property(_core.Rect_height_get, _core.Rect_height_set) | |
423f194a | 1235 | def Set(*args, **kwargs): |
41f1cec7 RD |
1236 | """ |
1237 | Set(int x=0, int y=0, int width=0, int height=0) | |
423f194a | 1238 | |
41f1cec7 RD |
1239 | Set all rectangle properties. |
1240 | """ | |
423f194a RD |
1241 | return _core.Rect_Set(*args, **kwargs) |
1242 | ||
1243 | def Get(*args, **kwargs): | |
41f1cec7 RD |
1244 | """ |
1245 | Get() -> (x,y,width,height) | |
423f194a | 1246 | |
41f1cec7 RD |
1247 | Return the rectangle properties as a tuple. |
1248 | """ | |
423f194a RD |
1249 | return _core.Rect_Get(*args, **kwargs) |
1250 | ||
1251 | asTuple = Get | |
1252 | def __str__(self): return str(self.Get()) | |
1253 | def __repr__(self): return 'wx.Rect'+str(self.Get()) | |
1254 | def __len__(self): return len(self.Get()) | |
1255 | def __getitem__(self, index): return self.Get()[index] | |
d14a1e28 RD |
1256 | def __setitem__(self, index, val): |
1257 | if index == 0: self.x = val | |
1258 | elif index == 1: self.y = val | |
1259 | elif index == 2: self.width = val | |
1260 | elif index == 3: self.height = val | |
1261 | else: raise IndexError | |
423f194a | 1262 | def __nonzero__(self): return self.Get() != (0,0,0,0) |
d14a1e28 | 1263 | def __getinitargs__(self): return () |
423f194a | 1264 | def __getstate__(self): return self.Get() |
d14a1e28 RD |
1265 | def __setstate__(self, state): self.Set(*state) |
1266 | ||
1267 | ||
1268 | class RectPtr(Rect): | |
1269 | def __init__(self, this): | |
1270 | self.this = this | |
1271 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1272 | self.__class__ = Rect | |
1273 | _core.Rect_swigregister(RectPtr) | |
1274 | ||
1275 | def RectPP(*args, **kwargs): | |
41f1cec7 RD |
1276 | """ |
1277 | RectPP(Point topLeft, Point bottomRight) -> Rect | |
423f194a | 1278 | |
41f1cec7 RD |
1279 | Create a new Rect object from Points representing two corners. |
1280 | """ | |
d14a1e28 RD |
1281 | val = _core.new_RectPP(*args, **kwargs) |
1282 | val.thisown = 1 | |
1283 | return val | |
1284 | ||
1285 | def RectPS(*args, **kwargs): | |
41f1cec7 RD |
1286 | """ |
1287 | RectPS(Point pos, Size size) -> Rect | |
423f194a | 1288 | |
41f1cec7 RD |
1289 | Create a new Rect from a position and size. |
1290 | """ | |
d14a1e28 RD |
1291 | val = _core.new_RectPS(*args, **kwargs) |
1292 | val.thisown = 1 | |
1293 | return val | |
1294 | ||
1295 | ||
423f194a | 1296 | def IntersectRect(*args, **kwargs): |
41f1cec7 RD |
1297 | """ |
1298 | IntersectRect(Rect r1, Rect r2) -> Rect | |
423f194a | 1299 | |
41f1cec7 RD |
1300 | Calculate and return the intersection of r1 and r2. |
1301 | """ | |
423f194a | 1302 | return _core.IntersectRect(*args, **kwargs) |
d14a1e28 RD |
1303 | #--------------------------------------------------------------------------- |
1304 | ||
1305 | class Point2D(object): | |
423f194a RD |
1306 | """wx.Point2Ds represent a point or a vector in a 2d coordinate system with floating point values.""" |
1307 | def __repr__(self): | |
1308 | return "<%s.%s; proxy of C++ wxPoint2D instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1309 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
1310 | """ |
1311 | __init__(double x=0.0, double y=0.0) -> Point2D | |
423f194a | 1312 | |
41f1cec7 RD |
1313 | Create a w.Point2D object. |
1314 | """ | |
d14a1e28 RD |
1315 | newobj = _core.new_Point2D(*args, **kwargs) |
1316 | self.this = newobj.this | |
1317 | self.thisown = 1 | |
1318 | del newobj.thisown | |
423f194a | 1319 | def GetFloor(*args, **kwargs): |
41f1cec7 RD |
1320 | """ |
1321 | GetFloor() -> (x,y) | |
423f194a | 1322 | |
41f1cec7 RD |
1323 | Convert to integer |
1324 | """ | |
423f194a RD |
1325 | return _core.Point2D_GetFloor(*args, **kwargs) |
1326 | ||
1327 | def GetRounded(*args, **kwargs): | |
41f1cec7 RD |
1328 | """ |
1329 | GetRounded() -> (x,y) | |
423f194a | 1330 | |
41f1cec7 RD |
1331 | Convert to integer |
1332 | """ | |
423f194a RD |
1333 | return _core.Point2D_GetRounded(*args, **kwargs) |
1334 | ||
1335 | def GetVectorLength(*args, **kwargs): | |
1336 | """GetVectorLength() -> double""" | |
1337 | return _core.Point2D_GetVectorLength(*args, **kwargs) | |
1338 | ||
1339 | def GetVectorAngle(*args, **kwargs): | |
1340 | """GetVectorAngle() -> double""" | |
1341 | return _core.Point2D_GetVectorAngle(*args, **kwargs) | |
1342 | ||
1343 | def SetVectorLength(*args, **kwargs): | |
1344 | """SetVectorLength(double length)""" | |
1345 | return _core.Point2D_SetVectorLength(*args, **kwargs) | |
1346 | ||
1347 | def SetVectorAngle(*args, **kwargs): | |
1348 | """SetVectorAngle(double degrees)""" | |
1349 | return _core.Point2D_SetVectorAngle(*args, **kwargs) | |
1350 | ||
d14a1e28 RD |
1351 | def SetPolarCoordinates(self, angle, length): |
1352 | self.SetVectorLength(length) | |
1353 | self.SetVectorAngle(angle) | |
1354 | def Normalize(self): | |
1355 | self.SetVectorLength(1.0) | |
1356 | ||
423f194a RD |
1357 | def GetDistance(*args, **kwargs): |
1358 | """GetDistance(Point2D pt) -> double""" | |
1359 | return _core.Point2D_GetDistance(*args, **kwargs) | |
1360 | ||
1361 | def GetDistanceSquare(*args, **kwargs): | |
1362 | """GetDistanceSquare(Point2D pt) -> double""" | |
1363 | return _core.Point2D_GetDistanceSquare(*args, **kwargs) | |
1364 | ||
1365 | def GetDotProduct(*args, **kwargs): | |
1366 | """GetDotProduct(Point2D vec) -> double""" | |
1367 | return _core.Point2D_GetDotProduct(*args, **kwargs) | |
1368 | ||
1369 | def GetCrossProduct(*args, **kwargs): | |
1370 | """GetCrossProduct(Point2D vec) -> double""" | |
1371 | return _core.Point2D_GetCrossProduct(*args, **kwargs) | |
1372 | ||
1373 | def __neg__(*args, **kwargs): | |
41f1cec7 RD |
1374 | """ |
1375 | __neg__() -> Point2D | |
423f194a | 1376 | |
41f1cec7 RD |
1377 | the reflection of this point |
1378 | """ | |
423f194a RD |
1379 | return _core.Point2D___neg__(*args, **kwargs) |
1380 | ||
1381 | def __iadd__(*args, **kwargs): | |
1382 | """__iadd__(Point2D pt) -> Point2D""" | |
1383 | return _core.Point2D___iadd__(*args, **kwargs) | |
1384 | ||
1385 | def __isub__(*args, **kwargs): | |
1386 | """__isub__(Point2D pt) -> Point2D""" | |
1387 | return _core.Point2D___isub__(*args, **kwargs) | |
1388 | ||
1389 | def __imul__(*args, **kwargs): | |
1390 | """__imul__(Point2D pt) -> Point2D""" | |
1391 | return _core.Point2D___imul__(*args, **kwargs) | |
1392 | ||
1393 | def __idiv__(*args, **kwargs): | |
1394 | """__idiv__(Point2D pt) -> Point2D""" | |
1395 | return _core.Point2D___idiv__(*args, **kwargs) | |
1396 | ||
1397 | def __eq__(*args, **kwargs): | |
41f1cec7 RD |
1398 | """ |
1399 | __eq__(Point2D pt) -> bool | |
423f194a | 1400 | |
41f1cec7 RD |
1401 | Test for equality |
1402 | """ | |
423f194a RD |
1403 | return _core.Point2D___eq__(*args, **kwargs) |
1404 | ||
1405 | def __ne__(*args, **kwargs): | |
41f1cec7 RD |
1406 | """ |
1407 | __ne__(Point2D pt) -> bool | |
423f194a | 1408 | |
41f1cec7 RD |
1409 | Test for inequality |
1410 | """ | |
423f194a RD |
1411 | return _core.Point2D___ne__(*args, **kwargs) |
1412 | ||
d14a1e28 RD |
1413 | x = property(_core.Point2D_x_get, _core.Point2D_x_set) |
1414 | y = property(_core.Point2D_y_get, _core.Point2D_y_set) | |
423f194a RD |
1415 | def Set(*args, **kwargs): |
1416 | """Set(double x=0, double y=0)""" | |
1417 | return _core.Point2D_Set(*args, **kwargs) | |
1418 | ||
1419 | def Get(*args, **kwargs): | |
41f1cec7 RD |
1420 | """ |
1421 | Get() -> (x,y) | |
423f194a | 1422 | |
41f1cec7 RD |
1423 | Return x and y properties as a tuple. |
1424 | """ | |
423f194a RD |
1425 | return _core.Point2D_Get(*args, **kwargs) |
1426 | ||
1427 | asTuple = Get | |
1428 | def __str__(self): return str(self.Get()) | |
1429 | def __repr__(self): return 'wx.Point2D'+str(self.Get()) | |
1430 | def __len__(self): return len(self.Get()) | |
1431 | def __getitem__(self, index): return self.Get()[index] | |
d14a1e28 | 1432 | def __setitem__(self, index, val): |
423f194a RD |
1433 | if index == 0: self.x = val |
1434 | elif index == 1: self.y = val | |
d14a1e28 | 1435 | else: raise IndexError |
423f194a | 1436 | def __nonzero__(self): return self.Get() != (0.0, 0.0) |
d14a1e28 | 1437 | def __getinitargs__(self): return () |
423f194a | 1438 | def __getstate__(self): return self.Get() |
d14a1e28 RD |
1439 | def __setstate__(self, state): self.Set(*state) |
1440 | ||
1441 | ||
1442 | ||
1443 | class Point2DPtr(Point2D): | |
1444 | def __init__(self, this): | |
1445 | self.this = this | |
1446 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1447 | self.__class__ = Point2D | |
1448 | _core.Point2D_swigregister(Point2DPtr) | |
1449 | ||
1450 | def Point2DCopy(*args, **kwargs): | |
41f1cec7 RD |
1451 | """ |
1452 | Point2DCopy(Point2D pt) -> Point2D | |
423f194a | 1453 | |
41f1cec7 RD |
1454 | Create a w.Point2D object. |
1455 | """ | |
d14a1e28 RD |
1456 | val = _core.new_Point2DCopy(*args, **kwargs) |
1457 | val.thisown = 1 | |
1458 | return val | |
1459 | ||
1460 | def Point2DFromPoint(*args, **kwargs): | |
41f1cec7 RD |
1461 | """ |
1462 | Point2DFromPoint(Point pt) -> Point2D | |
423f194a | 1463 | |
41f1cec7 RD |
1464 | Create a w.Point2D object. |
1465 | """ | |
d14a1e28 RD |
1466 | val = _core.new_Point2DFromPoint(*args, **kwargs) |
1467 | val.thisown = 1 | |
1468 | return val | |
1469 | ||
1470 | #--------------------------------------------------------------------------- | |
1471 | ||
1472 | FromStart = _core.FromStart | |
1473 | FromCurrent = _core.FromCurrent | |
1474 | FromEnd = _core.FromEnd | |
1475 | class InputStream(object): | |
423f194a RD |
1476 | def __repr__(self): |
1477 | return "<%s.%s; proxy of C++ wxPyInputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1478 | def __init__(self, *args, **kwargs): |
423f194a | 1479 | """__init__(PyObject p) -> InputStream""" |
d14a1e28 RD |
1480 | newobj = _core.new_InputStream(*args, **kwargs) |
1481 | self.this = newobj.this | |
1482 | self.thisown = 1 | |
1483 | del newobj.thisown | |
423f194a RD |
1484 | def close(*args, **kwargs): |
1485 | """close()""" | |
1486 | return _core.InputStream_close(*args, **kwargs) | |
1487 | ||
1488 | def flush(*args, **kwargs): | |
1489 | """flush()""" | |
1490 | return _core.InputStream_flush(*args, **kwargs) | |
1491 | ||
1492 | def eof(*args, **kwargs): | |
1493 | """eof() -> bool""" | |
1494 | return _core.InputStream_eof(*args, **kwargs) | |
1495 | ||
1496 | def read(*args, **kwargs): | |
1497 | """read(int size=-1) -> PyObject""" | |
1498 | return _core.InputStream_read(*args, **kwargs) | |
1499 | ||
1500 | def readline(*args, **kwargs): | |
1501 | """readline(int size=-1) -> PyObject""" | |
1502 | return _core.InputStream_readline(*args, **kwargs) | |
1503 | ||
1504 | def readlines(*args, **kwargs): | |
1505 | """readlines(int sizehint=-1) -> PyObject""" | |
1506 | return _core.InputStream_readlines(*args, **kwargs) | |
1507 | ||
1508 | def seek(*args, **kwargs): | |
1509 | """seek(int offset, int whence=0)""" | |
1510 | return _core.InputStream_seek(*args, **kwargs) | |
1511 | ||
1512 | def tell(*args, **kwargs): | |
1513 | """tell() -> int""" | |
1514 | return _core.InputStream_tell(*args, **kwargs) | |
1515 | ||
1516 | def Peek(*args, **kwargs): | |
1517 | """Peek() -> char""" | |
1518 | return _core.InputStream_Peek(*args, **kwargs) | |
1519 | ||
1520 | def GetC(*args, **kwargs): | |
1521 | """GetC() -> char""" | |
1522 | return _core.InputStream_GetC(*args, **kwargs) | |
1523 | ||
1524 | def LastRead(*args, **kwargs): | |
1525 | """LastRead() -> size_t""" | |
1526 | return _core.InputStream_LastRead(*args, **kwargs) | |
1527 | ||
1528 | def CanRead(*args, **kwargs): | |
1529 | """CanRead() -> bool""" | |
1530 | return _core.InputStream_CanRead(*args, **kwargs) | |
1531 | ||
1532 | def Eof(*args, **kwargs): | |
1533 | """Eof() -> bool""" | |
1534 | return _core.InputStream_Eof(*args, **kwargs) | |
1535 | ||
1536 | def Ungetch(*args, **kwargs): | |
1537 | """Ungetch(char c) -> bool""" | |
1538 | return _core.InputStream_Ungetch(*args, **kwargs) | |
1539 | ||
1540 | def SeekI(*args, **kwargs): | |
1541 | """SeekI(long pos, wxSeekMode mode=FromStart) -> long""" | |
1542 | return _core.InputStream_SeekI(*args, **kwargs) | |
1543 | ||
1544 | def TellI(*args, **kwargs): | |
1545 | """TellI() -> long""" | |
1546 | return _core.InputStream_TellI(*args, **kwargs) | |
1547 | ||
d14a1e28 RD |
1548 | |
1549 | class InputStreamPtr(InputStream): | |
1550 | def __init__(self, this): | |
1551 | self.this = this | |
1552 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1553 | self.__class__ = InputStream | |
1554 | _core.InputStream_swigregister(InputStreamPtr) | |
1555 | cvar = _core.cvar | |
1556 | DefaultPosition = cvar.DefaultPosition | |
1557 | DefaultSize = cvar.DefaultSize | |
1558 | ||
1559 | class OutputStream(object): | |
d14a1e28 RD |
1560 | def __init__(self): raise RuntimeError, "No constructor defined" |
1561 | def __repr__(self): | |
1562 | return "<%s.%s; proxy of C++ wxOutputStream instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
423f194a RD |
1563 | def write(*args, **kwargs): |
1564 | """write(PyObject obj)""" | |
1565 | return _core.OutputStream_write(*args, **kwargs) | |
1566 | ||
d14a1e28 RD |
1567 | |
1568 | class OutputStreamPtr(OutputStream): | |
1569 | def __init__(self, this): | |
1570 | self.this = this | |
1571 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1572 | self.__class__ = OutputStream | |
1573 | _core.OutputStream_swigregister(OutputStreamPtr) | |
1574 | ||
1575 | #--------------------------------------------------------------------------- | |
1576 | ||
1577 | class FSFile(Object): | |
423f194a RD |
1578 | def __repr__(self): |
1579 | return "<%s.%s; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1580 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
1581 | """ |
1582 | __init__(wxInputStream stream, wxString loc, wxString mimetype, | |
1583 | wxString anchor, wxDateTime modif) -> FSFile | |
1584 | """ | |
d14a1e28 RD |
1585 | newobj = _core.new_FSFile(*args, **kwargs) |
1586 | self.this = newobj.this | |
1587 | self.thisown = 1 | |
1588 | del newobj.thisown | |
1589 | def __del__(self, destroy=_core.delete_FSFile): | |
423f194a | 1590 | """__del__()""" |
d14a1e28 RD |
1591 | try: |
1592 | if self.thisown: destroy(self) | |
1593 | except: pass | |
423f194a RD |
1594 | |
1595 | def GetStream(*args, **kwargs): | |
1596 | """GetStream() -> wxInputStream""" | |
1597 | return _core.FSFile_GetStream(*args, **kwargs) | |
1598 | ||
1599 | def GetMimeType(*args, **kwargs): | |
1600 | """GetMimeType() -> wxString""" | |
1601 | return _core.FSFile_GetMimeType(*args, **kwargs) | |
1602 | ||
1603 | def GetLocation(*args, **kwargs): | |
1604 | """GetLocation() -> wxString""" | |
1605 | return _core.FSFile_GetLocation(*args, **kwargs) | |
1606 | ||
1607 | def GetAnchor(*args, **kwargs): | |
1608 | """GetAnchor() -> wxString""" | |
1609 | return _core.FSFile_GetAnchor(*args, **kwargs) | |
1610 | ||
1611 | def GetModificationTime(*args, **kwargs): | |
1612 | """GetModificationTime() -> wxDateTime""" | |
1613 | return _core.FSFile_GetModificationTime(*args, **kwargs) | |
1614 | ||
d14a1e28 RD |
1615 | |
1616 | class FSFilePtr(FSFile): | |
1617 | def __init__(self, this): | |
1618 | self.this = this | |
1619 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1620 | self.__class__ = FSFile | |
1621 | _core.FSFile_swigregister(FSFilePtr) | |
1622 | ||
1623 | class CPPFileSystemHandler(object): | |
1624 | def __init__(self): raise RuntimeError, "No constructor defined" | |
1625 | def __repr__(self): | |
1626 | return "<%s.%s; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
1627 | ||
1628 | class CPPFileSystemHandlerPtr(CPPFileSystemHandler): | |
1629 | def __init__(self, this): | |
1630 | self.this = this | |
1631 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1632 | self.__class__ = CPPFileSystemHandler | |
1633 | _core.CPPFileSystemHandler_swigregister(CPPFileSystemHandlerPtr) | |
1634 | ||
1635 | class FileSystemHandler(CPPFileSystemHandler): | |
423f194a RD |
1636 | def __repr__(self): |
1637 | return "<%s.%s; proxy of C++ wxPyFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1638 | def __init__(self, *args, **kwargs): |
423f194a | 1639 | """__init__() -> FileSystemHandler""" |
d14a1e28 RD |
1640 | newobj = _core.new_FileSystemHandler(*args, **kwargs) |
1641 | self.this = newobj.this | |
1642 | self.thisown = 1 | |
1643 | del newobj.thisown | |
1644 | self._setCallbackInfo(self, FileSystemHandler) | |
423f194a RD |
1645 | |
1646 | def _setCallbackInfo(*args, **kwargs): | |
1647 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
1648 | return _core.FileSystemHandler__setCallbackInfo(*args, **kwargs) | |
1649 | ||
1650 | def CanOpen(*args, **kwargs): | |
1651 | """CanOpen(wxString location) -> bool""" | |
1652 | return _core.FileSystemHandler_CanOpen(*args, **kwargs) | |
1653 | ||
1654 | def OpenFile(*args, **kwargs): | |
1655 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" | |
1656 | return _core.FileSystemHandler_OpenFile(*args, **kwargs) | |
1657 | ||
1658 | def FindFirst(*args, **kwargs): | |
1659 | """FindFirst(wxString spec, int flags=0) -> wxString""" | |
1660 | return _core.FileSystemHandler_FindFirst(*args, **kwargs) | |
1661 | ||
1662 | def FindNext(*args, **kwargs): | |
1663 | """FindNext() -> wxString""" | |
1664 | return _core.FileSystemHandler_FindNext(*args, **kwargs) | |
1665 | ||
1666 | def GetProtocol(*args, **kwargs): | |
1667 | """GetProtocol(wxString location) -> wxString""" | |
1668 | return _core.FileSystemHandler_GetProtocol(*args, **kwargs) | |
1669 | ||
1670 | def GetLeftLocation(*args, **kwargs): | |
1671 | """GetLeftLocation(wxString location) -> wxString""" | |
1672 | return _core.FileSystemHandler_GetLeftLocation(*args, **kwargs) | |
1673 | ||
1674 | def GetAnchor(*args, **kwargs): | |
1675 | """GetAnchor(wxString location) -> wxString""" | |
1676 | return _core.FileSystemHandler_GetAnchor(*args, **kwargs) | |
1677 | ||
1678 | def GetRightLocation(*args, **kwargs): | |
1679 | """GetRightLocation(wxString location) -> wxString""" | |
1680 | return _core.FileSystemHandler_GetRightLocation(*args, **kwargs) | |
1681 | ||
1682 | def GetMimeTypeFromExt(*args, **kwargs): | |
1683 | """GetMimeTypeFromExt(wxString location) -> wxString""" | |
1684 | return _core.FileSystemHandler_GetMimeTypeFromExt(*args, **kwargs) | |
1685 | ||
d14a1e28 RD |
1686 | |
1687 | class FileSystemHandlerPtr(FileSystemHandler): | |
1688 | def __init__(self, this): | |
1689 | self.this = this | |
1690 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1691 | self.__class__ = FileSystemHandler | |
1692 | _core.FileSystemHandler_swigregister(FileSystemHandlerPtr) | |
1693 | ||
1694 | class FileSystem(Object): | |
423f194a RD |
1695 | def __repr__(self): |
1696 | return "<%s.%s; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1697 | def __init__(self, *args, **kwargs): |
423f194a | 1698 | """__init__() -> FileSystem""" |
d14a1e28 RD |
1699 | newobj = _core.new_FileSystem(*args, **kwargs) |
1700 | self.this = newobj.this | |
1701 | self.thisown = 1 | |
1702 | del newobj.thisown | |
1703 | def __del__(self, destroy=_core.delete_FileSystem): | |
423f194a | 1704 | """__del__()""" |
d14a1e28 RD |
1705 | try: |
1706 | if self.thisown: destroy(self) | |
1707 | except: pass | |
423f194a RD |
1708 | |
1709 | def ChangePathTo(*args, **kwargs): | |
1710 | """ChangePathTo(wxString location, bool is_dir=False)""" | |
1711 | return _core.FileSystem_ChangePathTo(*args, **kwargs) | |
1712 | ||
1713 | def GetPath(*args, **kwargs): | |
1714 | """GetPath() -> wxString""" | |
1715 | return _core.FileSystem_GetPath(*args, **kwargs) | |
1716 | ||
1717 | def OpenFile(*args, **kwargs): | |
1718 | """OpenFile(wxString location) -> FSFile""" | |
1719 | return _core.FileSystem_OpenFile(*args, **kwargs) | |
1720 | ||
1721 | def FindFirst(*args, **kwargs): | |
1722 | """FindFirst(wxString spec, int flags=0) -> wxString""" | |
1723 | return _core.FileSystem_FindFirst(*args, **kwargs) | |
1724 | ||
1725 | def FindNext(*args, **kwargs): | |
1726 | """FindNext() -> wxString""" | |
1727 | return _core.FileSystem_FindNext(*args, **kwargs) | |
1728 | ||
1729 | def AddHandler(*args, **kwargs): | |
1730 | """FileSystem.AddHandler(CPPFileSystemHandler handler)""" | |
1731 | return _core.FileSystem_AddHandler(*args, **kwargs) | |
1732 | ||
1733 | AddHandler = staticmethod(AddHandler) | |
1734 | def CleanUpHandlers(*args, **kwargs): | |
1735 | """FileSystem.CleanUpHandlers()""" | |
1736 | return _core.FileSystem_CleanUpHandlers(*args, **kwargs) | |
1737 | ||
1738 | CleanUpHandlers = staticmethod(CleanUpHandlers) | |
1739 | def FileNameToURL(*args, **kwargs): | |
1740 | """FileSystem.FileNameToURL(wxString filename) -> wxString""" | |
1741 | return _core.FileSystem_FileNameToURL(*args, **kwargs) | |
1742 | ||
1743 | FileNameToURL = staticmethod(FileNameToURL) | |
d14a1e28 RD |
1744 | |
1745 | class FileSystemPtr(FileSystem): | |
1746 | def __init__(self, this): | |
1747 | self.this = this | |
1748 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1749 | self.__class__ = FileSystem | |
1750 | _core.FileSystem_swigregister(FileSystemPtr) | |
1751 | ||
423f194a RD |
1752 | def FileSystem_AddHandler(*args, **kwargs): |
1753 | """FileSystem_AddHandler(CPPFileSystemHandler handler)""" | |
1754 | return _core.FileSystem_AddHandler(*args, **kwargs) | |
d14a1e28 | 1755 | |
423f194a RD |
1756 | def FileSystem_CleanUpHandlers(*args, **kwargs): |
1757 | """FileSystem_CleanUpHandlers()""" | |
1758 | return _core.FileSystem_CleanUpHandlers(*args, **kwargs) | |
d14a1e28 | 1759 | |
423f194a RD |
1760 | def FileSystem_FileNameToURL(*args, **kwargs): |
1761 | """FileSystem_FileNameToURL(wxString filename) -> wxString""" | |
1762 | return _core.FileSystem_FileNameToURL(*args, **kwargs) | |
d14a1e28 RD |
1763 | |
1764 | ||
423f194a RD |
1765 | def FileSystem_URLToFileName(*args, **kwargs): |
1766 | """FileSystem_URLToFileName(wxString url) -> wxString""" | |
1767 | return _core.FileSystem_URLToFileName(*args, **kwargs) | |
d14a1e28 | 1768 | class InternetFSHandler(CPPFileSystemHandler): |
423f194a RD |
1769 | def __repr__(self): |
1770 | return "<%s.%s; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1771 | def __init__(self, *args, **kwargs): |
423f194a | 1772 | """__init__() -> InternetFSHandler""" |
d14a1e28 RD |
1773 | newobj = _core.new_InternetFSHandler(*args, **kwargs) |
1774 | self.this = newobj.this | |
1775 | self.thisown = 1 | |
1776 | del newobj.thisown | |
423f194a RD |
1777 | def CanOpen(*args, **kwargs): |
1778 | """CanOpen(wxString location) -> bool""" | |
1779 | return _core.InternetFSHandler_CanOpen(*args, **kwargs) | |
1780 | ||
1781 | def OpenFile(*args, **kwargs): | |
1782 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" | |
1783 | return _core.InternetFSHandler_OpenFile(*args, **kwargs) | |
1784 | ||
d14a1e28 RD |
1785 | |
1786 | class InternetFSHandlerPtr(InternetFSHandler): | |
1787 | def __init__(self, this): | |
1788 | self.this = this | |
1789 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1790 | self.__class__ = InternetFSHandler | |
1791 | _core.InternetFSHandler_swigregister(InternetFSHandlerPtr) | |
1792 | ||
1793 | class ZipFSHandler(CPPFileSystemHandler): | |
423f194a RD |
1794 | def __repr__(self): |
1795 | return "<%s.%s; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1796 | def __init__(self, *args, **kwargs): |
423f194a | 1797 | """__init__() -> ZipFSHandler""" |
d14a1e28 RD |
1798 | newobj = _core.new_ZipFSHandler(*args, **kwargs) |
1799 | self.this = newobj.this | |
1800 | self.thisown = 1 | |
1801 | del newobj.thisown | |
423f194a RD |
1802 | def CanOpen(*args, **kwargs): |
1803 | """CanOpen(wxString location) -> bool""" | |
1804 | return _core.ZipFSHandler_CanOpen(*args, **kwargs) | |
1805 | ||
1806 | def OpenFile(*args, **kwargs): | |
1807 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" | |
1808 | return _core.ZipFSHandler_OpenFile(*args, **kwargs) | |
1809 | ||
1810 | def FindFirst(*args, **kwargs): | |
1811 | """FindFirst(wxString spec, int flags=0) -> wxString""" | |
1812 | return _core.ZipFSHandler_FindFirst(*args, **kwargs) | |
1813 | ||
1814 | def FindNext(*args, **kwargs): | |
1815 | """FindNext() -> wxString""" | |
1816 | return _core.ZipFSHandler_FindNext(*args, **kwargs) | |
1817 | ||
d14a1e28 RD |
1818 | |
1819 | class ZipFSHandlerPtr(ZipFSHandler): | |
1820 | def __init__(self, this): | |
1821 | self.this = this | |
1822 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1823 | self.__class__ = ZipFSHandler | |
1824 | _core.ZipFSHandler_swigregister(ZipFSHandlerPtr) | |
1825 | ||
1826 | ||
423f194a RD |
1827 | def __wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs): |
1828 | """__wxMemoryFSHandler_AddFile_wxImage(wxString filename, Image image, long type)""" | |
1829 | return _core.__wxMemoryFSHandler_AddFile_wxImage(*args, **kwargs) | |
d14a1e28 | 1830 | |
423f194a RD |
1831 | def __wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs): |
1832 | """__wxMemoryFSHandler_AddFile_wxBitmap(wxString filename, wxBitmap bitmap, long type)""" | |
1833 | return _core.__wxMemoryFSHandler_AddFile_wxBitmap(*args, **kwargs) | |
d14a1e28 | 1834 | |
423f194a RD |
1835 | def __wxMemoryFSHandler_AddFile_Data(*args, **kwargs): |
1836 | """__wxMemoryFSHandler_AddFile_Data(wxString filename, PyObject data)""" | |
1837 | return _core.__wxMemoryFSHandler_AddFile_Data(*args, **kwargs) | |
d14a1e28 RD |
1838 | def MemoryFSHandler_AddFile(filename, a, b=''): |
1839 | if isinstance(a, wx.Image): | |
1840 | __wxMemoryFSHandler_AddFile_wxImage(filename, a, b) | |
1841 | elif isinstance(a, wx.Bitmap): | |
1842 | __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b) | |
1843 | elif type(a) == str: | |
1844 | __wxMemoryFSHandler_AddFile_Data(filename, a) | |
1845 | else: raise TypeError, 'wx.Image, wx.Bitmap or string expected' | |
1846 | ||
1847 | class MemoryFSHandler(CPPFileSystemHandler): | |
423f194a RD |
1848 | def __repr__(self): |
1849 | return "<%s.%s; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1850 | def __init__(self, *args, **kwargs): |
423f194a | 1851 | """__init__() -> MemoryFSHandler""" |
d14a1e28 RD |
1852 | newobj = _core.new_MemoryFSHandler(*args, **kwargs) |
1853 | self.this = newobj.this | |
1854 | self.thisown = 1 | |
1855 | del newobj.thisown | |
423f194a RD |
1856 | def RemoveFile(*args, **kwargs): |
1857 | """MemoryFSHandler.RemoveFile(wxString filename)""" | |
1858 | return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) | |
1859 | ||
1860 | RemoveFile = staticmethod(RemoveFile) | |
d14a1e28 | 1861 | AddFile = staticmethod(MemoryFSHandler_AddFile) |
423f194a RD |
1862 | def CanOpen(*args, **kwargs): |
1863 | """CanOpen(wxString location) -> bool""" | |
1864 | return _core.MemoryFSHandler_CanOpen(*args, **kwargs) | |
1865 | ||
1866 | def OpenFile(*args, **kwargs): | |
1867 | """OpenFile(FileSystem fs, wxString location) -> FSFile""" | |
1868 | return _core.MemoryFSHandler_OpenFile(*args, **kwargs) | |
1869 | ||
1870 | def FindFirst(*args, **kwargs): | |
1871 | """FindFirst(wxString spec, int flags=0) -> wxString""" | |
1872 | return _core.MemoryFSHandler_FindFirst(*args, **kwargs) | |
1873 | ||
1874 | def FindNext(*args, **kwargs): | |
1875 | """FindNext() -> wxString""" | |
1876 | return _core.MemoryFSHandler_FindNext(*args, **kwargs) | |
1877 | ||
d14a1e28 RD |
1878 | |
1879 | class MemoryFSHandlerPtr(MemoryFSHandler): | |
1880 | def __init__(self, this): | |
1881 | self.this = this | |
1882 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1883 | self.__class__ = MemoryFSHandler | |
1884 | _core.MemoryFSHandler_swigregister(MemoryFSHandlerPtr) | |
1885 | ||
423f194a RD |
1886 | def MemoryFSHandler_RemoveFile(*args, **kwargs): |
1887 | """MemoryFSHandler_RemoveFile(wxString filename)""" | |
1888 | return _core.MemoryFSHandler_RemoveFile(*args, **kwargs) | |
d14a1e28 RD |
1889 | |
1890 | #--------------------------------------------------------------------------- | |
1891 | ||
1892 | class ImageHandler(Object): | |
d14a1e28 RD |
1893 | def __init__(self): raise RuntimeError, "No constructor defined" |
1894 | def __repr__(self): | |
1895 | return "<%s.%s; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
423f194a RD |
1896 | def GetName(*args, **kwargs): |
1897 | """GetName() -> wxString""" | |
1898 | return _core.ImageHandler_GetName(*args, **kwargs) | |
1899 | ||
1900 | def GetExtension(*args, **kwargs): | |
1901 | """GetExtension() -> wxString""" | |
1902 | return _core.ImageHandler_GetExtension(*args, **kwargs) | |
1903 | ||
1904 | def GetType(*args, **kwargs): | |
1905 | """GetType() -> long""" | |
1906 | return _core.ImageHandler_GetType(*args, **kwargs) | |
1907 | ||
1908 | def GetMimeType(*args, **kwargs): | |
1909 | """GetMimeType() -> wxString""" | |
1910 | return _core.ImageHandler_GetMimeType(*args, **kwargs) | |
1911 | ||
1912 | def CanRead(*args, **kwargs): | |
1913 | """CanRead(wxString name) -> bool""" | |
1914 | return _core.ImageHandler_CanRead(*args, **kwargs) | |
1915 | ||
1916 | def SetName(*args, **kwargs): | |
1917 | """SetName(wxString name)""" | |
1918 | return _core.ImageHandler_SetName(*args, **kwargs) | |
1919 | ||
1920 | def SetExtension(*args, **kwargs): | |
1921 | """SetExtension(wxString extension)""" | |
1922 | return _core.ImageHandler_SetExtension(*args, **kwargs) | |
1923 | ||
1924 | def SetType(*args, **kwargs): | |
1925 | """SetType(long type)""" | |
1926 | return _core.ImageHandler_SetType(*args, **kwargs) | |
1927 | ||
1928 | def SetMimeType(*args, **kwargs): | |
1929 | """SetMimeType(wxString mimetype)""" | |
1930 | return _core.ImageHandler_SetMimeType(*args, **kwargs) | |
1931 | ||
d14a1e28 RD |
1932 | |
1933 | class ImageHandlerPtr(ImageHandler): | |
1934 | def __init__(self, this): | |
1935 | self.this = this | |
1936 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1937 | self.__class__ = ImageHandler | |
1938 | _core.ImageHandler_swigregister(ImageHandlerPtr) | |
1939 | ||
1940 | class ImageHistogram(object): | |
423f194a RD |
1941 | def __repr__(self): |
1942 | return "<%s.%s; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1943 | def __init__(self, *args, **kwargs): |
423f194a | 1944 | """__init__() -> ImageHistogram""" |
d14a1e28 RD |
1945 | newobj = _core.new_ImageHistogram(*args, **kwargs) |
1946 | self.this = newobj.this | |
1947 | self.thisown = 1 | |
1948 | del newobj.thisown | |
423f194a | 1949 | def MakeKey(*args, **kwargs): |
41f1cec7 RD |
1950 | """ |
1951 | ImageHistogram.MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long | |
423f194a | 1952 | |
41f1cec7 RD |
1953 | Get the key in the histogram for the given RGB values |
1954 | """ | |
423f194a RD |
1955 | return _core.ImageHistogram_MakeKey(*args, **kwargs) |
1956 | ||
1957 | MakeKey = staticmethod(MakeKey) | |
1958 | def FindFirstUnusedColour(*args, **kwargs): | |
41f1cec7 RD |
1959 | """ |
1960 | FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) | |
423f194a | 1961 | |
41f1cec7 RD |
1962 | Find first colour that is not used in the image and has higher RGB values than |
1963 | startR, startG, startB. Returns a tuple consisting of a success flag and rgb | |
1964 | values. | |
1965 | """ | |
423f194a RD |
1966 | return _core.ImageHistogram_FindFirstUnusedColour(*args, **kwargs) |
1967 | ||
d14a1e28 RD |
1968 | |
1969 | class ImageHistogramPtr(ImageHistogram): | |
1970 | def __init__(self, this): | |
1971 | self.this = this | |
1972 | if not hasattr(self,"thisown"): self.thisown = 0 | |
1973 | self.__class__ = ImageHistogram | |
1974 | _core.ImageHistogram_swigregister(ImageHistogramPtr) | |
1975 | ||
423f194a | 1976 | def ImageHistogram_MakeKey(*args, **kwargs): |
41f1cec7 RD |
1977 | """ |
1978 | ImageHistogram_MakeKey(unsigned char r, unsigned char g, unsigned char b) -> unsigned long | |
423f194a | 1979 | |
41f1cec7 RD |
1980 | Get the key in the histogram for the given RGB values |
1981 | """ | |
423f194a | 1982 | return _core.ImageHistogram_MakeKey(*args, **kwargs) |
d14a1e28 RD |
1983 | |
1984 | class Image(Object): | |
423f194a RD |
1985 | def __repr__(self): |
1986 | return "<%s.%s; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 1987 | def __init__(self, *args, **kwargs): |
423f194a | 1988 | """__init__(wxString name, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" |
d14a1e28 RD |
1989 | newobj = _core.new_Image(*args, **kwargs) |
1990 | self.this = newobj.this | |
1991 | self.thisown = 1 | |
1992 | del newobj.thisown | |
1993 | def __del__(self, destroy=_core.delete_Image): | |
423f194a | 1994 | """__del__()""" |
d14a1e28 RD |
1995 | try: |
1996 | if self.thisown: destroy(self) | |
1997 | except: pass | |
423f194a RD |
1998 | |
1999 | def Create(*args, **kwargs): | |
2000 | """Create(int width, int height)""" | |
2001 | return _core.Image_Create(*args, **kwargs) | |
2002 | ||
2003 | def Destroy(*args, **kwargs): | |
41f1cec7 RD |
2004 | """ |
2005 | Destroy() | |
423f194a | 2006 | |
41f1cec7 RD |
2007 | Deletes the C++ object this Python object is a proxy for. |
2008 | """ | |
423f194a RD |
2009 | return _core.Image_Destroy(*args, **kwargs) |
2010 | ||
2011 | def Scale(*args, **kwargs): | |
2012 | """Scale(int width, int height) -> Image""" | |
2013 | return _core.Image_Scale(*args, **kwargs) | |
2014 | ||
2015 | def ShrinkBy(*args, **kwargs): | |
2016 | """ShrinkBy(int xFactor, int yFactor) -> Image""" | |
2017 | return _core.Image_ShrinkBy(*args, **kwargs) | |
2018 | ||
2019 | def Rescale(*args, **kwargs): | |
2020 | """Rescale(int width, int height) -> Image""" | |
2021 | return _core.Image_Rescale(*args, **kwargs) | |
2022 | ||
2023 | def SetRGB(*args, **kwargs): | |
2024 | """SetRGB(int x, int y, unsigned char r, unsigned char g, unsigned char b)""" | |
2025 | return _core.Image_SetRGB(*args, **kwargs) | |
2026 | ||
2027 | def GetRed(*args, **kwargs): | |
2028 | """GetRed(int x, int y) -> unsigned char""" | |
2029 | return _core.Image_GetRed(*args, **kwargs) | |
2030 | ||
2031 | def GetGreen(*args, **kwargs): | |
2032 | """GetGreen(int x, int y) -> unsigned char""" | |
2033 | return _core.Image_GetGreen(*args, **kwargs) | |
2034 | ||
2035 | def GetBlue(*args, **kwargs): | |
2036 | """GetBlue(int x, int y) -> unsigned char""" | |
2037 | return _core.Image_GetBlue(*args, **kwargs) | |
2038 | ||
2039 | def SetAlpha(*args, **kwargs): | |
2040 | """SetAlpha(int x, int y, unsigned char alpha)""" | |
2041 | return _core.Image_SetAlpha(*args, **kwargs) | |
2042 | ||
2043 | def GetAlpha(*args, **kwargs): | |
2044 | """GetAlpha(int x, int y) -> unsigned char""" | |
2045 | return _core.Image_GetAlpha(*args, **kwargs) | |
2046 | ||
2047 | def HasAlpha(*args, **kwargs): | |
2048 | """HasAlpha() -> bool""" | |
2049 | return _core.Image_HasAlpha(*args, **kwargs) | |
2050 | ||
2051 | def FindFirstUnusedColour(*args, **kwargs): | |
41f1cec7 RD |
2052 | """ |
2053 | FindFirstUnusedColour(int startR=1, int startG=0, int startB=0) -> (success, r, g, b) | |
423f194a | 2054 | |
41f1cec7 RD |
2055 | Find first colour that is not used in the image and has higher RGB values than |
2056 | startR, startG, startB. Returns a tuple consisting of a success flag and rgb | |
2057 | values. | |
2058 | """ | |
423f194a RD |
2059 | return _core.Image_FindFirstUnusedColour(*args, **kwargs) |
2060 | ||
2061 | def SetMaskFromImage(*args, **kwargs): | |
2062 | """SetMaskFromImage(Image mask, byte mr, byte mg, byte mb) -> bool""" | |
2063 | return _core.Image_SetMaskFromImage(*args, **kwargs) | |
2064 | ||
2065 | def CanRead(*args, **kwargs): | |
2066 | """Image.CanRead(wxString name) -> bool""" | |
2067 | return _core.Image_CanRead(*args, **kwargs) | |
2068 | ||
2069 | CanRead = staticmethod(CanRead) | |
2070 | def GetImageCount(*args, **kwargs): | |
2071 | """Image.GetImageCount(wxString name, long type=BITMAP_TYPE_ANY) -> int""" | |
2072 | return _core.Image_GetImageCount(*args, **kwargs) | |
2073 | ||
2074 | GetImageCount = staticmethod(GetImageCount) | |
2075 | def LoadFile(*args, **kwargs): | |
2076 | """LoadFile(wxString name, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" | |
2077 | return _core.Image_LoadFile(*args, **kwargs) | |
2078 | ||
2079 | def LoadMimeFile(*args, **kwargs): | |
2080 | """LoadMimeFile(wxString name, wxString mimetype, int index=-1) -> bool""" | |
2081 | return _core.Image_LoadMimeFile(*args, **kwargs) | |
2082 | ||
2083 | def SaveFile(*args, **kwargs): | |
2084 | """SaveFile(wxString name, int type) -> bool""" | |
2085 | return _core.Image_SaveFile(*args, **kwargs) | |
2086 | ||
2087 | def SaveMimeFile(*args, **kwargs): | |
2088 | """SaveMimeFile(wxString name, wxString mimetype) -> bool""" | |
2089 | return _core.Image_SaveMimeFile(*args, **kwargs) | |
2090 | ||
2091 | def CanReadStream(*args, **kwargs): | |
2092 | """Image.CanReadStream(wxInputStream stream) -> bool""" | |
2093 | return _core.Image_CanReadStream(*args, **kwargs) | |
2094 | ||
2095 | CanReadStream = staticmethod(CanReadStream) | |
2096 | def LoadStream(*args, **kwargs): | |
2097 | """LoadStream(wxInputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> bool""" | |
2098 | return _core.Image_LoadStream(*args, **kwargs) | |
2099 | ||
2100 | def LoadMimeStream(*args, **kwargs): | |
2101 | """LoadMimeStream(wxInputStream stream, wxString mimetype, int index=-1) -> bool""" | |
2102 | return _core.Image_LoadMimeStream(*args, **kwargs) | |
2103 | ||
2104 | def Ok(*args, **kwargs): | |
2105 | """Ok() -> bool""" | |
2106 | return _core.Image_Ok(*args, **kwargs) | |
2107 | ||
2108 | def GetWidth(*args, **kwargs): | |
2109 | """GetWidth() -> int""" | |
2110 | return _core.Image_GetWidth(*args, **kwargs) | |
2111 | ||
2112 | def GetHeight(*args, **kwargs): | |
2113 | """GetHeight() -> int""" | |
2114 | return _core.Image_GetHeight(*args, **kwargs) | |
2115 | ||
2116 | def GetSubImage(*args, **kwargs): | |
2117 | """GetSubImage(Rect rect) -> Image""" | |
2118 | return _core.Image_GetSubImage(*args, **kwargs) | |
2119 | ||
2120 | def Copy(*args, **kwargs): | |
2121 | """Copy() -> Image""" | |
2122 | return _core.Image_Copy(*args, **kwargs) | |
2123 | ||
2124 | def Paste(*args, **kwargs): | |
2125 | """Paste(Image image, int x, int y)""" | |
2126 | return _core.Image_Paste(*args, **kwargs) | |
2127 | ||
2128 | def GetData(*args, **kwargs): | |
2129 | """GetData() -> PyObject""" | |
2130 | return _core.Image_GetData(*args, **kwargs) | |
2131 | ||
2132 | def SetData(*args, **kwargs): | |
2133 | """SetData(PyObject data)""" | |
2134 | return _core.Image_SetData(*args, **kwargs) | |
2135 | ||
2136 | def GetDataBuffer(*args, **kwargs): | |
2137 | """GetDataBuffer() -> PyObject""" | |
2138 | return _core.Image_GetDataBuffer(*args, **kwargs) | |
2139 | ||
2140 | def SetDataBuffer(*args, **kwargs): | |
2141 | """SetDataBuffer(PyObject data)""" | |
2142 | return _core.Image_SetDataBuffer(*args, **kwargs) | |
2143 | ||
2144 | def GetAlphaData(*args, **kwargs): | |
2145 | """GetAlphaData() -> PyObject""" | |
2146 | return _core.Image_GetAlphaData(*args, **kwargs) | |
2147 | ||
2148 | def SetAlphaData(*args, **kwargs): | |
2149 | """SetAlphaData(PyObject data)""" | |
2150 | return _core.Image_SetAlphaData(*args, **kwargs) | |
2151 | ||
2152 | def GetAlphaBuffer(*args, **kwargs): | |
2153 | """GetAlphaBuffer() -> PyObject""" | |
2154 | return _core.Image_GetAlphaBuffer(*args, **kwargs) | |
2155 | ||
2156 | def SetAlphaBuffer(*args, **kwargs): | |
2157 | """SetAlphaBuffer(PyObject data)""" | |
2158 | return _core.Image_SetAlphaBuffer(*args, **kwargs) | |
2159 | ||
2160 | def SetMaskColour(*args, **kwargs): | |
2161 | """SetMaskColour(unsigned char r, unsigned char g, unsigned char b)""" | |
2162 | return _core.Image_SetMaskColour(*args, **kwargs) | |
2163 | ||
2164 | def GetMaskRed(*args, **kwargs): | |
2165 | """GetMaskRed() -> unsigned char""" | |
2166 | return _core.Image_GetMaskRed(*args, **kwargs) | |
2167 | ||
2168 | def GetMaskGreen(*args, **kwargs): | |
2169 | """GetMaskGreen() -> unsigned char""" | |
2170 | return _core.Image_GetMaskGreen(*args, **kwargs) | |
2171 | ||
2172 | def GetMaskBlue(*args, **kwargs): | |
2173 | """GetMaskBlue() -> unsigned char""" | |
2174 | return _core.Image_GetMaskBlue(*args, **kwargs) | |
2175 | ||
2176 | def SetMask(*args, **kwargs): | |
2177 | """SetMask(bool mask=True)""" | |
2178 | return _core.Image_SetMask(*args, **kwargs) | |
2179 | ||
2180 | def HasMask(*args, **kwargs): | |
2181 | """HasMask() -> bool""" | |
2182 | return _core.Image_HasMask(*args, **kwargs) | |
2183 | ||
2184 | def Rotate(*args, **kwargs): | |
41f1cec7 RD |
2185 | """ |
2186 | Rotate(double angle, Point centre_of_rotation, bool interpolating=True, | |
2187 | Point offset_after_rotation=None) -> Image | |
2188 | """ | |
423f194a RD |
2189 | return _core.Image_Rotate(*args, **kwargs) |
2190 | ||
2191 | def Rotate90(*args, **kwargs): | |
2192 | """Rotate90(bool clockwise=True) -> Image""" | |
2193 | return _core.Image_Rotate90(*args, **kwargs) | |
2194 | ||
2195 | def Mirror(*args, **kwargs): | |
2196 | """Mirror(bool horizontally=True) -> Image""" | |
2197 | return _core.Image_Mirror(*args, **kwargs) | |
2198 | ||
2199 | def Replace(*args, **kwargs): | |
41f1cec7 RD |
2200 | """ |
2201 | Replace(unsigned char r1, unsigned char g1, unsigned char b1, | |
2202 | unsigned char r2, unsigned char g2, unsigned char b2) | |
2203 | """ | |
423f194a RD |
2204 | return _core.Image_Replace(*args, **kwargs) |
2205 | ||
2206 | def ConvertToMono(*args, **kwargs): | |
2207 | """ConvertToMono(unsigned char r, unsigned char g, unsigned char b) -> Image""" | |
2208 | return _core.Image_ConvertToMono(*args, **kwargs) | |
2209 | ||
2210 | def SetOption(*args, **kwargs): | |
2211 | """SetOption(wxString name, wxString value)""" | |
2212 | return _core.Image_SetOption(*args, **kwargs) | |
2213 | ||
2214 | def SetOptionInt(*args, **kwargs): | |
2215 | """SetOptionInt(wxString name, int value)""" | |
2216 | return _core.Image_SetOptionInt(*args, **kwargs) | |
2217 | ||
2218 | def GetOption(*args, **kwargs): | |
2219 | """GetOption(wxString name) -> wxString""" | |
2220 | return _core.Image_GetOption(*args, **kwargs) | |
2221 | ||
2222 | def GetOptionInt(*args, **kwargs): | |
2223 | """GetOptionInt(wxString name) -> int""" | |
2224 | return _core.Image_GetOptionInt(*args, **kwargs) | |
2225 | ||
2226 | def HasOption(*args, **kwargs): | |
2227 | """HasOption(wxString name) -> bool""" | |
2228 | return _core.Image_HasOption(*args, **kwargs) | |
2229 | ||
2230 | def CountColours(*args, **kwargs): | |
2231 | """CountColours(unsigned long stopafter=(unsigned long) -1) -> unsigned long""" | |
2232 | return _core.Image_CountColours(*args, **kwargs) | |
2233 | ||
2234 | def ComputeHistogram(*args, **kwargs): | |
2235 | """ComputeHistogram(ImageHistogram h) -> unsigned long""" | |
2236 | return _core.Image_ComputeHistogram(*args, **kwargs) | |
2237 | ||
2238 | def AddHandler(*args, **kwargs): | |
2239 | """Image.AddHandler(ImageHandler handler)""" | |
2240 | return _core.Image_AddHandler(*args, **kwargs) | |
2241 | ||
2242 | AddHandler = staticmethod(AddHandler) | |
2243 | def InsertHandler(*args, **kwargs): | |
2244 | """Image.InsertHandler(ImageHandler handler)""" | |
2245 | return _core.Image_InsertHandler(*args, **kwargs) | |
2246 | ||
2247 | InsertHandler = staticmethod(InsertHandler) | |
2248 | def RemoveHandler(*args, **kwargs): | |
2249 | """Image.RemoveHandler(wxString name) -> bool""" | |
2250 | return _core.Image_RemoveHandler(*args, **kwargs) | |
2251 | ||
2252 | RemoveHandler = staticmethod(RemoveHandler) | |
2253 | def GetImageExtWildcard(*args, **kwargs): | |
2254 | """Image.GetImageExtWildcard() -> wxString""" | |
2255 | return _core.Image_GetImageExtWildcard(*args, **kwargs) | |
2256 | ||
2257 | GetImageExtWildcard = staticmethod(GetImageExtWildcard) | |
2258 | def ConvertToBitmap(*args, **kwargs): | |
2259 | """ConvertToBitmap() -> wxBitmap""" | |
2260 | return _core.Image_ConvertToBitmap(*args, **kwargs) | |
2261 | ||
2262 | def ConvertToMonoBitmap(*args, **kwargs): | |
2263 | """ConvertToMonoBitmap(unsigned char red, unsigned char green, unsigned char blue) -> wxBitmap""" | |
2264 | return _core.Image_ConvertToMonoBitmap(*args, **kwargs) | |
2265 | ||
2266 | def __nonzero__(self): return self.Ok() | |
d14a1e28 RD |
2267 | |
2268 | class ImagePtr(Image): | |
2269 | def __init__(self, this): | |
2270 | self.this = this | |
2271 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2272 | self.__class__ = Image | |
2273 | _core.Image_swigregister(ImagePtr) | |
2274 | ||
2275 | def ImageFromMime(*args, **kwargs): | |
423f194a | 2276 | """ImageFromMime(wxString name, wxString mimetype, int index=-1) -> Image""" |
d14a1e28 RD |
2277 | val = _core.new_ImageFromMime(*args, **kwargs) |
2278 | val.thisown = 1 | |
2279 | return val | |
2280 | ||
2281 | def ImageFromStream(*args, **kwargs): | |
423f194a | 2282 | """ImageFromStream(wxInputStream stream, long type=BITMAP_TYPE_ANY, int index=-1) -> Image""" |
d14a1e28 RD |
2283 | val = _core.new_ImageFromStream(*args, **kwargs) |
2284 | val.thisown = 1 | |
2285 | return val | |
2286 | ||
2287 | def ImageFromStreamMime(*args, **kwargs): | |
423f194a | 2288 | """ImageFromStreamMime(wxInputStream stream, wxString mimetype, int index=-1) -> Image""" |
d14a1e28 RD |
2289 | val = _core.new_ImageFromStreamMime(*args, **kwargs) |
2290 | val.thisown = 1 | |
2291 | return val | |
2292 | ||
2293 | def EmptyImage(*args, **kwargs): | |
423f194a | 2294 | """EmptyImage(int width=0, int height=0, bool clear=True) -> Image""" |
d14a1e28 RD |
2295 | val = _core.new_EmptyImage(*args, **kwargs) |
2296 | val.thisown = 1 | |
2297 | return val | |
2298 | ||
2299 | def ImageFromBitmap(*args, **kwargs): | |
423f194a | 2300 | """ImageFromBitmap(wxBitmap bitmap) -> Image""" |
d14a1e28 RD |
2301 | val = _core.new_ImageFromBitmap(*args, **kwargs) |
2302 | val.thisown = 1 | |
2303 | return val | |
2304 | ||
2305 | def ImageFromData(*args, **kwargs): | |
423f194a | 2306 | """ImageFromData(int width, int height, unsigned char data) -> Image""" |
d14a1e28 RD |
2307 | val = _core.new_ImageFromData(*args, **kwargs) |
2308 | val.thisown = 1 | |
2309 | return val | |
2310 | ||
423f194a RD |
2311 | def Image_CanRead(*args, **kwargs): |
2312 | """Image_CanRead(wxString name) -> bool""" | |
2313 | return _core.Image_CanRead(*args, **kwargs) | |
d14a1e28 | 2314 | |
423f194a RD |
2315 | def Image_GetImageCount(*args, **kwargs): |
2316 | """Image_GetImageCount(wxString name, long type=BITMAP_TYPE_ANY) -> int""" | |
2317 | return _core.Image_GetImageCount(*args, **kwargs) | |
d14a1e28 | 2318 | |
423f194a RD |
2319 | def Image_CanReadStream(*args, **kwargs): |
2320 | """Image_CanReadStream(wxInputStream stream) -> bool""" | |
2321 | return _core.Image_CanReadStream(*args, **kwargs) | |
d14a1e28 | 2322 | |
423f194a RD |
2323 | def Image_AddHandler(*args, **kwargs): |
2324 | """Image_AddHandler(ImageHandler handler)""" | |
2325 | return _core.Image_AddHandler(*args, **kwargs) | |
d14a1e28 | 2326 | |
423f194a RD |
2327 | def Image_InsertHandler(*args, **kwargs): |
2328 | """Image_InsertHandler(ImageHandler handler)""" | |
2329 | return _core.Image_InsertHandler(*args, **kwargs) | |
d14a1e28 | 2330 | |
423f194a RD |
2331 | def Image_RemoveHandler(*args, **kwargs): |
2332 | """Image_RemoveHandler(wxString name) -> bool""" | |
2333 | return _core.Image_RemoveHandler(*args, **kwargs) | |
d14a1e28 | 2334 | |
423f194a RD |
2335 | def Image_GetImageExtWildcard(*args, **kwargs): |
2336 | """Image_GetImageExtWildcard() -> wxString""" | |
2337 | return _core.Image_GetImageExtWildcard(*args, **kwargs) | |
d14a1e28 RD |
2338 | |
2339 | ||
423f194a RD |
2340 | def InitAllImageHandlers(*args, **kwargs): |
2341 | """InitAllImageHandlers()""" | |
2342 | return _core.InitAllImageHandlers(*args, **kwargs) | |
d14a1e28 RD |
2343 | IMAGE_RESOLUTION_INCHES = _core.IMAGE_RESOLUTION_INCHES |
2344 | IMAGE_RESOLUTION_CM = _core.IMAGE_RESOLUTION_CM | |
2345 | BMP_24BPP = _core.BMP_24BPP | |
2346 | BMP_8BPP = _core.BMP_8BPP | |
2347 | BMP_8BPP_GREY = _core.BMP_8BPP_GREY | |
2348 | BMP_8BPP_GRAY = _core.BMP_8BPP_GRAY | |
2349 | BMP_8BPP_RED = _core.BMP_8BPP_RED | |
2350 | BMP_8BPP_PALETTE = _core.BMP_8BPP_PALETTE | |
2351 | BMP_4BPP = _core.BMP_4BPP | |
2352 | BMP_1BPP = _core.BMP_1BPP | |
2353 | BMP_1BPP_BW = _core.BMP_1BPP_BW | |
2354 | class BMPHandler(ImageHandler): | |
423f194a RD |
2355 | def __repr__(self): |
2356 | return "<%s.%s; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2357 | def __init__(self, *args, **kwargs): |
423f194a | 2358 | """__init__() -> BMPHandler""" |
d14a1e28 RD |
2359 | newobj = _core.new_BMPHandler(*args, **kwargs) |
2360 | self.this = newobj.this | |
2361 | self.thisown = 1 | |
2362 | del newobj.thisown | |
d14a1e28 RD |
2363 | |
2364 | class BMPHandlerPtr(BMPHandler): | |
2365 | def __init__(self, this): | |
2366 | self.this = this | |
2367 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2368 | self.__class__ = BMPHandler | |
2369 | _core.BMPHandler_swigregister(BMPHandlerPtr) | |
2370 | NullImage = cvar.NullImage | |
2371 | IMAGE_OPTION_BMP_FORMAT = cvar.IMAGE_OPTION_BMP_FORMAT | |
2372 | IMAGE_OPTION_CUR_HOTSPOT_X = cvar.IMAGE_OPTION_CUR_HOTSPOT_X | |
2373 | IMAGE_OPTION_CUR_HOTSPOT_Y = cvar.IMAGE_OPTION_CUR_HOTSPOT_Y | |
2374 | IMAGE_OPTION_RESOLUTION = cvar.IMAGE_OPTION_RESOLUTION | |
2375 | IMAGE_OPTION_RESOLUTIONUNIT = cvar.IMAGE_OPTION_RESOLUTIONUNIT | |
2376 | ||
2377 | class ICOHandler(BMPHandler): | |
423f194a RD |
2378 | def __repr__(self): |
2379 | return "<%s.%s; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2380 | def __init__(self, *args, **kwargs): |
423f194a | 2381 | """__init__() -> ICOHandler""" |
d14a1e28 RD |
2382 | newobj = _core.new_ICOHandler(*args, **kwargs) |
2383 | self.this = newobj.this | |
2384 | self.thisown = 1 | |
2385 | del newobj.thisown | |
d14a1e28 RD |
2386 | |
2387 | class ICOHandlerPtr(ICOHandler): | |
2388 | def __init__(self, this): | |
2389 | self.this = this | |
2390 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2391 | self.__class__ = ICOHandler | |
2392 | _core.ICOHandler_swigregister(ICOHandlerPtr) | |
2393 | ||
2394 | class CURHandler(ICOHandler): | |
423f194a RD |
2395 | def __repr__(self): |
2396 | return "<%s.%s; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2397 | def __init__(self, *args, **kwargs): |
423f194a | 2398 | """__init__() -> CURHandler""" |
d14a1e28 RD |
2399 | newobj = _core.new_CURHandler(*args, **kwargs) |
2400 | self.this = newobj.this | |
2401 | self.thisown = 1 | |
2402 | del newobj.thisown | |
d14a1e28 RD |
2403 | |
2404 | class CURHandlerPtr(CURHandler): | |
2405 | def __init__(self, this): | |
2406 | self.this = this | |
2407 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2408 | self.__class__ = CURHandler | |
2409 | _core.CURHandler_swigregister(CURHandlerPtr) | |
2410 | ||
2411 | class ANIHandler(CURHandler): | |
423f194a RD |
2412 | def __repr__(self): |
2413 | return "<%s.%s; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2414 | def __init__(self, *args, **kwargs): |
423f194a | 2415 | """__init__() -> ANIHandler""" |
d14a1e28 RD |
2416 | newobj = _core.new_ANIHandler(*args, **kwargs) |
2417 | self.this = newobj.this | |
2418 | self.thisown = 1 | |
2419 | del newobj.thisown | |
d14a1e28 RD |
2420 | |
2421 | class ANIHandlerPtr(ANIHandler): | |
2422 | def __init__(self, this): | |
2423 | self.this = this | |
2424 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2425 | self.__class__ = ANIHandler | |
2426 | _core.ANIHandler_swigregister(ANIHandlerPtr) | |
2427 | ||
2428 | class PNGHandler(ImageHandler): | |
423f194a RD |
2429 | def __repr__(self): |
2430 | return "<%s.%s; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2431 | def __init__(self, *args, **kwargs): |
423f194a | 2432 | """__init__() -> PNGHandler""" |
d14a1e28 RD |
2433 | newobj = _core.new_PNGHandler(*args, **kwargs) |
2434 | self.this = newobj.this | |
2435 | self.thisown = 1 | |
2436 | del newobj.thisown | |
d14a1e28 RD |
2437 | |
2438 | class PNGHandlerPtr(PNGHandler): | |
2439 | def __init__(self, this): | |
2440 | self.this = this | |
2441 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2442 | self.__class__ = PNGHandler | |
2443 | _core.PNGHandler_swigregister(PNGHandlerPtr) | |
2444 | ||
2445 | class GIFHandler(ImageHandler): | |
423f194a RD |
2446 | def __repr__(self): |
2447 | return "<%s.%s; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2448 | def __init__(self, *args, **kwargs): |
423f194a | 2449 | """__init__() -> GIFHandler""" |
d14a1e28 RD |
2450 | newobj = _core.new_GIFHandler(*args, **kwargs) |
2451 | self.this = newobj.this | |
2452 | self.thisown = 1 | |
2453 | del newobj.thisown | |
d14a1e28 RD |
2454 | |
2455 | class GIFHandlerPtr(GIFHandler): | |
2456 | def __init__(self, this): | |
2457 | self.this = this | |
2458 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2459 | self.__class__ = GIFHandler | |
2460 | _core.GIFHandler_swigregister(GIFHandlerPtr) | |
2461 | ||
2462 | class PCXHandler(ImageHandler): | |
423f194a RD |
2463 | def __repr__(self): |
2464 | return "<%s.%s; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2465 | def __init__(self, *args, **kwargs): |
423f194a | 2466 | """__init__() -> PCXHandler""" |
d14a1e28 RD |
2467 | newobj = _core.new_PCXHandler(*args, **kwargs) |
2468 | self.this = newobj.this | |
2469 | self.thisown = 1 | |
2470 | del newobj.thisown | |
d14a1e28 RD |
2471 | |
2472 | class PCXHandlerPtr(PCXHandler): | |
2473 | def __init__(self, this): | |
2474 | self.this = this | |
2475 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2476 | self.__class__ = PCXHandler | |
2477 | _core.PCXHandler_swigregister(PCXHandlerPtr) | |
2478 | ||
2479 | class JPEGHandler(ImageHandler): | |
423f194a RD |
2480 | def __repr__(self): |
2481 | return "<%s.%s; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2482 | def __init__(self, *args, **kwargs): |
423f194a | 2483 | """__init__() -> JPEGHandler""" |
d14a1e28 RD |
2484 | newobj = _core.new_JPEGHandler(*args, **kwargs) |
2485 | self.this = newobj.this | |
2486 | self.thisown = 1 | |
2487 | del newobj.thisown | |
d14a1e28 RD |
2488 | |
2489 | class JPEGHandlerPtr(JPEGHandler): | |
2490 | def __init__(self, this): | |
2491 | self.this = this | |
2492 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2493 | self.__class__ = JPEGHandler | |
2494 | _core.JPEGHandler_swigregister(JPEGHandlerPtr) | |
2495 | ||
2496 | class PNMHandler(ImageHandler): | |
423f194a RD |
2497 | def __repr__(self): |
2498 | return "<%s.%s; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2499 | def __init__(self, *args, **kwargs): |
423f194a | 2500 | """__init__() -> PNMHandler""" |
d14a1e28 RD |
2501 | newobj = _core.new_PNMHandler(*args, **kwargs) |
2502 | self.this = newobj.this | |
2503 | self.thisown = 1 | |
2504 | del newobj.thisown | |
d14a1e28 RD |
2505 | |
2506 | class PNMHandlerPtr(PNMHandler): | |
2507 | def __init__(self, this): | |
2508 | self.this = this | |
2509 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2510 | self.__class__ = PNMHandler | |
2511 | _core.PNMHandler_swigregister(PNMHandlerPtr) | |
2512 | ||
2513 | class XPMHandler(ImageHandler): | |
423f194a RD |
2514 | def __repr__(self): |
2515 | return "<%s.%s; proxy of C++ wxXPMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2516 | def __init__(self, *args, **kwargs): |
423f194a | 2517 | """__init__() -> XPMHandler""" |
d14a1e28 RD |
2518 | newobj = _core.new_XPMHandler(*args, **kwargs) |
2519 | self.this = newobj.this | |
2520 | self.thisown = 1 | |
2521 | del newobj.thisown | |
d14a1e28 RD |
2522 | |
2523 | class XPMHandlerPtr(XPMHandler): | |
2524 | def __init__(self, this): | |
2525 | self.this = this | |
2526 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2527 | self.__class__ = XPMHandler | |
2528 | _core.XPMHandler_swigregister(XPMHandlerPtr) | |
2529 | ||
2530 | class TIFFHandler(ImageHandler): | |
423f194a RD |
2531 | def __repr__(self): |
2532 | return "<%s.%s; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2533 | def __init__(self, *args, **kwargs): |
423f194a | 2534 | """__init__() -> TIFFHandler""" |
d14a1e28 RD |
2535 | newobj = _core.new_TIFFHandler(*args, **kwargs) |
2536 | self.this = newobj.this | |
2537 | self.thisown = 1 | |
2538 | del newobj.thisown | |
d14a1e28 RD |
2539 | |
2540 | class TIFFHandlerPtr(TIFFHandler): | |
2541 | def __init__(self, this): | |
2542 | self.this = this | |
2543 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2544 | self.__class__ = TIFFHandler | |
2545 | _core.TIFFHandler_swigregister(TIFFHandlerPtr) | |
2546 | ||
2547 | #--------------------------------------------------------------------------- | |
2548 | ||
2549 | class EvtHandler(Object): | |
423f194a RD |
2550 | def __repr__(self): |
2551 | return "<%s.%s; proxy of C++ wxEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 2552 | def __init__(self, *args, **kwargs): |
423f194a | 2553 | """__init__() -> EvtHandler""" |
d14a1e28 RD |
2554 | newobj = _core.new_EvtHandler(*args, **kwargs) |
2555 | self.this = newobj.this | |
2556 | self.thisown = 1 | |
2557 | del newobj.thisown | |
423f194a RD |
2558 | def GetNextHandler(*args, **kwargs): |
2559 | """GetNextHandler() -> EvtHandler""" | |
2560 | return _core.EvtHandler_GetNextHandler(*args, **kwargs) | |
2561 | ||
2562 | def GetPreviousHandler(*args, **kwargs): | |
2563 | """GetPreviousHandler() -> EvtHandler""" | |
2564 | return _core.EvtHandler_GetPreviousHandler(*args, **kwargs) | |
2565 | ||
2566 | def SetNextHandler(*args, **kwargs): | |
2567 | """SetNextHandler(EvtHandler handler)""" | |
2568 | return _core.EvtHandler_SetNextHandler(*args, **kwargs) | |
2569 | ||
2570 | def SetPreviousHandler(*args, **kwargs): | |
2571 | """SetPreviousHandler(EvtHandler handler)""" | |
2572 | return _core.EvtHandler_SetPreviousHandler(*args, **kwargs) | |
2573 | ||
2574 | def GetEvtHandlerEnabled(*args, **kwargs): | |
2575 | """GetEvtHandlerEnabled() -> bool""" | |
2576 | return _core.EvtHandler_GetEvtHandlerEnabled(*args, **kwargs) | |
2577 | ||
2578 | def SetEvtHandlerEnabled(*args, **kwargs): | |
2579 | """SetEvtHandlerEnabled(bool enabled)""" | |
2580 | return _core.EvtHandler_SetEvtHandlerEnabled(*args, **kwargs) | |
2581 | ||
2582 | def ProcessEvent(*args, **kwargs): | |
2583 | """ProcessEvent(Event event) -> bool""" | |
2584 | return _core.EvtHandler_ProcessEvent(*args, **kwargs) | |
2585 | ||
2586 | def AddPendingEvent(*args, **kwargs): | |
2587 | """AddPendingEvent(Event event)""" | |
2588 | return _core.EvtHandler_AddPendingEvent(*args, **kwargs) | |
2589 | ||
2590 | def ProcessPendingEvents(*args, **kwargs): | |
2591 | """ProcessPendingEvents()""" | |
2592 | return _core.EvtHandler_ProcessPendingEvents(*args, **kwargs) | |
2593 | ||
2594 | def Connect(*args, **kwargs): | |
2595 | """Connect(int id, int lastId, int eventType, PyObject func)""" | |
2596 | return _core.EvtHandler_Connect(*args, **kwargs) | |
2597 | ||
2598 | def Disconnect(*args, **kwargs): | |
2599 | """Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool""" | |
2600 | return _core.EvtHandler_Disconnect(*args, **kwargs) | |
2601 | ||
2602 | def _setOORInfo(*args, **kwargs): | |
2603 | """_setOORInfo(PyObject _self)""" | |
2604 | return _core.EvtHandler__setOORInfo(*args, **kwargs) | |
2605 | ||
d14a1e28 RD |
2606 | def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): |
2607 | """ | |
2608 | Bind an event to an event handler. | |
2609 | ||
2610 | event One of the EVT_* objects that specifies the | |
2611 | type of event to bind, | |
2612 | ||
2613 | handler A callable object to be invoked when the event | |
2614 | is delivered to self. Pass None to disconnect an | |
2615 | event handler. | |
2616 | ||
2617 | source Sometimes the event originates from a different window | |
2618 | than self, but you still want to catch it in self. (For | |
2619 | example, a button event delivered to a frame.) By | |
2620 | passing the source of the event, the event handling | |
2621 | system is able to differentiate between the same event | |
2622 | type from different controls. | |
2623 | ||
2624 | id,id2 Used for menu IDs or for event types that require a | |
2625 | range of IDs | |
2626 | """ | |
2627 | if source is not None: | |
2628 | id = source.GetId() | |
2629 | event.Bind(self, id, id2, handler) | |
2630 | ||
2631 | ||
d14a1e28 RD |
2632 | |
2633 | class EvtHandlerPtr(EvtHandler): | |
2634 | def __init__(self, this): | |
2635 | self.this = this | |
2636 | if not hasattr(self,"thisown"): self.thisown = 0 | |
2637 | self.__class__ = EvtHandler | |
2638 | _core.EvtHandler_swigregister(EvtHandlerPtr) | |
2639 | ||
2640 | #--------------------------------------------------------------------------- | |
2641 | ||
2642 | class PyEventBinder(object): | |
2643 | """ | |
2644 | Instances of this class are used to bind specific events to event | |
2645 | handlers. | |
2646 | """ | |
2647 | def __init__(self, evtType, expectedIDs=0): | |
2648 | if expectedIDs not in [0, 1, 2]: | |
2649 | raise ValueError, "Invalid number of expectedIDs" | |
2650 | self.expectedIDs = expectedIDs | |
2651 | ||
2652 | if type(evtType) == list or type(evtType) == tuple: | |
2653 | self.evtType = evtType | |
2654 | else: | |
2655 | self.evtType = [evtType] | |
2656 | ||
2657 | ||
2658 | def Bind(self, target, id1, id2, function): | |
2659 | """Bind this set of event types to target.""" | |
2660 | for et in self.evtType: | |
2661 | target.Connect(id1, id2, et, function) | |
2662 | ||
2663 | ||
2664 | def __call__(self, *args): | |
2665 | """ | |
2666 | For backwards compatibility with the old EVT_* functions. | |
2667 | Should be called with either (window, func), (window, ID, | |
2668 | func) or (window, ID1, ID2, func) parameters depending on the | |
2669 | type of the event. | |
2670 | """ | |
2671 | assert len(args) == 2 + self.expectedIDs | |
2672 | id1 = wx.ID_ANY | |
2673 | id2 = wx.ID_ANY | |
2674 | target = args[0] | |
2675 | if self.expectedIDs == 0: | |
2676 | func = args[1] | |
2677 | elif self.expectedIDs == 1: | |
2678 | id1 = args[1] | |
2679 | func = args[2] | |
2680 | elif self.expectedIDs == 2: | |
2681 | id1 = args[1] | |
2682 | id2 = args[2] | |
2683 | func = args[3] | |
2684 | else: | |
2685 | raise ValueError, "Unexpected number of IDs" | |
2686 | ||
2687 | self.Bind(target, id1, id2, func) | |
2688 | ||
2689 | ||
2690 | # These two are square pegs that don't fit the PyEventBinder hole... | |
2691 | def EVT_COMMAND(win, id, cmd, func): | |
2692 | win.Connect(id, -1, cmd, func) | |
2693 | def EVT_COMMAND_RANGE(win, id1, id2, cmd, func): | |
2694 | win.Connect(id1, id2, cmd, func) | |
2695 | ||
2696 | ||
2697 | #--------------------------------------------------------------------------- | |
2698 | ||
2699 | #--------------------------------------------------------------------------- | |
2700 | ||
2701 | EVENT_PROPAGATE_NONE = _core.EVENT_PROPAGATE_NONE | |
2702 | EVENT_PROPAGATE_MAX = _core.EVENT_PROPAGATE_MAX | |
2703 | ||
423f194a RD |
2704 | def NewEventType(*args, **kwargs): |
2705 | """NewEventType() -> wxEventType""" | |
2706 | return _core.NewEventType(*args, **kwargs) | |
d14a1e28 RD |
2707 | wxEVT_NULL = _core.wxEVT_NULL |
2708 | wxEVT_FIRST = _core.wxEVT_FIRST | |
2709 | wxEVT_USER_FIRST = _core.wxEVT_USER_FIRST | |
2710 | wxEVT_COMMAND_BUTTON_CLICKED = _core.wxEVT_COMMAND_BUTTON_CLICKED | |
2711 | wxEVT_COMMAND_CHECKBOX_CLICKED = _core.wxEVT_COMMAND_CHECKBOX_CLICKED | |
2712 | wxEVT_COMMAND_CHOICE_SELECTED = _core.wxEVT_COMMAND_CHOICE_SELECTED | |
2713 | wxEVT_COMMAND_LISTBOX_SELECTED = _core.wxEVT_COMMAND_LISTBOX_SELECTED | |
2714 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = _core.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED | |
2715 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = _core.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED | |
2716 | wxEVT_COMMAND_MENU_SELECTED = _core.wxEVT_COMMAND_MENU_SELECTED | |
2717 | wxEVT_COMMAND_TOOL_CLICKED = _core.wxEVT_COMMAND_TOOL_CLICKED | |
2718 | wxEVT_COMMAND_SLIDER_UPDATED = _core.wxEVT_COMMAND_SLIDER_UPDATED | |
2719 | wxEVT_COMMAND_RADIOBOX_SELECTED = _core.wxEVT_COMMAND_RADIOBOX_SELECTED | |
2720 | wxEVT_COMMAND_RADIOBUTTON_SELECTED = _core.wxEVT_COMMAND_RADIOBUTTON_SELECTED | |
2721 | wxEVT_COMMAND_SCROLLBAR_UPDATED = _core.wxEVT_COMMAND_SCROLLBAR_UPDATED | |
2722 | wxEVT_COMMAND_VLBOX_SELECTED = _core.wxEVT_COMMAND_VLBOX_SELECTED | |
2723 | wxEVT_COMMAND_COMBOBOX_SELECTED = _core.wxEVT_COMMAND_COMBOBOX_SELECTED | |
2724 | wxEVT_COMMAND_TOOL_RCLICKED = _core.wxEVT_COMMAND_TOOL_RCLICKED | |
2725 | wxEVT_COMMAND_TOOL_ENTER = _core.wxEVT_COMMAND_TOOL_ENTER | |
2726 | wxEVT_LEFT_DOWN = _core.wxEVT_LEFT_DOWN | |
2727 | wxEVT_LEFT_UP = _core.wxEVT_LEFT_UP | |
2728 | wxEVT_MIDDLE_DOWN = _core.wxEVT_MIDDLE_DOWN | |
2729 | wxEVT_MIDDLE_UP = _core.wxEVT_MIDDLE_UP | |
2730 | wxEVT_RIGHT_DOWN = _core.wxEVT_RIGHT_DOWN | |
2731 | wxEVT_RIGHT_UP = _core.wxEVT_RIGHT_UP | |
2732 | wxEVT_MOTION = _core.wxEVT_MOTION | |
2733 | wxEVT_ENTER_WINDOW = _core.wxEVT_ENTER_WINDOW | |
2734 | wxEVT_LEAVE_WINDOW = _core.wxEVT_LEAVE_WINDOW | |
2735 | wxEVT_LEFT_DCLICK = _core.wxEVT_LEFT_DCLICK | |
2736 | wxEVT_MIDDLE_DCLICK = _core.wxEVT_MIDDLE_DCLICK | |
2737 | wxEVT_RIGHT_DCLICK = _core.wxEVT_RIGHT_DCLICK | |
2738 | wxEVT_SET_FOCUS = _core.wxEVT_SET_FOCUS | |
2739 | wxEVT_KILL_FOCUS = _core.wxEVT_KILL_FOCUS | |
2740 | wxEVT_CHILD_FOCUS = _core.wxEVT_CHILD_FOCUS | |
2741 | wxEVT_MOUSEWHEEL = _core.wxEVT_MOUSEWHEEL | |
2742 | wxEVT_NC_LEFT_DOWN = _core.wxEVT_NC_LEFT_DOWN | |
2743 | wxEVT_NC_LEFT_UP = _core.wxEVT_NC_LEFT_UP | |
2744 | wxEVT_NC_MIDDLE_DOWN = _core.wxEVT_NC_MIDDLE_DOWN | |
2745 | wxEVT_NC_MIDDLE_UP = _core.wxEVT_NC_MIDDLE_UP | |
2746 | wxEVT_NC_RIGHT_DOWN = _core.wxEVT_NC_RIGHT_DOWN | |
2747 | wxEVT_NC_RIGHT_UP = _core.wxEVT_NC_RIGHT_UP | |
2748 | wxEVT_NC_MOTION = _core.wxEVT_NC_MOTION | |
2749 | wxEVT_NC_ENTER_WINDOW = _core.wxEVT_NC_ENTER_WINDOW | |
2750 | wxEVT_NC_LEAVE_WINDOW = _core.wxEVT_NC_LEAVE_WINDOW | |
2751 | wxEVT_NC_LEFT_DCLICK = _core.wxEVT_NC_LEFT_DCLICK | |
2752 | wxEVT_NC_MIDDLE_DCLICK = _core.wxEVT_NC_MIDDLE_DCLICK | |
2753 | wxEVT_NC_RIGHT_DCLICK = _core.wxEVT_NC_RIGHT_DCLICK | |
2754 | wxEVT_CHAR = _core.wxEVT_CHAR | |
2755 | wxEVT_CHAR_HOOK = _core.wxEVT_CHAR_HOOK | |
2756 | wxEVT_NAVIGATION_KEY = _core.wxEVT_NAVIGATION_KEY | |
2757 | wxEVT_KEY_DOWN = _core.wxEVT_KEY_DOWN | |
2758 | wxEVT_KEY_UP = _core.wxEVT_KEY_UP | |
2759 | wxEVT_HOTKEY = _core.wxEVT_HOTKEY | |
2760 | wxEVT_SET_CURSOR = _core.wxEVT_SET_CURSOR | |
2761 | wxEVT_SCROLL_TOP = _core.wxEVT_SCROLL_TOP | |
2762 | wxEVT_SCROLL_BOTTOM = _core.wxEVT_SCROLL_BOTTOM | |
2763 | wxEVT_SCROLL_LINEUP = _core.wxEVT_SCROLL_LINEUP | |
2764 | wxEVT_SCROLL_LINEDOWN = _core.wxEVT_SCROLL_LINEDOWN | |
2765 | wxEVT_SCROLL_PAGEUP = _core.wxEVT_SCROLL_PAGEUP | |
2766 | wxEVT_SCROLL_PAGEDOWN = _core.wxEVT_SCROLL_PAGEDOWN | |
2767 | wxEVT_SCROLL_THUMBTRACK = _core.wxEVT_SCROLL_THUMBTRACK | |
2768 | wxEVT_SCROLL_THUMBRELEASE = _core.wxEVT_SCROLL_THUMBRELEASE | |
2769 | wxEVT_SCROLL_ENDSCROLL = _core.wxEVT_SCROLL_ENDSCROLL | |
2770 | wxEVT_SCROLLWIN_TOP = _core.wxEVT_SCROLLWIN_TOP | |
2771 | wxEVT_SCROLLWIN_BOTTOM = _core.wxEVT_SCROLLWIN_BOTTOM | |
2772 | wxEVT_SCROLLWIN_LINEUP = _core.wxEVT_SCROLLWIN_LINEUP | |
2773 | wxEVT_SCROLLWIN_LINEDOWN = _core.wxEVT_SCROLLWIN_LINEDOWN | |
2774 | wxEVT_SCROLLWIN_PAGEUP = _core.wxEVT_SCROLLWIN_PAGEUP | |
2775 | wxEVT_SCROLLWIN_PAGEDOWN = _core.wxEVT_SCROLLWIN_PAGEDOWN | |
2776 | wxEVT_SCROLLWIN_THUMBTRACK = _core.wxEVT_SCROLLWIN_THUMBTRACK | |
2777 | wxEVT_SCROLLWIN_THUMBRELEASE = _core.wxEVT_SCROLLWIN_THUMBRELEASE | |
2778 | wxEVT_SIZE = _core.wxEVT_SIZE | |
2779 | wxEVT_MOVE = _core.wxEVT_MOVE | |
2780 | wxEVT_CLOSE_WINDOW = _core.wxEVT_CLOSE_WINDOW | |
2781 | wxEVT_END_SESSION = _core.wxEVT_END_SESSION | |
2782 | wxEVT_QUERY_END_SESSION = _core.wxEVT_QUERY_END_SESSION | |
2783 | wxEVT_ACTIVATE_APP = _core.wxEVT_ACTIVATE_APP | |
2784 | wxEVT_POWER = _core.wxEVT_POWER | |
2785 | wxEVT_ACTIVATE = _core.wxEVT_ACTIVATE | |
2786 | wxEVT_CREATE = _core.wxEVT_CREATE | |
2787 | wxEVT_DESTROY = _core.wxEVT_DESTROY | |
2788 | wxEVT_SHOW = _core.wxEVT_SHOW | |
2789 | wxEVT_ICONIZE = _core.wxEVT_ICONIZE | |
2790 | wxEVT_MAXIMIZE = _core.wxEVT_MAXIMIZE | |
2791 | wxEVT_MOUSE_CAPTURE_CHANGED = _core.wxEVT_MOUSE_CAPTURE_CHANGED | |
2792 | wxEVT_PAINT = _core.wxEVT_PAINT | |
2793 | wxEVT_ERASE_BACKGROUND = _core.wxEVT_ERASE_BACKGROUND | |
2794 | wxEVT_NC_PAINT = _core.wxEVT_NC_PAINT | |
2795 | wxEVT_PAINT_ICON = _core.wxEVT_PAINT_ICON | |
2796 | wxEVT_MENU_OPEN = _core.wxEVT_MENU_OPEN | |
2797 | wxEVT_MENU_CLOSE = _core.wxEVT_MENU_CLOSE | |
2798 | wxEVT_MENU_HIGHLIGHT = _core.wxEVT_MENU_HIGHLIGHT | |
2799 | wxEVT_CONTEXT_MENU = _core.wxEVT_CONTEXT_MENU | |
2800 | wxEVT_SYS_COLOUR_CHANGED = _core.wxEVT_SYS_COLOUR_CHANGED | |
2801 | wxEVT_DISPLAY_CHANGED = _core.wxEVT_DISPLAY_CHANGED | |
2802 | wxEVT_SETTING_CHANGED = _core.wxEVT_SETTING_CHANGED | |
2803 | wxEVT_QUERY_NEW_PALETTE = _core.wxEVT_QUERY_NEW_PALETTE | |
2804 | wxEVT_PALETTE_CHANGED = _core.wxEVT_PALETTE_CHANGED | |
2805 | wxEVT_DROP_FILES = _core.wxEVT_DROP_FILES | |
2806 | wxEVT_DRAW_ITEM = _core.wxEVT_DRAW_ITEM | |
2807 | wxEVT_MEASURE_ITEM = _core.wxEVT_MEASURE_ITEM | |
2808 | wxEVT_COMPARE_ITEM = _core.wxEVT_COMPARE_ITEM | |
2809 | wxEVT_INIT_DIALOG = _core.wxEVT_INIT_DIALOG | |
2810 | wxEVT_IDLE = _core.wxEVT_IDLE | |
2811 | wxEVT_UPDATE_UI = _core.wxEVT_UPDATE_UI | |
2812 | wxEVT_SIZING = _core.wxEVT_SIZING | |
2813 | wxEVT_MOVING = _core.wxEVT_MOVING | |
2814 | wxEVT_COMMAND_LEFT_CLICK = _core.wxEVT_COMMAND_LEFT_CLICK | |
2815 | wxEVT_COMMAND_LEFT_DCLICK = _core.wxEVT_COMMAND_LEFT_DCLICK | |
2816 | wxEVT_COMMAND_RIGHT_CLICK = _core.wxEVT_COMMAND_RIGHT_CLICK | |
2817 | wxEVT_COMMAND_RIGHT_DCLICK = _core.wxEVT_COMMAND_RIGHT_DCLICK | |
2818 | wxEVT_COMMAND_SET_FOCUS = _core.wxEVT_COMMAND_SET_FOCUS | |
2819 | wxEVT_COMMAND_KILL_FOCUS = _core.wxEVT_COMMAND_KILL_FOCUS | |
2820 | wxEVT_COMMAND_ENTER = _core.wxEVT_COMMAND_ENTER | |
2821 | # | |
2822 | # Create some event binders | |
2823 | EVT_SIZE = wx.PyEventBinder( wxEVT_SIZE ) | |
2824 | EVT_SIZING = wx.PyEventBinder( wxEVT_SIZING ) | |
2825 | EVT_MOVE = wx.PyEventBinder( wxEVT_MOVE ) | |
2826 | EVT_MOVING = wx.PyEventBinder( wxEVT_MOVING ) | |
2827 | EVT_CLOSE = wx.PyEventBinder( wxEVT_CLOSE_WINDOW ) | |
2828 | EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) | |
2829 | EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) | |
2830 | EVT_PAINT = wx.PyEventBinder( wxEVT_PAINT ) | |
2831 | EVT_NC_PAINT = wx.PyEventBinder( wxEVT_NC_PAINT ) | |
2832 | EVT_ERASE_BACKGROUND = wx.PyEventBinder( wxEVT_ERASE_BACKGROUND ) | |
2833 | EVT_CHAR = wx.PyEventBinder( wxEVT_CHAR ) | |
2834 | EVT_KEY_DOWN = wx.PyEventBinder( wxEVT_KEY_DOWN ) | |
2835 | EVT_KEY_UP = wx.PyEventBinder( wxEVT_KEY_UP ) | |
2836 | EVT_HOTKEY = wx.PyEventBinder( wxEVT_HOTKEY, 1) | |
2837 | EVT_CHAR_HOOK = wx.PyEventBinder( wxEVT_CHAR_HOOK ) | |
2838 | EVT_MENU_OPEN = wx.PyEventBinder( wxEVT_MENU_OPEN ) | |
2839 | EVT_MENU_CLOSE = wx.PyEventBinder( wxEVT_MENU_CLOSE ) | |
2840 | EVT_MENU_HIGHLIGHT = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT, 1) | |
2841 | EVT_MENU_HIGHLIGHT_ALL = wx.PyEventBinder( wxEVT_MENU_HIGHLIGHT ) | |
2842 | EVT_SET_FOCUS = wx.PyEventBinder( wxEVT_SET_FOCUS ) | |
2843 | EVT_KILL_FOCUS = wx.PyEventBinder( wxEVT_KILL_FOCUS ) | |
2844 | EVT_CHILD_FOCUS = wx.PyEventBinder( wxEVT_CHILD_FOCUS ) | |
2845 | EVT_ACTIVATE = wx.PyEventBinder( wxEVT_ACTIVATE ) | |
2846 | EVT_ACTIVATE_APP = wx.PyEventBinder( wxEVT_ACTIVATE_APP ) | |
2847 | EVT_END_SESSION = wx.PyEventBinder( wxEVT_END_SESSION ) | |
2848 | EVT_QUERY_END_SESSION = wx.PyEventBinder( wxEVT_QUERY_END_SESSION ) | |
2849 | EVT_DROP_FILES = wx.PyEventBinder( wxEVT_DROP_FILES ) | |
2850 | EVT_INIT_DIALOG = wx.PyEventBinder( wxEVT_INIT_DIALOG ) | |
2851 | EVT_SYS_COLOUR_CHANGED = wx.PyEventBinder( wxEVT_SYS_COLOUR_CHANGED ) | |
2852 | EVT_DISPLAY_CHANGED = wx.PyEventBinder( wxEVT_DISPLAY_CHANGED ) | |
2853 | EVT_SHOW = wx.PyEventBinder( wxEVT_SHOW ) | |
2854 | EVT_MAXIMIZE = wx.PyEventBinder( wxEVT_MAXIMIZE ) | |
2855 | EVT_ICONIZE = wx.PyEventBinder( wxEVT_ICONIZE ) | |
2856 | EVT_NAVIGATION_KEY = wx.PyEventBinder( wxEVT_NAVIGATION_KEY ) | |
2857 | EVT_PALETTE_CHANGED = wx.PyEventBinder( wxEVT_PALETTE_CHANGED ) | |
2858 | EVT_QUERY_NEW_PALETTE = wx.PyEventBinder( wxEVT_QUERY_NEW_PALETTE ) | |
2859 | EVT_WINDOW_CREATE = wx.PyEventBinder( wxEVT_CREATE ) | |
2860 | EVT_WINDOW_DESTROY = wx.PyEventBinder( wxEVT_DESTROY ) | |
2861 | EVT_SET_CURSOR = wx.PyEventBinder( wxEVT_SET_CURSOR ) | |
2862 | EVT_MOUSE_CAPTURE_CHANGED = wx.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED ) | |
2863 | ||
2864 | EVT_LEFT_DOWN = wx.PyEventBinder( wxEVT_LEFT_DOWN ) | |
2865 | EVT_LEFT_UP = wx.PyEventBinder( wxEVT_LEFT_UP ) | |
2866 | EVT_MIDDLE_DOWN = wx.PyEventBinder( wxEVT_MIDDLE_DOWN ) | |
2867 | EVT_MIDDLE_UP = wx.PyEventBinder( wxEVT_MIDDLE_UP ) | |
2868 | EVT_RIGHT_DOWN = wx.PyEventBinder( wxEVT_RIGHT_DOWN ) | |
2869 | EVT_RIGHT_UP = wx.PyEventBinder( wxEVT_RIGHT_UP ) | |
2870 | EVT_MOTION = wx.PyEventBinder( wxEVT_MOTION ) | |
2871 | EVT_LEFT_DCLICK = wx.PyEventBinder( wxEVT_LEFT_DCLICK ) | |
2872 | EVT_MIDDLE_DCLICK = wx.PyEventBinder( wxEVT_MIDDLE_DCLICK ) | |
2873 | EVT_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_RIGHT_DCLICK ) | |
2874 | EVT_LEAVE_WINDOW = wx.PyEventBinder( wxEVT_LEAVE_WINDOW ) | |
2875 | EVT_ENTER_WINDOW = wx.PyEventBinder( wxEVT_ENTER_WINDOW ) | |
2876 | EVT_MOUSEWHEEL = wx.PyEventBinder( wxEVT_MOUSEWHEEL ) | |
2877 | ||
2878 | EVT_MOUSE_EVENTS = wx.PyEventBinder([ wxEVT_LEFT_DOWN, | |
2879 | wxEVT_LEFT_UP, | |
2880 | wxEVT_MIDDLE_DOWN, | |
2881 | wxEVT_MIDDLE_UP, | |
2882 | wxEVT_RIGHT_DOWN, | |
2883 | wxEVT_RIGHT_UP, | |
2884 | wxEVT_MOTION, | |
2885 | wxEVT_LEFT_DCLICK, | |
2886 | wxEVT_MIDDLE_DCLICK, | |
2887 | wxEVT_RIGHT_DCLICK, | |
2888 | wxEVT_ENTER_WINDOW, | |
2889 | wxEVT_LEAVE_WINDOW, | |
2890 | wxEVT_MOUSEWHEEL | |
2891 | ]) | |
2892 | ||
2893 | ||
2894 | # Scrolling from wxWindow (sent to wxScrolledWindow) | |
2895 | EVT_SCROLLWIN = wx.PyEventBinder([ wxEVT_SCROLLWIN_TOP, | |
2896 | wxEVT_SCROLLWIN_BOTTOM, | |
2897 | wxEVT_SCROLLWIN_LINEUP, | |
2898 | wxEVT_SCROLLWIN_LINEDOWN, | |
2899 | wxEVT_SCROLLWIN_PAGEUP, | |
2900 | wxEVT_SCROLLWIN_PAGEDOWN, | |
2901 | wxEVT_SCROLLWIN_THUMBTRACK, | |
2902 | wxEVT_SCROLLWIN_THUMBRELEASE, | |
2903 | ]) | |
2904 | ||
2905 | EVT_SCROLLWIN_TOP = wx.PyEventBinder( wxEVT_SCROLLWIN_TOP ) | |
2906 | EVT_SCROLLWIN_BOTTOM = wx.PyEventBinder( wxEVT_SCROLLWIN_BOTTOM ) | |
2907 | EVT_SCROLLWIN_LINEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEUP ) | |
2908 | EVT_SCROLLWIN_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_LINEDOWN ) | |
2909 | EVT_SCROLLWIN_PAGEUP = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEUP ) | |
2910 | EVT_SCROLLWIN_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLLWIN_PAGEDOWN ) | |
2911 | EVT_SCROLLWIN_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBTRACK ) | |
2912 | EVT_SCROLLWIN_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLLWIN_THUMBRELEASE ) | |
2913 | ||
2914 | # Scrolling from wxSlider and wxScrollBar | |
2915 | EVT_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, | |
2916 | wxEVT_SCROLL_BOTTOM, | |
2917 | wxEVT_SCROLL_LINEUP, | |
2918 | wxEVT_SCROLL_LINEDOWN, | |
2919 | wxEVT_SCROLL_PAGEUP, | |
2920 | wxEVT_SCROLL_PAGEDOWN, | |
2921 | wxEVT_SCROLL_THUMBTRACK, | |
2922 | wxEVT_SCROLL_THUMBRELEASE, | |
2923 | wxEVT_SCROLL_ENDSCROLL, | |
2924 | ]) | |
2925 | ||
2926 | EVT_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP ) | |
2927 | EVT_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM ) | |
2928 | EVT_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP ) | |
2929 | EVT_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN ) | |
2930 | EVT_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP ) | |
2931 | EVT_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN ) | |
2932 | EVT_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK ) | |
2933 | EVT_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE ) | |
2934 | EVT_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL ) | |
2935 | ||
2936 | # Scrolling from wxSlider and wxScrollBar, with an id | |
2937 | EVT_COMMAND_SCROLL = wx.PyEventBinder([ wxEVT_SCROLL_TOP, | |
2938 | wxEVT_SCROLL_BOTTOM, | |
2939 | wxEVT_SCROLL_LINEUP, | |
2940 | wxEVT_SCROLL_LINEDOWN, | |
2941 | wxEVT_SCROLL_PAGEUP, | |
2942 | wxEVT_SCROLL_PAGEDOWN, | |
2943 | wxEVT_SCROLL_THUMBTRACK, | |
2944 | wxEVT_SCROLL_THUMBRELEASE, | |
2945 | wxEVT_SCROLL_ENDSCROLL, | |
2946 | ], 1) | |
2947 | ||
2948 | EVT_COMMAND_SCROLL_TOP = wx.PyEventBinder( wxEVT_SCROLL_TOP, 1) | |
2949 | EVT_COMMAND_SCROLL_BOTTOM = wx.PyEventBinder( wxEVT_SCROLL_BOTTOM, 1) | |
2950 | EVT_COMMAND_SCROLL_LINEUP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1) | |
2951 | EVT_COMMAND_SCROLL_LINEDOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1) | |
2952 | EVT_COMMAND_SCROLL_PAGEUP = wx.PyEventBinder( wxEVT_SCROLL_PAGEUP, 1) | |
2953 | EVT_COMMAND_SCROLL_PAGEDOWN = wx.PyEventBinder( wxEVT_SCROLL_PAGEDOWN, 1) | |
2954 | EVT_COMMAND_SCROLL_THUMBTRACK = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1) | |
2955 | EVT_COMMAND_SCROLL_THUMBRELEASE = wx.PyEventBinder( wxEVT_SCROLL_THUMBRELEASE, 1) | |
2956 | EVT_COMMAND_SCROLL_ENDSCROLL = wx.PyEventBinder( wxEVT_SCROLL_ENDSCROLL, 1) | |
2957 | ||
2958 | EVT_SPIN_UP = wx.PyEventBinder( wxEVT_SCROLL_LINEUP, 1) | |
2959 | EVT_SPIN_DOWN = wx.PyEventBinder( wxEVT_SCROLL_LINEDOWN, 1) | |
2960 | EVT_SPIN = wx.PyEventBinder( wxEVT_SCROLL_THUMBTRACK, 1) | |
2961 | ||
2962 | EVT_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_BUTTON_CLICKED, 1) | |
2963 | EVT_CHECKBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKBOX_CLICKED, 1) | |
2964 | EVT_CHOICE = wx.PyEventBinder( wxEVT_COMMAND_CHOICE_SELECTED, 1) | |
2965 | EVT_LISTBOX = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_SELECTED, 1) | |
2966 | EVT_LISTBOX_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, 1) | |
2967 | EVT_MENU = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 1) | |
2968 | EVT_MENU_RANGE = wx.PyEventBinder( wxEVT_COMMAND_MENU_SELECTED, 2) | |
2969 | EVT_SLIDER = wx.PyEventBinder( wxEVT_COMMAND_SLIDER_UPDATED, 1) | |
2970 | EVT_RADIOBOX = wx.PyEventBinder( wxEVT_COMMAND_RADIOBOX_SELECTED, 1) | |
2971 | EVT_RADIOBUTTON = wx.PyEventBinder( wxEVT_COMMAND_RADIOBUTTON_SELECTED, 1) | |
2972 | ||
2973 | EVT_SCROLLBAR = wx.PyEventBinder( wxEVT_COMMAND_SCROLLBAR_UPDATED, 1) | |
2974 | EVT_VLBOX = wx.PyEventBinder( wxEVT_COMMAND_VLBOX_SELECTED, 1) | |
2975 | EVT_COMBOBOX = wx.PyEventBinder( wxEVT_COMMAND_COMBOBOX_SELECTED, 1) | |
2976 | EVT_TOOL = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 1) | |
2977 | EVT_TOOL_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_CLICKED, 2) | |
2978 | EVT_TOOL_RCLICKED = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 1) | |
2979 | EVT_TOOL_RCLICKED_RANGE = wx.PyEventBinder( wxEVT_COMMAND_TOOL_RCLICKED, 2) | |
2980 | EVT_TOOL_ENTER = wx.PyEventBinder( wxEVT_COMMAND_TOOL_ENTER, 1) | |
2981 | EVT_CHECKLISTBOX = wx.PyEventBinder( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, 1) | |
2982 | ||
2983 | ||
2984 | EVT_COMMAND_LEFT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_CLICK, 1) | |
2985 | EVT_COMMAND_LEFT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_LEFT_DCLICK, 1) | |
2986 | EVT_COMMAND_RIGHT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_CLICK, 1) | |
2987 | EVT_COMMAND_RIGHT_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_RIGHT_DCLICK, 1) | |
2988 | EVT_COMMAND_SET_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_SET_FOCUS, 1) | |
2989 | EVT_COMMAND_KILL_FOCUS = wx.PyEventBinder( wxEVT_COMMAND_KILL_FOCUS, 1) | |
2990 | EVT_COMMAND_ENTER = wx.PyEventBinder( wxEVT_COMMAND_ENTER, 1) | |
2991 | ||
2992 | EVT_IDLE = wx.PyEventBinder( wxEVT_IDLE ) | |
2993 | ||
2994 | EVT_UPDATE_UI = wx.PyEventBinder( wxEVT_UPDATE_UI, 1) | |
2995 | EVT_UPDATE_UI_RANGE = wx.PyEventBinder( wxEVT_UPDATE_UI, 2) | |
2996 | ||
2997 | EVT_CONTEXT_MENU = wx.PyEventBinder( wxEVT_CONTEXT_MENU ) | |
2998 | ||
2999 | ||
3000 | ||
3001 | #--------------------------------------------------------------------------- | |
3002 | ||
3003 | class Event(Object): | |
423f194a RD |
3004 | def __init__(self): raise RuntimeError, "No constructor defined" |
3005 | def __repr__(self): | |
3006 | return "<%s.%s; proxy of C++ wxEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3007 | def __del__(self, destroy=_core.delete_Event): |
423f194a | 3008 | """__del__()""" |
d14a1e28 RD |
3009 | try: |
3010 | if self.thisown: destroy(self) | |
3011 | except: pass | |
423f194a RD |
3012 | |
3013 | def SetEventType(*args, **kwargs): | |
3014 | """SetEventType(wxEventType typ)""" | |
3015 | return _core.Event_SetEventType(*args, **kwargs) | |
3016 | ||
3017 | def GetEventType(*args, **kwargs): | |
3018 | """GetEventType() -> wxEventType""" | |
3019 | return _core.Event_GetEventType(*args, **kwargs) | |
3020 | ||
3021 | def GetEventObject(*args, **kwargs): | |
3022 | """GetEventObject() -> Object""" | |
3023 | return _core.Event_GetEventObject(*args, **kwargs) | |
3024 | ||
3025 | def SetEventObject(*args, **kwargs): | |
3026 | """SetEventObject(Object obj)""" | |
3027 | return _core.Event_SetEventObject(*args, **kwargs) | |
3028 | ||
3029 | def GetTimestamp(*args, **kwargs): | |
3030 | """GetTimestamp() -> long""" | |
3031 | return _core.Event_GetTimestamp(*args, **kwargs) | |
3032 | ||
3033 | def SetTimestamp(*args, **kwargs): | |
3034 | """SetTimestamp(long ts=0)""" | |
3035 | return _core.Event_SetTimestamp(*args, **kwargs) | |
3036 | ||
3037 | def GetId(*args, **kwargs): | |
3038 | """GetId() -> int""" | |
3039 | return _core.Event_GetId(*args, **kwargs) | |
3040 | ||
3041 | def SetId(*args, **kwargs): | |
3042 | """SetId(int Id)""" | |
3043 | return _core.Event_SetId(*args, **kwargs) | |
3044 | ||
3045 | def IsCommandEvent(*args, **kwargs): | |
3046 | """IsCommandEvent() -> bool""" | |
3047 | return _core.Event_IsCommandEvent(*args, **kwargs) | |
3048 | ||
3049 | def Skip(*args, **kwargs): | |
3050 | """Skip(bool skip=True)""" | |
3051 | return _core.Event_Skip(*args, **kwargs) | |
3052 | ||
3053 | def GetSkipped(*args, **kwargs): | |
3054 | """GetSkipped() -> bool""" | |
3055 | return _core.Event_GetSkipped(*args, **kwargs) | |
3056 | ||
3057 | def ShouldPropagate(*args, **kwargs): | |
3058 | """ShouldPropagate() -> bool""" | |
3059 | return _core.Event_ShouldPropagate(*args, **kwargs) | |
3060 | ||
3061 | def StopPropagation(*args, **kwargs): | |
3062 | """StopPropagation() -> int""" | |
3063 | return _core.Event_StopPropagation(*args, **kwargs) | |
3064 | ||
3065 | def ResumePropagation(*args, **kwargs): | |
3066 | """ResumePropagation(int propagationLevel)""" | |
3067 | return _core.Event_ResumePropagation(*args, **kwargs) | |
3068 | ||
3069 | def Clone(*args, **kwargs): | |
3070 | """Clone() -> Event""" | |
3071 | return _core.Event_Clone(*args, **kwargs) | |
3072 | ||
d14a1e28 RD |
3073 | |
3074 | class EventPtr(Event): | |
3075 | def __init__(self, this): | |
3076 | self.this = this | |
3077 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3078 | self.__class__ = Event | |
3079 | _core.Event_swigregister(EventPtr) | |
3080 | ||
3081 | #--------------------------------------------------------------------------- | |
3082 | ||
3083 | class PropagationDisabler(object): | |
423f194a RD |
3084 | def __repr__(self): |
3085 | return "<%s.%s; proxy of C++ wxPropagationDisabler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3086 | def __init__(self, *args, **kwargs): |
423f194a | 3087 | """__init__(Event event) -> PropagationDisabler""" |
d14a1e28 RD |
3088 | newobj = _core.new_PropagationDisabler(*args, **kwargs) |
3089 | self.this = newobj.this | |
3090 | self.thisown = 1 | |
3091 | del newobj.thisown | |
3092 | def __del__(self, destroy=_core.delete_PropagationDisabler): | |
423f194a | 3093 | """__del__()""" |
d14a1e28 RD |
3094 | try: |
3095 | if self.thisown: destroy(self) | |
3096 | except: pass | |
423f194a | 3097 | |
d14a1e28 RD |
3098 | |
3099 | class PropagationDisablerPtr(PropagationDisabler): | |
3100 | def __init__(self, this): | |
3101 | self.this = this | |
3102 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3103 | self.__class__ = PropagationDisabler | |
3104 | _core.PropagationDisabler_swigregister(PropagationDisablerPtr) | |
3105 | ||
3106 | class PropagateOnce(object): | |
423f194a RD |
3107 | def __repr__(self): |
3108 | return "<%s.%s; proxy of C++ wxPropagateOnce instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3109 | def __init__(self, *args, **kwargs): |
423f194a | 3110 | """__init__(Event event) -> PropagateOnce""" |
d14a1e28 RD |
3111 | newobj = _core.new_PropagateOnce(*args, **kwargs) |
3112 | self.this = newobj.this | |
3113 | self.thisown = 1 | |
3114 | del newobj.thisown | |
3115 | def __del__(self, destroy=_core.delete_PropagateOnce): | |
423f194a | 3116 | """__del__()""" |
d14a1e28 RD |
3117 | try: |
3118 | if self.thisown: destroy(self) | |
3119 | except: pass | |
423f194a | 3120 | |
d14a1e28 RD |
3121 | |
3122 | class PropagateOncePtr(PropagateOnce): | |
3123 | def __init__(self, this): | |
3124 | self.this = this | |
3125 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3126 | self.__class__ = PropagateOnce | |
3127 | _core.PropagateOnce_swigregister(PropagateOncePtr) | |
3128 | ||
3129 | #--------------------------------------------------------------------------- | |
3130 | ||
3131 | class CommandEvent(Event): | |
423f194a RD |
3132 | def __repr__(self): |
3133 | return "<%s.%s; proxy of C++ wxCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3134 | def __init__(self, *args, **kwargs): |
423f194a | 3135 | """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> CommandEvent""" |
d14a1e28 RD |
3136 | newobj = _core.new_CommandEvent(*args, **kwargs) |
3137 | self.this = newobj.this | |
3138 | self.thisown = 1 | |
3139 | del newobj.thisown | |
423f194a RD |
3140 | def GetSelection(*args, **kwargs): |
3141 | """GetSelection() -> int""" | |
3142 | return _core.CommandEvent_GetSelection(*args, **kwargs) | |
3143 | ||
3144 | def SetString(*args, **kwargs): | |
3145 | """SetString(wxString s)""" | |
3146 | return _core.CommandEvent_SetString(*args, **kwargs) | |
3147 | ||
3148 | def GetString(*args, **kwargs): | |
3149 | """GetString() -> wxString""" | |
3150 | return _core.CommandEvent_GetString(*args, **kwargs) | |
3151 | ||
3152 | def IsChecked(*args, **kwargs): | |
3153 | """IsChecked() -> bool""" | |
3154 | return _core.CommandEvent_IsChecked(*args, **kwargs) | |
3155 | ||
0f774bef | 3156 | Checked = IsChecked |
423f194a RD |
3157 | def IsSelection(*args, **kwargs): |
3158 | """IsSelection() -> bool""" | |
3159 | return _core.CommandEvent_IsSelection(*args, **kwargs) | |
3160 | ||
3161 | def SetExtraLong(*args, **kwargs): | |
3162 | """SetExtraLong(long extraLong)""" | |
3163 | return _core.CommandEvent_SetExtraLong(*args, **kwargs) | |
3164 | ||
3165 | def GetExtraLong(*args, **kwargs): | |
3166 | """GetExtraLong() -> long""" | |
3167 | return _core.CommandEvent_GetExtraLong(*args, **kwargs) | |
3168 | ||
3169 | def SetInt(*args, **kwargs): | |
3170 | """SetInt(int i)""" | |
3171 | return _core.CommandEvent_SetInt(*args, **kwargs) | |
3172 | ||
3173 | def GetInt(*args, **kwargs): | |
3174 | """GetInt() -> long""" | |
3175 | return _core.CommandEvent_GetInt(*args, **kwargs) | |
3176 | ||
3177 | def Clone(*args, **kwargs): | |
3178 | """Clone() -> Event""" | |
3179 | return _core.CommandEvent_Clone(*args, **kwargs) | |
3180 | ||
d14a1e28 RD |
3181 | |
3182 | class CommandEventPtr(CommandEvent): | |
3183 | def __init__(self, this): | |
3184 | self.this = this | |
3185 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3186 | self.__class__ = CommandEvent | |
3187 | _core.CommandEvent_swigregister(CommandEventPtr) | |
3188 | ||
3189 | #--------------------------------------------------------------------------- | |
3190 | ||
3191 | class NotifyEvent(CommandEvent): | |
423f194a RD |
3192 | def __repr__(self): |
3193 | return "<%s.%s; proxy of C++ wxNotifyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3194 | def __init__(self, *args, **kwargs): |
423f194a | 3195 | """__init__(wxEventType commandType=wxEVT_NULL, int winid=0) -> NotifyEvent""" |
d14a1e28 RD |
3196 | newobj = _core.new_NotifyEvent(*args, **kwargs) |
3197 | self.this = newobj.this | |
3198 | self.thisown = 1 | |
3199 | del newobj.thisown | |
423f194a RD |
3200 | def Veto(*args, **kwargs): |
3201 | """Veto()""" | |
3202 | return _core.NotifyEvent_Veto(*args, **kwargs) | |
3203 | ||
3204 | def Allow(*args, **kwargs): | |
3205 | """Allow()""" | |
3206 | return _core.NotifyEvent_Allow(*args, **kwargs) | |
3207 | ||
3208 | def IsAllowed(*args, **kwargs): | |
3209 | """IsAllowed() -> bool""" | |
3210 | return _core.NotifyEvent_IsAllowed(*args, **kwargs) | |
3211 | ||
d14a1e28 RD |
3212 | |
3213 | class NotifyEventPtr(NotifyEvent): | |
3214 | def __init__(self, this): | |
3215 | self.this = this | |
3216 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3217 | self.__class__ = NotifyEvent | |
3218 | _core.NotifyEvent_swigregister(NotifyEventPtr) | |
3219 | ||
3220 | #--------------------------------------------------------------------------- | |
3221 | ||
3222 | class ScrollEvent(CommandEvent): | |
423f194a RD |
3223 | def __repr__(self): |
3224 | return "<%s.%s; proxy of C++ wxScrollEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3225 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
3226 | """ |
3227 | __init__(wxEventType commandType=wxEVT_NULL, int winid=0, int pos=0, | |
3228 | int orient=0) -> ScrollEvent | |
3229 | """ | |
d14a1e28 RD |
3230 | newobj = _core.new_ScrollEvent(*args, **kwargs) |
3231 | self.this = newobj.this | |
3232 | self.thisown = 1 | |
3233 | del newobj.thisown | |
423f194a RD |
3234 | def GetOrientation(*args, **kwargs): |
3235 | """GetOrientation() -> int""" | |
3236 | return _core.ScrollEvent_GetOrientation(*args, **kwargs) | |
3237 | ||
3238 | def GetPosition(*args, **kwargs): | |
3239 | """GetPosition() -> int""" | |
3240 | return _core.ScrollEvent_GetPosition(*args, **kwargs) | |
3241 | ||
3242 | def SetOrientation(*args, **kwargs): | |
3243 | """SetOrientation(int orient)""" | |
3244 | return _core.ScrollEvent_SetOrientation(*args, **kwargs) | |
3245 | ||
3246 | def SetPosition(*args, **kwargs): | |
3247 | """SetPosition(int pos)""" | |
3248 | return _core.ScrollEvent_SetPosition(*args, **kwargs) | |
3249 | ||
d14a1e28 RD |
3250 | |
3251 | class ScrollEventPtr(ScrollEvent): | |
3252 | def __init__(self, this): | |
3253 | self.this = this | |
3254 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3255 | self.__class__ = ScrollEvent | |
3256 | _core.ScrollEvent_swigregister(ScrollEventPtr) | |
3257 | ||
3258 | #--------------------------------------------------------------------------- | |
3259 | ||
3260 | class ScrollWinEvent(Event): | |
423f194a RD |
3261 | def __repr__(self): |
3262 | return "<%s.%s; proxy of C++ wxScrollWinEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3263 | def __init__(self, *args, **kwargs): |
423f194a | 3264 | """__init__(wxEventType commandType=wxEVT_NULL, int pos=0, int orient=0) -> ScrollWinEvent""" |
d14a1e28 RD |
3265 | newobj = _core.new_ScrollWinEvent(*args, **kwargs) |
3266 | self.this = newobj.this | |
3267 | self.thisown = 1 | |
3268 | del newobj.thisown | |
423f194a RD |
3269 | def GetOrientation(*args, **kwargs): |
3270 | """GetOrientation() -> int""" | |
3271 | return _core.ScrollWinEvent_GetOrientation(*args, **kwargs) | |
3272 | ||
3273 | def GetPosition(*args, **kwargs): | |
3274 | """GetPosition() -> int""" | |
3275 | return _core.ScrollWinEvent_GetPosition(*args, **kwargs) | |
3276 | ||
3277 | def SetOrientation(*args, **kwargs): | |
3278 | """SetOrientation(int orient)""" | |
3279 | return _core.ScrollWinEvent_SetOrientation(*args, **kwargs) | |
3280 | ||
3281 | def SetPosition(*args, **kwargs): | |
3282 | """SetPosition(int pos)""" | |
3283 | return _core.ScrollWinEvent_SetPosition(*args, **kwargs) | |
3284 | ||
d14a1e28 RD |
3285 | |
3286 | class ScrollWinEventPtr(ScrollWinEvent): | |
3287 | def __init__(self, this): | |
3288 | self.this = this | |
3289 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3290 | self.__class__ = ScrollWinEvent | |
3291 | _core.ScrollWinEvent_swigregister(ScrollWinEventPtr) | |
3292 | ||
3293 | #--------------------------------------------------------------------------- | |
3294 | ||
3295 | MOUSE_BTN_ANY = _core.MOUSE_BTN_ANY | |
3296 | MOUSE_BTN_NONE = _core.MOUSE_BTN_NONE | |
3297 | MOUSE_BTN_LEFT = _core.MOUSE_BTN_LEFT | |
3298 | MOUSE_BTN_MIDDLE = _core.MOUSE_BTN_MIDDLE | |
3299 | MOUSE_BTN_RIGHT = _core.MOUSE_BTN_RIGHT | |
3300 | class MouseEvent(Event): | |
423f194a RD |
3301 | def __repr__(self): |
3302 | return "<%s.%s; proxy of C++ wxMouseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3303 | def __init__(self, *args, **kwargs): |
423f194a | 3304 | """__init__(wxEventType mouseType=wxEVT_NULL) -> MouseEvent""" |
d14a1e28 RD |
3305 | newobj = _core.new_MouseEvent(*args, **kwargs) |
3306 | self.this = newobj.this | |
3307 | self.thisown = 1 | |
3308 | del newobj.thisown | |
423f194a RD |
3309 | def IsButton(*args, **kwargs): |
3310 | """IsButton() -> bool""" | |
3311 | return _core.MouseEvent_IsButton(*args, **kwargs) | |
3312 | ||
3313 | def ButtonDown(*args, **kwargs): | |
3314 | """ButtonDown(int but=MOUSE_BTN_ANY) -> bool""" | |
3315 | return _core.MouseEvent_ButtonDown(*args, **kwargs) | |
3316 | ||
3317 | def ButtonDClick(*args, **kwargs): | |
3318 | """ButtonDClick(int but=MOUSE_BTN_ANY) -> bool""" | |
3319 | return _core.MouseEvent_ButtonDClick(*args, **kwargs) | |
3320 | ||
3321 | def ButtonUp(*args, **kwargs): | |
3322 | """ButtonUp(int but=MOUSE_BTN_ANY) -> bool""" | |
3323 | return _core.MouseEvent_ButtonUp(*args, **kwargs) | |
3324 | ||
3325 | def Button(*args, **kwargs): | |
3326 | """Button(int but) -> bool""" | |
3327 | return _core.MouseEvent_Button(*args, **kwargs) | |
3328 | ||
3329 | def ButtonIsDown(*args, **kwargs): | |
3330 | """ButtonIsDown(int but) -> bool""" | |
3331 | return _core.MouseEvent_ButtonIsDown(*args, **kwargs) | |
3332 | ||
3333 | def GetButton(*args, **kwargs): | |
3334 | """GetButton() -> int""" | |
3335 | return _core.MouseEvent_GetButton(*args, **kwargs) | |
3336 | ||
3337 | def ControlDown(*args, **kwargs): | |
3338 | """ControlDown() -> bool""" | |
3339 | return _core.MouseEvent_ControlDown(*args, **kwargs) | |
3340 | ||
3341 | def MetaDown(*args, **kwargs): | |
3342 | """MetaDown() -> bool""" | |
3343 | return _core.MouseEvent_MetaDown(*args, **kwargs) | |
3344 | ||
3345 | def AltDown(*args, **kwargs): | |
3346 | """AltDown() -> bool""" | |
3347 | return _core.MouseEvent_AltDown(*args, **kwargs) | |
3348 | ||
3349 | def ShiftDown(*args, **kwargs): | |
3350 | """ShiftDown() -> bool""" | |
3351 | return _core.MouseEvent_ShiftDown(*args, **kwargs) | |
3352 | ||
3353 | def LeftDown(*args, **kwargs): | |
3354 | """LeftDown() -> bool""" | |
3355 | return _core.MouseEvent_LeftDown(*args, **kwargs) | |
3356 | ||
3357 | def MiddleDown(*args, **kwargs): | |
3358 | """MiddleDown() -> bool""" | |
3359 | return _core.MouseEvent_MiddleDown(*args, **kwargs) | |
3360 | ||
3361 | def RightDown(*args, **kwargs): | |
3362 | """RightDown() -> bool""" | |
3363 | return _core.MouseEvent_RightDown(*args, **kwargs) | |
3364 | ||
3365 | def LeftUp(*args, **kwargs): | |
3366 | """LeftUp() -> bool""" | |
3367 | return _core.MouseEvent_LeftUp(*args, **kwargs) | |
3368 | ||
3369 | def MiddleUp(*args, **kwargs): | |
3370 | """MiddleUp() -> bool""" | |
3371 | return _core.MouseEvent_MiddleUp(*args, **kwargs) | |
3372 | ||
3373 | def RightUp(*args, **kwargs): | |
3374 | """RightUp() -> bool""" | |
3375 | return _core.MouseEvent_RightUp(*args, **kwargs) | |
3376 | ||
3377 | def LeftDClick(*args, **kwargs): | |
3378 | """LeftDClick() -> bool""" | |
3379 | return _core.MouseEvent_LeftDClick(*args, **kwargs) | |
3380 | ||
3381 | def MiddleDClick(*args, **kwargs): | |
3382 | """MiddleDClick() -> bool""" | |
3383 | return _core.MouseEvent_MiddleDClick(*args, **kwargs) | |
3384 | ||
3385 | def RightDClick(*args, **kwargs): | |
3386 | """RightDClick() -> bool""" | |
3387 | return _core.MouseEvent_RightDClick(*args, **kwargs) | |
3388 | ||
3389 | def LeftIsDown(*args, **kwargs): | |
3390 | """LeftIsDown() -> bool""" | |
3391 | return _core.MouseEvent_LeftIsDown(*args, **kwargs) | |
3392 | ||
3393 | def MiddleIsDown(*args, **kwargs): | |
3394 | """MiddleIsDown() -> bool""" | |
3395 | return _core.MouseEvent_MiddleIsDown(*args, **kwargs) | |
3396 | ||
3397 | def RightIsDown(*args, **kwargs): | |
3398 | """RightIsDown() -> bool""" | |
3399 | return _core.MouseEvent_RightIsDown(*args, **kwargs) | |
3400 | ||
3401 | def Dragging(*args, **kwargs): | |
3402 | """Dragging() -> bool""" | |
3403 | return _core.MouseEvent_Dragging(*args, **kwargs) | |
3404 | ||
3405 | def Moving(*args, **kwargs): | |
3406 | """Moving() -> bool""" | |
3407 | return _core.MouseEvent_Moving(*args, **kwargs) | |
3408 | ||
3409 | def Entering(*args, **kwargs): | |
3410 | """Entering() -> bool""" | |
3411 | return _core.MouseEvent_Entering(*args, **kwargs) | |
3412 | ||
3413 | def Leaving(*args, **kwargs): | |
3414 | """Leaving() -> bool""" | |
3415 | return _core.MouseEvent_Leaving(*args, **kwargs) | |
3416 | ||
3417 | def GetPosition(*args, **kwargs): | |
41f1cec7 RD |
3418 | """ |
3419 | GetPosition() -> Point | |
423f194a | 3420 | |
41f1cec7 RD |
3421 | Returns the position of the mouse in window coordinates when the event happened. |
3422 | """ | |
423f194a RD |
3423 | return _core.MouseEvent_GetPosition(*args, **kwargs) |
3424 | ||
3425 | def GetPositionTuple(*args, **kwargs): | |
41f1cec7 RD |
3426 | """ |
3427 | GetPositionTuple() -> (x,y) | |
423f194a | 3428 | |
41f1cec7 RD |
3429 | Returns the position of the mouse in window coordinates when the event happened. |
3430 | """ | |
423f194a RD |
3431 | return _core.MouseEvent_GetPositionTuple(*args, **kwargs) |
3432 | ||
3433 | def GetLogicalPosition(*args, **kwargs): | |
3434 | """GetLogicalPosition(wxDC dc) -> Point""" | |
3435 | return _core.MouseEvent_GetLogicalPosition(*args, **kwargs) | |
3436 | ||
3437 | def GetX(*args, **kwargs): | |
3438 | """GetX() -> int""" | |
3439 | return _core.MouseEvent_GetX(*args, **kwargs) | |
3440 | ||
3441 | def GetY(*args, **kwargs): | |
3442 | """GetY() -> int""" | |
3443 | return _core.MouseEvent_GetY(*args, **kwargs) | |
3444 | ||
3445 | def GetWheelRotation(*args, **kwargs): | |
3446 | """GetWheelRotation() -> int""" | |
3447 | return _core.MouseEvent_GetWheelRotation(*args, **kwargs) | |
3448 | ||
3449 | def GetWheelDelta(*args, **kwargs): | |
3450 | """GetWheelDelta() -> int""" | |
3451 | return _core.MouseEvent_GetWheelDelta(*args, **kwargs) | |
3452 | ||
3453 | def GetLinesPerAction(*args, **kwargs): | |
3454 | """GetLinesPerAction() -> int""" | |
3455 | return _core.MouseEvent_GetLinesPerAction(*args, **kwargs) | |
3456 | ||
3457 | def IsPageScroll(*args, **kwargs): | |
3458 | """IsPageScroll() -> bool""" | |
3459 | return _core.MouseEvent_IsPageScroll(*args, **kwargs) | |
3460 | ||
d14a1e28 RD |
3461 | m_x = property(_core.MouseEvent_m_x_get, _core.MouseEvent_m_x_set) |
3462 | m_y = property(_core.MouseEvent_m_y_get, _core.MouseEvent_m_y_set) | |
3463 | m_leftDown = property(_core.MouseEvent_m_leftDown_get, _core.MouseEvent_m_leftDown_set) | |
3464 | m_middleDown = property(_core.MouseEvent_m_middleDown_get, _core.MouseEvent_m_middleDown_set) | |
3465 | m_rightDown = property(_core.MouseEvent_m_rightDown_get, _core.MouseEvent_m_rightDown_set) | |
3466 | m_controlDown = property(_core.MouseEvent_m_controlDown_get, _core.MouseEvent_m_controlDown_set) | |
3467 | m_shiftDown = property(_core.MouseEvent_m_shiftDown_get, _core.MouseEvent_m_shiftDown_set) | |
3468 | m_altDown = property(_core.MouseEvent_m_altDown_get, _core.MouseEvent_m_altDown_set) | |
3469 | m_metaDown = property(_core.MouseEvent_m_metaDown_get, _core.MouseEvent_m_metaDown_set) | |
3470 | m_wheelRotation = property(_core.MouseEvent_m_wheelRotation_get, _core.MouseEvent_m_wheelRotation_set) | |
3471 | m_wheelDelta = property(_core.MouseEvent_m_wheelDelta_get, _core.MouseEvent_m_wheelDelta_set) | |
3472 | m_linesPerAction = property(_core.MouseEvent_m_linesPerAction_get, _core.MouseEvent_m_linesPerAction_set) | |
d14a1e28 RD |
3473 | |
3474 | class MouseEventPtr(MouseEvent): | |
3475 | def __init__(self, this): | |
3476 | self.this = this | |
3477 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3478 | self.__class__ = MouseEvent | |
3479 | _core.MouseEvent_swigregister(MouseEventPtr) | |
3480 | ||
3481 | #--------------------------------------------------------------------------- | |
3482 | ||
3483 | class SetCursorEvent(Event): | |
423f194a RD |
3484 | def __repr__(self): |
3485 | return "<%s.%s; proxy of C++ wxSetCursorEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3486 | def __init__(self, *args, **kwargs): |
423f194a | 3487 | """__init__(int x=0, int y=0) -> SetCursorEvent""" |
d14a1e28 RD |
3488 | newobj = _core.new_SetCursorEvent(*args, **kwargs) |
3489 | self.this = newobj.this | |
3490 | self.thisown = 1 | |
3491 | del newobj.thisown | |
423f194a RD |
3492 | def GetX(*args, **kwargs): |
3493 | """GetX() -> int""" | |
3494 | return _core.SetCursorEvent_GetX(*args, **kwargs) | |
3495 | ||
3496 | def GetY(*args, **kwargs): | |
3497 | """GetY() -> int""" | |
3498 | return _core.SetCursorEvent_GetY(*args, **kwargs) | |
3499 | ||
3500 | def SetCursor(*args, **kwargs): | |
3501 | """SetCursor(wxCursor cursor)""" | |
3502 | return _core.SetCursorEvent_SetCursor(*args, **kwargs) | |
3503 | ||
3504 | def GetCursor(*args, **kwargs): | |
3505 | """GetCursor() -> wxCursor""" | |
3506 | return _core.SetCursorEvent_GetCursor(*args, **kwargs) | |
3507 | ||
3508 | def HasCursor(*args, **kwargs): | |
3509 | """HasCursor() -> bool""" | |
3510 | return _core.SetCursorEvent_HasCursor(*args, **kwargs) | |
3511 | ||
d14a1e28 RD |
3512 | |
3513 | class SetCursorEventPtr(SetCursorEvent): | |
3514 | def __init__(self, this): | |
3515 | self.this = this | |
3516 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3517 | self.__class__ = SetCursorEvent | |
3518 | _core.SetCursorEvent_swigregister(SetCursorEventPtr) | |
3519 | ||
3520 | #--------------------------------------------------------------------------- | |
3521 | ||
3522 | class KeyEvent(Event): | |
423f194a RD |
3523 | def __repr__(self): |
3524 | return "<%s.%s; proxy of C++ wxKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3525 | def __init__(self, *args, **kwargs): |
423f194a | 3526 | """__init__(wxEventType keyType=wxEVT_NULL) -> KeyEvent""" |
d14a1e28 RD |
3527 | newobj = _core.new_KeyEvent(*args, **kwargs) |
3528 | self.this = newobj.this | |
3529 | self.thisown = 1 | |
3530 | del newobj.thisown | |
423f194a RD |
3531 | def ControlDown(*args, **kwargs): |
3532 | """ControlDown() -> bool""" | |
3533 | return _core.KeyEvent_ControlDown(*args, **kwargs) | |
3534 | ||
3535 | def MetaDown(*args, **kwargs): | |
3536 | """MetaDown() -> bool""" | |
3537 | return _core.KeyEvent_MetaDown(*args, **kwargs) | |
3538 | ||
3539 | def AltDown(*args, **kwargs): | |
3540 | """AltDown() -> bool""" | |
3541 | return _core.KeyEvent_AltDown(*args, **kwargs) | |
3542 | ||
3543 | def ShiftDown(*args, **kwargs): | |
3544 | """ShiftDown() -> bool""" | |
3545 | return _core.KeyEvent_ShiftDown(*args, **kwargs) | |
3546 | ||
3547 | def HasModifiers(*args, **kwargs): | |
3548 | """HasModifiers() -> bool""" | |
3549 | return _core.KeyEvent_HasModifiers(*args, **kwargs) | |
3550 | ||
3551 | def GetKeyCode(*args, **kwargs): | |
3552 | """GetKeyCode() -> int""" | |
3553 | return _core.KeyEvent_GetKeyCode(*args, **kwargs) | |
3554 | ||
d14a1e28 | 3555 | KeyCode = GetKeyCode |
423f194a RD |
3556 | def GetUniChar(*args, **kwargs): |
3557 | """GetUniChar() -> int""" | |
3558 | return _core.KeyEvent_GetUniChar(*args, **kwargs) | |
3559 | ||
3560 | def GetRawKeyCode(*args, **kwargs): | |
3561 | """GetRawKeyCode() -> unsigned int""" | |
3562 | return _core.KeyEvent_GetRawKeyCode(*args, **kwargs) | |
3563 | ||
3564 | def GetRawKeyFlags(*args, **kwargs): | |
3565 | """GetRawKeyFlags() -> unsigned int""" | |
3566 | return _core.KeyEvent_GetRawKeyFlags(*args, **kwargs) | |
3567 | ||
3568 | def GetPosition(*args, **kwargs): | |
41f1cec7 RD |
3569 | """ |
3570 | GetPosition() -> Point | |
423f194a | 3571 | |
41f1cec7 RD |
3572 | Find the position of the event. |
3573 | """ | |
423f194a RD |
3574 | return _core.KeyEvent_GetPosition(*args, **kwargs) |
3575 | ||
3576 | def GetPositionTuple(*args, **kwargs): | |
41f1cec7 RD |
3577 | """ |
3578 | GetPositionTuple() -> (x,y) | |
423f194a | 3579 | |
41f1cec7 RD |
3580 | Find the position of the event. |
3581 | """ | |
423f194a RD |
3582 | return _core.KeyEvent_GetPositionTuple(*args, **kwargs) |
3583 | ||
3584 | def GetX(*args, **kwargs): | |
3585 | """GetX() -> int""" | |
3586 | return _core.KeyEvent_GetX(*args, **kwargs) | |
3587 | ||
3588 | def GetY(*args, **kwargs): | |
3589 | """GetY() -> int""" | |
3590 | return _core.KeyEvent_GetY(*args, **kwargs) | |
3591 | ||
d14a1e28 RD |
3592 | m_x = property(_core.KeyEvent_m_x_get, _core.KeyEvent_m_x_set) |
3593 | m_y = property(_core.KeyEvent_m_y_get, _core.KeyEvent_m_y_set) | |
3594 | m_keyCode = property(_core.KeyEvent_m_keyCode_get, _core.KeyEvent_m_keyCode_set) | |
3595 | m_controlDown = property(_core.KeyEvent_m_controlDown_get, _core.KeyEvent_m_controlDown_set) | |
3596 | m_shiftDown = property(_core.KeyEvent_m_shiftDown_get, _core.KeyEvent_m_shiftDown_set) | |
3597 | m_altDown = property(_core.KeyEvent_m_altDown_get, _core.KeyEvent_m_altDown_set) | |
3598 | m_metaDown = property(_core.KeyEvent_m_metaDown_get, _core.KeyEvent_m_metaDown_set) | |
3599 | m_scanCode = property(_core.KeyEvent_m_scanCode_get, _core.KeyEvent_m_scanCode_set) | |
3600 | m_rawCode = property(_core.KeyEvent_m_rawCode_get, _core.KeyEvent_m_rawCode_set) | |
3601 | m_rawFlags = property(_core.KeyEvent_m_rawFlags_get, _core.KeyEvent_m_rawFlags_set) | |
d14a1e28 RD |
3602 | |
3603 | class KeyEventPtr(KeyEvent): | |
3604 | def __init__(self, this): | |
3605 | self.this = this | |
3606 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3607 | self.__class__ = KeyEvent | |
3608 | _core.KeyEvent_swigregister(KeyEventPtr) | |
3609 | ||
3610 | #--------------------------------------------------------------------------- | |
3611 | ||
3612 | class SizeEvent(Event): | |
423f194a RD |
3613 | def __repr__(self): |
3614 | return "<%s.%s; proxy of C++ wxSizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3615 | def __init__(self, *args, **kwargs): |
423f194a | 3616 | """__init__(Size sz=DefaultSize, int winid=0) -> SizeEvent""" |
d14a1e28 RD |
3617 | newobj = _core.new_SizeEvent(*args, **kwargs) |
3618 | self.this = newobj.this | |
3619 | self.thisown = 1 | |
3620 | del newobj.thisown | |
423f194a RD |
3621 | def GetSize(*args, **kwargs): |
3622 | """GetSize() -> Size""" | |
3623 | return _core.SizeEvent_GetSize(*args, **kwargs) | |
3624 | ||
3625 | def GetRect(*args, **kwargs): | |
3626 | """GetRect() -> Rect""" | |
3627 | return _core.SizeEvent_GetRect(*args, **kwargs) | |
3628 | ||
3629 | def SetRect(*args, **kwargs): | |
3630 | """SetRect(Rect rect)""" | |
3631 | return _core.SizeEvent_SetRect(*args, **kwargs) | |
3632 | ||
3633 | def SetSize(*args, **kwargs): | |
3634 | """SetSize(Size size)""" | |
3635 | return _core.SizeEvent_SetSize(*args, **kwargs) | |
3636 | ||
d14a1e28 RD |
3637 | m_size = property(_core.SizeEvent_m_size_get, _core.SizeEvent_m_size_set) |
3638 | m_rect = property(_core.SizeEvent_m_rect_get, _core.SizeEvent_m_rect_set) | |
d14a1e28 RD |
3639 | |
3640 | class SizeEventPtr(SizeEvent): | |
3641 | def __init__(self, this): | |
3642 | self.this = this | |
3643 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3644 | self.__class__ = SizeEvent | |
3645 | _core.SizeEvent_swigregister(SizeEventPtr) | |
3646 | ||
3647 | #--------------------------------------------------------------------------- | |
3648 | ||
3649 | class MoveEvent(Event): | |
423f194a RD |
3650 | def __repr__(self): |
3651 | return "<%s.%s; proxy of C++ wxMoveEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3652 | def __init__(self, *args, **kwargs): |
423f194a | 3653 | """__init__(Point pos=DefaultPosition, int winid=0) -> MoveEvent""" |
d14a1e28 RD |
3654 | newobj = _core.new_MoveEvent(*args, **kwargs) |
3655 | self.this = newobj.this | |
3656 | self.thisown = 1 | |
3657 | del newobj.thisown | |
423f194a RD |
3658 | def GetPosition(*args, **kwargs): |
3659 | """GetPosition() -> Point""" | |
3660 | return _core.MoveEvent_GetPosition(*args, **kwargs) | |
3661 | ||
3662 | def GetRect(*args, **kwargs): | |
3663 | """GetRect() -> Rect""" | |
3664 | return _core.MoveEvent_GetRect(*args, **kwargs) | |
3665 | ||
3666 | def SetRect(*args, **kwargs): | |
3667 | """SetRect(Rect rect)""" | |
3668 | return _core.MoveEvent_SetRect(*args, **kwargs) | |
3669 | ||
3670 | def SetPosition(*args, **kwargs): | |
3671 | """SetPosition(Point pos)""" | |
3672 | return _core.MoveEvent_SetPosition(*args, **kwargs) | |
3673 | ||
d14a1e28 RD |
3674 | m_pos = property(_core.MoveEvent_m_pos_get, _core.MoveEvent_m_pos_set) |
3675 | m_rect = property(_core.MoveEvent_m_rect_get, _core.MoveEvent_m_rect_set) | |
d14a1e28 RD |
3676 | |
3677 | class MoveEventPtr(MoveEvent): | |
3678 | def __init__(self, this): | |
3679 | self.this = this | |
3680 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3681 | self.__class__ = MoveEvent | |
3682 | _core.MoveEvent_swigregister(MoveEventPtr) | |
3683 | ||
3684 | #--------------------------------------------------------------------------- | |
3685 | ||
3686 | class PaintEvent(Event): | |
423f194a RD |
3687 | def __repr__(self): |
3688 | return "<%s.%s; proxy of C++ wxPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3689 | def __init__(self, *args, **kwargs): |
423f194a | 3690 | """__init__(int Id=0) -> PaintEvent""" |
d14a1e28 RD |
3691 | newobj = _core.new_PaintEvent(*args, **kwargs) |
3692 | self.this = newobj.this | |
3693 | self.thisown = 1 | |
3694 | del newobj.thisown | |
d14a1e28 RD |
3695 | |
3696 | class PaintEventPtr(PaintEvent): | |
3697 | def __init__(self, this): | |
3698 | self.this = this | |
3699 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3700 | self.__class__ = PaintEvent | |
3701 | _core.PaintEvent_swigregister(PaintEventPtr) | |
3702 | ||
3703 | class NcPaintEvent(Event): | |
423f194a RD |
3704 | def __repr__(self): |
3705 | return "<%s.%s; proxy of C++ wxNcPaintEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3706 | def __init__(self, *args, **kwargs): |
423f194a | 3707 | """__init__(int winid=0) -> NcPaintEvent""" |
d14a1e28 RD |
3708 | newobj = _core.new_NcPaintEvent(*args, **kwargs) |
3709 | self.this = newobj.this | |
3710 | self.thisown = 1 | |
3711 | del newobj.thisown | |
d14a1e28 RD |
3712 | |
3713 | class NcPaintEventPtr(NcPaintEvent): | |
3714 | def __init__(self, this): | |
3715 | self.this = this | |
3716 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3717 | self.__class__ = NcPaintEvent | |
3718 | _core.NcPaintEvent_swigregister(NcPaintEventPtr) | |
3719 | ||
3720 | #--------------------------------------------------------------------------- | |
3721 | ||
3722 | class EraseEvent(Event): | |
423f194a RD |
3723 | def __repr__(self): |
3724 | return "<%s.%s; proxy of C++ wxEraseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3725 | def __init__(self, *args, **kwargs): |
423f194a | 3726 | """__init__(int Id=0, wxDC dc=(wxDC *) NULL) -> EraseEvent""" |
d14a1e28 RD |
3727 | newobj = _core.new_EraseEvent(*args, **kwargs) |
3728 | self.this = newobj.this | |
3729 | self.thisown = 1 | |
3730 | del newobj.thisown | |
423f194a RD |
3731 | def GetDC(*args, **kwargs): |
3732 | """GetDC() -> wxDC""" | |
3733 | return _core.EraseEvent_GetDC(*args, **kwargs) | |
3734 | ||
d14a1e28 RD |
3735 | |
3736 | class EraseEventPtr(EraseEvent): | |
3737 | def __init__(self, this): | |
3738 | self.this = this | |
3739 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3740 | self.__class__ = EraseEvent | |
3741 | _core.EraseEvent_swigregister(EraseEventPtr) | |
3742 | ||
3743 | #--------------------------------------------------------------------------- | |
3744 | ||
3745 | class FocusEvent(Event): | |
423f194a RD |
3746 | def __repr__(self): |
3747 | return "<%s.%s; proxy of C++ wxFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3748 | def __init__(self, *args, **kwargs): |
423f194a | 3749 | """__init__(wxEventType type=wxEVT_NULL, int winid=0) -> FocusEvent""" |
d14a1e28 RD |
3750 | newobj = _core.new_FocusEvent(*args, **kwargs) |
3751 | self.this = newobj.this | |
3752 | self.thisown = 1 | |
3753 | del newobj.thisown | |
423f194a RD |
3754 | def GetWindow(*args, **kwargs): |
3755 | """GetWindow() -> Window""" | |
3756 | return _core.FocusEvent_GetWindow(*args, **kwargs) | |
3757 | ||
3758 | def SetWindow(*args, **kwargs): | |
3759 | """SetWindow(Window win)""" | |
3760 | return _core.FocusEvent_SetWindow(*args, **kwargs) | |
3761 | ||
d14a1e28 RD |
3762 | |
3763 | class FocusEventPtr(FocusEvent): | |
3764 | def __init__(self, this): | |
3765 | self.this = this | |
3766 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3767 | self.__class__ = FocusEvent | |
3768 | _core.FocusEvent_swigregister(FocusEventPtr) | |
3769 | ||
3770 | #--------------------------------------------------------------------------- | |
3771 | ||
3772 | class ChildFocusEvent(CommandEvent): | |
423f194a RD |
3773 | def __repr__(self): |
3774 | return "<%s.%s; proxy of C++ wxChildFocusEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3775 | def __init__(self, *args, **kwargs): |
423f194a | 3776 | """__init__(Window win=None) -> ChildFocusEvent""" |
d14a1e28 RD |
3777 | newobj = _core.new_ChildFocusEvent(*args, **kwargs) |
3778 | self.this = newobj.this | |
3779 | self.thisown = 1 | |
3780 | del newobj.thisown | |
423f194a RD |
3781 | def GetWindow(*args, **kwargs): |
3782 | """GetWindow() -> Window""" | |
3783 | return _core.ChildFocusEvent_GetWindow(*args, **kwargs) | |
3784 | ||
d14a1e28 RD |
3785 | |
3786 | class ChildFocusEventPtr(ChildFocusEvent): | |
3787 | def __init__(self, this): | |
3788 | self.this = this | |
3789 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3790 | self.__class__ = ChildFocusEvent | |
3791 | _core.ChildFocusEvent_swigregister(ChildFocusEventPtr) | |
3792 | ||
3793 | #--------------------------------------------------------------------------- | |
3794 | ||
3795 | class ActivateEvent(Event): | |
423f194a RD |
3796 | def __repr__(self): |
3797 | return "<%s.%s; proxy of C++ wxActivateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3798 | def __init__(self, *args, **kwargs): |
423f194a | 3799 | """__init__(wxEventType type=wxEVT_NULL, bool active=True, int Id=0) -> ActivateEvent""" |
d14a1e28 RD |
3800 | newobj = _core.new_ActivateEvent(*args, **kwargs) |
3801 | self.this = newobj.this | |
3802 | self.thisown = 1 | |
3803 | del newobj.thisown | |
423f194a RD |
3804 | def GetActive(*args, **kwargs): |
3805 | """GetActive() -> bool""" | |
3806 | return _core.ActivateEvent_GetActive(*args, **kwargs) | |
3807 | ||
d14a1e28 RD |
3808 | |
3809 | class ActivateEventPtr(ActivateEvent): | |
3810 | def __init__(self, this): | |
3811 | self.this = this | |
3812 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3813 | self.__class__ = ActivateEvent | |
3814 | _core.ActivateEvent_swigregister(ActivateEventPtr) | |
3815 | ||
3816 | #--------------------------------------------------------------------------- | |
3817 | ||
3818 | class InitDialogEvent(Event): | |
423f194a RD |
3819 | def __repr__(self): |
3820 | return "<%s.%s; proxy of C++ wxInitDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3821 | def __init__(self, *args, **kwargs): |
423f194a | 3822 | """__init__(int Id=0) -> InitDialogEvent""" |
d14a1e28 RD |
3823 | newobj = _core.new_InitDialogEvent(*args, **kwargs) |
3824 | self.this = newobj.this | |
3825 | self.thisown = 1 | |
3826 | del newobj.thisown | |
d14a1e28 RD |
3827 | |
3828 | class InitDialogEventPtr(InitDialogEvent): | |
3829 | def __init__(self, this): | |
3830 | self.this = this | |
3831 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3832 | self.__class__ = InitDialogEvent | |
3833 | _core.InitDialogEvent_swigregister(InitDialogEventPtr) | |
3834 | ||
3835 | #--------------------------------------------------------------------------- | |
3836 | ||
3837 | class MenuEvent(Event): | |
423f194a RD |
3838 | def __repr__(self): |
3839 | return "<%s.%s; proxy of C++ wxMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3840 | def __init__(self, *args, **kwargs): |
423f194a | 3841 | """__init__(wxEventType type=wxEVT_NULL, int winid=0, Menu menu=None) -> MenuEvent""" |
d14a1e28 RD |
3842 | newobj = _core.new_MenuEvent(*args, **kwargs) |
3843 | self.this = newobj.this | |
3844 | self.thisown = 1 | |
3845 | del newobj.thisown | |
423f194a RD |
3846 | def GetMenuId(*args, **kwargs): |
3847 | """GetMenuId() -> int""" | |
3848 | return _core.MenuEvent_GetMenuId(*args, **kwargs) | |
3849 | ||
3850 | def IsPopup(*args, **kwargs): | |
3851 | """IsPopup() -> bool""" | |
3852 | return _core.MenuEvent_IsPopup(*args, **kwargs) | |
3853 | ||
3854 | def GetMenu(*args, **kwargs): | |
3855 | """GetMenu() -> Menu""" | |
3856 | return _core.MenuEvent_GetMenu(*args, **kwargs) | |
3857 | ||
d14a1e28 RD |
3858 | |
3859 | class MenuEventPtr(MenuEvent): | |
3860 | def __init__(self, this): | |
3861 | self.this = this | |
3862 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3863 | self.__class__ = MenuEvent | |
3864 | _core.MenuEvent_swigregister(MenuEventPtr) | |
3865 | ||
3866 | #--------------------------------------------------------------------------- | |
3867 | ||
3868 | class CloseEvent(Event): | |
423f194a RD |
3869 | def __repr__(self): |
3870 | return "<%s.%s; proxy of C++ wxCloseEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3871 | def __init__(self, *args, **kwargs): |
423f194a | 3872 | """__init__(wxEventType type=wxEVT_NULL, int winid=0) -> CloseEvent""" |
d14a1e28 RD |
3873 | newobj = _core.new_CloseEvent(*args, **kwargs) |
3874 | self.this = newobj.this | |
3875 | self.thisown = 1 | |
3876 | del newobj.thisown | |
423f194a RD |
3877 | def SetLoggingOff(*args, **kwargs): |
3878 | """SetLoggingOff(bool logOff)""" | |
3879 | return _core.CloseEvent_SetLoggingOff(*args, **kwargs) | |
3880 | ||
3881 | def GetLoggingOff(*args, **kwargs): | |
3882 | """GetLoggingOff() -> bool""" | |
3883 | return _core.CloseEvent_GetLoggingOff(*args, **kwargs) | |
3884 | ||
3885 | def Veto(*args, **kwargs): | |
3886 | """Veto(bool veto=True)""" | |
3887 | return _core.CloseEvent_Veto(*args, **kwargs) | |
3888 | ||
3889 | def SetCanVeto(*args, **kwargs): | |
3890 | """SetCanVeto(bool canVeto)""" | |
3891 | return _core.CloseEvent_SetCanVeto(*args, **kwargs) | |
3892 | ||
3893 | def CanVeto(*args, **kwargs): | |
3894 | """CanVeto() -> bool""" | |
3895 | return _core.CloseEvent_CanVeto(*args, **kwargs) | |
3896 | ||
3897 | def GetVeto(*args, **kwargs): | |
3898 | """GetVeto() -> bool""" | |
3899 | return _core.CloseEvent_GetVeto(*args, **kwargs) | |
3900 | ||
d14a1e28 RD |
3901 | |
3902 | class CloseEventPtr(CloseEvent): | |
3903 | def __init__(self, this): | |
3904 | self.this = this | |
3905 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3906 | self.__class__ = CloseEvent | |
3907 | _core.CloseEvent_swigregister(CloseEventPtr) | |
3908 | ||
3909 | #--------------------------------------------------------------------------- | |
3910 | ||
3911 | class ShowEvent(Event): | |
423f194a RD |
3912 | def __repr__(self): |
3913 | return "<%s.%s; proxy of C++ wxShowEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3914 | def __init__(self, *args, **kwargs): |
423f194a | 3915 | """__init__(int winid=0, bool show=False) -> ShowEvent""" |
d14a1e28 RD |
3916 | newobj = _core.new_ShowEvent(*args, **kwargs) |
3917 | self.this = newobj.this | |
3918 | self.thisown = 1 | |
3919 | del newobj.thisown | |
423f194a RD |
3920 | def SetShow(*args, **kwargs): |
3921 | """SetShow(bool show)""" | |
3922 | return _core.ShowEvent_SetShow(*args, **kwargs) | |
3923 | ||
3924 | def GetShow(*args, **kwargs): | |
3925 | """GetShow() -> bool""" | |
3926 | return _core.ShowEvent_GetShow(*args, **kwargs) | |
3927 | ||
d14a1e28 RD |
3928 | |
3929 | class ShowEventPtr(ShowEvent): | |
3930 | def __init__(self, this): | |
3931 | self.this = this | |
3932 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3933 | self.__class__ = ShowEvent | |
3934 | _core.ShowEvent_swigregister(ShowEventPtr) | |
3935 | ||
3936 | #--------------------------------------------------------------------------- | |
3937 | ||
3938 | class IconizeEvent(Event): | |
423f194a RD |
3939 | def __repr__(self): |
3940 | return "<%s.%s; proxy of C++ wxIconizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3941 | def __init__(self, *args, **kwargs): |
423f194a | 3942 | """__init__(int id=0, bool iconized=True) -> IconizeEvent""" |
d14a1e28 RD |
3943 | newobj = _core.new_IconizeEvent(*args, **kwargs) |
3944 | self.this = newobj.this | |
3945 | self.thisown = 1 | |
3946 | del newobj.thisown | |
423f194a RD |
3947 | def Iconized(*args, **kwargs): |
3948 | """Iconized() -> bool""" | |
3949 | return _core.IconizeEvent_Iconized(*args, **kwargs) | |
3950 | ||
d14a1e28 RD |
3951 | |
3952 | class IconizeEventPtr(IconizeEvent): | |
3953 | def __init__(self, this): | |
3954 | self.this = this | |
3955 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3956 | self.__class__ = IconizeEvent | |
3957 | _core.IconizeEvent_swigregister(IconizeEventPtr) | |
3958 | ||
3959 | #--------------------------------------------------------------------------- | |
3960 | ||
3961 | class MaximizeEvent(Event): | |
423f194a RD |
3962 | def __repr__(self): |
3963 | return "<%s.%s; proxy of C++ wxMaximizeEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 3964 | def __init__(self, *args, **kwargs): |
423f194a | 3965 | """__init__(int id=0) -> MaximizeEvent""" |
d14a1e28 RD |
3966 | newobj = _core.new_MaximizeEvent(*args, **kwargs) |
3967 | self.this = newobj.this | |
3968 | self.thisown = 1 | |
3969 | del newobj.thisown | |
d14a1e28 RD |
3970 | |
3971 | class MaximizeEventPtr(MaximizeEvent): | |
3972 | def __init__(self, this): | |
3973 | self.this = this | |
3974 | if not hasattr(self,"thisown"): self.thisown = 0 | |
3975 | self.__class__ = MaximizeEvent | |
3976 | _core.MaximizeEvent_swigregister(MaximizeEventPtr) | |
3977 | ||
3978 | #--------------------------------------------------------------------------- | |
3979 | ||
3980 | class DropFilesEvent(Event): | |
d14a1e28 RD |
3981 | def __init__(self): raise RuntimeError, "No constructor defined" |
3982 | def __repr__(self): | |
3983 | return "<%s.%s; proxy of C++ wxDropFilesEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
423f194a RD |
3984 | def GetPosition(*args, **kwargs): |
3985 | """GetPosition() -> Point""" | |
3986 | return _core.DropFilesEvent_GetPosition(*args, **kwargs) | |
3987 | ||
3988 | def GetNumberOfFiles(*args, **kwargs): | |
3989 | """GetNumberOfFiles() -> int""" | |
3990 | return _core.DropFilesEvent_GetNumberOfFiles(*args, **kwargs) | |
3991 | ||
3992 | def GetFiles(*args, **kwargs): | |
3993 | """GetFiles() -> PyObject""" | |
3994 | return _core.DropFilesEvent_GetFiles(*args, **kwargs) | |
3995 | ||
d14a1e28 RD |
3996 | |
3997 | class DropFilesEventPtr(DropFilesEvent): | |
3998 | def __init__(self, this): | |
3999 | self.this = this | |
4000 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4001 | self.__class__ = DropFilesEvent | |
4002 | _core.DropFilesEvent_swigregister(DropFilesEventPtr) | |
4003 | ||
4004 | #--------------------------------------------------------------------------- | |
4005 | ||
4006 | UPDATE_UI_PROCESS_ALL = _core.UPDATE_UI_PROCESS_ALL | |
4007 | UPDATE_UI_PROCESS_SPECIFIED = _core.UPDATE_UI_PROCESS_SPECIFIED | |
4008 | class UpdateUIEvent(CommandEvent): | |
423f194a RD |
4009 | def __repr__(self): |
4010 | return "<%s.%s; proxy of C++ wxUpdateUIEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4011 | def __init__(self, *args, **kwargs): |
423f194a | 4012 | """__init__(int commandId=0) -> UpdateUIEvent""" |
d14a1e28 RD |
4013 | newobj = _core.new_UpdateUIEvent(*args, **kwargs) |
4014 | self.this = newobj.this | |
4015 | self.thisown = 1 | |
4016 | del newobj.thisown | |
423f194a RD |
4017 | def GetChecked(*args, **kwargs): |
4018 | """GetChecked() -> bool""" | |
4019 | return _core.UpdateUIEvent_GetChecked(*args, **kwargs) | |
4020 | ||
4021 | def GetEnabled(*args, **kwargs): | |
4022 | """GetEnabled() -> bool""" | |
4023 | return _core.UpdateUIEvent_GetEnabled(*args, **kwargs) | |
4024 | ||
4025 | def GetText(*args, **kwargs): | |
4026 | """GetText() -> wxString""" | |
4027 | return _core.UpdateUIEvent_GetText(*args, **kwargs) | |
4028 | ||
4029 | def GetSetText(*args, **kwargs): | |
4030 | """GetSetText() -> bool""" | |
4031 | return _core.UpdateUIEvent_GetSetText(*args, **kwargs) | |
4032 | ||
4033 | def GetSetChecked(*args, **kwargs): | |
4034 | """GetSetChecked() -> bool""" | |
4035 | return _core.UpdateUIEvent_GetSetChecked(*args, **kwargs) | |
4036 | ||
4037 | def GetSetEnabled(*args, **kwargs): | |
4038 | """GetSetEnabled() -> bool""" | |
4039 | return _core.UpdateUIEvent_GetSetEnabled(*args, **kwargs) | |
4040 | ||
4041 | def Check(*args, **kwargs): | |
4042 | """Check(bool check)""" | |
4043 | return _core.UpdateUIEvent_Check(*args, **kwargs) | |
4044 | ||
4045 | def Enable(*args, **kwargs): | |
4046 | """Enable(bool enable)""" | |
4047 | return _core.UpdateUIEvent_Enable(*args, **kwargs) | |
4048 | ||
4049 | def SetText(*args, **kwargs): | |
4050 | """SetText(wxString text)""" | |
4051 | return _core.UpdateUIEvent_SetText(*args, **kwargs) | |
4052 | ||
4053 | def SetUpdateInterval(*args, **kwargs): | |
4054 | """UpdateUIEvent.SetUpdateInterval(long updateInterval)""" | |
4055 | return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) | |
4056 | ||
4057 | SetUpdateInterval = staticmethod(SetUpdateInterval) | |
4058 | def GetUpdateInterval(*args, **kwargs): | |
4059 | """UpdateUIEvent.GetUpdateInterval() -> long""" | |
4060 | return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) | |
4061 | ||
4062 | GetUpdateInterval = staticmethod(GetUpdateInterval) | |
4063 | def CanUpdate(*args, **kwargs): | |
4064 | """UpdateUIEvent.CanUpdate(Window win) -> bool""" | |
4065 | return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) | |
4066 | ||
4067 | CanUpdate = staticmethod(CanUpdate) | |
4068 | def ResetUpdateTime(*args, **kwargs): | |
4069 | """UpdateUIEvent.ResetUpdateTime()""" | |
4070 | return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) | |
4071 | ||
4072 | ResetUpdateTime = staticmethod(ResetUpdateTime) | |
4073 | def SetMode(*args, **kwargs): | |
4074 | """UpdateUIEvent.SetMode(wxUpdateUIMode mode)""" | |
4075 | return _core.UpdateUIEvent_SetMode(*args, **kwargs) | |
4076 | ||
4077 | SetMode = staticmethod(SetMode) | |
4078 | def GetMode(*args, **kwargs): | |
4079 | """UpdateUIEvent.GetMode() -> wxUpdateUIMode""" | |
4080 | return _core.UpdateUIEvent_GetMode(*args, **kwargs) | |
4081 | ||
4082 | GetMode = staticmethod(GetMode) | |
d14a1e28 RD |
4083 | |
4084 | class UpdateUIEventPtr(UpdateUIEvent): | |
4085 | def __init__(self, this): | |
4086 | self.this = this | |
4087 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4088 | self.__class__ = UpdateUIEvent | |
4089 | _core.UpdateUIEvent_swigregister(UpdateUIEventPtr) | |
4090 | ||
423f194a RD |
4091 | def UpdateUIEvent_SetUpdateInterval(*args, **kwargs): |
4092 | """UpdateUIEvent_SetUpdateInterval(long updateInterval)""" | |
4093 | return _core.UpdateUIEvent_SetUpdateInterval(*args, **kwargs) | |
d14a1e28 | 4094 | |
423f194a RD |
4095 | def UpdateUIEvent_GetUpdateInterval(*args, **kwargs): |
4096 | """UpdateUIEvent_GetUpdateInterval() -> long""" | |
4097 | return _core.UpdateUIEvent_GetUpdateInterval(*args, **kwargs) | |
d14a1e28 | 4098 | |
423f194a RD |
4099 | def UpdateUIEvent_CanUpdate(*args, **kwargs): |
4100 | """UpdateUIEvent_CanUpdate(Window win) -> bool""" | |
4101 | return _core.UpdateUIEvent_CanUpdate(*args, **kwargs) | |
d14a1e28 | 4102 | |
423f194a RD |
4103 | def UpdateUIEvent_ResetUpdateTime(*args, **kwargs): |
4104 | """UpdateUIEvent_ResetUpdateTime()""" | |
4105 | return _core.UpdateUIEvent_ResetUpdateTime(*args, **kwargs) | |
d14a1e28 | 4106 | |
423f194a RD |
4107 | def UpdateUIEvent_SetMode(*args, **kwargs): |
4108 | """UpdateUIEvent_SetMode(wxUpdateUIMode mode)""" | |
4109 | return _core.UpdateUIEvent_SetMode(*args, **kwargs) | |
d14a1e28 | 4110 | |
423f194a RD |
4111 | def UpdateUIEvent_GetMode(*args, **kwargs): |
4112 | """UpdateUIEvent_GetMode() -> wxUpdateUIMode""" | |
4113 | return _core.UpdateUIEvent_GetMode(*args, **kwargs) | |
d14a1e28 RD |
4114 | |
4115 | #--------------------------------------------------------------------------- | |
4116 | ||
4117 | class SysColourChangedEvent(Event): | |
423f194a RD |
4118 | def __repr__(self): |
4119 | return "<%s.%s; proxy of C++ wxSysColourChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4120 | def __init__(self, *args, **kwargs): |
423f194a | 4121 | """__init__() -> SysColourChangedEvent""" |
d14a1e28 RD |
4122 | newobj = _core.new_SysColourChangedEvent(*args, **kwargs) |
4123 | self.this = newobj.this | |
4124 | self.thisown = 1 | |
4125 | del newobj.thisown | |
d14a1e28 RD |
4126 | |
4127 | class SysColourChangedEventPtr(SysColourChangedEvent): | |
4128 | def __init__(self, this): | |
4129 | self.this = this | |
4130 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4131 | self.__class__ = SysColourChangedEvent | |
4132 | _core.SysColourChangedEvent_swigregister(SysColourChangedEventPtr) | |
4133 | ||
4134 | #--------------------------------------------------------------------------- | |
4135 | ||
4136 | class MouseCaptureChangedEvent(Event): | |
423f194a RD |
4137 | def __repr__(self): |
4138 | return "<%s.%s; proxy of C++ wxMouseCaptureChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4139 | def __init__(self, *args, **kwargs): |
423f194a | 4140 | """__init__(int winid=0, Window gainedCapture=None) -> MouseCaptureChangedEvent""" |
d14a1e28 RD |
4141 | newobj = _core.new_MouseCaptureChangedEvent(*args, **kwargs) |
4142 | self.this = newobj.this | |
4143 | self.thisown = 1 | |
4144 | del newobj.thisown | |
423f194a RD |
4145 | def GetCapturedWindow(*args, **kwargs): |
4146 | """GetCapturedWindow() -> Window""" | |
4147 | return _core.MouseCaptureChangedEvent_GetCapturedWindow(*args, **kwargs) | |
4148 | ||
d14a1e28 RD |
4149 | |
4150 | class MouseCaptureChangedEventPtr(MouseCaptureChangedEvent): | |
4151 | def __init__(self, this): | |
4152 | self.this = this | |
4153 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4154 | self.__class__ = MouseCaptureChangedEvent | |
4155 | _core.MouseCaptureChangedEvent_swigregister(MouseCaptureChangedEventPtr) | |
4156 | ||
4157 | #--------------------------------------------------------------------------- | |
4158 | ||
4159 | class DisplayChangedEvent(Event): | |
423f194a RD |
4160 | def __repr__(self): |
4161 | return "<%s.%s; proxy of C++ wxDisplayChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4162 | def __init__(self, *args, **kwargs): |
423f194a | 4163 | """__init__() -> DisplayChangedEvent""" |
d14a1e28 RD |
4164 | newobj = _core.new_DisplayChangedEvent(*args, **kwargs) |
4165 | self.this = newobj.this | |
4166 | self.thisown = 1 | |
4167 | del newobj.thisown | |
d14a1e28 RD |
4168 | |
4169 | class DisplayChangedEventPtr(DisplayChangedEvent): | |
4170 | def __init__(self, this): | |
4171 | self.this = this | |
4172 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4173 | self.__class__ = DisplayChangedEvent | |
4174 | _core.DisplayChangedEvent_swigregister(DisplayChangedEventPtr) | |
4175 | ||
4176 | #--------------------------------------------------------------------------- | |
4177 | ||
4178 | class PaletteChangedEvent(Event): | |
423f194a RD |
4179 | def __repr__(self): |
4180 | return "<%s.%s; proxy of C++ wxPaletteChangedEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4181 | def __init__(self, *args, **kwargs): |
423f194a | 4182 | """__init__(int id=0) -> PaletteChangedEvent""" |
d14a1e28 RD |
4183 | newobj = _core.new_PaletteChangedEvent(*args, **kwargs) |
4184 | self.this = newobj.this | |
4185 | self.thisown = 1 | |
4186 | del newobj.thisown | |
423f194a RD |
4187 | def SetChangedWindow(*args, **kwargs): |
4188 | """SetChangedWindow(Window win)""" | |
4189 | return _core.PaletteChangedEvent_SetChangedWindow(*args, **kwargs) | |
4190 | ||
4191 | def GetChangedWindow(*args, **kwargs): | |
4192 | """GetChangedWindow() -> Window""" | |
4193 | return _core.PaletteChangedEvent_GetChangedWindow(*args, **kwargs) | |
4194 | ||
d14a1e28 RD |
4195 | |
4196 | class PaletteChangedEventPtr(PaletteChangedEvent): | |
4197 | def __init__(self, this): | |
4198 | self.this = this | |
4199 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4200 | self.__class__ = PaletteChangedEvent | |
4201 | _core.PaletteChangedEvent_swigregister(PaletteChangedEventPtr) | |
4202 | ||
4203 | #--------------------------------------------------------------------------- | |
4204 | ||
4205 | class QueryNewPaletteEvent(Event): | |
423f194a RD |
4206 | def __repr__(self): |
4207 | return "<%s.%s; proxy of C++ wxQueryNewPaletteEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4208 | def __init__(self, *args, **kwargs): |
423f194a | 4209 | """__init__(int winid=0) -> QueryNewPaletteEvent""" |
d14a1e28 RD |
4210 | newobj = _core.new_QueryNewPaletteEvent(*args, **kwargs) |
4211 | self.this = newobj.this | |
4212 | self.thisown = 1 | |
4213 | del newobj.thisown | |
423f194a RD |
4214 | def SetPaletteRealized(*args, **kwargs): |
4215 | """SetPaletteRealized(bool realized)""" | |
4216 | return _core.QueryNewPaletteEvent_SetPaletteRealized(*args, **kwargs) | |
4217 | ||
4218 | def GetPaletteRealized(*args, **kwargs): | |
4219 | """GetPaletteRealized() -> bool""" | |
4220 | return _core.QueryNewPaletteEvent_GetPaletteRealized(*args, **kwargs) | |
4221 | ||
d14a1e28 RD |
4222 | |
4223 | class QueryNewPaletteEventPtr(QueryNewPaletteEvent): | |
4224 | def __init__(self, this): | |
4225 | self.this = this | |
4226 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4227 | self.__class__ = QueryNewPaletteEvent | |
4228 | _core.QueryNewPaletteEvent_swigregister(QueryNewPaletteEventPtr) | |
4229 | ||
4230 | #--------------------------------------------------------------------------- | |
4231 | ||
4232 | class NavigationKeyEvent(Event): | |
423f194a RD |
4233 | def __repr__(self): |
4234 | return "<%s.%s; proxy of C++ wxNavigationKeyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4235 | def __init__(self, *args, **kwargs): |
423f194a | 4236 | """__init__() -> NavigationKeyEvent""" |
d14a1e28 RD |
4237 | newobj = _core.new_NavigationKeyEvent(*args, **kwargs) |
4238 | self.this = newobj.this | |
4239 | self.thisown = 1 | |
4240 | del newobj.thisown | |
423f194a RD |
4241 | def GetDirection(*args, **kwargs): |
4242 | """GetDirection() -> bool""" | |
4243 | return _core.NavigationKeyEvent_GetDirection(*args, **kwargs) | |
4244 | ||
4245 | def SetDirection(*args, **kwargs): | |
4246 | """SetDirection(bool bForward)""" | |
4247 | return _core.NavigationKeyEvent_SetDirection(*args, **kwargs) | |
4248 | ||
4249 | def IsWindowChange(*args, **kwargs): | |
4250 | """IsWindowChange() -> bool""" | |
4251 | return _core.NavigationKeyEvent_IsWindowChange(*args, **kwargs) | |
4252 | ||
4253 | def SetWindowChange(*args, **kwargs): | |
4254 | """SetWindowChange(bool bIs)""" | |
4255 | return _core.NavigationKeyEvent_SetWindowChange(*args, **kwargs) | |
4256 | ||
4257 | def GetCurrentFocus(*args, **kwargs): | |
4258 | """GetCurrentFocus() -> Window""" | |
4259 | return _core.NavigationKeyEvent_GetCurrentFocus(*args, **kwargs) | |
4260 | ||
4261 | def SetCurrentFocus(*args, **kwargs): | |
4262 | """SetCurrentFocus(Window win)""" | |
4263 | return _core.NavigationKeyEvent_SetCurrentFocus(*args, **kwargs) | |
4264 | ||
d14a1e28 RD |
4265 | |
4266 | class NavigationKeyEventPtr(NavigationKeyEvent): | |
4267 | def __init__(self, this): | |
4268 | self.this = this | |
4269 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4270 | self.__class__ = NavigationKeyEvent | |
4271 | _core.NavigationKeyEvent_swigregister(NavigationKeyEventPtr) | |
4272 | ||
4273 | #--------------------------------------------------------------------------- | |
4274 | ||
4275 | class WindowCreateEvent(CommandEvent): | |
423f194a RD |
4276 | def __repr__(self): |
4277 | return "<%s.%s; proxy of C++ wxWindowCreateEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4278 | def __init__(self, *args, **kwargs): |
423f194a | 4279 | """__init__(Window win=None) -> WindowCreateEvent""" |
d14a1e28 RD |
4280 | newobj = _core.new_WindowCreateEvent(*args, **kwargs) |
4281 | self.this = newobj.this | |
4282 | self.thisown = 1 | |
4283 | del newobj.thisown | |
423f194a RD |
4284 | def GetWindow(*args, **kwargs): |
4285 | """GetWindow() -> Window""" | |
4286 | return _core.WindowCreateEvent_GetWindow(*args, **kwargs) | |
4287 | ||
d14a1e28 RD |
4288 | |
4289 | class WindowCreateEventPtr(WindowCreateEvent): | |
4290 | def __init__(self, this): | |
4291 | self.this = this | |
4292 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4293 | self.__class__ = WindowCreateEvent | |
4294 | _core.WindowCreateEvent_swigregister(WindowCreateEventPtr) | |
4295 | ||
4296 | class WindowDestroyEvent(CommandEvent): | |
423f194a RD |
4297 | def __repr__(self): |
4298 | return "<%s.%s; proxy of C++ wxWindowDestroyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4299 | def __init__(self, *args, **kwargs): |
423f194a | 4300 | """__init__(Window win=None) -> WindowDestroyEvent""" |
d14a1e28 RD |
4301 | newobj = _core.new_WindowDestroyEvent(*args, **kwargs) |
4302 | self.this = newobj.this | |
4303 | self.thisown = 1 | |
4304 | del newobj.thisown | |
423f194a RD |
4305 | def GetWindow(*args, **kwargs): |
4306 | """GetWindow() -> Window""" | |
4307 | return _core.WindowDestroyEvent_GetWindow(*args, **kwargs) | |
4308 | ||
d14a1e28 RD |
4309 | |
4310 | class WindowDestroyEventPtr(WindowDestroyEvent): | |
4311 | def __init__(self, this): | |
4312 | self.this = this | |
4313 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4314 | self.__class__ = WindowDestroyEvent | |
4315 | _core.WindowDestroyEvent_swigregister(WindowDestroyEventPtr) | |
4316 | ||
4317 | #--------------------------------------------------------------------------- | |
4318 | ||
4319 | class ContextMenuEvent(CommandEvent): | |
423f194a RD |
4320 | def __repr__(self): |
4321 | return "<%s.%s; proxy of C++ wxContextMenuEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4322 | def __init__(self, *args, **kwargs): |
423f194a | 4323 | """__init__(wxEventType type=wxEVT_NULL, int winid=0, Point pt=DefaultPosition) -> ContextMenuEvent""" |
d14a1e28 RD |
4324 | newobj = _core.new_ContextMenuEvent(*args, **kwargs) |
4325 | self.this = newobj.this | |
4326 | self.thisown = 1 | |
4327 | del newobj.thisown | |
423f194a RD |
4328 | def GetPosition(*args, **kwargs): |
4329 | """GetPosition() -> Point""" | |
4330 | return _core.ContextMenuEvent_GetPosition(*args, **kwargs) | |
4331 | ||
4332 | def SetPosition(*args, **kwargs): | |
4333 | """SetPosition(Point pos)""" | |
4334 | return _core.ContextMenuEvent_SetPosition(*args, **kwargs) | |
4335 | ||
d14a1e28 RD |
4336 | |
4337 | class ContextMenuEventPtr(ContextMenuEvent): | |
4338 | def __init__(self, this): | |
4339 | self.this = this | |
4340 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4341 | self.__class__ = ContextMenuEvent | |
4342 | _core.ContextMenuEvent_swigregister(ContextMenuEventPtr) | |
4343 | ||
4344 | #--------------------------------------------------------------------------- | |
4345 | ||
4346 | IDLE_PROCESS_ALL = _core.IDLE_PROCESS_ALL | |
4347 | IDLE_PROCESS_SPECIFIED = _core.IDLE_PROCESS_SPECIFIED | |
4348 | class IdleEvent(Event): | |
423f194a RD |
4349 | def __repr__(self): |
4350 | return "<%s.%s; proxy of C++ wxIdleEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4351 | def __init__(self, *args, **kwargs): |
423f194a | 4352 | """__init__() -> IdleEvent""" |
d14a1e28 RD |
4353 | newobj = _core.new_IdleEvent(*args, **kwargs) |
4354 | self.this = newobj.this | |
4355 | self.thisown = 1 | |
4356 | del newobj.thisown | |
423f194a RD |
4357 | def RequestMore(*args, **kwargs): |
4358 | """RequestMore(bool needMore=True)""" | |
4359 | return _core.IdleEvent_RequestMore(*args, **kwargs) | |
4360 | ||
4361 | def MoreRequested(*args, **kwargs): | |
4362 | """MoreRequested() -> bool""" | |
4363 | return _core.IdleEvent_MoreRequested(*args, **kwargs) | |
4364 | ||
4365 | def SetMode(*args, **kwargs): | |
4366 | """IdleEvent.SetMode(wxIdleMode mode)""" | |
4367 | return _core.IdleEvent_SetMode(*args, **kwargs) | |
4368 | ||
4369 | SetMode = staticmethod(SetMode) | |
4370 | def GetMode(*args, **kwargs): | |
4371 | """IdleEvent.GetMode() -> wxIdleMode""" | |
4372 | return _core.IdleEvent_GetMode(*args, **kwargs) | |
4373 | ||
4374 | GetMode = staticmethod(GetMode) | |
4375 | def CanSend(*args, **kwargs): | |
4376 | """IdleEvent.CanSend(Window win) -> bool""" | |
4377 | return _core.IdleEvent_CanSend(*args, **kwargs) | |
4378 | ||
4379 | CanSend = staticmethod(CanSend) | |
d14a1e28 RD |
4380 | |
4381 | class IdleEventPtr(IdleEvent): | |
4382 | def __init__(self, this): | |
4383 | self.this = this | |
4384 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4385 | self.__class__ = IdleEvent | |
4386 | _core.IdleEvent_swigregister(IdleEventPtr) | |
4387 | ||
423f194a RD |
4388 | def IdleEvent_SetMode(*args, **kwargs): |
4389 | """IdleEvent_SetMode(wxIdleMode mode)""" | |
4390 | return _core.IdleEvent_SetMode(*args, **kwargs) | |
d14a1e28 | 4391 | |
423f194a RD |
4392 | def IdleEvent_GetMode(*args, **kwargs): |
4393 | """IdleEvent_GetMode() -> wxIdleMode""" | |
4394 | return _core.IdleEvent_GetMode(*args, **kwargs) | |
d14a1e28 | 4395 | |
423f194a RD |
4396 | def IdleEvent_CanSend(*args, **kwargs): |
4397 | """IdleEvent_CanSend(Window win) -> bool""" | |
4398 | return _core.IdleEvent_CanSend(*args, **kwargs) | |
d14a1e28 RD |
4399 | |
4400 | #--------------------------------------------------------------------------- | |
4401 | ||
4402 | class PyEvent(Event): | |
423f194a RD |
4403 | def __repr__(self): |
4404 | return "<%s.%s; proxy of C++ wxPyEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4405 | def __init__(self, *args, **kwargs): |
423f194a | 4406 | """__init__(int winid=0, wxEventType commandType=wxEVT_NULL) -> PyEvent""" |
d14a1e28 RD |
4407 | newobj = _core.new_PyEvent(*args, **kwargs) |
4408 | self.this = newobj.this | |
4409 | self.thisown = 1 | |
4410 | del newobj.thisown | |
4411 | self.SetSelf(self) | |
423f194a | 4412 | |
d14a1e28 | 4413 | def __del__(self, destroy=_core.delete_PyEvent): |
423f194a | 4414 | """__del__()""" |
d14a1e28 RD |
4415 | try: |
4416 | if self.thisown: destroy(self) | |
4417 | except: pass | |
423f194a RD |
4418 | |
4419 | def SetSelf(*args, **kwargs): | |
4420 | """SetSelf(PyObject self)""" | |
4421 | return _core.PyEvent_SetSelf(*args, **kwargs) | |
4422 | ||
4423 | def GetSelf(*args, **kwargs): | |
4424 | """GetSelf() -> PyObject""" | |
4425 | return _core.PyEvent_GetSelf(*args, **kwargs) | |
4426 | ||
d14a1e28 RD |
4427 | |
4428 | class PyEventPtr(PyEvent): | |
4429 | def __init__(self, this): | |
4430 | self.this = this | |
4431 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4432 | self.__class__ = PyEvent | |
4433 | _core.PyEvent_swigregister(PyEventPtr) | |
4434 | ||
4435 | class PyCommandEvent(CommandEvent): | |
423f194a RD |
4436 | def __repr__(self): |
4437 | return "<%s.%s; proxy of C++ wxPyCommandEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4438 | def __init__(self, *args, **kwargs): |
423f194a | 4439 | """__init__(wxEventType commandType=wxEVT_NULL, int id=0) -> PyCommandEvent""" |
d14a1e28 RD |
4440 | newobj = _core.new_PyCommandEvent(*args, **kwargs) |
4441 | self.this = newobj.this | |
4442 | self.thisown = 1 | |
4443 | del newobj.thisown | |
4444 | self.SetSelf(self) | |
423f194a | 4445 | |
d14a1e28 | 4446 | def __del__(self, destroy=_core.delete_PyCommandEvent): |
423f194a | 4447 | """__del__()""" |
d14a1e28 RD |
4448 | try: |
4449 | if self.thisown: destroy(self) | |
4450 | except: pass | |
423f194a RD |
4451 | |
4452 | def SetSelf(*args, **kwargs): | |
4453 | """SetSelf(PyObject self)""" | |
4454 | return _core.PyCommandEvent_SetSelf(*args, **kwargs) | |
4455 | ||
4456 | def GetSelf(*args, **kwargs): | |
4457 | """GetSelf() -> PyObject""" | |
4458 | return _core.PyCommandEvent_GetSelf(*args, **kwargs) | |
4459 | ||
d14a1e28 RD |
4460 | |
4461 | class PyCommandEventPtr(PyCommandEvent): | |
4462 | def __init__(self, this): | |
4463 | self.this = this | |
4464 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4465 | self.__class__ = PyCommandEvent | |
4466 | _core.PyCommandEvent_swigregister(PyCommandEventPtr) | |
4467 | ||
4468 | #--------------------------------------------------------------------------- | |
4469 | ||
4470 | PYAPP_ASSERT_SUPPRESS = _core.PYAPP_ASSERT_SUPPRESS | |
4471 | PYAPP_ASSERT_EXCEPTION = _core.PYAPP_ASSERT_EXCEPTION | |
4472 | PYAPP_ASSERT_DIALOG = _core.PYAPP_ASSERT_DIALOG | |
4473 | PYAPP_ASSERT_LOG = _core.PYAPP_ASSERT_LOG | |
4474 | PRINT_WINDOWS = _core.PRINT_WINDOWS | |
4475 | PRINT_POSTSCRIPT = _core.PRINT_POSTSCRIPT | |
4476 | class PyApp(EvtHandler): | |
423f194a RD |
4477 | def __repr__(self): |
4478 | return "<%s.%s; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 4479 | def __init__(self, *args, **kwargs): |
423f194a | 4480 | """__init__() -> PyApp""" |
d14a1e28 RD |
4481 | newobj = _core.new_PyApp(*args, **kwargs) |
4482 | self.this = newobj.this | |
4483 | self.thisown = 1 | |
4484 | del newobj.thisown | |
4485 | self._setCallbackInfo(self, PyApp) | |
4486 | self._setOORInfo(self) | |
423f194a | 4487 | |
d14a1e28 | 4488 | def __del__(self, destroy=_core.delete_PyApp): |
423f194a | 4489 | """__del__()""" |
d14a1e28 RD |
4490 | try: |
4491 | if self.thisown: destroy(self) | |
4492 | except: pass | |
423f194a RD |
4493 | |
4494 | def _setCallbackInfo(*args, **kwargs): | |
4495 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
4496 | return _core.PyApp__setCallbackInfo(*args, **kwargs) | |
4497 | ||
4498 | def GetAppName(*args, **kwargs): | |
41f1cec7 RD |
4499 | """ |
4500 | GetAppName() -> wxString | |
44127b65 | 4501 | |
41f1cec7 RD |
4502 | Get the application name. |
4503 | """ | |
423f194a RD |
4504 | return _core.PyApp_GetAppName(*args, **kwargs) |
4505 | ||
4506 | def SetAppName(*args, **kwargs): | |
41f1cec7 RD |
4507 | """ |
4508 | SetAppName(wxString name) | |
44127b65 | 4509 | |
41f1cec7 RD |
4510 | Set the application name. This value may be used automatically |
4511 | by wxConfig and such. | |
4512 | """ | |
423f194a RD |
4513 | return _core.PyApp_SetAppName(*args, **kwargs) |
4514 | ||
4515 | def GetClassName(*args, **kwargs): | |
41f1cec7 RD |
4516 | """ |
4517 | GetClassName() -> wxString | |
423f194a | 4518 | |
41f1cec7 RD |
4519 | Get the application's class name. |
4520 | """ | |
423f194a RD |
4521 | return _core.PyApp_GetClassName(*args, **kwargs) |
4522 | ||
4523 | def SetClassName(*args, **kwargs): | |
41f1cec7 RD |
4524 | """ |
4525 | SetClassName(wxString name) | |
44127b65 | 4526 | |
41f1cec7 RD |
4527 | Set the application's class name. This value may be used for X-resources if |
4528 | applicable for the platform | |
4529 | """ | |
423f194a RD |
4530 | return _core.PyApp_SetClassName(*args, **kwargs) |
4531 | ||
4532 | def GetVendorName(*args, **kwargs): | |
41f1cec7 RD |
4533 | """ |
4534 | GetVendorName() -> wxString | |
44127b65 | 4535 | |
41f1cec7 RD |
4536 | Get the application's vendor name. |
4537 | """ | |
423f194a RD |
4538 | return _core.PyApp_GetVendorName(*args, **kwargs) |
4539 | ||
4540 | def SetVendorName(*args, **kwargs): | |
41f1cec7 RD |
4541 | """ |
4542 | SetVendorName(wxString name) | |
44127b65 | 4543 | |
41f1cec7 RD |
4544 | Set the application's vendor name. This value may be used automatically |
4545 | by wxConfig and such. | |
4546 | """ | |
423f194a RD |
4547 | return _core.PyApp_SetVendorName(*args, **kwargs) |
4548 | ||
4549 | def GetTraits(*args, **kwargs): | |
41f1cec7 RD |
4550 | """ |
4551 | GetTraits() -> wxAppTraits | |
44127b65 | 4552 | |
41f1cec7 RD |
4553 | Create the app traits object to which we delegate for everything which either |
4554 | should be configurable by the user (then he can change the default behaviour | |
4555 | simply by overriding CreateTraits() and returning his own traits object) or | |
4556 | which is GUI/console dependent as then wxAppTraits allows us to abstract the | |
4557 | differences behind the common facade | |
4558 | """ | |
423f194a RD |
4559 | return _core.PyApp_GetTraits(*args, **kwargs) |
4560 | ||
4561 | def ProcessPendingEvents(*args, **kwargs): | |
41f1cec7 RD |
4562 | """ |
4563 | ProcessPendingEvents() | |
44127b65 | 4564 | |
41f1cec7 RD |
4565 | Process all events in the wxPendingEvents list -- it is necessary to call this |
4566 | function to process posted events. This happens during each event loop | |
4567 | iteration. | |
4568 | """ | |
423f194a RD |
4569 | return _core.PyApp_ProcessPendingEvents(*args, **kwargs) |
4570 | ||
4571 | def Yield(*args, **kwargs): | |
41f1cec7 RD |
4572 | """ |
4573 | Yield(bool onlyIfNeeded=False) -> bool | |
4574 | ||
4575 | Process all currently pending events right now, instead of waiting until | |
4576 | return to the event loop. It is an error to call Yield() recursively unless | |
4577 | the value of onlyIfNeeded is True. | |
44127b65 | 4578 | |
41f1cec7 RD |
4579 | WARNING: This function is dangerous as it can lead to unexpected |
4580 | reentrancies (i.e. when called from an event handler it | |
4581 | may result in calling the same event handler again), use | |
4582 | with _extreme_ care or, better, don't use at all! | |
44127b65 | 4583 | |
41f1cec7 | 4584 | """ |
423f194a RD |
4585 | return _core.PyApp_Yield(*args, **kwargs) |
4586 | ||
4587 | def WakeUpIdle(*args, **kwargs): | |
41f1cec7 RD |
4588 | """ |
4589 | WakeUpIdle() | |
44127b65 | 4590 | |
41f1cec7 RD |
4591 | Make sure that idle events are sent again |
4592 | """ | |
423f194a RD |
4593 | return _core.PyApp_WakeUpIdle(*args, **kwargs) |
4594 | ||
4595 | def MainLoop(*args, **kwargs): | |
41f1cec7 RD |
4596 | """ |
4597 | MainLoop() -> int | |
44127b65 | 4598 | |
41f1cec7 RD |
4599 | Execute the main GUI loop, the function returns when the loop ends. |
4600 | """ | |
423f194a RD |
4601 | return _core.PyApp_MainLoop(*args, **kwargs) |
4602 | ||
4603 | def Exit(*args, **kwargs): | |
41f1cec7 RD |
4604 | """ |
4605 | Exit() | |
44127b65 | 4606 | |
41f1cec7 RD |
4607 | Exit the main loop thus terminating the application. |
4608 | """ | |
423f194a RD |
4609 | return _core.PyApp_Exit(*args, **kwargs) |
4610 | ||
4611 | def ExitMainLoop(*args, **kwargs): | |
41f1cec7 RD |
4612 | """ |
4613 | ExitMainLoop() | |
44127b65 | 4614 | |
41f1cec7 RD |
4615 | Exit the main GUI loop during the next iteration (i.e. it does not |
4616 | stop the program immediately!) | |
4617 | """ | |
423f194a RD |
4618 | return _core.PyApp_ExitMainLoop(*args, **kwargs) |
4619 | ||
4620 | def Pending(*args, **kwargs): | |
41f1cec7 RD |
4621 | """ |
4622 | Pending() -> bool | |
44127b65 | 4623 | |
41f1cec7 RD |
4624 | Returns True if there are unprocessed events in the event queue. |
4625 | """ | |
423f194a RD |
4626 | return _core.PyApp_Pending(*args, **kwargs) |
4627 | ||
4628 | def Dispatch(*args, **kwargs): | |
41f1cec7 RD |
4629 | """ |
4630 | Dispatch() -> bool | |
44127b65 | 4631 | |
41f1cec7 RD |
4632 | Process the first event in the event queue (blocks until an event |
4633 | appears if there are none currently) | |
4634 | """ | |
423f194a RD |
4635 | return _core.PyApp_Dispatch(*args, **kwargs) |
4636 | ||
4637 | def ProcessIdle(*args, **kwargs): | |
41f1cec7 RD |
4638 | """ |
4639 | ProcessIdle() -> bool | |
44127b65 | 4640 | |
41f1cec7 RD |
4641 | Called from the MainLoop when the application becomes idle and sends an |
4642 | IdleEvent to all interested parties. Returns True is more idle events are | |
4643 | needed, False if not. | |
4644 | """ | |
423f194a RD |
4645 | return _core.PyApp_ProcessIdle(*args, **kwargs) |
4646 | ||
4647 | def SendIdleEvents(*args, **kwargs): | |
41f1cec7 RD |
4648 | """ |
4649 | SendIdleEvents(Window win, IdleEvent event) -> bool | |
423f194a | 4650 | |
41f1cec7 RD |
4651 | Send idle event to window and all subwindows. Returns True if more idle time |
4652 | is requested. | |
4653 | """ | |
44127b65 | 4654 | return _core.PyApp_SendIdleEvents(*args, **kwargs) |
423f194a RD |
4655 | |
4656 | def IsActive(*args, **kwargs): | |
41f1cec7 RD |
4657 | """ |
4658 | IsActive() -> bool | |
44127b65 | 4659 | |
41f1cec7 RD |
4660 | Return True if our app has focus. |
4661 | """ | |
423f194a RD |
4662 | return _core.PyApp_IsActive(*args, **kwargs) |
4663 | ||
4664 | def SetTopWindow(*args, **kwargs): | |
41f1cec7 RD |
4665 | """ |
4666 | SetTopWindow(Window win) | |
44127b65 | 4667 | |
41f1cec7 RD |
4668 | Set the "main" top level window |
4669 | """ | |
423f194a RD |
4670 | return _core.PyApp_SetTopWindow(*args, **kwargs) |
4671 | ||
4672 | def GetTopWindow(*args, **kwargs): | |
41f1cec7 RD |
4673 | """ |
4674 | GetTopWindow() -> Window | |
44127b65 | 4675 | |
41f1cec7 RD |
4676 | Return the "main" top level window (if it hadn't been set previously with |
4677 | SetTopWindow(), will return just some top level window and, if there not any, | |
4678 | will return None) | |
4679 | """ | |
423f194a RD |
4680 | return _core.PyApp_GetTopWindow(*args, **kwargs) |
4681 | ||
4682 | def SetExitOnFrameDelete(*args, **kwargs): | |
41f1cec7 RD |
4683 | """ |
4684 | SetExitOnFrameDelete(bool flag) | |
4685 | ||
4686 | Control the exit behaviour: by default, the program will exit the main loop | |
4687 | (and so, usually, terminate) when the last top-level program window is | |
4688 | deleted. Beware that if you disable this behaviour (with | |
4689 | SetExitOnFrameDelete(False)), you'll have to call ExitMainLoop() explicitly | |
4690 | from somewhere. | |
4691 | ||
4692 | """ | |
423f194a RD |
4693 | return _core.PyApp_SetExitOnFrameDelete(*args, **kwargs) |
4694 | ||
4695 | def GetExitOnFrameDelete(*args, **kwargs): | |
41f1cec7 RD |
4696 | """ |
4697 | GetExitOnFrameDelete() -> bool | |
44127b65 | 4698 | |
41f1cec7 RD |
4699 | Get the current exit behaviour setting. |
4700 | """ | |
423f194a RD |
4701 | return _core.PyApp_GetExitOnFrameDelete(*args, **kwargs) |
4702 | ||
4703 | def SetUseBestVisual(*args, **kwargs): | |
41f1cec7 RD |
4704 | """ |
4705 | SetUseBestVisual(bool flag) | |
44127b65 | 4706 | |
41f1cec7 RD |
4707 | Set whether the app should try to use the best available visual on systems |
4708 | where more than one is available, (Sun, SGI, XFree86 4, etc.) | |
4709 | """ | |
423f194a RD |
4710 | return _core.PyApp_SetUseBestVisual(*args, **kwargs) |
4711 | ||
4712 | def GetUseBestVisual(*args, **kwargs): | |
41f1cec7 RD |
4713 | """ |
4714 | GetUseBestVisual() -> bool | |
44127b65 | 4715 | |
41f1cec7 RD |
4716 | Get current UseBestVisual setting. |
4717 | """ | |
423f194a RD |
4718 | return _core.PyApp_GetUseBestVisual(*args, **kwargs) |
4719 | ||
4720 | def SetPrintMode(*args, **kwargs): | |
4721 | """SetPrintMode(int mode)""" | |
4722 | return _core.PyApp_SetPrintMode(*args, **kwargs) | |
4723 | ||
4724 | def GetPrintMode(*args, **kwargs): | |
4725 | """GetPrintMode() -> int""" | |
4726 | return _core.PyApp_GetPrintMode(*args, **kwargs) | |
4727 | ||
423f194a | 4728 | def SetAssertMode(*args, **kwargs): |
41f1cec7 RD |
4729 | """ |
4730 | SetAssertMode(int mode) | |
44127b65 | 4731 | |
41f1cec7 RD |
4732 | Set the OnAssert behaviour for debug and hybrid builds. The following flags |
4733 | may be or'd together: | |
44127b65 | 4734 | |
41f1cec7 RD |
4735 | wxPYAPP_ASSERT_SUPPRESS Don't do anything |
4736 | wxPYAPP_ASSERT_EXCEPTION Turn it into a Python exception if possible (default) | |
4737 | wxPYAPP_ASSERT_DIALOG Display a message dialog | |
4738 | wxPYAPP_ASSERT_LOG Write the assertion info to the wxLog | |
4739 | ||
4740 | """ | |
423f194a RD |
4741 | return _core.PyApp_SetAssertMode(*args, **kwargs) |
4742 | ||
44127b65 | 4743 | def GetAssertMode(*args, **kwargs): |
41f1cec7 RD |
4744 | """ |
4745 | GetAssertMode() -> int | |
44127b65 | 4746 | |
41f1cec7 RD |
4747 | Get the current OnAssert behaviour setting. |
4748 | """ | |
44127b65 RD |
4749 | return _core.PyApp_GetAssertMode(*args, **kwargs) |
4750 | ||
423f194a RD |
4751 | def GetMacSupportPCMenuShortcuts(*args, **kwargs): |
4752 | """PyApp.GetMacSupportPCMenuShortcuts() -> bool""" | |
4753 | return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) | |
4754 | ||
4755 | GetMacSupportPCMenuShortcuts = staticmethod(GetMacSupportPCMenuShortcuts) | |
4756 | def GetMacAboutMenuItemId(*args, **kwargs): | |
4757 | """PyApp.GetMacAboutMenuItemId() -> long""" | |
4758 | return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) | |
4759 | ||
4760 | GetMacAboutMenuItemId = staticmethod(GetMacAboutMenuItemId) | |
4761 | def GetMacPreferencesMenuItemId(*args, **kwargs): | |
4762 | """PyApp.GetMacPreferencesMenuItemId() -> long""" | |
4763 | return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) | |
4764 | ||
4765 | GetMacPreferencesMenuItemId = staticmethod(GetMacPreferencesMenuItemId) | |
4766 | def GetMacExitMenuItemId(*args, **kwargs): | |
4767 | """PyApp.GetMacExitMenuItemId() -> long""" | |
4768 | return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) | |
4769 | ||
4770 | GetMacExitMenuItemId = staticmethod(GetMacExitMenuItemId) | |
4771 | def GetMacHelpMenuTitleName(*args, **kwargs): | |
4772 | """PyApp.GetMacHelpMenuTitleName() -> wxString""" | |
4773 | return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) | |
4774 | ||
4775 | GetMacHelpMenuTitleName = staticmethod(GetMacHelpMenuTitleName) | |
4776 | def SetMacSupportPCMenuShortcuts(*args, **kwargs): | |
4777 | """PyApp.SetMacSupportPCMenuShortcuts(bool val)""" | |
4778 | return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) | |
4779 | ||
4780 | SetMacSupportPCMenuShortcuts = staticmethod(SetMacSupportPCMenuShortcuts) | |
4781 | def SetMacAboutMenuItemId(*args, **kwargs): | |
4782 | """PyApp.SetMacAboutMenuItemId(long val)""" | |
4783 | return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) | |
4784 | ||
4785 | SetMacAboutMenuItemId = staticmethod(SetMacAboutMenuItemId) | |
4786 | def SetMacPreferencesMenuItemId(*args, **kwargs): | |
4787 | """PyApp.SetMacPreferencesMenuItemId(long val)""" | |
4788 | return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) | |
4789 | ||
4790 | SetMacPreferencesMenuItemId = staticmethod(SetMacPreferencesMenuItemId) | |
4791 | def SetMacExitMenuItemId(*args, **kwargs): | |
4792 | """PyApp.SetMacExitMenuItemId(long val)""" | |
4793 | return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) | |
4794 | ||
4795 | SetMacExitMenuItemId = staticmethod(SetMacExitMenuItemId) | |
4796 | def SetMacHelpMenuTitleName(*args, **kwargs): | |
4797 | """PyApp.SetMacHelpMenuTitleName(wxString val)""" | |
4798 | return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) | |
4799 | ||
4800 | SetMacHelpMenuTitleName = staticmethod(SetMacHelpMenuTitleName) | |
4801 | def _BootstrapApp(*args, **kwargs): | |
41f1cec7 RD |
4802 | """ |
4803 | _BootstrapApp() | |
44127b65 | 4804 | |
41f1cec7 RD |
4805 | For internal use only |
4806 | """ | |
423f194a RD |
4807 | return _core.PyApp__BootstrapApp(*args, **kwargs) |
4808 | ||
4809 | def GetComCtl32Version(*args, **kwargs): | |
41f1cec7 RD |
4810 | """ |
4811 | PyApp.GetComCtl32Version() -> int | |
44127b65 | 4812 | |
41f1cec7 RD |
4813 | Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it |
4814 | wasn't found at all. Raises an exception on non-Windows platforms. | |
4815 | """ | |
423f194a RD |
4816 | return _core.PyApp_GetComCtl32Version(*args, **kwargs) |
4817 | ||
4818 | GetComCtl32Version = staticmethod(GetComCtl32Version) | |
d14a1e28 RD |
4819 | |
4820 | class PyAppPtr(PyApp): | |
4821 | def __init__(self, this): | |
4822 | self.this = this | |
4823 | if not hasattr(self,"thisown"): self.thisown = 0 | |
4824 | self.__class__ = PyApp | |
4825 | _core.PyApp_swigregister(PyAppPtr) | |
4826 | ||
423f194a RD |
4827 | def PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs): |
4828 | """PyApp_GetMacSupportPCMenuShortcuts() -> bool""" | |
4829 | return _core.PyApp_GetMacSupportPCMenuShortcuts(*args, **kwargs) | |
d14a1e28 | 4830 | |
423f194a RD |
4831 | def PyApp_GetMacAboutMenuItemId(*args, **kwargs): |
4832 | """PyApp_GetMacAboutMenuItemId() -> long""" | |
4833 | return _core.PyApp_GetMacAboutMenuItemId(*args, **kwargs) | |
d14a1e28 | 4834 | |
423f194a RD |
4835 | def PyApp_GetMacPreferencesMenuItemId(*args, **kwargs): |
4836 | """PyApp_GetMacPreferencesMenuItemId() -> long""" | |
4837 | return _core.PyApp_GetMacPreferencesMenuItemId(*args, **kwargs) | |
d14a1e28 | 4838 | |
423f194a RD |
4839 | def PyApp_GetMacExitMenuItemId(*args, **kwargs): |
4840 | """PyApp_GetMacExitMenuItemId() -> long""" | |
4841 | return _core.PyApp_GetMacExitMenuItemId(*args, **kwargs) | |
d14a1e28 | 4842 | |
423f194a RD |
4843 | def PyApp_GetMacHelpMenuTitleName(*args, **kwargs): |
4844 | """PyApp_GetMacHelpMenuTitleName() -> wxString""" | |
4845 | return _core.PyApp_GetMacHelpMenuTitleName(*args, **kwargs) | |
d14a1e28 | 4846 | |
423f194a RD |
4847 | def PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs): |
4848 | """PyApp_SetMacSupportPCMenuShortcuts(bool val)""" | |
4849 | return _core.PyApp_SetMacSupportPCMenuShortcuts(*args, **kwargs) | |
d14a1e28 | 4850 | |
423f194a RD |
4851 | def PyApp_SetMacAboutMenuItemId(*args, **kwargs): |
4852 | """PyApp_SetMacAboutMenuItemId(long val)""" | |
4853 | return _core.PyApp_SetMacAboutMenuItemId(*args, **kwargs) | |
d14a1e28 | 4854 | |
423f194a RD |
4855 | def PyApp_SetMacPreferencesMenuItemId(*args, **kwargs): |
4856 | """PyApp_SetMacPreferencesMenuItemId(long val)""" | |
4857 | return _core.PyApp_SetMacPreferencesMenuItemId(*args, **kwargs) | |
d14a1e28 | 4858 | |
423f194a RD |
4859 | def PyApp_SetMacExitMenuItemId(*args, **kwargs): |
4860 | """PyApp_SetMacExitMenuItemId(long val)""" | |
4861 | return _core.PyApp_SetMacExitMenuItemId(*args, **kwargs) | |
d14a1e28 | 4862 | |
423f194a RD |
4863 | def PyApp_SetMacHelpMenuTitleName(*args, **kwargs): |
4864 | """PyApp_SetMacHelpMenuTitleName(wxString val)""" | |
4865 | return _core.PyApp_SetMacHelpMenuTitleName(*args, **kwargs) | |
d14a1e28 | 4866 | |
423f194a | 4867 | def PyApp_GetComCtl32Version(*args, **kwargs): |
41f1cec7 RD |
4868 | """ |
4869 | PyApp_GetComCtl32Version() -> int | |
44127b65 | 4870 | |
41f1cec7 RD |
4871 | Returns 400, 470, 471 for comctl32.dll 4.00, 4.70, 4.71 or 0 if it |
4872 | wasn't found at all. Raises an exception on non-Windows platforms. | |
4873 | """ | |
423f194a | 4874 | return _core.PyApp_GetComCtl32Version(*args, **kwargs) |
d14a1e28 RD |
4875 | |
4876 | #--------------------------------------------------------------------------- | |
4877 | ||
4878 | ||
423f194a | 4879 | def Exit(*args, **kwargs): |
41f1cec7 RD |
4880 | """ |
4881 | Exit() | |
44127b65 | 4882 | |
41f1cec7 RD |
4883 | Force an exit of the application. Convenience for wx.GetApp().Exit() |
4884 | """ | |
423f194a | 4885 | return _core.Exit(*args, **kwargs) |
d14a1e28 | 4886 | |
423f194a | 4887 | def Yield(*args, **kwargs): |
41f1cec7 RD |
4888 | """ |
4889 | Yield() -> bool | |
44127b65 | 4890 | |
41f1cec7 RD |
4891 | Yield to other apps/messages. Convenience for wx.GetApp().Yield() |
4892 | """ | |
423f194a | 4893 | return _core.Yield(*args, **kwargs) |
d14a1e28 | 4894 | |
423f194a | 4895 | def YieldIfNeeded(*args, **kwargs): |
41f1cec7 RD |
4896 | """ |
4897 | YieldIfNeeded() -> bool | |
44127b65 | 4898 | |
41f1cec7 RD |
4899 | Yield to other apps/messages. Convenience for wx.GetApp().Yield(True) |
4900 | """ | |
423f194a | 4901 | return _core.YieldIfNeeded(*args, **kwargs) |
d14a1e28 | 4902 | |
423f194a | 4903 | def SafeYield(*args, **kwargs): |
41f1cec7 RD |
4904 | """ |
4905 | SafeYield(Window win=None, bool onlyIfNeeded=False) -> bool | |
44127b65 | 4906 | |
41f1cec7 RD |
4907 | This function is similar to wx.Yield, except that it disables the user input |
4908 | to all program windows before calling wx.Yield and re-enables it again | |
4909 | afterwards. If win is not None, this window will remain enabled, allowing the | |
4910 | implementation of some limited user interaction. | |
44127b65 | 4911 | |
41f1cec7 RD |
4912 | Returns the result of the call to wx.Yield. |
4913 | """ | |
423f194a | 4914 | return _core.SafeYield(*args, **kwargs) |
d14a1e28 | 4915 | |
423f194a | 4916 | def WakeUpIdle(*args, **kwargs): |
41f1cec7 RD |
4917 | """ |
4918 | WakeUpIdle() | |
44127b65 | 4919 | |
41f1cec7 RD |
4920 | Cause the message queue to become empty again, so idle events will be sent. |
4921 | """ | |
423f194a | 4922 | return _core.WakeUpIdle(*args, **kwargs) |
d14a1e28 | 4923 | |
423f194a | 4924 | def PostEvent(*args, **kwargs): |
41f1cec7 RD |
4925 | """ |
4926 | PostEvent(EvtHandler dest, Event event) | |
44127b65 | 4927 | |
41f1cec7 RD |
4928 | Send an event to a window or other wx.EvtHandler to be processed later. |
4929 | """ | |
423f194a | 4930 | return _core.PostEvent(*args, **kwargs) |
d14a1e28 | 4931 | |
423f194a | 4932 | def App_CleanUp(*args, **kwargs): |
41f1cec7 RD |
4933 | """ |
4934 | App_CleanUp() | |
44127b65 | 4935 | |
41f1cec7 RD |
4936 | For internal use only, it is used to cleanup after wxWindows when Python shuts down. |
4937 | """ | |
423f194a | 4938 | return _core.App_CleanUp(*args, **kwargs) |
d14a1e28 | 4939 | |
423f194a | 4940 | def GetApp(*args, **kwargs): |
41f1cec7 RD |
4941 | """ |
4942 | GetApp() -> PyApp | |
44127b65 | 4943 | |
41f1cec7 RD |
4944 | Return a reference to the current wxApp object. |
4945 | """ | |
423f194a | 4946 | return _core.GetApp(*args, **kwargs) |
d14a1e28 RD |
4947 | #---------------------------------------------------------------------- |
4948 | ||
4949 | class PyOnDemandOutputWindow: | |
44127b65 RD |
4950 | """ |
4951 | A class that can be used for redirecting Python's stdout and | |
4952 | stderr streams. It will do nothing until something is wrriten to | |
4953 | the stream at which point it will create a Frame with a text area | |
4954 | and write the text there. | |
4955 | """ | |
d14a1e28 RD |
4956 | def __init__(self, title = "wxPython: stdout/stderr"): |
4957 | self.frame = None | |
4958 | self.title = title | |
4959 | self.parent = None | |
4960 | ||
4961 | def SetParent(self, parent): | |
44127b65 | 4962 | """Set the window to be used as the popup Frame's parent.""" |
d14a1e28 RD |
4963 | self.parent = parent |
4964 | ||
44127b65 RD |
4965 | |
4966 | def CreateOutputWindow(self, st): | |
4967 | self.frame = wx.Frame(self.parent, -1, self.title, | |
4968 | style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) | |
4969 | self.text = wxTextCtrl(self.frame, -1, "", | |
4970 | style = wx.TE_MULTILINE | wx.TE_READONLY) | |
4971 | self.frame.SetSize((450, 300)) | |
4972 | self.frame.Show(True) | |
4973 | EVT_CLOSE(self.frame, self.OnCloseWindow) | |
4974 | ||
d14a1e28 RD |
4975 | |
4976 | # These methods provide the file-like output behaviour. | |
44127b65 RD |
4977 | def write(self, text): |
4978 | """ | |
4979 | Create the output window if needed and write the string to it. | |
4980 | If not called in the context of the gui thread then uses | |
4981 | CallAfter to do the work there. | |
4982 | """ | |
4983 | if self.frame is None: | |
4984 | if not wx.Thread_IsMain(): | |
4985 | wx.CallAfter(self.CreateOutputWindow, text) | |
4986 | else: | |
4987 | self.CreateOutputWindow(text) | |
4988 | else: | |
4989 | if not wx.Thread_IsMain(): | |
4990 | wx.CallAfter(self.text.AppendText, text) | |
4991 | else: | |
4992 | self.text.AppendText(text) | |
4993 | ||
d14a1e28 RD |
4994 | |
4995 | def close(self): | |
44127b65 RD |
4996 | if self.frame is not None: |
4997 | wx.CallAfter(self.frame.Close) | |
4998 | ||
d14a1e28 | 4999 | |
44127b65 RD |
5000 | def OnCloseWindow(self, event): |
5001 | if self.frame is not None: | |
5002 | self.frame.Destroy() | |
5003 | self.frame = None | |
5004 | self.text = None | |
d14a1e28 RD |
5005 | |
5006 | #---------------------------------------------------------------------- | |
d14a1e28 RD |
5007 | |
5008 | _defRedirect = (wx.Platform == '__WXMSW__' or wx.Platform == '__WXMAC__') | |
5009 | ||
5010 | class App(wx.PyApp): | |
44127b65 RD |
5011 | """ |
5012 | The main application class. Derive from this and implement an OnInit | |
5013 | method that creates a frame and then calls self.SetTopWindow(frame) | |
5014 | """ | |
d14a1e28 RD |
5015 | outputWindowClass = PyOnDemandOutputWindow |
5016 | ||
5017 | def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False): | |
5018 | wx.PyApp.__init__(self) | |
5019 | ||
5020 | if wx.Platform == "__WXMAC__": | |
5021 | try: | |
5022 | import MacOS | |
5023 | if not MacOS.WMAvailable(): | |
5024 | print """\ | |
5025 | This program needs access to the screen. Please run with 'pythonw', | |
5026 | not 'python', and only when you are logged in on the main display of | |
5027 | your Mac.""" | |
5028 | _sys.exit(1) | |
5029 | except: | |
5030 | pass | |
5031 | ||
5032 | # This has to be done before OnInit | |
5033 | self.SetUseBestVisual(useBestVisual) | |
5034 | ||
5035 | # Set the default handler for SIGINT. This fixes a problem | |
5036 | # where if Ctrl-C is pressed in the console that started this | |
5037 | # app then it will not appear to do anything, (not even send | |
5038 | # KeyboardInterrupt???) but will later segfault on exit. By | |
5039 | # setting the default handler then the app will exit, as | |
5040 | # expected (depending on platform.) | |
5041 | try: | |
5042 | import signal | |
5043 | signal.signal(signal.SIGINT, signal.SIG_DFL) | |
5044 | except: | |
5045 | pass | |
5046 | ||
5047 | # Save and redirect the stdio to a window? | |
5048 | self.stdioWin = None | |
5049 | self.saveStdio = (_sys.stdout, _sys.stderr) | |
5050 | if redirect: | |
5051 | self.RedirectStdio(filename) | |
5052 | ||
5053 | # This finishes the initialization of wxWindows and then calls | |
5054 | # the OnInit that should be present in the derived class | |
5055 | self._BootstrapApp() | |
5056 | ||
5057 | ||
5058 | def __del__(self): | |
5059 | try: | |
5060 | self.RestoreStdio() # Just in case the MainLoop was overridden | |
5061 | except: | |
5062 | pass | |
5063 | ||
5064 | ||
5065 | def SetTopWindow(self, frame): | |
41f1cec7 | 5066 | """Set the \"main\" top level window""" |
d14a1e28 RD |
5067 | if self.stdioWin: |
5068 | self.stdioWin.SetParent(frame) | |
5069 | wx.PyApp.SetTopWindow(self, frame) | |
5070 | ||
5071 | ||
5072 | def MainLoop(self): | |
41f1cec7 | 5073 | """Execute the main GUI event loop""" |
d14a1e28 RD |
5074 | wx.PyApp.MainLoop(self) |
5075 | self.RestoreStdio() | |
5076 | ||
5077 | ||
5078 | def RedirectStdio(self, filename): | |
41f1cec7 | 5079 | """Redirect sys.stdout and sys.stderr to a file or a popup window.""" |
d14a1e28 RD |
5080 | if filename: |
5081 | _sys.stdout = _sys.stderr = open(filename, 'a') | |
5082 | else: | |
5083 | self.stdioWin = self.outputWindowClass() | |
5084 | _sys.stdout = _sys.stderr = self.stdioWin | |
5085 | ||
5086 | ||
5087 | def RestoreStdio(self): | |
5088 | _sys.stdout, _sys.stderr = self.saveStdio | |
5089 | ||
5090 | ||
5091 | ||
5092 | # change from wxPyApp_ to wxApp_ | |
5093 | App_GetMacSupportPCMenuShortcuts = _core.PyApp_GetMacSupportPCMenuShortcuts | |
5094 | App_GetMacAboutMenuItemId = _core.PyApp_GetMacAboutMenuItemId | |
5095 | App_GetMacPreferencesMenuItemId = _core.PyApp_GetMacPreferencesMenuItemId | |
5096 | App_GetMacExitMenuItemId = _core.PyApp_GetMacExitMenuItemId | |
5097 | App_GetMacHelpMenuTitleName = _core.PyApp_GetMacHelpMenuTitleName | |
5098 | App_SetMacSupportPCMenuShortcuts = _core.PyApp_SetMacSupportPCMenuShortcuts | |
5099 | App_SetMacAboutMenuItemId = _core.PyApp_SetMacAboutMenuItemId | |
5100 | App_SetMacPreferencesMenuItemId = _core.PyApp_SetMacPreferencesMenuItemId | |
5101 | App_SetMacExitMenuItemId = _core.PyApp_SetMacExitMenuItemId | |
5102 | App_SetMacHelpMenuTitleName = _core.PyApp_SetMacHelpMenuTitleName | |
5103 | App_GetComCtl32Version = _core.PyApp_GetComCtl32Version | |
5104 | ||
5105 | #---------------------------------------------------------------------------- | |
5106 | ||
5107 | class PySimpleApp(wx.App): | |
44127b65 RD |
5108 | """ |
5109 | A simple application class. You can just create one of these and | |
5110 | then then make your top level windows later, and not have to worry | |
5111 | about OnInit.""" | |
5112 | ||
5113 | def __init__(self, redirect=False, filename=None, useBestVisual=False): | |
5114 | wx.App.__init__(self, redirect, filename, useBestVisual) | |
5115 | ||
d14a1e28 RD |
5116 | def OnInit(self): |
5117 | wx.InitAllImageHandlers() | |
5118 | return True | |
5119 | ||
5120 | ||
44127b65 | 5121 | # Is anybody using this one? |
d14a1e28 RD |
5122 | class PyWidgetTester(wx.App): |
5123 | def __init__(self, size = (250, 100)): | |
5124 | self.size = size | |
5125 | wx.App.__init__(self, 0) | |
5126 | ||
5127 | def OnInit(self): | |
5128 | self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size) | |
5129 | self.SetTopWindow(self.frame) | |
5130 | return True | |
5131 | ||
5132 | def SetWidget(self, widgetClass, *args): | |
5133 | w = widgetClass(self.frame, *args) | |
5134 | self.frame.Show(True) | |
5135 | ||
5136 | #---------------------------------------------------------------------------- | |
5137 | # DO NOT hold any other references to this object. This is how we | |
5138 | # know when to cleanup system resources that wxWin is holding. When | |
5139 | # the sys module is unloaded, the refcount on sys.__wxPythonCleanup | |
5140 | # goes to zero and it calls the wxApp_CleanUp function. | |
5141 | ||
5142 | class __wxPyCleanup: | |
5143 | def __init__(self): | |
5144 | self.cleanup = _core.App_CleanUp | |
5145 | def __del__(self): | |
5146 | self.cleanup() | |
5147 | ||
5148 | _sys.__wxPythonCleanup = __wxPyCleanup() | |
5149 | ||
5150 | ## # another possible solution, but it gets called too early... | |
5151 | ## if sys.version[0] == '2': | |
5152 | ## import atexit | |
5153 | ## atexit.register(_core.wxApp_CleanUp) | |
5154 | ## else: | |
5155 | ## sys.exitfunc = _core.wxApp_CleanUp | |
5156 | ||
5157 | ||
5158 | #---------------------------------------------------------------------------- | |
5159 | ||
5160 | #--------------------------------------------------------------------------- | |
5161 | ||
41f1cec7 RD |
5162 | class AcceleratorEntry(object): |
5163 | def __repr__(self): | |
5164 | return "<%s.%s; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5165 | def __init__(self, *args, **kwargs): | |
5166 | """__init__(int flags=0, int keyCode=0, int cmd=0, MenuItem item=None) -> AcceleratorEntry""" | |
5167 | newobj = _core.new_AcceleratorEntry(*args, **kwargs) | |
5168 | self.this = newobj.this | |
5169 | self.thisown = 1 | |
5170 | del newobj.thisown | |
5171 | def __del__(self, destroy=_core.delete_AcceleratorEntry): | |
5172 | """__del__()""" | |
5173 | try: | |
5174 | if self.thisown: destroy(self) | |
5175 | except: pass | |
5176 | ||
5177 | def Set(*args, **kwargs): | |
5178 | """Set(int flags, int keyCode, int cmd, MenuItem item=None)""" | |
5179 | return _core.AcceleratorEntry_Set(*args, **kwargs) | |
5180 | ||
5181 | def SetMenuItem(*args, **kwargs): | |
5182 | """SetMenuItem(MenuItem item)""" | |
5183 | return _core.AcceleratorEntry_SetMenuItem(*args, **kwargs) | |
5184 | ||
5185 | def GetMenuItem(*args, **kwargs): | |
5186 | """GetMenuItem() -> MenuItem""" | |
5187 | return _core.AcceleratorEntry_GetMenuItem(*args, **kwargs) | |
5188 | ||
5189 | def GetFlags(*args, **kwargs): | |
5190 | """GetFlags() -> int""" | |
5191 | return _core.AcceleratorEntry_GetFlags(*args, **kwargs) | |
5192 | ||
5193 | def GetKeyCode(*args, **kwargs): | |
5194 | """GetKeyCode() -> int""" | |
5195 | return _core.AcceleratorEntry_GetKeyCode(*args, **kwargs) | |
5196 | ||
5197 | def GetCommand(*args, **kwargs): | |
5198 | """GetCommand() -> int""" | |
5199 | return _core.AcceleratorEntry_GetCommand(*args, **kwargs) | |
5200 | ||
5201 | ||
5202 | class AcceleratorEntryPtr(AcceleratorEntry): | |
5203 | def __init__(self, this): | |
5204 | self.this = this | |
5205 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5206 | self.__class__ = AcceleratorEntry | |
5207 | _core.AcceleratorEntry_swigregister(AcceleratorEntryPtr) | |
5208 | ||
5209 | class AcceleratorTable(Object): | |
5210 | def __repr__(self): | |
5211 | return "<%s.%s; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
5212 | def __init__(self, *args, **kwargs): | |
5213 | """ | |
5214 | __init__(entries) -> AcceleratorTable | |
5215 | ||
5216 | Construct an AcceleratorTable from a list of AcceleratorEntry items or | |
5217 | 3-tuples (flags, keyCode, cmdID) | |
5218 | """ | |
5219 | newobj = _core.new_AcceleratorTable(*args, **kwargs) | |
5220 | self.this = newobj.this | |
5221 | self.thisown = 1 | |
5222 | del newobj.thisown | |
5223 | def __del__(self, destroy=_core.delete_AcceleratorTable): | |
5224 | """__del__()""" | |
5225 | try: | |
5226 | if self.thisown: destroy(self) | |
5227 | except: pass | |
5228 | ||
5229 | def Ok(*args, **kwargs): | |
5230 | """Ok() -> bool""" | |
5231 | return _core.AcceleratorTable_Ok(*args, **kwargs) | |
5232 | ||
5233 | ||
5234 | class AcceleratorTablePtr(AcceleratorTable): | |
5235 | def __init__(self, this): | |
5236 | self.this = this | |
5237 | if not hasattr(self,"thisown"): self.thisown = 0 | |
5238 | self.__class__ = AcceleratorTable | |
5239 | _core.AcceleratorTable_swigregister(AcceleratorTablePtr) | |
5240 | ||
5241 | ||
5242 | def GetAccelFromString(*args, **kwargs): | |
5243 | """GetAccelFromString(wxString label) -> AcceleratorEntry""" | |
5244 | return _core.GetAccelFromString(*args, **kwargs) | |
5245 | #--------------------------------------------------------------------------- | |
5246 | ||
d14a1e28 | 5247 | class Window(EvtHandler): |
423f194a RD |
5248 | def __repr__(self): |
5249 | return "<%s.%s; proxy of C++ wxWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 5250 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
5251 | """ |
5252 | __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
5253 | long style=0, wxString name=PanelNameStr) -> Window | |
5254 | """ | |
d14a1e28 RD |
5255 | newobj = _core.new_Window(*args, **kwargs) |
5256 | self.this = newobj.this | |
5257 | self.thisown = 1 | |
5258 | del newobj.thisown | |
5259 | self._setOORInfo(self) | |
d14a1e28 | 5260 | |
423f194a | 5261 | def Create(*args, **kwargs): |
41f1cec7 RD |
5262 | """ |
5263 | Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
5264 | long style=0, wxString name=PanelNameStr) -> bool | |
5265 | """ | |
423f194a | 5266 | return _core.Window_Create(*args, **kwargs) |
d14a1e28 | 5267 | |
423f194a RD |
5268 | def Close(*args, **kwargs): |
5269 | """Close(bool force=False) -> bool""" | |
5270 | return _core.Window_Close(*args, **kwargs) | |
d14a1e28 | 5271 | |
423f194a | 5272 | def Destroy(*args, **kwargs): |
41f1cec7 RD |
5273 | """ |
5274 | Destroy() -> bool | |
d14a1e28 | 5275 | |
41f1cec7 RD |
5276 | Deletes the C++ object this Python object is a proxy for. |
5277 | """ | |
423f194a | 5278 | return _core.Window_Destroy(*args, **kwargs) |
d14a1e28 | 5279 | |
423f194a RD |
5280 | def DestroyChildren(*args, **kwargs): |
5281 | """DestroyChildren() -> bool""" | |
5282 | return _core.Window_DestroyChildren(*args, **kwargs) | |
d14a1e28 | 5283 | |
423f194a RD |
5284 | def IsBeingDeleted(*args, **kwargs): |
5285 | """IsBeingDeleted() -> bool""" | |
5286 | return _core.Window_IsBeingDeleted(*args, **kwargs) | |
d14a1e28 | 5287 | |
423f194a RD |
5288 | def SetTitle(*args, **kwargs): |
5289 | """SetTitle(wxString title)""" | |
5290 | return _core.Window_SetTitle(*args, **kwargs) | |
d14a1e28 | 5291 | |
423f194a RD |
5292 | def GetTitle(*args, **kwargs): |
5293 | """GetTitle() -> wxString""" | |
5294 | return _core.Window_GetTitle(*args, **kwargs) | |
d14a1e28 | 5295 | |
423f194a RD |
5296 | def SetLabel(*args, **kwargs): |
5297 | """SetLabel(wxString label)""" | |
5298 | return _core.Window_SetLabel(*args, **kwargs) | |
d14a1e28 | 5299 | |
423f194a RD |
5300 | def GetLabel(*args, **kwargs): |
5301 | """GetLabel() -> wxString""" | |
5302 | return _core.Window_GetLabel(*args, **kwargs) | |
d14a1e28 | 5303 | |
423f194a RD |
5304 | def SetName(*args, **kwargs): |
5305 | """SetName(wxString name)""" | |
5306 | return _core.Window_SetName(*args, **kwargs) | |
d14a1e28 | 5307 | |
423f194a RD |
5308 | def GetName(*args, **kwargs): |
5309 | """GetName() -> wxString""" | |
5310 | return _core.Window_GetName(*args, **kwargs) | |
d14a1e28 | 5311 | |
423f194a RD |
5312 | def SetId(*args, **kwargs): |
5313 | """SetId(int winid)""" | |
5314 | return _core.Window_SetId(*args, **kwargs) | |
d14a1e28 | 5315 | |
423f194a RD |
5316 | def GetId(*args, **kwargs): |
5317 | """GetId() -> int""" | |
5318 | return _core.Window_GetId(*args, **kwargs) | |
d14a1e28 | 5319 | |
423f194a RD |
5320 | def NewControlId(*args, **kwargs): |
5321 | """Window.NewControlId() -> int""" | |
5322 | return _core.Window_NewControlId(*args, **kwargs) | |
d14a1e28 | 5323 | |
423f194a RD |
5324 | NewControlId = staticmethod(NewControlId) |
5325 | def NextControlId(*args, **kwargs): | |
5326 | """Window.NextControlId(int winid) -> int""" | |
5327 | return _core.Window_NextControlId(*args, **kwargs) | |
d14a1e28 | 5328 | |
423f194a RD |
5329 | NextControlId = staticmethod(NextControlId) |
5330 | def PrevControlId(*args, **kwargs): | |
5331 | """Window.PrevControlId(int winid) -> int""" | |
5332 | return _core.Window_PrevControlId(*args, **kwargs) | |
d14a1e28 | 5333 | |
423f194a RD |
5334 | PrevControlId = staticmethod(PrevControlId) |
5335 | def SetSize(*args, **kwargs): | |
5336 | """SetSize(Size size)""" | |
5337 | return _core.Window_SetSize(*args, **kwargs) | |
d14a1e28 | 5338 | |
423f194a RD |
5339 | def SetDimensions(*args, **kwargs): |
5340 | """SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
5341 | return _core.Window_SetDimensions(*args, **kwargs) | |
d14a1e28 | 5342 | |
423f194a RD |
5343 | def SetRect(*args, **kwargs): |
5344 | """SetRect(Rect rect, int sizeFlags=SIZE_AUTO)""" | |
5345 | return _core.Window_SetRect(*args, **kwargs) | |
d14a1e28 | 5346 | |
423f194a RD |
5347 | def SetSizeWH(*args, **kwargs): |
5348 | """SetSizeWH(int width, int height)""" | |
5349 | return _core.Window_SetSizeWH(*args, **kwargs) | |
d14a1e28 | 5350 | |
423f194a RD |
5351 | def Move(*args, **kwargs): |
5352 | """Move(Point pt, int flags=SIZE_USE_EXISTING)""" | |
5353 | return _core.Window_Move(*args, **kwargs) | |
d14a1e28 | 5354 | |
423f194a RD |
5355 | SetPosition = Move |
5356 | def MoveXY(*args, **kwargs): | |
5357 | """MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)""" | |
5358 | return _core.Window_MoveXY(*args, **kwargs) | |
5359 | ||
5360 | def Raise(*args, **kwargs): | |
5361 | """Raise()""" | |
5362 | return _core.Window_Raise(*args, **kwargs) | |
5363 | ||
5364 | def Lower(*args, **kwargs): | |
5365 | """Lower()""" | |
5366 | return _core.Window_Lower(*args, **kwargs) | |
5367 | ||
5368 | def SetClientSize(*args, **kwargs): | |
5369 | """SetClientSize(Size size)""" | |
5370 | return _core.Window_SetClientSize(*args, **kwargs) | |
5371 | ||
5372 | def SetClientSizeWH(*args, **kwargs): | |
5373 | """SetClientSizeWH(int width, int height)""" | |
5374 | return _core.Window_SetClientSizeWH(*args, **kwargs) | |
5375 | ||
5376 | def SetClientRect(*args, **kwargs): | |
5377 | """SetClientRect(Rect rect)""" | |
5378 | return _core.Window_SetClientRect(*args, **kwargs) | |
5379 | ||
5380 | def GetPosition(*args, **kwargs): | |
41f1cec7 RD |
5381 | """ |
5382 | GetPosition() -> Point | |
423f194a | 5383 | |
41f1cec7 RD |
5384 | Get the window's position. |
5385 | """ | |
423f194a RD |
5386 | return _core.Window_GetPosition(*args, **kwargs) |
5387 | ||
5388 | def GetPositionTuple(*args, **kwargs): | |
41f1cec7 RD |
5389 | """ |
5390 | GetPositionTuple() -> (x,y) | |
423f194a | 5391 | |
41f1cec7 RD |
5392 | Get the window's position. |
5393 | """ | |
423f194a RD |
5394 | return _core.Window_GetPositionTuple(*args, **kwargs) |
5395 | ||
5396 | def GetSize(*args, **kwargs): | |
41f1cec7 RD |
5397 | """ |
5398 | GetSize() -> Size | |
423f194a | 5399 | |
41f1cec7 RD |
5400 | Get the window size. |
5401 | """ | |
423f194a RD |
5402 | return _core.Window_GetSize(*args, **kwargs) |
5403 | ||
5404 | def GetSizeTuple(*args, **kwargs): | |
41f1cec7 RD |
5405 | """ |
5406 | GetSizeTuple() -> (width, height) | |
423f194a | 5407 | |
41f1cec7 RD |
5408 | Get the window size. |
5409 | """ | |
423f194a RD |
5410 | return _core.Window_GetSizeTuple(*args, **kwargs) |
5411 | ||
5412 | def GetRect(*args, **kwargs): | |
5413 | """GetRect() -> Rect""" | |
5414 | return _core.Window_GetRect(*args, **kwargs) | |
5415 | ||
5416 | def GetClientSize(*args, **kwargs): | |
41f1cec7 RD |
5417 | """ |
5418 | GetClientSize() -> Size | |
423f194a | 5419 | |
41f1cec7 RD |
5420 | Get the window's client size. |
5421 | """ | |
423f194a RD |
5422 | return _core.Window_GetClientSize(*args, **kwargs) |
5423 | ||
5424 | def GetClientSizeTuple(*args, **kwargs): | |
41f1cec7 RD |
5425 | """ |
5426 | GetClientSizeTuple() -> (width, height) | |
423f194a | 5427 | |
41f1cec7 RD |
5428 | Get the window's client size. |
5429 | """ | |
423f194a RD |
5430 | return _core.Window_GetClientSizeTuple(*args, **kwargs) |
5431 | ||
5432 | def GetClientAreaOrigin(*args, **kwargs): | |
5433 | """GetClientAreaOrigin() -> Point""" | |
5434 | return _core.Window_GetClientAreaOrigin(*args, **kwargs) | |
5435 | ||
5436 | def GetClientRect(*args, **kwargs): | |
5437 | """GetClientRect() -> Rect""" | |
5438 | return _core.Window_GetClientRect(*args, **kwargs) | |
5439 | ||
5440 | def GetBestSize(*args, **kwargs): | |
41f1cec7 RD |
5441 | """ |
5442 | GetBestSize() -> Size | |
423f194a | 5443 | |
41f1cec7 RD |
5444 | Get the size best suited for the window (in fact, minimal acceptable size |
5445 | using which it will still look "nice") | |
5446 | """ | |
423f194a RD |
5447 | return _core.Window_GetBestSize(*args, **kwargs) |
5448 | ||
5449 | def GetBestSizeTuple(*args, **kwargs): | |
41f1cec7 RD |
5450 | """ |
5451 | GetBestSizeTuple() -> (width, height) | |
423f194a | 5452 | |
41f1cec7 RD |
5453 | Get the size best suited for the window (in fact, minimal acceptable size |
5454 | using which it will still look "nice") | |
5455 | """ | |
423f194a RD |
5456 | return _core.Window_GetBestSizeTuple(*args, **kwargs) |
5457 | ||
5458 | def GetAdjustedBestSize(*args, **kwargs): | |
5459 | """GetAdjustedBestSize() -> Size""" | |
5460 | return _core.Window_GetAdjustedBestSize(*args, **kwargs) | |
5461 | ||
5462 | def Center(*args, **kwargs): | |
5463 | """Center(int direction=BOTH)""" | |
5464 | return _core.Window_Center(*args, **kwargs) | |
5465 | ||
5466 | Centre = Center | |
5467 | def CenterOnScreen(*args, **kwargs): | |
5468 | """CenterOnScreen(int dir=BOTH)""" | |
5469 | return _core.Window_CenterOnScreen(*args, **kwargs) | |
5470 | ||
5471 | CentreOnScreen = CenterOnScreen | |
5472 | def CenterOnParent(*args, **kwargs): | |
5473 | """CenterOnParent(int dir=BOTH)""" | |
5474 | return _core.Window_CenterOnParent(*args, **kwargs) | |
5475 | ||
5476 | CentreOnParent = CenterOnParent | |
5477 | def Fit(*args, **kwargs): | |
5478 | """Fit()""" | |
5479 | return _core.Window_Fit(*args, **kwargs) | |
5480 | ||
5481 | def FitInside(*args, **kwargs): | |
5482 | """FitInside()""" | |
5483 | return _core.Window_FitInside(*args, **kwargs) | |
5484 | ||
5485 | def SetSizeHints(*args, **kwargs): | |
41f1cec7 RD |
5486 | """ |
5487 | SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, | |
5488 | int incH=-1) | |
5489 | """ | |
423f194a RD |
5490 | return _core.Window_SetSizeHints(*args, **kwargs) |
5491 | ||
5492 | def SetVirtualSizeHints(*args, **kwargs): | |
5493 | """SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)""" | |
5494 | return _core.Window_SetVirtualSizeHints(*args, **kwargs) | |
5495 | ||
5496 | def GetMinWidth(*args, **kwargs): | |
5497 | """GetMinWidth() -> int""" | |
5498 | return _core.Window_GetMinWidth(*args, **kwargs) | |
5499 | ||
5500 | def GetMinHeight(*args, **kwargs): | |
5501 | """GetMinHeight() -> int""" | |
5502 | return _core.Window_GetMinHeight(*args, **kwargs) | |
5503 | ||
5504 | def GetMaxWidth(*args, **kwargs): | |
5505 | """GetMaxWidth() -> int""" | |
5506 | return _core.Window_GetMaxWidth(*args, **kwargs) | |
5507 | ||
5508 | def GetMaxHeight(*args, **kwargs): | |
5509 | """GetMaxHeight() -> int""" | |
5510 | return _core.Window_GetMaxHeight(*args, **kwargs) | |
5511 | ||
5512 | def GetMaxSize(*args, **kwargs): | |
5513 | """GetMaxSize() -> Size""" | |
5514 | return _core.Window_GetMaxSize(*args, **kwargs) | |
5515 | ||
5516 | def SetVirtualSize(*args, **kwargs): | |
41f1cec7 RD |
5517 | """ |
5518 | SetVirtualSize(Size size) | |
423f194a | 5519 | |
41f1cec7 RD |
5520 | Set the the virtual size of a window. For most windows this is just the |
5521 | client area of the window, but for some like scrolled windows it is more or | |
5522 | less independent of the screen window size. | |
5523 | """ | |
423f194a RD |
5524 | return _core.Window_SetVirtualSize(*args, **kwargs) |
5525 | ||
5526 | def SetVirtualSizeWH(*args, **kwargs): | |
41f1cec7 RD |
5527 | """ |
5528 | SetVirtualSizeWH(int w, int h) | |
423f194a | 5529 | |
41f1cec7 RD |
5530 | Set the the virtual size of a window. For most windows this is just the |
5531 | client area of the window, but for some like scrolled windows it is more or | |
5532 | less independent of the screen window size. | |
5533 | """ | |
423f194a RD |
5534 | return _core.Window_SetVirtualSizeWH(*args, **kwargs) |
5535 | ||
5536 | def GetVirtualSize(*args, **kwargs): | |
41f1cec7 RD |
5537 | """ |
5538 | GetVirtualSize() -> Size | |
423f194a | 5539 | |
41f1cec7 RD |
5540 | Get the the virtual size of the window. For most windows this is just |
5541 | the client area of the window, but for some like scrolled windows it is | |
5542 | more or less independent of the screen window size. | |
5543 | """ | |
423f194a RD |
5544 | return _core.Window_GetVirtualSize(*args, **kwargs) |
5545 | ||
5546 | def GetVirtualSizeTuple(*args, **kwargs): | |
41f1cec7 RD |
5547 | """ |
5548 | GetVirtualSizeTuple() -> (width, height) | |
423f194a | 5549 | |
41f1cec7 RD |
5550 | Get the the virtual size of the window. For most windows this is just |
5551 | the client area of the window, but for some like scrolled windows it is | |
5552 | more or less independent of the screen window size. | |
5553 | """ | |
423f194a RD |
5554 | return _core.Window_GetVirtualSizeTuple(*args, **kwargs) |
5555 | ||
5556 | def GetBestVirtualSize(*args, **kwargs): | |
5557 | """GetBestVirtualSize() -> Size""" | |
5558 | return _core.Window_GetBestVirtualSize(*args, **kwargs) | |
5559 | ||
5560 | def Show(*args, **kwargs): | |
5561 | """Show(bool show=True) -> bool""" | |
5562 | return _core.Window_Show(*args, **kwargs) | |
5563 | ||
5564 | def Hide(*args, **kwargs): | |
5565 | """Hide() -> bool""" | |
5566 | return _core.Window_Hide(*args, **kwargs) | |
5567 | ||
5568 | def Enable(*args, **kwargs): | |
5569 | """Enable(bool enable=True) -> bool""" | |
5570 | return _core.Window_Enable(*args, **kwargs) | |
5571 | ||
5572 | def Disable(*args, **kwargs): | |
5573 | """Disable() -> bool""" | |
5574 | return _core.Window_Disable(*args, **kwargs) | |
5575 | ||
5576 | def IsShown(*args, **kwargs): | |
5577 | """IsShown() -> bool""" | |
5578 | return _core.Window_IsShown(*args, **kwargs) | |
5579 | ||
5580 | def IsEnabled(*args, **kwargs): | |
5581 | """IsEnabled() -> bool""" | |
5582 | return _core.Window_IsEnabled(*args, **kwargs) | |
5583 | ||
5584 | def SetWindowStyleFlag(*args, **kwargs): | |
5585 | """SetWindowStyleFlag(long style)""" | |
5586 | return _core.Window_SetWindowStyleFlag(*args, **kwargs) | |
5587 | ||
5588 | def GetWindowStyleFlag(*args, **kwargs): | |
5589 | """GetWindowStyleFlag() -> long""" | |
5590 | return _core.Window_GetWindowStyleFlag(*args, **kwargs) | |
5591 | ||
5592 | def SetWindowStyle(*args, **kwargs): | |
5593 | """SetWindowStyle(long style)""" | |
5594 | return _core.Window_SetWindowStyle(*args, **kwargs) | |
5595 | ||
5596 | def GetWindowStyle(*args, **kwargs): | |
5597 | """GetWindowStyle() -> long""" | |
5598 | return _core.Window_GetWindowStyle(*args, **kwargs) | |
5599 | ||
5600 | def HasFlag(*args, **kwargs): | |
5601 | """HasFlag(int flag) -> bool""" | |
5602 | return _core.Window_HasFlag(*args, **kwargs) | |
5603 | ||
5604 | def IsRetained(*args, **kwargs): | |
5605 | """IsRetained() -> bool""" | |
5606 | return _core.Window_IsRetained(*args, **kwargs) | |
5607 | ||
5608 | def SetExtraStyle(*args, **kwargs): | |
5609 | """SetExtraStyle(long exStyle)""" | |
5610 | return _core.Window_SetExtraStyle(*args, **kwargs) | |
5611 | ||
5612 | def GetExtraStyle(*args, **kwargs): | |
5613 | """GetExtraStyle() -> long""" | |
5614 | return _core.Window_GetExtraStyle(*args, **kwargs) | |
5615 | ||
5616 | def MakeModal(*args, **kwargs): | |
5617 | """MakeModal(bool modal=True)""" | |
5618 | return _core.Window_MakeModal(*args, **kwargs) | |
5619 | ||
5620 | def SetThemeEnabled(*args, **kwargs): | |
5621 | """SetThemeEnabled(bool enableTheme)""" | |
5622 | return _core.Window_SetThemeEnabled(*args, **kwargs) | |
5623 | ||
5624 | def GetThemeEnabled(*args, **kwargs): | |
5625 | """GetThemeEnabled() -> bool""" | |
5626 | return _core.Window_GetThemeEnabled(*args, **kwargs) | |
5627 | ||
5628 | def ShouldInheritColours(*args, **kwargs): | |
5629 | """ShouldInheritColours() -> bool""" | |
5630 | return _core.Window_ShouldInheritColours(*args, **kwargs) | |
5631 | ||
5632 | def SetFocus(*args, **kwargs): | |
5633 | """SetFocus()""" | |
5634 | return _core.Window_SetFocus(*args, **kwargs) | |
5635 | ||
5636 | def SetFocusFromKbd(*args, **kwargs): | |
5637 | """SetFocusFromKbd()""" | |
5638 | return _core.Window_SetFocusFromKbd(*args, **kwargs) | |
5639 | ||
5640 | def FindFocus(*args, **kwargs): | |
5641 | """Window.FindFocus() -> Window""" | |
5642 | return _core.Window_FindFocus(*args, **kwargs) | |
5643 | ||
5644 | FindFocus = staticmethod(FindFocus) | |
5645 | def AcceptsFocus(*args, **kwargs): | |
5646 | """AcceptsFocus() -> bool""" | |
5647 | return _core.Window_AcceptsFocus(*args, **kwargs) | |
5648 | ||
5649 | def AcceptsFocusFromKeyboard(*args, **kwargs): | |
5650 | """AcceptsFocusFromKeyboard() -> bool""" | |
5651 | return _core.Window_AcceptsFocusFromKeyboard(*args, **kwargs) | |
5652 | ||
5653 | def GetDefaultItem(*args, **kwargs): | |
5654 | """GetDefaultItem() -> Window""" | |
5655 | return _core.Window_GetDefaultItem(*args, **kwargs) | |
5656 | ||
5657 | def SetDefaultItem(*args, **kwargs): | |
5658 | """SetDefaultItem(Window child) -> Window""" | |
5659 | return _core.Window_SetDefaultItem(*args, **kwargs) | |
5660 | ||
5661 | def SetTmpDefaultItem(*args, **kwargs): | |
5662 | """SetTmpDefaultItem(Window win)""" | |
5663 | return _core.Window_SetTmpDefaultItem(*args, **kwargs) | |
5664 | ||
5665 | def GetChildren(*args, **kwargs): | |
5666 | """GetChildren() -> PyObject""" | |
5667 | return _core.Window_GetChildren(*args, **kwargs) | |
5668 | ||
5669 | def GetParent(*args, **kwargs): | |
5670 | """GetParent() -> Window""" | |
5671 | return _core.Window_GetParent(*args, **kwargs) | |
5672 | ||
5673 | def GetGrandParent(*args, **kwargs): | |
5674 | """GetGrandParent() -> Window""" | |
5675 | return _core.Window_GetGrandParent(*args, **kwargs) | |
5676 | ||
5677 | def IsTopLevel(*args, **kwargs): | |
5678 | """IsTopLevel() -> bool""" | |
5679 | return _core.Window_IsTopLevel(*args, **kwargs) | |
5680 | ||
5681 | def Reparent(*args, **kwargs): | |
5682 | """Reparent(Window newParent) -> bool""" | |
5683 | return _core.Window_Reparent(*args, **kwargs) | |
5684 | ||
5685 | def AddChild(*args, **kwargs): | |
5686 | """AddChild(Window child)""" | |
5687 | return _core.Window_AddChild(*args, **kwargs) | |
5688 | ||
5689 | def RemoveChild(*args, **kwargs): | |
5690 | """RemoveChild(Window child)""" | |
5691 | return _core.Window_RemoveChild(*args, **kwargs) | |
5692 | ||
5693 | def FindWindowById(*args, **kwargs): | |
5694 | """FindWindowById(long winid) -> Window""" | |
5695 | return _core.Window_FindWindowById(*args, **kwargs) | |
5696 | ||
5697 | def FindWindowByName(*args, **kwargs): | |
5698 | """FindWindowByName(wxString name) -> Window""" | |
5699 | return _core.Window_FindWindowByName(*args, **kwargs) | |
5700 | ||
5701 | def GetEventHandler(*args, **kwargs): | |
5702 | """GetEventHandler() -> EvtHandler""" | |
5703 | return _core.Window_GetEventHandler(*args, **kwargs) | |
5704 | ||
5705 | def SetEventHandler(*args, **kwargs): | |
5706 | """SetEventHandler(EvtHandler handler)""" | |
5707 | return _core.Window_SetEventHandler(*args, **kwargs) | |
5708 | ||
5709 | def PushEventHandler(*args, **kwargs): | |
5710 | """PushEventHandler(EvtHandler handler)""" | |
5711 | return _core.Window_PushEventHandler(*args, **kwargs) | |
5712 | ||
5713 | def PopEventHandler(*args, **kwargs): | |
5714 | """PopEventHandler(bool deleteHandler=False) -> EvtHandler""" | |
5715 | return _core.Window_PopEventHandler(*args, **kwargs) | |
5716 | ||
5717 | def RemoveEventHandler(*args, **kwargs): | |
5718 | """RemoveEventHandler(EvtHandler handler) -> bool""" | |
5719 | return _core.Window_RemoveEventHandler(*args, **kwargs) | |
5720 | ||
5721 | def SetValidator(*args, **kwargs): | |
5722 | """SetValidator(Validator validator)""" | |
5723 | return _core.Window_SetValidator(*args, **kwargs) | |
5724 | ||
5725 | def GetValidator(*args, **kwargs): | |
5726 | """GetValidator() -> Validator""" | |
5727 | return _core.Window_GetValidator(*args, **kwargs) | |
5728 | ||
5729 | def SetAcceleratorTable(*args, **kwargs): | |
41f1cec7 | 5730 | """SetAcceleratorTable(AcceleratorTable accel)""" |
423f194a RD |
5731 | return _core.Window_SetAcceleratorTable(*args, **kwargs) |
5732 | ||
5733 | def GetAcceleratorTable(*args, **kwargs): | |
41f1cec7 | 5734 | """GetAcceleratorTable() -> AcceleratorTable""" |
423f194a RD |
5735 | return _core.Window_GetAcceleratorTable(*args, **kwargs) |
5736 | ||
5737 | def RegisterHotKey(*args, **kwargs): | |
5738 | """RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool""" | |
5739 | return _core.Window_RegisterHotKey(*args, **kwargs) | |
5740 | ||
5741 | def UnregisterHotKey(*args, **kwargs): | |
5742 | """UnregisterHotKey(int hotkeyId) -> bool""" | |
5743 | return _core.Window_UnregisterHotKey(*args, **kwargs) | |
5744 | ||
5745 | def ConvertDialogPointToPixels(*args, **kwargs): | |
5746 | """ConvertDialogPointToPixels(Point pt) -> Point""" | |
5747 | return _core.Window_ConvertDialogPointToPixels(*args, **kwargs) | |
5748 | ||
5749 | def ConvertDialogSizeToPixels(*args, **kwargs): | |
5750 | """ConvertDialogSizeToPixels(Size sz) -> Size""" | |
5751 | return _core.Window_ConvertDialogSizeToPixels(*args, **kwargs) | |
5752 | ||
5753 | def DLG_PNT(*args, **kwargs): | |
5754 | """DLG_PNT(Point pt) -> Point""" | |
5755 | return _core.Window_DLG_PNT(*args, **kwargs) | |
5756 | ||
5757 | def DLG_SZE(*args, **kwargs): | |
5758 | """DLG_SZE(Size sz) -> Size""" | |
5759 | return _core.Window_DLG_SZE(*args, **kwargs) | |
5760 | ||
5761 | def ConvertPixelPointToDialog(*args, **kwargs): | |
5762 | """ConvertPixelPointToDialog(Point pt) -> Point""" | |
5763 | return _core.Window_ConvertPixelPointToDialog(*args, **kwargs) | |
5764 | ||
5765 | def ConvertPixelSizeToDialog(*args, **kwargs): | |
5766 | """ConvertPixelSizeToDialog(Size sz) -> Size""" | |
5767 | return _core.Window_ConvertPixelSizeToDialog(*args, **kwargs) | |
5768 | ||
5769 | def WarpPointer(*args, **kwargs): | |
5770 | """WarpPointer(int x, int y)""" | |
5771 | return _core.Window_WarpPointer(*args, **kwargs) | |
5772 | ||
5773 | def CaptureMouse(*args, **kwargs): | |
5774 | """CaptureMouse()""" | |
5775 | return _core.Window_CaptureMouse(*args, **kwargs) | |
5776 | ||
5777 | def ReleaseMouse(*args, **kwargs): | |
5778 | """ReleaseMouse()""" | |
5779 | return _core.Window_ReleaseMouse(*args, **kwargs) | |
5780 | ||
5781 | def GetCapture(*args, **kwargs): | |
5782 | """Window.GetCapture() -> Window""" | |
5783 | return _core.Window_GetCapture(*args, **kwargs) | |
5784 | ||
5785 | GetCapture = staticmethod(GetCapture) | |
5786 | def HasCapture(*args, **kwargs): | |
5787 | """HasCapture() -> bool""" | |
5788 | return _core.Window_HasCapture(*args, **kwargs) | |
5789 | ||
5790 | def Refresh(*args, **kwargs): | |
5791 | """Refresh(bool eraseBackground=True, Rect rect=None)""" | |
5792 | return _core.Window_Refresh(*args, **kwargs) | |
5793 | ||
5794 | def RefreshRect(*args, **kwargs): | |
5795 | """RefreshRect(Rect rect)""" | |
5796 | return _core.Window_RefreshRect(*args, **kwargs) | |
5797 | ||
5798 | def Update(*args, **kwargs): | |
5799 | """Update()""" | |
5800 | return _core.Window_Update(*args, **kwargs) | |
5801 | ||
5802 | def ClearBackground(*args, **kwargs): | |
5803 | """ClearBackground()""" | |
5804 | return _core.Window_ClearBackground(*args, **kwargs) | |
5805 | ||
5806 | def Freeze(*args, **kwargs): | |
5807 | """Freeze()""" | |
5808 | return _core.Window_Freeze(*args, **kwargs) | |
5809 | ||
5810 | def Thaw(*args, **kwargs): | |
5811 | """Thaw()""" | |
5812 | return _core.Window_Thaw(*args, **kwargs) | |
5813 | ||
5814 | def PrepareDC(*args, **kwargs): | |
5815 | """PrepareDC(wxDC dc)""" | |
5816 | return _core.Window_PrepareDC(*args, **kwargs) | |
5817 | ||
5818 | def GetUpdateRegion(*args, **kwargs): | |
5819 | """GetUpdateRegion() -> wxRegion""" | |
5820 | return _core.Window_GetUpdateRegion(*args, **kwargs) | |
5821 | ||
5822 | def GetUpdateClientRect(*args, **kwargs): | |
5823 | """GetUpdateClientRect() -> Rect""" | |
5824 | return _core.Window_GetUpdateClientRect(*args, **kwargs) | |
5825 | ||
5826 | def IsExposed(*args, **kwargs): | |
5827 | """IsExposed(int x, int y, int w=1, int h=1) -> bool""" | |
5828 | return _core.Window_IsExposed(*args, **kwargs) | |
5829 | ||
5830 | def IsExposedPoint(*args, **kwargs): | |
5831 | """IsExposedPoint(Point pt) -> bool""" | |
5832 | return _core.Window_IsExposedPoint(*args, **kwargs) | |
5833 | ||
5834 | def isExposedRect(*args, **kwargs): | |
5835 | """isExposedRect(Rect rect) -> bool""" | |
5836 | return _core.Window_isExposedRect(*args, **kwargs) | |
5837 | ||
5838 | def SetBackgroundColour(*args, **kwargs): | |
5839 | """SetBackgroundColour(wxColour colour) -> bool""" | |
5840 | return _core.Window_SetBackgroundColour(*args, **kwargs) | |
5841 | ||
5842 | def SetForegroundColour(*args, **kwargs): | |
5843 | """SetForegroundColour(wxColour colour) -> bool""" | |
5844 | return _core.Window_SetForegroundColour(*args, **kwargs) | |
5845 | ||
5846 | def GetBackgroundColour(*args, **kwargs): | |
5847 | """GetBackgroundColour() -> wxColour""" | |
5848 | return _core.Window_GetBackgroundColour(*args, **kwargs) | |
5849 | ||
5850 | def GetForegroundColour(*args, **kwargs): | |
5851 | """GetForegroundColour() -> wxColour""" | |
5852 | return _core.Window_GetForegroundColour(*args, **kwargs) | |
5853 | ||
5854 | def SetCursor(*args, **kwargs): | |
5855 | """SetCursor(wxCursor cursor) -> bool""" | |
5856 | return _core.Window_SetCursor(*args, **kwargs) | |
5857 | ||
5858 | def GetCursor(*args, **kwargs): | |
5859 | """GetCursor() -> wxCursor""" | |
5860 | return _core.Window_GetCursor(*args, **kwargs) | |
5861 | ||
5862 | def SetFont(*args, **kwargs): | |
5863 | """SetFont(wxFont font) -> bool""" | |
5864 | return _core.Window_SetFont(*args, **kwargs) | |
5865 | ||
5866 | def GetFont(*args, **kwargs): | |
5867 | """GetFont() -> wxFont""" | |
5868 | return _core.Window_GetFont(*args, **kwargs) | |
5869 | ||
5870 | def SetCaret(*args, **kwargs): | |
5871 | """SetCaret(wxCaret caret)""" | |
5872 | return _core.Window_SetCaret(*args, **kwargs) | |
5873 | ||
5874 | def GetCaret(*args, **kwargs): | |
5875 | """GetCaret() -> wxCaret""" | |
5876 | return _core.Window_GetCaret(*args, **kwargs) | |
5877 | ||
5878 | def GetCharHeight(*args, **kwargs): | |
5879 | """GetCharHeight() -> int""" | |
5880 | return _core.Window_GetCharHeight(*args, **kwargs) | |
5881 | ||
5882 | def GetCharWidth(*args, **kwargs): | |
5883 | """GetCharWidth() -> int""" | |
5884 | return _core.Window_GetCharWidth(*args, **kwargs) | |
5885 | ||
5886 | def GetTextExtent(*args, **kwargs): | |
41f1cec7 RD |
5887 | """ |
5888 | GetTextExtent(wxString string) -> (width, height) | |
423f194a | 5889 | |
41f1cec7 RD |
5890 | Get the width and height of the text using the current font. |
5891 | """ | |
423f194a RD |
5892 | return _core.Window_GetTextExtent(*args, **kwargs) |
5893 | ||
5894 | def GetFullTextExtent(*args, **kwargs): | |
41f1cec7 RD |
5895 | """ |
5896 | GetFullTextExtent(wxString string, Font font=None) -> | |
5897 | (width, height, descent, externalLeading) | |
423f194a | 5898 | |
41f1cec7 RD |
5899 | Get the width, height, decent and leading of the text using the current or specified font. |
5900 | """ | |
423f194a RD |
5901 | return _core.Window_GetFullTextExtent(*args, **kwargs) |
5902 | ||
5903 | def ClientToScreenXY(*args, **kwargs): | |
5904 | """ClientToScreenXY(int x, int y)""" | |
5905 | return _core.Window_ClientToScreenXY(*args, **kwargs) | |
5906 | ||
5907 | def ScreenToClientXY(*args, **kwargs): | |
5908 | """ScreenToClientXY(int x, int y)""" | |
5909 | return _core.Window_ScreenToClientXY(*args, **kwargs) | |
5910 | ||
5911 | def ClientToScreen(*args, **kwargs): | |
5912 | """ClientToScreen(Point pt) -> Point""" | |
5913 | return _core.Window_ClientToScreen(*args, **kwargs) | |
5914 | ||
5915 | def ScreenToClient(*args, **kwargs): | |
5916 | """ScreenToClient(Point pt) -> Point""" | |
5917 | return _core.Window_ScreenToClient(*args, **kwargs) | |
5918 | ||
5919 | def HitTestXY(*args, **kwargs): | |
5920 | """HitTestXY(int x, int y) -> wxHitTest""" | |
5921 | return _core.Window_HitTestXY(*args, **kwargs) | |
5922 | ||
5923 | def HitTest(*args, **kwargs): | |
5924 | """HitTest(Point pt) -> wxHitTest""" | |
5925 | return _core.Window_HitTest(*args, **kwargs) | |
5926 | ||
5927 | def GetBorderFlags(*args, **kwargs): | |
5928 | """GetBorderFlags(long flags) -> wxBorder""" | |
5929 | return _core.Window_GetBorderFlags(*args, **kwargs) | |
5930 | ||
5931 | def GetBorder(*args, **kwargs): | |
5932 | """GetBorder() -> wxBorder""" | |
5933 | return _core.Window_GetBorder(*args, **kwargs) | |
5934 | ||
5935 | def UpdateWindowUI(*args, **kwargs): | |
5936 | """UpdateWindowUI(long flags=UPDATE_UI_NONE)""" | |
5937 | return _core.Window_UpdateWindowUI(*args, **kwargs) | |
5938 | ||
5939 | def PopupMenuXY(*args, **kwargs): | |
5940 | """PopupMenuXY(Menu menu, int x, int y) -> bool""" | |
5941 | return _core.Window_PopupMenuXY(*args, **kwargs) | |
5942 | ||
5943 | def PopupMenu(*args, **kwargs): | |
5944 | """PopupMenu(Menu menu, Point pos) -> bool""" | |
5945 | return _core.Window_PopupMenu(*args, **kwargs) | |
5946 | ||
5947 | def GetHandle(*args, **kwargs): | |
5948 | """GetHandle() -> long""" | |
5949 | return _core.Window_GetHandle(*args, **kwargs) | |
5950 | ||
5951 | def HasScrollbar(*args, **kwargs): | |
5952 | """HasScrollbar(int orient) -> bool""" | |
5953 | return _core.Window_HasScrollbar(*args, **kwargs) | |
5954 | ||
5955 | def SetScrollbar(*args, **kwargs): | |
5956 | """SetScrollbar(int orient, int pos, int thumbvisible, int range, bool refresh=True)""" | |
5957 | return _core.Window_SetScrollbar(*args, **kwargs) | |
5958 | ||
5959 | def SetScrollPos(*args, **kwargs): | |
5960 | """SetScrollPos(int orient, int pos, bool refresh=True)""" | |
5961 | return _core.Window_SetScrollPos(*args, **kwargs) | |
5962 | ||
5963 | def GetScrollPos(*args, **kwargs): | |
5964 | """GetScrollPos(int orient) -> int""" | |
5965 | return _core.Window_GetScrollPos(*args, **kwargs) | |
5966 | ||
5967 | def GetScrollThumb(*args, **kwargs): | |
5968 | """GetScrollThumb(int orient) -> int""" | |
5969 | return _core.Window_GetScrollThumb(*args, **kwargs) | |
5970 | ||
5971 | def GetScrollRange(*args, **kwargs): | |
5972 | """GetScrollRange(int orient) -> int""" | |
5973 | return _core.Window_GetScrollRange(*args, **kwargs) | |
5974 | ||
5975 | def ScrollWindow(*args, **kwargs): | |
5976 | """ScrollWindow(int dx, int dy, Rect rect=None)""" | |
5977 | return _core.Window_ScrollWindow(*args, **kwargs) | |
5978 | ||
5979 | def ScrollLines(*args, **kwargs): | |
5980 | """ScrollLines(int lines) -> bool""" | |
5981 | return _core.Window_ScrollLines(*args, **kwargs) | |
5982 | ||
5983 | def ScrollPages(*args, **kwargs): | |
5984 | """ScrollPages(int pages) -> bool""" | |
5985 | return _core.Window_ScrollPages(*args, **kwargs) | |
5986 | ||
5987 | def LineUp(*args, **kwargs): | |
5988 | """LineUp() -> bool""" | |
5989 | return _core.Window_LineUp(*args, **kwargs) | |
5990 | ||
5991 | def LineDown(*args, **kwargs): | |
5992 | """LineDown() -> bool""" | |
5993 | return _core.Window_LineDown(*args, **kwargs) | |
5994 | ||
5995 | def PageUp(*args, **kwargs): | |
5996 | """PageUp() -> bool""" | |
5997 | return _core.Window_PageUp(*args, **kwargs) | |
5998 | ||
5999 | def PageDown(*args, **kwargs): | |
6000 | """PageDown() -> bool""" | |
6001 | return _core.Window_PageDown(*args, **kwargs) | |
6002 | ||
6003 | def SetHelpText(*args, **kwargs): | |
6004 | """SetHelpText(wxString text)""" | |
6005 | return _core.Window_SetHelpText(*args, **kwargs) | |
6006 | ||
6007 | def SetHelpTextForId(*args, **kwargs): | |
6008 | """SetHelpTextForId(wxString text)""" | |
6009 | return _core.Window_SetHelpTextForId(*args, **kwargs) | |
6010 | ||
6011 | def GetHelpText(*args, **kwargs): | |
6012 | """GetHelpText() -> wxString""" | |
6013 | return _core.Window_GetHelpText(*args, **kwargs) | |
6014 | ||
6015 | def SetToolTipString(*args, **kwargs): | |
6016 | """SetToolTipString(wxString tip)""" | |
6017 | return _core.Window_SetToolTipString(*args, **kwargs) | |
6018 | ||
6019 | def SetToolTip(*args, **kwargs): | |
6020 | """SetToolTip(wxToolTip tip)""" | |
6021 | return _core.Window_SetToolTip(*args, **kwargs) | |
6022 | ||
6023 | def GetToolTip(*args, **kwargs): | |
6024 | """GetToolTip() -> wxToolTip""" | |
6025 | return _core.Window_GetToolTip(*args, **kwargs) | |
6026 | ||
6027 | def SetDropTarget(*args, **kwargs): | |
44127b65 | 6028 | """SetDropTarget(wxPyDropTarget dropTarget)""" |
423f194a RD |
6029 | val = _core.Window_SetDropTarget(*args, **kwargs) |
6030 | args[1].thisown = 0 | |
6031 | return val | |
6032 | ||
6033 | def GetDropTarget(*args, **kwargs): | |
44127b65 | 6034 | """GetDropTarget() -> wxPyDropTarget""" |
423f194a RD |
6035 | return _core.Window_GetDropTarget(*args, **kwargs) |
6036 | ||
6037 | def SetConstraints(*args, **kwargs): | |
6038 | """SetConstraints(LayoutConstraints constraints)""" | |
6039 | return _core.Window_SetConstraints(*args, **kwargs) | |
6040 | ||
6041 | def GetConstraints(*args, **kwargs): | |
6042 | """GetConstraints() -> LayoutConstraints""" | |
6043 | return _core.Window_GetConstraints(*args, **kwargs) | |
6044 | ||
6045 | def SetAutoLayout(*args, **kwargs): | |
6046 | """SetAutoLayout(bool autoLayout)""" | |
6047 | return _core.Window_SetAutoLayout(*args, **kwargs) | |
6048 | ||
6049 | def GetAutoLayout(*args, **kwargs): | |
6050 | """GetAutoLayout() -> bool""" | |
6051 | return _core.Window_GetAutoLayout(*args, **kwargs) | |
6052 | ||
6053 | def Layout(*args, **kwargs): | |
6054 | """Layout() -> bool""" | |
6055 | return _core.Window_Layout(*args, **kwargs) | |
6056 | ||
6057 | def SetSizer(*args, **kwargs): | |
6058 | """SetSizer(Sizer sizer, bool deleteOld=True)""" | |
6059 | return _core.Window_SetSizer(*args, **kwargs) | |
6060 | ||
6061 | def SetSizerAndFit(*args, **kwargs): | |
6062 | """SetSizerAndFit(Sizer sizer, bool deleteOld=True)""" | |
6063 | return _core.Window_SetSizerAndFit(*args, **kwargs) | |
6064 | ||
6065 | def GetSizer(*args, **kwargs): | |
6066 | """GetSizer() -> Sizer""" | |
6067 | return _core.Window_GetSizer(*args, **kwargs) | |
6068 | ||
6069 | def SetContainingSizer(*args, **kwargs): | |
6070 | """SetContainingSizer(Sizer sizer)""" | |
6071 | return _core.Window_SetContainingSizer(*args, **kwargs) | |
6072 | ||
6073 | def GetContainingSizer(*args, **kwargs): | |
6074 | """GetContainingSizer() -> Sizer""" | |
6075 | return _core.Window_GetContainingSizer(*args, **kwargs) | |
6076 | ||
6077 | def PostCreate(self, pre): | |
6078 | """Phase 3 of the 2-phase create <wink!> | |
6079 | Call this method after precreating the window with the 2-phase create method.""" | |
6080 | self.this = pre.this | |
6081 | self.thisown = pre.thisown | |
6082 | pre.thisown = 0 | |
6083 | if hasattr(self, '_setOORInfo'): | |
6084 | self._setOORInfo(self) | |
6085 | if hasattr(self, '_setCallbackInfo'): | |
6086 | self._setCallbackInfo(self, self.__class__) | |
6087 | ||
6088 | ||
6089 | class WindowPtr(Window): | |
6090 | def __init__(self, this): | |
6091 | self.this = this | |
6092 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6093 | self.__class__ = Window | |
6094 | _core.Window_swigregister(WindowPtr) | |
41f1cec7 | 6095 | NullAcceleratorTable = cvar.NullAcceleratorTable |
423f194a RD |
6096 | PanelNameStr = cvar.PanelNameStr |
6097 | ||
6098 | def PreWindow(*args, **kwargs): | |
6099 | """PreWindow() -> Window""" | |
6100 | val = _core.new_PreWindow(*args, **kwargs) | |
6101 | val.thisown = 1 | |
6102 | return val | |
6103 | ||
6104 | def Window_NewControlId(*args, **kwargs): | |
6105 | """Window_NewControlId() -> int""" | |
6106 | return _core.Window_NewControlId(*args, **kwargs) | |
6107 | ||
6108 | def Window_NextControlId(*args, **kwargs): | |
6109 | """Window_NextControlId(int winid) -> int""" | |
6110 | return _core.Window_NextControlId(*args, **kwargs) | |
6111 | ||
6112 | def Window_PrevControlId(*args, **kwargs): | |
6113 | """Window_PrevControlId(int winid) -> int""" | |
6114 | return _core.Window_PrevControlId(*args, **kwargs) | |
6115 | ||
6116 | def Window_FindFocus(*args, **kwargs): | |
6117 | """Window_FindFocus() -> Window""" | |
6118 | return _core.Window_FindFocus(*args, **kwargs) | |
6119 | ||
6120 | def Window_GetCapture(*args, **kwargs): | |
6121 | """Window_GetCapture() -> Window""" | |
6122 | return _core.Window_GetCapture(*args, **kwargs) | |
6123 | ||
6124 | def DLG_PNT(win, point_or_x, y=None): | |
6125 | if y is None: | |
6126 | return win.ConvertDialogPointToPixels(point_or_x) | |
6127 | else: | |
100c4552 | 6128 | return win.ConvertDialogPointToPixels(wx.Point(point_or_x, y)) |
423f194a RD |
6129 | |
6130 | def DLG_SZE(win, size_width, height=None): | |
6131 | if height is None: | |
6132 | return win.ConvertDialogSizeToPixels(size_width) | |
6133 | else: | |
100c4552 | 6134 | return win.ConvertDialogSizeToPixels(wx.Size(size_width, height)) |
423f194a RD |
6135 | |
6136 | ||
6137 | def FindWindowById(*args, **kwargs): | |
6138 | """FindWindowById(long id, Window parent=None) -> Window""" | |
6139 | return _core.FindWindowById(*args, **kwargs) | |
6140 | ||
6141 | def FindWindowByName(*args, **kwargs): | |
6142 | """FindWindowByName(wxString name, Window parent=None) -> Window""" | |
6143 | return _core.FindWindowByName(*args, **kwargs) | |
6144 | ||
6145 | def FindWindowByLabel(*args, **kwargs): | |
6146 | """FindWindowByLabel(wxString label, Window parent=None) -> Window""" | |
6147 | return _core.FindWindowByLabel(*args, **kwargs) | |
6148 | ||
6149 | def Window_FromHWND(*args, **kwargs): | |
6150 | """Window_FromHWND(unsigned long hWnd) -> Window""" | |
6151 | return _core.Window_FromHWND(*args, **kwargs) | |
6152 | #--------------------------------------------------------------------------- | |
6153 | ||
6154 | class Validator(EvtHandler): | |
423f194a RD |
6155 | def __repr__(self): |
6156 | return "<%s.%s; proxy of C++ wxValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
6157 | def __init__(self, *args, **kwargs): | |
6158 | """__init__() -> Validator""" | |
6159 | newobj = _core.new_Validator(*args, **kwargs) | |
d14a1e28 RD |
6160 | self.this = newobj.this |
6161 | self.thisown = 1 | |
6162 | del newobj.thisown | |
6163 | self._setOORInfo(self) | |
423f194a RD |
6164 | |
6165 | def Clone(*args, **kwargs): | |
6166 | """Clone() -> Validator""" | |
6167 | return _core.Validator_Clone(*args, **kwargs) | |
6168 | ||
6169 | def Validate(*args, **kwargs): | |
6170 | """Validate(Window parent) -> bool""" | |
6171 | return _core.Validator_Validate(*args, **kwargs) | |
6172 | ||
6173 | def TransferToWindow(*args, **kwargs): | |
6174 | """TransferToWindow() -> bool""" | |
6175 | return _core.Validator_TransferToWindow(*args, **kwargs) | |
6176 | ||
6177 | def TransferFromWindow(*args, **kwargs): | |
6178 | """TransferFromWindow() -> bool""" | |
6179 | return _core.Validator_TransferFromWindow(*args, **kwargs) | |
6180 | ||
6181 | def GetWindow(*args, **kwargs): | |
6182 | """GetWindow() -> Window""" | |
6183 | return _core.Validator_GetWindow(*args, **kwargs) | |
6184 | ||
6185 | def SetWindow(*args, **kwargs): | |
6186 | """SetWindow(Window window)""" | |
6187 | return _core.Validator_SetWindow(*args, **kwargs) | |
6188 | ||
6189 | def IsSilent(*args, **kwargs): | |
6190 | """Validator.IsSilent() -> bool""" | |
6191 | return _core.Validator_IsSilent(*args, **kwargs) | |
6192 | ||
6193 | IsSilent = staticmethod(IsSilent) | |
6194 | def SetBellOnError(*args, **kwargs): | |
6195 | """Validator.SetBellOnError(int doIt=True)""" | |
6196 | return _core.Validator_SetBellOnError(*args, **kwargs) | |
6197 | ||
6198 | SetBellOnError = staticmethod(SetBellOnError) | |
6199 | ||
6200 | class ValidatorPtr(Validator): | |
6201 | def __init__(self, this): | |
6202 | self.this = this | |
6203 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6204 | self.__class__ = Validator | |
6205 | _core.Validator_swigregister(ValidatorPtr) | |
6206 | ||
6207 | def Validator_IsSilent(*args, **kwargs): | |
6208 | """Validator_IsSilent() -> bool""" | |
6209 | return _core.Validator_IsSilent(*args, **kwargs) | |
6210 | ||
6211 | def Validator_SetBellOnError(*args, **kwargs): | |
6212 | """Validator_SetBellOnError(int doIt=True)""" | |
6213 | return _core.Validator_SetBellOnError(*args, **kwargs) | |
6214 | ||
6215 | class PyValidator(Validator): | |
423f194a RD |
6216 | def __repr__(self): |
6217 | return "<%s.%s; proxy of C++ wxPyValidator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
6218 | def __init__(self, *args, **kwargs): | |
6219 | """__init__() -> PyValidator""" | |
6220 | newobj = _core.new_PyValidator(*args, **kwargs) | |
6221 | self.this = newobj.this | |
6222 | self.thisown = 1 | |
6223 | del newobj.thisown | |
6224 | ||
6225 | self._setCallbackInfo(self, PyValidator, 1) | |
6226 | self._setOORInfo(self) | |
6227 | ||
6228 | def _setCallbackInfo(*args, **kwargs): | |
6229 | """_setCallbackInfo(PyObject self, PyObject _class, int incref=True)""" | |
6230 | return _core.PyValidator__setCallbackInfo(*args, **kwargs) | |
6231 | ||
6232 | ||
6233 | class PyValidatorPtr(PyValidator): | |
6234 | def __init__(self, this): | |
6235 | self.this = this | |
6236 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6237 | self.__class__ = PyValidator | |
6238 | _core.PyValidator_swigregister(PyValidatorPtr) | |
6239 | ||
6240 | #--------------------------------------------------------------------------- | |
6241 | ||
6242 | class Menu(EvtHandler): | |
d14a1e28 RD |
6243 | def __repr__(self): |
6244 | return "<%s.%s; proxy of C++ wxMenu instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
423f194a RD |
6245 | def __init__(self, *args, **kwargs): |
6246 | """__init__(wxString title=wxPyEmptyString, long style=0) -> Menu""" | |
6247 | newobj = _core.new_Menu(*args, **kwargs) | |
6248 | self.this = newobj.this | |
6249 | self.thisown = 1 | |
6250 | del newobj.thisown | |
6251 | self._setOORInfo(self) | |
6252 | ||
6253 | def Append(*args, **kwargs): | |
41f1cec7 | 6254 | """ |
0f774bef | 6255 | Append(int id, wxString text, wxString help=wxPyEmptyString, |
41f1cec7 RD |
6256 | wxItemKind kind=ITEM_NORMAL) |
6257 | """ | |
423f194a RD |
6258 | return _core.Menu_Append(*args, **kwargs) |
6259 | ||
6260 | def AppendSeparator(*args, **kwargs): | |
6261 | """AppendSeparator()""" | |
6262 | return _core.Menu_AppendSeparator(*args, **kwargs) | |
6263 | ||
6264 | def AppendCheckItem(*args, **kwargs): | |
0f774bef | 6265 | """AppendCheckItem(int id, wxString text, wxString help=wxPyEmptyString)""" |
423f194a RD |
6266 | return _core.Menu_AppendCheckItem(*args, **kwargs) |
6267 | ||
6268 | def AppendRadioItem(*args, **kwargs): | |
0f774bef | 6269 | """AppendRadioItem(int id, wxString text, wxString help=wxPyEmptyString)""" |
423f194a RD |
6270 | return _core.Menu_AppendRadioItem(*args, **kwargs) |
6271 | ||
6272 | def AppendMenu(*args, **kwargs): | |
0f774bef | 6273 | """AppendMenu(int id, wxString text, Menu submenu, wxString help=wxPyEmptyString)""" |
423f194a RD |
6274 | return _core.Menu_AppendMenu(*args, **kwargs) |
6275 | ||
6276 | def AppendItem(*args, **kwargs): | |
6277 | """AppendItem(MenuItem item)""" | |
6278 | return _core.Menu_AppendItem(*args, **kwargs) | |
6279 | ||
6280 | def Break(*args, **kwargs): | |
6281 | """Break()""" | |
6282 | return _core.Menu_Break(*args, **kwargs) | |
6283 | ||
6284 | def InsertItem(*args, **kwargs): | |
6285 | """InsertItem(size_t pos, MenuItem item) -> bool""" | |
6286 | return _core.Menu_InsertItem(*args, **kwargs) | |
6287 | ||
6288 | def Insert(*args, **kwargs): | |
41f1cec7 | 6289 | """ |
0f774bef | 6290 | Insert(size_t pos, int id, wxString text, wxString help=wxPyEmptyString, |
41f1cec7 RD |
6291 | wxItemKind kind=ITEM_NORMAL) |
6292 | """ | |
423f194a RD |
6293 | return _core.Menu_Insert(*args, **kwargs) |
6294 | ||
6295 | def InsertSeparator(*args, **kwargs): | |
6296 | """InsertSeparator(size_t pos)""" | |
6297 | return _core.Menu_InsertSeparator(*args, **kwargs) | |
6298 | ||
6299 | def InsertCheckItem(*args, **kwargs): | |
0f774bef | 6300 | """InsertCheckItem(size_t pos, int id, wxString text, wxString help=wxPyEmptyString)""" |
423f194a RD |
6301 | return _core.Menu_InsertCheckItem(*args, **kwargs) |
6302 | ||
6303 | def InsertRadioItem(*args, **kwargs): | |
0f774bef | 6304 | """InsertRadioItem(size_t pos, int id, wxString text, wxString help=wxPyEmptyString)""" |
423f194a RD |
6305 | return _core.Menu_InsertRadioItem(*args, **kwargs) |
6306 | ||
6307 | def InsertMenu(*args, **kwargs): | |
0f774bef | 6308 | """InsertMenu(size_t pos, int id, wxString text, Menu submenu, wxString help=wxPyEmptyString)""" |
423f194a RD |
6309 | return _core.Menu_InsertMenu(*args, **kwargs) |
6310 | ||
6311 | def PrependItem(*args, **kwargs): | |
6312 | """PrependItem(MenuItem item)""" | |
6313 | return _core.Menu_PrependItem(*args, **kwargs) | |
6314 | ||
6315 | def Prepend(*args, **kwargs): | |
41f1cec7 | 6316 | """ |
0f774bef | 6317 | Prepend(int id, wxString text, wxString help=wxPyEmptyString, |
41f1cec7 RD |
6318 | wxItemKind kind=ITEM_NORMAL) |
6319 | """ | |
423f194a RD |
6320 | return _core.Menu_Prepend(*args, **kwargs) |
6321 | ||
6322 | def PrependSeparator(*args, **kwargs): | |
6323 | """PrependSeparator()""" | |
6324 | return _core.Menu_PrependSeparator(*args, **kwargs) | |
6325 | ||
6326 | def PrependCheckItem(*args, **kwargs): | |
0f774bef | 6327 | """PrependCheckItem(int id, wxString text, wxString help=wxPyEmptyString)""" |
423f194a RD |
6328 | return _core.Menu_PrependCheckItem(*args, **kwargs) |
6329 | ||
6330 | def PrependRadioItem(*args, **kwargs): | |
0f774bef | 6331 | """PrependRadioItem(int id, wxString text, wxString help=wxPyEmptyString)""" |
423f194a RD |
6332 | return _core.Menu_PrependRadioItem(*args, **kwargs) |
6333 | ||
6334 | def PrependMenu(*args, **kwargs): | |
0f774bef | 6335 | """PrependMenu(int id, wxString text, Menu submenu, wxString help=wxPyEmptyString)""" |
423f194a RD |
6336 | return _core.Menu_PrependMenu(*args, **kwargs) |
6337 | ||
6338 | def Remove(*args, **kwargs): | |
0f774bef | 6339 | """Remove(int id) -> MenuItem""" |
423f194a RD |
6340 | return _core.Menu_Remove(*args, **kwargs) |
6341 | ||
6342 | def RemoveItem(*args, **kwargs): | |
6343 | """RemoveItem(MenuItem item) -> MenuItem""" | |
6344 | return _core.Menu_RemoveItem(*args, **kwargs) | |
6345 | ||
6346 | def Delete(*args, **kwargs): | |
0f774bef | 6347 | """Delete(int id) -> bool""" |
423f194a RD |
6348 | return _core.Menu_Delete(*args, **kwargs) |
6349 | ||
6350 | def DeleteItem(*args, **kwargs): | |
6351 | """DeleteItem(MenuItem item) -> bool""" | |
6352 | return _core.Menu_DeleteItem(*args, **kwargs) | |
6353 | ||
6354 | def Destroy(*args, **kwargs): | |
41f1cec7 RD |
6355 | """ |
6356 | Destroy() | |
423f194a | 6357 | |
41f1cec7 RD |
6358 | Deletes the C++ object this Python object is a proxy for. |
6359 | """ | |
423f194a RD |
6360 | return _core.Menu_Destroy(*args, **kwargs) |
6361 | ||
6362 | def DestroyId(*args, **kwargs): | |
41f1cec7 | 6363 | """ |
0f774bef | 6364 | DestroyId(int id) -> bool |
423f194a | 6365 | |
41f1cec7 RD |
6366 | Deletes the C++ object this Python object is a proxy for. |
6367 | """ | |
423f194a RD |
6368 | return _core.Menu_DestroyId(*args, **kwargs) |
6369 | ||
6370 | def DestroyItem(*args, **kwargs): | |
41f1cec7 RD |
6371 | """ |
6372 | DestroyItem(MenuItem item) -> bool | |
423f194a | 6373 | |
41f1cec7 RD |
6374 | Deletes the C++ object this Python object is a proxy for. |
6375 | """ | |
423f194a RD |
6376 | return _core.Menu_DestroyItem(*args, **kwargs) |
6377 | ||
6378 | def GetMenuItemCount(*args, **kwargs): | |
6379 | """GetMenuItemCount() -> size_t""" | |
6380 | return _core.Menu_GetMenuItemCount(*args, **kwargs) | |
6381 | ||
6382 | def GetMenuItems(*args, **kwargs): | |
6383 | """GetMenuItems() -> PyObject""" | |
6384 | return _core.Menu_GetMenuItems(*args, **kwargs) | |
6385 | ||
6386 | def FindItem(*args, **kwargs): | |
6387 | """FindItem(wxString item) -> int""" | |
6388 | return _core.Menu_FindItem(*args, **kwargs) | |
6389 | ||
6390 | def FindItemById(*args, **kwargs): | |
0f774bef | 6391 | """FindItemById(int id) -> MenuItem""" |
423f194a RD |
6392 | return _core.Menu_FindItemById(*args, **kwargs) |
6393 | ||
6394 | def FindItemByPosition(*args, **kwargs): | |
6395 | """FindItemByPosition(size_t position) -> MenuItem""" | |
6396 | return _core.Menu_FindItemByPosition(*args, **kwargs) | |
6397 | ||
6398 | def Enable(*args, **kwargs): | |
0f774bef | 6399 | """Enable(int id, bool enable)""" |
423f194a RD |
6400 | return _core.Menu_Enable(*args, **kwargs) |
6401 | ||
6402 | def IsEnabled(*args, **kwargs): | |
0f774bef | 6403 | """IsEnabled(int id) -> bool""" |
423f194a RD |
6404 | return _core.Menu_IsEnabled(*args, **kwargs) |
6405 | ||
6406 | def Check(*args, **kwargs): | |
0f774bef | 6407 | """Check(int id, bool check)""" |
423f194a RD |
6408 | return _core.Menu_Check(*args, **kwargs) |
6409 | ||
6410 | def IsChecked(*args, **kwargs): | |
0f774bef | 6411 | """IsChecked(int id) -> bool""" |
423f194a RD |
6412 | return _core.Menu_IsChecked(*args, **kwargs) |
6413 | ||
6414 | def SetLabel(*args, **kwargs): | |
0f774bef | 6415 | """SetLabel(int id, wxString label)""" |
423f194a RD |
6416 | return _core.Menu_SetLabel(*args, **kwargs) |
6417 | ||
6418 | def GetLabel(*args, **kwargs): | |
0f774bef | 6419 | """GetLabel(int id) -> wxString""" |
423f194a RD |
6420 | return _core.Menu_GetLabel(*args, **kwargs) |
6421 | ||
6422 | def SetHelpString(*args, **kwargs): | |
0f774bef | 6423 | """SetHelpString(int id, wxString helpString)""" |
423f194a RD |
6424 | return _core.Menu_SetHelpString(*args, **kwargs) |
6425 | ||
6426 | def GetHelpString(*args, **kwargs): | |
0f774bef | 6427 | """GetHelpString(int id) -> wxString""" |
423f194a RD |
6428 | return _core.Menu_GetHelpString(*args, **kwargs) |
6429 | ||
6430 | def SetTitle(*args, **kwargs): | |
6431 | """SetTitle(wxString title)""" | |
6432 | return _core.Menu_SetTitle(*args, **kwargs) | |
6433 | ||
6434 | def GetTitle(*args, **kwargs): | |
6435 | """GetTitle() -> wxString""" | |
6436 | return _core.Menu_GetTitle(*args, **kwargs) | |
6437 | ||
6438 | def SetEventHandler(*args, **kwargs): | |
6439 | """SetEventHandler(EvtHandler handler)""" | |
6440 | return _core.Menu_SetEventHandler(*args, **kwargs) | |
6441 | ||
6442 | def GetEventHandler(*args, **kwargs): | |
6443 | """GetEventHandler() -> EvtHandler""" | |
6444 | return _core.Menu_GetEventHandler(*args, **kwargs) | |
6445 | ||
6446 | def SetInvokingWindow(*args, **kwargs): | |
6447 | """SetInvokingWindow(Window win)""" | |
6448 | return _core.Menu_SetInvokingWindow(*args, **kwargs) | |
6449 | ||
6450 | def GetInvokingWindow(*args, **kwargs): | |
6451 | """GetInvokingWindow() -> Window""" | |
6452 | return _core.Menu_GetInvokingWindow(*args, **kwargs) | |
6453 | ||
6454 | def GetStyle(*args, **kwargs): | |
6455 | """GetStyle() -> long""" | |
6456 | return _core.Menu_GetStyle(*args, **kwargs) | |
6457 | ||
6458 | def UpdateUI(*args, **kwargs): | |
6459 | """UpdateUI(EvtHandler source=None)""" | |
6460 | return _core.Menu_UpdateUI(*args, **kwargs) | |
6461 | ||
6462 | def GetMenuBar(*args, **kwargs): | |
6463 | """GetMenuBar() -> MenuBar""" | |
6464 | return _core.Menu_GetMenuBar(*args, **kwargs) | |
6465 | ||
6466 | def Attach(*args, **kwargs): | |
6467 | """Attach(wxMenuBarBase menubar)""" | |
6468 | return _core.Menu_Attach(*args, **kwargs) | |
6469 | ||
6470 | def Detach(*args, **kwargs): | |
6471 | """Detach()""" | |
6472 | return _core.Menu_Detach(*args, **kwargs) | |
6473 | ||
6474 | def IsAttached(*args, **kwargs): | |
6475 | """IsAttached() -> bool""" | |
6476 | return _core.Menu_IsAttached(*args, **kwargs) | |
6477 | ||
6478 | def SetParent(*args, **kwargs): | |
6479 | """SetParent(Menu parent)""" | |
6480 | return _core.Menu_SetParent(*args, **kwargs) | |
6481 | ||
6482 | def GetParent(*args, **kwargs): | |
6483 | """GetParent() -> Menu""" | |
6484 | return _core.Menu_GetParent(*args, **kwargs) | |
6485 | ||
d14a1e28 RD |
6486 | |
6487 | class MenuPtr(Menu): | |
6488 | def __init__(self, this): | |
6489 | self.this = this | |
6490 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6491 | self.__class__ = Menu | |
6492 | _core.Menu_swigregister(MenuPtr) | |
6493 | DefaultValidator = cvar.DefaultValidator | |
6494 | ||
6495 | #--------------------------------------------------------------------------- | |
6496 | ||
6497 | class MenuBar(Window): | |
423f194a RD |
6498 | def __repr__(self): |
6499 | return "<%s.%s; proxy of C++ wxMenuBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 6500 | def __init__(self, *args, **kwargs): |
423f194a | 6501 | """__init__(long style=0) -> MenuBar""" |
d14a1e28 RD |
6502 | newobj = _core.new_MenuBar(*args, **kwargs) |
6503 | self.this = newobj.this | |
6504 | self.thisown = 1 | |
6505 | del newobj.thisown | |
6506 | self._setOORInfo(self) | |
423f194a RD |
6507 | |
6508 | def Append(*args, **kwargs): | |
6509 | """Append(Menu menu, wxString title) -> bool""" | |
6510 | return _core.MenuBar_Append(*args, **kwargs) | |
6511 | ||
6512 | def Insert(*args, **kwargs): | |
6513 | """Insert(size_t pos, Menu menu, wxString title) -> bool""" | |
6514 | return _core.MenuBar_Insert(*args, **kwargs) | |
6515 | ||
6516 | def GetMenuCount(*args, **kwargs): | |
6517 | """GetMenuCount() -> size_t""" | |
6518 | return _core.MenuBar_GetMenuCount(*args, **kwargs) | |
6519 | ||
6520 | def GetMenu(*args, **kwargs): | |
6521 | """GetMenu(size_t pos) -> Menu""" | |
6522 | return _core.MenuBar_GetMenu(*args, **kwargs) | |
6523 | ||
6524 | def Replace(*args, **kwargs): | |
6525 | """Replace(size_t pos, Menu menu, wxString title) -> Menu""" | |
6526 | return _core.MenuBar_Replace(*args, **kwargs) | |
6527 | ||
6528 | def Remove(*args, **kwargs): | |
6529 | """Remove(size_t pos) -> Menu""" | |
6530 | return _core.MenuBar_Remove(*args, **kwargs) | |
6531 | ||
6532 | def EnableTop(*args, **kwargs): | |
6533 | """EnableTop(size_t pos, bool enable)""" | |
6534 | return _core.MenuBar_EnableTop(*args, **kwargs) | |
6535 | ||
6536 | def IsEnabledTop(*args, **kwargs): | |
6537 | """IsEnabledTop(size_t pos) -> bool""" | |
6538 | return _core.MenuBar_IsEnabledTop(*args, **kwargs) | |
6539 | ||
6540 | def SetLabelTop(*args, **kwargs): | |
6541 | """SetLabelTop(size_t pos, wxString label)""" | |
6542 | return _core.MenuBar_SetLabelTop(*args, **kwargs) | |
6543 | ||
6544 | def GetLabelTop(*args, **kwargs): | |
6545 | """GetLabelTop(size_t pos) -> wxString""" | |
6546 | return _core.MenuBar_GetLabelTop(*args, **kwargs) | |
6547 | ||
6548 | def FindMenuItem(*args, **kwargs): | |
6549 | """FindMenuItem(wxString menu, wxString item) -> int""" | |
6550 | return _core.MenuBar_FindMenuItem(*args, **kwargs) | |
6551 | ||
6552 | def FindItemById(*args, **kwargs): | |
0f774bef | 6553 | """FindItemById(int id) -> MenuItem""" |
423f194a RD |
6554 | return _core.MenuBar_FindItemById(*args, **kwargs) |
6555 | ||
6556 | def FindMenu(*args, **kwargs): | |
6557 | """FindMenu(wxString title) -> int""" | |
6558 | return _core.MenuBar_FindMenu(*args, **kwargs) | |
6559 | ||
6560 | def Enable(*args, **kwargs): | |
0f774bef | 6561 | """Enable(int id, bool enable)""" |
423f194a RD |
6562 | return _core.MenuBar_Enable(*args, **kwargs) |
6563 | ||
6564 | def Check(*args, **kwargs): | |
0f774bef | 6565 | """Check(int id, bool check)""" |
423f194a RD |
6566 | return _core.MenuBar_Check(*args, **kwargs) |
6567 | ||
6568 | def IsChecked(*args, **kwargs): | |
0f774bef | 6569 | """IsChecked(int id) -> bool""" |
423f194a RD |
6570 | return _core.MenuBar_IsChecked(*args, **kwargs) |
6571 | ||
6572 | def IsEnabled(*args, **kwargs): | |
0f774bef | 6573 | """IsEnabled(int id) -> bool""" |
423f194a RD |
6574 | return _core.MenuBar_IsEnabled(*args, **kwargs) |
6575 | ||
6576 | def SetLabel(*args, **kwargs): | |
0f774bef | 6577 | """SetLabel(int id, wxString label)""" |
423f194a RD |
6578 | return _core.MenuBar_SetLabel(*args, **kwargs) |
6579 | ||
6580 | def GetLabel(*args, **kwargs): | |
0f774bef | 6581 | """GetLabel(int id) -> wxString""" |
423f194a RD |
6582 | return _core.MenuBar_GetLabel(*args, **kwargs) |
6583 | ||
6584 | def SetHelpString(*args, **kwargs): | |
0f774bef | 6585 | """SetHelpString(int id, wxString helpString)""" |
423f194a RD |
6586 | return _core.MenuBar_SetHelpString(*args, **kwargs) |
6587 | ||
6588 | def GetHelpString(*args, **kwargs): | |
0f774bef | 6589 | """GetHelpString(int id) -> wxString""" |
423f194a RD |
6590 | return _core.MenuBar_GetHelpString(*args, **kwargs) |
6591 | ||
6592 | def GetFrame(*args, **kwargs): | |
6593 | """GetFrame() -> wxFrame""" | |
6594 | return _core.MenuBar_GetFrame(*args, **kwargs) | |
6595 | ||
6596 | def IsAttached(*args, **kwargs): | |
6597 | """IsAttached() -> bool""" | |
6598 | return _core.MenuBar_IsAttached(*args, **kwargs) | |
6599 | ||
6600 | def Attach(*args, **kwargs): | |
6601 | """Attach(wxFrame frame)""" | |
6602 | return _core.MenuBar_Attach(*args, **kwargs) | |
6603 | ||
6604 | def Detach(*args, **kwargs): | |
6605 | """Detach()""" | |
6606 | return _core.MenuBar_Detach(*args, **kwargs) | |
6607 | ||
d14a1e28 RD |
6608 | |
6609 | class MenuBarPtr(MenuBar): | |
6610 | def __init__(self, this): | |
6611 | self.this = this | |
6612 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6613 | self.__class__ = MenuBar | |
6614 | _core.MenuBar_swigregister(MenuBarPtr) | |
6615 | ||
6616 | #--------------------------------------------------------------------------- | |
6617 | ||
6618 | class MenuItem(Object): | |
423f194a RD |
6619 | def __repr__(self): |
6620 | return "<%s.%s; proxy of C++ wxMenuItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 6621 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
6622 | """ |
6623 | __init__(Menu parentMenu=None, int id=ID_SEPARATOR, wxString text=wxPyEmptyString, | |
6624 | wxString help=wxPyEmptyString, | |
6625 | wxItemKind kind=ITEM_NORMAL, Menu subMenu=None) -> MenuItem | |
6626 | """ | |
d14a1e28 RD |
6627 | newobj = _core.new_MenuItem(*args, **kwargs) |
6628 | self.this = newobj.this | |
6629 | self.thisown = 1 | |
6630 | del newobj.thisown | |
423f194a RD |
6631 | def GetMenu(*args, **kwargs): |
6632 | """GetMenu() -> Menu""" | |
6633 | return _core.MenuItem_GetMenu(*args, **kwargs) | |
6634 | ||
6635 | def SetMenu(*args, **kwargs): | |
6636 | """SetMenu(Menu menu)""" | |
6637 | return _core.MenuItem_SetMenu(*args, **kwargs) | |
6638 | ||
6639 | def SetId(*args, **kwargs): | |
0f774bef | 6640 | """SetId(int id)""" |
423f194a RD |
6641 | return _core.MenuItem_SetId(*args, **kwargs) |
6642 | ||
6643 | def GetId(*args, **kwargs): | |
6644 | """GetId() -> int""" | |
6645 | return _core.MenuItem_GetId(*args, **kwargs) | |
6646 | ||
6647 | def IsSeparator(*args, **kwargs): | |
6648 | """IsSeparator() -> bool""" | |
6649 | return _core.MenuItem_IsSeparator(*args, **kwargs) | |
6650 | ||
6651 | def SetText(*args, **kwargs): | |
6652 | """SetText(wxString str)""" | |
6653 | return _core.MenuItem_SetText(*args, **kwargs) | |
6654 | ||
6655 | def GetLabel(*args, **kwargs): | |
6656 | """GetLabel() -> wxString""" | |
6657 | return _core.MenuItem_GetLabel(*args, **kwargs) | |
6658 | ||
6659 | def GetText(*args, **kwargs): | |
6660 | """GetText() -> wxString""" | |
6661 | return _core.MenuItem_GetText(*args, **kwargs) | |
6662 | ||
6663 | def GetLabelFromText(*args, **kwargs): | |
6664 | """MenuItem.GetLabelFromText(wxString text) -> wxString""" | |
6665 | return _core.MenuItem_GetLabelFromText(*args, **kwargs) | |
6666 | ||
6667 | GetLabelFromText = staticmethod(GetLabelFromText) | |
6668 | def GetKind(*args, **kwargs): | |
6669 | """GetKind() -> wxItemKind""" | |
6670 | return _core.MenuItem_GetKind(*args, **kwargs) | |
6671 | ||
6672 | def SetCheckable(*args, **kwargs): | |
6673 | """SetCheckable(bool checkable)""" | |
6674 | return _core.MenuItem_SetCheckable(*args, **kwargs) | |
6675 | ||
6676 | def IsCheckable(*args, **kwargs): | |
6677 | """IsCheckable() -> bool""" | |
6678 | return _core.MenuItem_IsCheckable(*args, **kwargs) | |
6679 | ||
6680 | def IsSubMenu(*args, **kwargs): | |
6681 | """IsSubMenu() -> bool""" | |
6682 | return _core.MenuItem_IsSubMenu(*args, **kwargs) | |
6683 | ||
6684 | def SetSubMenu(*args, **kwargs): | |
6685 | """SetSubMenu(Menu menu)""" | |
6686 | return _core.MenuItem_SetSubMenu(*args, **kwargs) | |
6687 | ||
6688 | def GetSubMenu(*args, **kwargs): | |
6689 | """GetSubMenu() -> Menu""" | |
6690 | return _core.MenuItem_GetSubMenu(*args, **kwargs) | |
6691 | ||
6692 | def Enable(*args, **kwargs): | |
6693 | """Enable(bool enable=True)""" | |
6694 | return _core.MenuItem_Enable(*args, **kwargs) | |
6695 | ||
6696 | def IsEnabled(*args, **kwargs): | |
6697 | """IsEnabled() -> bool""" | |
6698 | return _core.MenuItem_IsEnabled(*args, **kwargs) | |
6699 | ||
6700 | def Check(*args, **kwargs): | |
6701 | """Check(bool check=True)""" | |
6702 | return _core.MenuItem_Check(*args, **kwargs) | |
6703 | ||
6704 | def IsChecked(*args, **kwargs): | |
6705 | """IsChecked() -> bool""" | |
6706 | return _core.MenuItem_IsChecked(*args, **kwargs) | |
6707 | ||
6708 | def Toggle(*args, **kwargs): | |
6709 | """Toggle()""" | |
6710 | return _core.MenuItem_Toggle(*args, **kwargs) | |
6711 | ||
6712 | def SetHelp(*args, **kwargs): | |
6713 | """SetHelp(wxString str)""" | |
6714 | return _core.MenuItem_SetHelp(*args, **kwargs) | |
6715 | ||
6716 | def GetHelp(*args, **kwargs): | |
6717 | """GetHelp() -> wxString""" | |
6718 | return _core.MenuItem_GetHelp(*args, **kwargs) | |
6719 | ||
6720 | def GetAccel(*args, **kwargs): | |
41f1cec7 | 6721 | """GetAccel() -> AcceleratorEntry""" |
423f194a RD |
6722 | return _core.MenuItem_GetAccel(*args, **kwargs) |
6723 | ||
6724 | def SetAccel(*args, **kwargs): | |
41f1cec7 | 6725 | """SetAccel(AcceleratorEntry accel)""" |
423f194a RD |
6726 | return _core.MenuItem_SetAccel(*args, **kwargs) |
6727 | ||
6728 | def GetDefaultMarginWidth(*args, **kwargs): | |
6729 | """MenuItem.GetDefaultMarginWidth() -> int""" | |
6730 | return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) | |
6731 | ||
6732 | GetDefaultMarginWidth = staticmethod(GetDefaultMarginWidth) | |
6733 | def SetBitmap(*args, **kwargs): | |
6734 | """SetBitmap(wxBitmap bitmap)""" | |
6735 | return _core.MenuItem_SetBitmap(*args, **kwargs) | |
6736 | ||
6737 | def GetBitmap(*args, **kwargs): | |
6738 | """GetBitmap() -> wxBitmap""" | |
6739 | return _core.MenuItem_GetBitmap(*args, **kwargs) | |
6740 | ||
d14a1e28 RD |
6741 | |
6742 | class MenuItemPtr(MenuItem): | |
6743 | def __init__(self, this): | |
6744 | self.this = this | |
6745 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6746 | self.__class__ = MenuItem | |
6747 | _core.MenuItem_swigregister(MenuItemPtr) | |
6748 | ||
423f194a RD |
6749 | def MenuItem_GetLabelFromText(*args, **kwargs): |
6750 | """MenuItem_GetLabelFromText(wxString text) -> wxString""" | |
6751 | return _core.MenuItem_GetLabelFromText(*args, **kwargs) | |
d14a1e28 | 6752 | |
423f194a RD |
6753 | def MenuItem_GetDefaultMarginWidth(*args, **kwargs): |
6754 | """MenuItem_GetDefaultMarginWidth() -> int""" | |
6755 | return _core.MenuItem_GetDefaultMarginWidth(*args, **kwargs) | |
d14a1e28 RD |
6756 | |
6757 | #--------------------------------------------------------------------------- | |
6758 | ||
6759 | class Control(Window): | |
423f194a RD |
6760 | def __repr__(self): |
6761 | return "<%s.%s; proxy of C++ wxControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 6762 | def __init__(self, *args, **kwargs): |
41f1cec7 RD |
6763 | """ |
6764 | __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
6765 | long style=0, Validator validator=DefaultValidator, | |
6766 | wxString name=wxPyControlNameStr) -> Control | |
6767 | """ | |
d14a1e28 RD |
6768 | newobj = _core.new_Control(*args, **kwargs) |
6769 | self.this = newobj.this | |
6770 | self.thisown = 1 | |
6771 | del newobj.thisown | |
6772 | self._setOORInfo(self) | |
423f194a RD |
6773 | |
6774 | def Create(*args, **kwargs): | |
41f1cec7 RD |
6775 | """ |
6776 | Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, | |
6777 | long style=0, Validator validator=DefaultValidator, | |
6778 | wxString name=wxPyControlNameStr) -> bool | |
6779 | """ | |
423f194a RD |
6780 | return _core.Control_Create(*args, **kwargs) |
6781 | ||
6782 | def Command(*args, **kwargs): | |
6783 | """Command(CommandEvent event)""" | |
6784 | return _core.Control_Command(*args, **kwargs) | |
6785 | ||
6786 | def GetLabel(*args, **kwargs): | |
6787 | """GetLabel() -> wxString""" | |
6788 | return _core.Control_GetLabel(*args, **kwargs) | |
6789 | ||
6790 | def SetLabel(*args, **kwargs): | |
6791 | """SetLabel(wxString label)""" | |
6792 | return _core.Control_SetLabel(*args, **kwargs) | |
6793 | ||
d14a1e28 RD |
6794 | |
6795 | class ControlPtr(Control): | |
6796 | def __init__(self, this): | |
6797 | self.this = this | |
6798 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6799 | self.__class__ = Control | |
6800 | _core.Control_swigregister(ControlPtr) | |
6801 | ||
6802 | def PreControl(*args, **kwargs): | |
423f194a | 6803 | """PreControl() -> Control""" |
d14a1e28 RD |
6804 | val = _core.new_PreControl(*args, **kwargs) |
6805 | val.thisown = 1 | |
6806 | return val | |
6807 | ||
6808 | #--------------------------------------------------------------------------- | |
6809 | ||
6810 | class ItemContainer(object): | |
d14a1e28 RD |
6811 | def __init__(self): raise RuntimeError, "No constructor defined" |
6812 | def __repr__(self): | |
6813 | return "<%s.%s; proxy of C++ wxItemContainer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
423f194a RD |
6814 | def Append(*args, **kwargs): |
6815 | """Append(wxString item, PyObject clientData=None) -> int""" | |
6816 | return _core.ItemContainer_Append(*args, **kwargs) | |
6817 | ||
6818 | def AppendItems(*args, **kwargs): | |
6819 | """AppendItems(wxArrayString strings)""" | |
6820 | return _core.ItemContainer_AppendItems(*args, **kwargs) | |
6821 | ||
6822 | def Insert(*args, **kwargs): | |
6823 | """Insert(wxString item, int pos, PyObject clientData=None) -> int""" | |
6824 | return _core.ItemContainer_Insert(*args, **kwargs) | |
6825 | ||
6826 | def Clear(*args, **kwargs): | |
6827 | """Clear()""" | |
6828 | return _core.ItemContainer_Clear(*args, **kwargs) | |
6829 | ||
6830 | def Delete(*args, **kwargs): | |
6831 | """Delete(int n)""" | |
6832 | return _core.ItemContainer_Delete(*args, **kwargs) | |
6833 | ||
6834 | def GetCount(*args, **kwargs): | |
6835 | """GetCount() -> int""" | |
6836 | return _core.ItemContainer_GetCount(*args, **kwargs) | |
6837 | ||
6838 | def IsEmpty(*args, **kwargs): | |
6839 | """IsEmpty() -> bool""" | |
6840 | return _core.ItemContainer_IsEmpty(*args, **kwargs) | |
6841 | ||
6842 | def GetString(*args, **kwargs): | |
6843 | """GetString(int n) -> wxString""" | |
6844 | return _core.ItemContainer_GetString(*args, **kwargs) | |
6845 | ||
6846 | def GetStrings(*args, **kwargs): | |
6847 | """GetStrings() -> wxArrayString""" | |
6848 | return _core.ItemContainer_GetStrings(*args, **kwargs) | |
6849 | ||
6850 | def SetString(*args, **kwargs): | |
6851 | """SetString(int n, wxString s)""" | |
6852 | return _core.ItemContainer_SetString(*args, **kwargs) | |
6853 | ||
6854 | def FindString(*args, **kwargs): | |
6855 | """FindString(wxString s) -> int""" | |
6856 | return _core.ItemContainer_FindString(*args, **kwargs) | |
6857 | ||
6858 | def Select(*args, **kwargs): | |
6859 | """Select(int n)""" | |
6860 | return _core.ItemContainer_Select(*args, **kwargs) | |
6861 | ||
6862 | def GetSelection(*args, **kwargs): | |
6863 | """GetSelection() -> int""" | |
6864 | return _core.ItemContainer_GetSelection(*args, **kwargs) | |
6865 | ||
6866 | def GetStringSelection(*args, **kwargs): | |
6867 | """GetStringSelection() -> wxString""" | |
6868 | return _core.ItemContainer_GetStringSelection(*args, **kwargs) | |
6869 | ||
6870 | def GetClientData(*args, **kwargs): | |
6871 | """GetClientData(int n) -> PyObject""" | |
6872 | return _core.ItemContainer_GetClientData(*args, **kwargs) | |
6873 | ||
6874 | def SetClientData(*args, **kwargs): | |
6875 | """SetClientData(int n, PyObject clientData)""" | |
6876 | return _core.ItemContainer_SetClientData(*args, **kwargs) | |
6877 | ||
d14a1e28 RD |
6878 | |
6879 | class ItemContainerPtr(ItemContainer): | |
6880 | def __init__(self, this): | |
6881 | self.this = this | |
6882 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6883 | self.__class__ = ItemContainer | |
6884 | _core.ItemContainer_swigregister(ItemContainerPtr) | |
6885 | ||
6886 | #--------------------------------------------------------------------------- | |
6887 | ||
6888 | class ControlWithItems(Control,ItemContainer): | |
6889 | def __init__(self): raise RuntimeError, "No constructor defined" | |
6890 | def __repr__(self): | |
6891 | return "<%s.%s; proxy of C++ wxControlWithItems instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
6892 | ||
6893 | class ControlWithItemsPtr(ControlWithItems): | |
6894 | def __init__(self, this): | |
6895 | self.this = this | |
6896 | if not hasattr(self,"thisown"): self.thisown = 0 | |
6897 | self.__class__ = ControlWithItems | |
6898 | _core.ControlWithItems_swigregister(ControlWithItemsPtr) | |
6899 | ||
6900 | #--------------------------------------------------------------------------- | |
6901 | ||
6902 | class SizerItem(Object): | |
423f194a RD |
6903 | def __repr__(self): |
6904 | return "<%s.%s; proxy of C++ wxSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 6905 | def __init__(self, *args, **kwargs): |
423f194a | 6906 | """__init__() -> SizerItem""" |
d14a1e28 RD |
6907 | newobj = _core.new_SizerItem(*args, **kwargs) |
6908 | self.this = newobj.this | |
6909 | self.thisown = 1 | |
6910 | del newobj.thisown | |
423f194a RD |
6911 | def DeleteWindows(*args, **kwargs): |
6912 | """DeleteWindows()""" | |
6913 | return _core.SizerItem_DeleteWindows(*args, **kwargs) | |
6914 | ||
6915 | def DetachSizer(*args, **kwargs): | |
6916 | """DetachSizer()""" | |
6917 | return _core.SizerItem_DetachSizer(*args, **kwargs) | |
6918 | ||
6919 | def GetSize(*args, **kwargs): | |
6920 | """GetSize() -> Size""" | |
6921 | return _core.SizerItem_GetSize(*args, **kwargs) | |
6922 | ||
6923 | def CalcMin(*args, **kwargs): | |
6924 | """CalcMin() -> Size""" | |
6925 | return _core.SizerItem_CalcMin(*args, **kwargs) | |
6926 | ||
6927 | def SetDimension(*args, **kwargs): | |
6928 | """SetDimension(Point pos, Size size)""" | |
6929 | return _core.SizerItem_SetDimension(*args, **kwargs) | |
6930 | ||
6931 | def GetMinSize(*args, **kwargs): | |
6932 | """GetMinSize() -> Size""" | |
6933 | return _core.SizerItem_GetMinSize(*args, **kwargs) | |
6934 | ||
6935 | def SetInitSize(*args, **kwargs): | |
6936 | """SetInitSize(int x, int y)""" | |
6937 | return _core.SizerItem_SetInitSize(*args, **kwargs) | |
6938 | ||
6939 | def SetRatioWH(*args, **kwargs): | |
6940 | """SetRatioWH(int width, int height)""" | |
6941 | return _core.SizerItem_SetRatioWH(*args, **kwargs) | |
6942 | ||
6943 | def SetRatioSize(*args, **kwargs): | |
6944 | """SetRatioSize(Size size)""" | |
6945 | return _core.SizerItem_SetRatioSize(*args, **kwargs) | |
6946 | ||
6947 | def SetRatio(*args, **kwargs): | |
6948 | """SetRatio(float ratio)""" | |
6949 | return _core.SizerItem_SetRatio(*args, **kwargs) | |
6950 | ||
6951 | def GetRatio(*args, **kwargs): | |
6952 | """GetRatio() -> float""" | |
6953 | return _core.SizerItem_GetRatio(*args, **kwargs) | |
6954 | ||
6955 | def IsWindow(*args, **kwargs): | |
6956 | """IsWindow() -> bool""" | |
6957 | return _core.SizerItem_IsWindow(*args, **kwargs) | |
6958 | ||
6959 | def IsSizer(*args, **kwargs): | |
6960 | """IsSizer() -> bool""" | |
6961 | return _core.SizerItem_IsSizer(*args, **kwargs) | |
6962 | ||
6963 | def IsSpacer(*args, **kwargs): | |
6964 | """IsSpacer() -> bool""" | |
6965 | return _core.SizerItem_IsSpacer(*args, **kwargs) | |
6966 | ||
6967 | def SetProportion(*args, **kwargs): | |
6968 | """SetProportion(int proportion)""" | |
6969 | return _core.SizerItem_SetProportion(*args, **kwargs) | |
6970 | ||
6971 | def GetProportion(*args, **kwargs): | |
6972 | """GetProportion() -> int""" | |
6973 | return _core.SizerItem_GetProportion(*args, **kwargs) | |
6974 | ||
6975 | def SetFlag(*args, **kwargs): | |
6976 | """SetFlag(int flag)""" | |
6977 | return _core.SizerItem_SetFlag(*args, **kwargs) | |
6978 | ||
6979 | def GetFlag(*args, **kwargs): | |
6980 | """GetFlag() -> int""" | |
6981 | return _core.SizerItem_GetFlag(*args, **kwargs) | |
6982 | ||
6983 | def SetBorder(*args, **kwargs): | |
6984 | """SetBorder(int border)""" | |
6985 | return _core.SizerItem_SetBorder(*args, **kwargs) | |
6986 | ||
6987 | def GetBorder(*args, **kwargs): | |
6988 | """GetBorder() -> int""" | |
6989 | return _core.SizerItem_GetBorder(*args, **kwargs) | |
6990 | ||
6991 | def GetWindow(*args, **kwargs): | |
6992 | """GetWindow() -> Window""" | |
6993 | return _core.SizerItem_GetWindow(*args, **kwargs) | |
6994 | ||
6995 | def SetWindow(*args, **kwargs): | |
6996 | """SetWindow(Window window)""" | |
6997 | return _core.SizerItem_SetWindow(*args, **kwargs) | |
6998 | ||
6999 | def GetSizer(*args, **kwargs): | |
7000 | """GetSizer() -> Sizer""" | |
7001 | return _core.SizerItem_GetSizer(*args, **kwargs) | |
7002 | ||
7003 | def SetSizer(*args, **kwargs): | |
7004 | """SetSizer(Sizer sizer)""" | |
7005 | return _core.SizerItem_SetSizer(*args, **kwargs) | |
7006 | ||
7007 | def GetSpacer(*args, **kwargs): | |
7008 | """GetSpacer() -> Size""" | |
7009 | return _core.SizerItem_GetSpacer(*args, **kwargs) | |
7010 | ||
7011 | def SetSpacer(*args, **kwargs): | |
7012 | """SetSpacer(Size size)""" | |
7013 | return _core.SizerItem_SetSpacer(*args, **kwargs) | |
7014 | ||
7015 | def Show(*args, **kwargs): | |
7016 | """Show(bool show)""" | |
7017 | return _core.SizerItem_Show(*args, **kwargs) | |
7018 | ||
7019 | def IsShown(*args, **kwargs): | |
7020 | """IsShown() -> bool""" | |
7021 | return _core.SizerItem_IsShown(*args, **kwargs) | |
7022 | ||
7023 | def GetPosition(*args, **kwargs): | |
7024 | """GetPosition() -> Point""" | |
7025 | return _core.SizerItem_GetPosition(*args, **kwargs) | |
7026 | ||
7027 | def GetUserData(*args, **kwargs): | |
7028 | """GetUserData() -> PyObject""" | |
7029 | return _core.SizerItem_GetUserData(*args, **kwargs) | |
7030 | ||
d14a1e28 RD |
7031 | |
7032 | class SizerItemPtr(SizerItem): | |
7033 | def __init__(self, this): | |
7034 | self.this = this | |
7035 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7036 | self.__class__ = SizerItem | |
7037 | _core.SizerItem_swigregister(SizerItemPtr) | |
7038 | ||
7039 | def SizerItemSpacer(*args, **kwargs): | |
41f1cec7 RD |
7040 | """ |
7041 | SizerItemSpacer(int width, int height, int proportion, int flag, int border, | |
7042 | Object userData) -> SizerItem | |
7043 | """ | |
d14a1e28 RD |
7044 | val = _core.new_SizerItemSpacer(*args, **kwargs) |
7045 | val.thisown = 1 | |
7046 | return val | |
7047 | ||
7048 | def SizerItemWindow(*args, **kwargs): | |
41f1cec7 RD |
7049 | """ |
7050 | SizerItemWindow(Window window, int proportion, int flag, int border, | |
7051 | Object userData) -> SizerItem | |
7052 | """ | |
d14a1e28 RD |
7053 | val = _core.new_SizerItemWindow(*args, **kwargs) |
7054 | val.thisown = 1 | |
7055 | return val | |
7056 | ||
7057 | def SizerItemSizer(*args, **kwargs): | |
41f1cec7 RD |
7058 | """ |
7059 | SizerItemSizer(Sizer sizer, int proportion, int flag, int border, | |
7060 | Object userData) -> SizerItem | |
7061 | """ | |
d14a1e28 RD |
7062 | val = _core.new_SizerItemSizer(*args, **kwargs) |
7063 | val.thisown = 1 | |
7064 | return val | |
7065 | ||
7066 | class Sizer(Object): | |
423f194a RD |
7067 | def __init__(self): raise RuntimeError, "No constructor defined" |
7068 | def __repr__(self): | |
7069 | return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
7070 | def _setOORInfo(*args, **kwargs): | |
7071 | """_setOORInfo(PyObject _self)""" | |
7072 | return _core.Sizer__setOORInfo(*args, **kwargs) | |
7073 | ||
7074 | def Add(*args, **kwargs): | |
41f1cec7 RD |
7075 | """ |
7076 | Add(PyObject item, int proportion=0, int flag=0, int border=0, | |
7077 | PyObject userData=None) | |
7078 | """ | |
423f194a RD |
7079 | return _core.Sizer_Add(*args, **kwargs) |
7080 | ||
7081 | def Insert(*args, **kwargs): | |
41f1cec7 RD |
7082 | """ |
7083 | Insert(int before, PyObject item, int proportion=0, int flag=0, | |
7084 | int border=0, PyObject userData=None) | |
7085 | """ | |
423f194a RD |
7086 | return _core.Sizer_Insert(*args, **kwargs) |
7087 | ||
7088 | def Prepend(*args, **kwargs): | |
41f1cec7 RD |
7089 | """ |
7090 | Prepend(PyObject item, int proportion=0, int flag=0, int border=0, | |
7091 | PyObject userData=None) | |
7092 | """ | |
423f194a RD |
7093 | return _core.Sizer_Prepend(*args, **kwargs) |
7094 | ||
7095 | def Remove(*args, **kwargs): | |
7096 | """Remove(PyObject item) -> bool""" | |
7097 | return _core.Sizer_Remove(*args, **kwargs) | |
7098 | ||
7099 | def _SetItemMinSize(*args, **kwargs): | |
7100 | """_SetItemMinSize(PyObject item, Size size)""" | |
7101 | return _core.Sizer__SetItemMinSize(*args, **kwargs) | |
7102 | ||
7103 | def AddItem(*args, **kwargs): | |
7104 | """AddItem(SizerItem item)""" | |
7105 | return _core.Sizer_AddItem(*args, **kwargs) | |
7106 | ||
7107 | def InsertItem(*args, **kwargs): | |
7108 | """InsertItem(size_t index, SizerItem item)""" | |
7109 | return _core.Sizer_InsertItem(*args, **kwargs) | |
7110 | ||
7111 | def PrependItem(*args, **kwargs): | |
7112 | """PrependItem(SizerItem item)""" | |
7113 | return _core.Sizer_PrependItem(*args, **kwargs) | |
7114 | ||
d14a1e28 RD |
7115 | def AddMany(self, widgets): |
7116 | for childinfo in widgets: | |
423f194a | 7117 | if type(childinfo) != type(()) or (len(childinfo) == 2 and type(childinfo[0]) == type(1)): |
d14a1e28 RD |
7118 | childinfo = (childinfo, ) |
7119 | self.Add(*childinfo) | |
7120 | ||
7121 | ||
7122 | AddWindow = AddSizer = AddSpacer = Add | |
7123 | PrependWindow = PrependSizer = PrependSpacer = Prepend | |
7124 | InsertWindow = InsertSizer = InsertSpacer = Insert | |
7125 | RemoveWindow = RemoveSizer = RemovePos = Remove | |
7126 | ||
7127 | ||
7128 | def SetItemMinSize(self, item, *args): | |
7129 | if len(args) == 2: | |
7130 | return self._SetItemMinSize(item, args) | |
7131 | else: | |
7132 | return self._SetItemMinSize(item, args[0]) | |
7133 | ||
423f194a RD |
7134 | def SetDimension(*args, **kwargs): |
7135 | """SetDimension(int x, int y, int width, int height)""" | |
7136 | return _core.Sizer_SetDimension(*args, **kwargs) | |
7137 | ||
7138 | def SetMinSize(*args, **kwargs): | |
7139 | """SetMinSize(Size size)""" | |
7140 | return _core.Sizer_SetMinSize(*args, **kwargs) | |
7141 | ||
7142 | def GetSize(*args, **kwargs): | |
7143 | """GetSize() -> Size""" | |
7144 | return _core.Sizer_GetSize(*args, **kwargs) | |
7145 | ||
7146 | def GetPosition(*args, **kwargs): | |
7147 | """GetPosition() -> Point""" | |
7148 | return _core.Sizer_GetPosition(*args, **kwargs) | |
7149 | ||
7150 | def GetMinSize(*args, **kwargs): | |
7151 | """GetMinSize() -> Size""" | |
7152 | return _core.Sizer_GetMinSize(*args, **kwargs) | |
7153 | ||
d14a1e28 RD |
7154 | def GetSizeTuple(self): |
7155 | return self.GetSize().asTuple() | |
7156 | def GetPositionTuple(self): | |
7157 | return self.GetPosition().asTuple() | |
7158 | def GetMinSizeTuple(self): | |
7159 | return self.GetMinSize().asTuple() | |
7160 | ||
423f194a RD |
7161 | def RecalcSizes(*args, **kwargs): |
7162 | """RecalcSizes()""" | |
7163 | return _core.Sizer_RecalcSizes(*args, **kwargs) | |
7164 | ||
7165 | def CalcMin(*args, **kwargs): | |
7166 | """CalcMin() -> Size""" | |
7167 | return _core.Sizer_CalcMin(*args, **kwargs) | |
7168 | ||
7169 | def Layout(*args, **kwargs): | |
7170 | """Layout()""" | |
7171 | return _core.Sizer_Layout(*args, **kwargs) | |
7172 | ||
7173 | def Fit(*args, **kwargs): | |
7174 | """Fit(Window window) -> Size""" | |
7175 | return _core.Sizer_Fit(*args, **kwargs) | |
7176 | ||
7177 | def FitInside(*args, **kwargs): | |
7178 | """FitInside(Window window)""" | |
7179 | return _core.Sizer_FitInside(*args, **kwargs) | |
7180 | ||
7181 | def SetSizeHints(*args, **kwargs): | |
7182 | """SetSizeHints(Window window)""" | |
7183 | return _core.Sizer_SetSizeHints(*args, **kwargs) | |
7184 | ||
7185 | def SetVirtualSizeHints(*args, **kwargs): | |
7186 | """SetVirtualSizeHints(Window window)""" | |
7187 | return _core.Sizer_SetVirtualSizeHints(*args, **kwargs) | |
7188 | ||
7189 | def Clear(*args, **kwargs): | |
7190 | """Clear(bool delete_windows=False)""" | |
7191 | return _core.Sizer_Clear(*args, **kwargs) | |
7192 | ||
7193 | def DeleteWindows(*args, **kwargs): | |
7194 | """DeleteWindows()""" | |
7195 | return _core.Sizer_DeleteWindows(*args, **kwargs) | |
7196 | ||
7197 | def GetChildren(*args, **kwargs): | |
7198 | """GetChildren() -> PyObject""" | |
7199 | return _core.Sizer_GetChildren(*args, **kwargs) | |
7200 | ||
7201 | def Show(*args, **kwargs): | |
7202 | """Show(PyObject item, bool show=True)""" | |
7203 | return _core.Sizer_Show(*args, **kwargs) | |
7204 | ||
7205 | def Hide(*args, **kwargs): | |
7206 | """Hide(PyObject item)""" | |
7207 | return _core.Sizer_Hide(*args, **kwargs) | |
7208 | ||
7209 | def IsShown(*args, **kwargs): | |
7210 | """IsShown(PyObject item) -> bool""" | |
7211 | return _core.Sizer_IsShown(*args, **kwargs) | |
7212 | ||
7213 | def ShowItems(*args, **kwargs): | |
7214 | """ShowItems(bool show)""" | |
7215 | return _core.Sizer_ShowItems(*args, **kwargs) | |
7216 | ||
d14a1e28 RD |
7217 | |
7218 | class SizerPtr(Sizer): | |
7219 | def __init__(self, this): | |
7220 | self.this = this | |
7221 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7222 | self.__class__ = Sizer | |
7223 | _core.Sizer_swigregister(SizerPtr) | |
7224 | ||
7225 | class PySizer(Sizer): | |
423f194a RD |
7226 | def __repr__(self): |
7227 | return "<%s.%s; proxy of C++ wxPySizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7228 | def __init__(self, *args, **kwargs): |
423f194a | 7229 | """__init__() -> PySizer""" |
d14a1e28 RD |
7230 | newobj = _core.new_PySizer(*args, **kwargs) |
7231 | self.this = newobj.this | |
7232 | self.thisown = 1 | |
7233 | del newobj.thisown | |
7234 | self._setCallbackInfo(self, PySizer);self._setOORInfo(self) | |
423f194a RD |
7235 | |
7236 | def _setCallbackInfo(*args, **kwargs): | |
7237 | """_setCallbackInfo(PyObject self, PyObject _class)""" | |
7238 | return _core.PySizer__setCallbackInfo(*args, **kwargs) | |
7239 | ||
d14a1e28 RD |
7240 | |
7241 | class PySizerPtr(PySizer): | |
7242 | def __init__(self, this): | |
7243 | self.this = this | |
7244 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7245 | self.__class__ = PySizer | |
7246 | _core.PySizer_swigregister(PySizerPtr) | |
7247 | ||
7248 | #--------------------------------------------------------------------------- | |
7249 | ||
7250 | class BoxSizer(Sizer): | |
423f194a RD |
7251 | def __repr__(self): |
7252 | return "<%s.%s; proxy of C++ wxBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7253 | def __init__(self, *args, **kwargs): |
423f194a | 7254 | """__init__(int orient=HORIZONTAL) -> BoxSizer""" |
d14a1e28 RD |
7255 | newobj = _core.new_BoxSizer(*args, **kwargs) |
7256 | self.this = newobj.this | |
7257 | self.thisown = 1 | |
7258 | del newobj.thisown | |
7259 | self._setOORInfo(self) | |
423f194a RD |
7260 | |
7261 | def GetOrientation(*args, **kwargs): | |
7262 | """GetOrientation() -> int""" | |
7263 | return _core.BoxSizer_GetOrientation(*args, **kwargs) | |
7264 | ||
7265 | def SetOrientation(*args, **kwargs): | |
7266 | """SetOrientation(int orient)""" | |
7267 | return _core.BoxSizer_SetOrientation(*args, **kwargs) | |
7268 | ||
7269 | def RecalcSizes(*args, **kwargs): | |
7270 | """RecalcSizes()""" | |
7271 | return _core.BoxSizer_RecalcSizes(*args, **kwargs) | |
7272 | ||
7273 | def CalcMin(*args, **kwargs): | |
7274 | """CalcMin() -> Size""" | |
7275 | return _core.BoxSizer_CalcMin(*args, **kwargs) | |
7276 | ||
d14a1e28 RD |
7277 | |
7278 | class BoxSizerPtr(BoxSizer): | |
7279 | def __init__(self, this): | |
7280 | self.this = this | |
7281 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7282 | self.__class__ = BoxSizer | |
7283 | _core.BoxSizer_swigregister(BoxSizerPtr) | |
7284 | ||
7285 | #--------------------------------------------------------------------------- | |
7286 | ||
7287 | class StaticBoxSizer(BoxSizer): | |
423f194a RD |
7288 | def __repr__(self): |
7289 | return "<%s.%s; proxy of C++ wxStaticBoxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7290 | def __init__(self, *args, **kwargs): |
423f194a | 7291 | """__init__(wxStaticBox box, int orient=HORIZONTAL) -> StaticBoxSizer""" |
d14a1e28 RD |
7292 | newobj = _core.new_StaticBoxSizer(*args, **kwargs) |
7293 | self.this = newobj.this | |
7294 | self.thisown = 1 | |
7295 | del newobj.thisown | |
7296 | self._setOORInfo(self) | |
423f194a RD |
7297 | |
7298 | def GetStaticBox(*args, **kwargs): | |
7299 | """GetStaticBox() -> wxStaticBox""" | |
7300 | return _core.StaticBoxSizer_GetStaticBox(*args, **kwargs) | |
7301 | ||
7302 | def RecalcSizes(*args, **kwargs): | |
7303 | """RecalcSizes()""" | |
7304 | return _core.StaticBoxSizer_RecalcSizes(*args, **kwargs) | |
7305 | ||
7306 | def CalcMin(*args, **kwargs): | |
7307 | """CalcMin() -> Size""" | |
7308 | return _core.StaticBoxSizer_CalcMin(*args, **kwargs) | |
7309 | ||
d14a1e28 RD |
7310 | |
7311 | class StaticBoxSizerPtr(StaticBoxSizer): | |
7312 | def __init__(self, this): | |
7313 | self.this = this | |
7314 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7315 | self.__class__ = StaticBoxSizer | |
7316 | _core.StaticBoxSizer_swigregister(StaticBoxSizerPtr) | |
7317 | ||
7318 | #--------------------------------------------------------------------------- | |
7319 | ||
7320 | class GridSizer(Sizer): | |
423f194a RD |
7321 | def __repr__(self): |
7322 | return "<%s.%s; proxy of C++ wxGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7323 | def __init__(self, *args, **kwargs): |
423f194a | 7324 | """__init__(int rows=1, int cols=0, int vgap=0, int hgap=0) -> GridSizer""" |
d14a1e28 RD |
7325 | newobj = _core.new_GridSizer(*args, **kwargs) |
7326 | self.this = newobj.this | |
7327 | self.thisown = 1 | |
7328 | del newobj.thisown | |
7329 | self._setOORInfo(self) | |
423f194a RD |
7330 | |
7331 | def RecalcSizes(*args, **kwargs): | |
7332 | """RecalcSizes()""" | |
7333 | return _core.GridSizer_RecalcSizes(*args, **kwargs) | |
7334 | ||
7335 | def CalcMin(*args, **kwargs): | |
7336 | """CalcMin() -> Size""" | |
7337 | return _core.GridSizer_CalcMin(*args, **kwargs) | |
7338 | ||
7339 | def SetCols(*args, **kwargs): | |
7340 | """SetCols(int cols)""" | |
7341 | return _core.GridSizer_SetCols(*args, **kwargs) | |
7342 | ||
7343 | def SetRows(*args, **kwargs): | |
7344 | """SetRows(int rows)""" | |
7345 | return _core.GridSizer_SetRows(*args, **kwargs) | |
7346 | ||
7347 | def SetVGap(*args, **kwargs): | |
7348 | """SetVGap(int gap)""" | |
7349 | return _core.GridSizer_SetVGap(*args, **kwargs) | |
7350 | ||
7351 | def SetHGap(*args, **kwargs): | |
7352 | """SetHGap(int gap)""" | |
7353 | return _core.GridSizer_SetHGap(*args, **kwargs) | |
7354 | ||
7355 | def GetCols(*args, **kwargs): | |
7356 | """GetCols() -> int""" | |
7357 | return _core.GridSizer_GetCols(*args, **kwargs) | |
7358 | ||
7359 | def GetRows(*args, **kwargs): | |
7360 | """GetRows() -> int""" | |
7361 | return _core.GridSizer_GetRows(*args, **kwargs) | |
7362 | ||
7363 | def GetVGap(*args, **kwargs): | |
7364 | """GetVGap() -> int""" | |
7365 | return _core.GridSizer_GetVGap(*args, **kwargs) | |
7366 | ||
7367 | def GetHGap(*args, **kwargs): | |
7368 | """GetHGap() -> int""" | |
7369 | return _core.GridSizer_GetHGap(*args, **kwargs) | |
7370 | ||
d14a1e28 RD |
7371 | |
7372 | class GridSizerPtr(GridSizer): | |
7373 | def __init__(self, this): | |
7374 | self.this = this | |
7375 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7376 | self.__class__ = GridSizer | |
7377 | _core.GridSizer_swigregister(GridSizerPtr) | |
7378 | ||
7379 | #--------------------------------------------------------------------------- | |
7380 | ||
7381 | FLEX_GROWMODE_NONE = _core.FLEX_GROWMODE_NONE | |
7382 | FLEX_GROWMODE_SPECIFIED = _core.FLEX_GROWMODE_SPECIFIED | |
7383 | FLEX_GROWMODE_ALL = _core.FLEX_GROWMODE_ALL | |
7384 | class FlexGridSizer(GridSizer): | |
423f194a RD |
7385 | def __repr__(self): |
7386 | return "<%s.%s; proxy of C++ wxFlexGridSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7387 | def __init__(self, *args, **kwargs): |
423f194a | 7388 | """__init__(int rows=1, int cols=0, int vgap=0, int hgap=0) -> FlexGridSizer""" |
d14a1e28 RD |
7389 | newobj = _core.new_FlexGridSizer(*args, **kwargs) |
7390 | self.this = newobj.this | |
7391 | self.thisown = 1 | |
7392 | del newobj.thisown | |
7393 | self._setOORInfo(self) | |
423f194a RD |
7394 | |
7395 | def RecalcSizes(*args, **kwargs): | |
7396 | """RecalcSizes()""" | |
7397 | return _core.FlexGridSizer_RecalcSizes(*args, **kwargs) | |
7398 | ||
7399 | def CalcMin(*args, **kwargs): | |
7400 | """CalcMin() -> Size""" | |
7401 | return _core.FlexGridSizer_CalcMin(*args, **kwargs) | |
7402 | ||
7403 | def AddGrowableRow(*args, **kwargs): | |
7404 | """AddGrowableRow(size_t idx, int proportion=0)""" | |
7405 | return _core.FlexGridSizer_AddGrowableRow(*args, **kwargs) | |
7406 | ||
7407 | def RemoveGrowableRow(*args, **kwargs): | |
7408 | """RemoveGrowableRow(size_t idx)""" | |
7409 | return _core.FlexGridSizer_RemoveGrowableRow(*args, **kwargs) | |
7410 | ||
7411 | def AddGrowableCol(*args, **kwargs): | |
7412 | """AddGrowableCol(size_t idx, int proportion=0)""" | |
7413 | return _core.FlexGridSizer_AddGrowableCol(*args, **kwargs) | |
7414 | ||
7415 | def RemoveGrowableCol(*args, **kwargs): | |
7416 | """RemoveGrowableCol(size_t idx)""" | |
7417 | return _core.FlexGridSizer_RemoveGrowableCol(*args, **kwargs) | |
7418 | ||
7419 | def SetFlexibleDirection(*args, **kwargs): | |
7420 | """SetFlexibleDirection(int direction)""" | |
7421 | return _core.FlexGridSizer_SetFlexibleDirection(*args, **kwargs) | |
7422 | ||
7423 | def GetFlexibleDirection(*args, **kwargs): | |
7424 | """GetFlexibleDirection() -> int""" | |
7425 | return _core.FlexGridSizer_GetFlexibleDirection(*args, **kwargs) | |
7426 | ||
7427 | def SetNonFlexibleGrowMode(*args, **kwargs): | |
7428 | """SetNonFlexibleGrowMode(wxFlexSizerGrowMode mode)""" | |
7429 | return _core.FlexGridSizer_SetNonFlexibleGrowMode(*args, **kwargs) | |
7430 | ||
7431 | def GetNonFlexibleGrowMode(*args, **kwargs): | |
7432 | """GetNonFlexibleGrowMode() -> wxFlexSizerGrowMode""" | |
7433 | return _core.FlexGridSizer_GetNonFlexibleGrowMode(*args, **kwargs) | |
7434 | ||
7435 | def GetRowHeights(*args, **kwargs): | |
7436 | """GetRowHeights() -> wxArrayInt""" | |
7437 | return _core.FlexGridSizer_GetRowHeights(*args, **kwargs) | |
7438 | ||
7439 | def GetColWidths(*args, **kwargs): | |
7440 | """GetColWidths() -> wxArrayInt""" | |
7441 | return _core.FlexGridSizer_GetColWidths(*args, **kwargs) | |
7442 | ||
d14a1e28 RD |
7443 | |
7444 | class FlexGridSizerPtr(FlexGridSizer): | |
7445 | def __init__(self, this): | |
7446 | self.this = this | |
7447 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7448 | self.__class__ = FlexGridSizer | |
7449 | _core.FlexGridSizer_swigregister(FlexGridSizerPtr) | |
7450 | ||
7451 | #--------------------------------------------------------------------------- | |
7452 | ||
7453 | class GBPosition(object): | |
423f194a RD |
7454 | def __repr__(self): |
7455 | return "<%s.%s; proxy of C++ wxGBPosition instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7456 | def __init__(self, *args, **kwargs): |
423f194a | 7457 | """__init__(int row=0, int col=0) -> GBPosition""" |
d14a1e28 RD |
7458 | newobj = _core.new_GBPosition(*args, **kwargs) |
7459 | self.this = newobj.this | |
7460 | self.thisown = 1 | |
7461 | del newobj.thisown | |
423f194a RD |
7462 | def GetRow(*args, **kwargs): |
7463 | """GetRow() -> int""" | |
7464 | return _core.GBPosition_GetRow(*args, **kwargs) | |
7465 | ||
7466 | def GetCol(*args, **kwargs): | |
7467 | """GetCol() -> int""" | |
7468 | return _core.GBPosition_GetCol(*args, **kwargs) | |
7469 | ||
7470 | def SetRow(*args, **kwargs): | |
7471 | """SetRow(int row)""" | |
7472 | return _core.GBPosition_SetRow(*args, **kwargs) | |
7473 | ||
7474 | def SetCol(*args, **kwargs): | |
7475 | """SetCol(int col)""" | |
7476 | return _core.GBPosition_SetCol(*args, **kwargs) | |
7477 | ||
7478 | def __eq__(*args, **kwargs): | |
7479 | """__eq__(GBPosition p) -> bool""" | |
7480 | return _core.GBPosition___eq__(*args, **kwargs) | |
7481 | ||
7482 | def __ne__(*args, **kwargs): | |
7483 | """__ne__(GBPosition p) -> bool""" | |
7484 | return _core.GBPosition___ne__(*args, **kwargs) | |
7485 | ||
7486 | def Set(*args, **kwargs): | |
7487 | """Set(int row=0, int col=0)""" | |
7488 | return _core.GBPosition_Set(*args, **kwargs) | |
7489 | ||
7490 | def Get(*args, **kwargs): | |
7491 | """Get() -> PyObject""" | |
7492 | return _core.GBPosition_Get(*args, **kwargs) | |
7493 | ||
7494 | asTuple = Get | |
7495 | def __str__(self): return str(self.Get()) | |
7496 | def __repr__(self): return 'wx.GBPosition'+str(self.Get()) | |
7497 | def __len__(self): return len(self.Get()) | |
7498 | def __getitem__(self, index): return self.Get()[index] | |
d14a1e28 RD |
7499 | def __setitem__(self, index, val): |
7500 | if index == 0: self.SetRow(val) | |
7501 | elif index == 1: self.SetCol(val) | |
7502 | else: raise IndexError | |
423f194a | 7503 | def __nonzero__(self): return self.Get() != (0,0) |
d14a1e28 | 7504 | def __getinitargs__(self): return () |
423f194a | 7505 | def __getstate__(self): return self.Get() |
d14a1e28 RD |
7506 | def __setstate__(self, state): self.Set(*state) |
7507 | ||
7508 | row = property(GetRow, SetRow) | |
7509 | col = property(GetCol, SetCol) | |
7510 | ||
7511 | ||
7512 | class GBPositionPtr(GBPosition): | |
7513 | def __init__(self, this): | |
7514 | self.this = this | |
7515 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7516 | self.__class__ = GBPosition | |
7517 | _core.GBPosition_swigregister(GBPositionPtr) | |
7518 | ||
7519 | class GBSpan(object): | |
423f194a RD |
7520 | def __repr__(self): |
7521 | return "<%s.%s; proxy of C++ wxGBSpan instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7522 | def __init__(self, *args, **kwargs): |
423f194a | 7523 | """__init__(int rowspan=1, int colspan=1) -> GBSpan""" |
d14a1e28 RD |
7524 | newobj = _core.new_GBSpan(*args, **kwargs) |
7525 | self.this = newobj.this | |
7526 | self.thisown = 1 | |
7527 | del newobj.thisown | |
423f194a RD |
7528 | def GetRowspan(*args, **kwargs): |
7529 | """GetRowspan() -> int""" | |
7530 | return _core.GBSpan_GetRowspan(*args, **kwargs) | |
7531 | ||
7532 | def GetColspan(*args, **kwargs): | |
7533 | """GetColspan() -> int""" | |
7534 | return _core.GBSpan_GetColspan(*args, **kwargs) | |
7535 | ||
7536 | def SetRowspan(*args, **kwargs): | |
7537 | """SetRowspan(int rowspan)""" | |
7538 | return _core.GBSpan_SetRowspan(*args, **kwargs) | |
7539 | ||
7540 | def SetColspan(*args, **kwargs): | |
7541 | """SetColspan(int colspan)""" | |
7542 | return _core.GBSpan_SetColspan(*args, **kwargs) | |
7543 | ||
7544 | def __eq__(*args, **kwargs): | |
7545 | """__eq__(GBSpan o) -> bool""" | |
7546 | return _core.GBSpan___eq__(*args, **kwargs) | |
7547 | ||
7548 | def __ne__(*args, **kwargs): | |
7549 | """__ne__(GBSpan o) -> bool""" | |
7550 | return _core.GBSpan___ne__(*args, **kwargs) | |
7551 | ||
7552 | def Set(*args, **kwargs): | |
7553 | """Set(int rowspan=1, int colspan=1)""" | |
7554 | return _core.GBSpan_Set(*args, **kwargs) | |
7555 | ||
7556 | def Get(*args, **kwargs): | |
7557 | """Get() -> PyObject""" | |
7558 | return _core.GBSpan_Get(*args, **kwargs) | |
7559 | ||
7560 | asTuple = Get | |
7561 | def __str__(self): return str(self.Get()) | |
7562 | def __repr__(self): return 'wx.GBSpan'+str(self.Get()) | |
7563 | def __len__(self): return len(self.Get()) | |
7564 | def __getitem__(self, index): return self.Get()[index] | |
d14a1e28 RD |
7565 | def __setitem__(self, index, val): |
7566 | if index == 0: self.SetRowspan(val) | |
7567 | elif index == 1: self.SetColspan(val) | |
7568 | else: raise IndexError | |
423f194a | 7569 | def __nonzero__(self): return self.Get() != (0,0) |
d14a1e28 | 7570 | def __getinitargs__(self): return () |
423f194a | 7571 | def __getstate__(self): return self.Get() |
d14a1e28 RD |
7572 | def __setstate__(self, state): self.Set(*state) |
7573 | ||
7574 | rowspan = property(GetRowspan, SetRowspan) | |
7575 | colspan = property(GetColspan, SetColspan) | |
7576 | ||
7577 | ||
7578 | class GBSpanPtr(GBSpan): | |
7579 | def __init__(self, this): | |
7580 | self.this = this | |
7581 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7582 | self.__class__ = GBSpan | |
7583 | _core.GBSpan_swigregister(GBSpanPtr) | |
7584 | ||
7585 | class GBSizerItem(SizerItem): | |
423f194a RD |
7586 | def __repr__(self): |
7587 | return "<%s.%s; proxy of C++ wxGBSizerItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7588 | def __init__(self, *args, **kwargs): |
423f194a | 7589 | """__init__() -> GBSizerItem""" |
d14a1e28 RD |
7590 | newobj = _core.new_GBSizerItem(*args, **kwargs) |
7591 | self.this = newobj.this | |
7592 | self.thisown = 1 | |
7593 | del newobj.thisown | |
423f194a RD |
7594 | def GetPos(*args, **kwargs): |
7595 | """GetPos() -> GBPosition""" | |
7596 | return _core.GBSizerItem_GetPos(*args, **kwargs) | |
7597 | ||
7598 | def GetPosTuple(self): return self.GetPos().Get() | |
7599 | def GetSpan(*args, **kwargs): | |
7600 | """GetSpan() -> GBSpan""" | |
7601 | return _core.GBSizerItem_GetSpan(*args, **kwargs) | |
7602 | ||
7603 | def GetSpanTuple(self): return self.GetSpan().Get() | |
7604 | def SetPos(*args, **kwargs): | |
7605 | """SetPos(GBPosition pos) -> bool""" | |
7606 | return _core.GBSizerItem_SetPos(*args, **kwargs) | |
7607 | ||
7608 | def SetSpan(*args, **kwargs): | |
7609 | """SetSpan(GBSpan span) -> bool""" | |
7610 | return _core.GBSizerItem_SetSpan(*args, **kwargs) | |
7611 | ||
7612 | def Intersects(*args): | |
41f1cec7 RD |
7613 | """ |
7614 | Intersects(GBSizerItem other) -> bool | |
7615 | Intersects(GBPosition pos, GBSpan span) -> bool | |
7616 | """ | |
423f194a RD |
7617 | return _core.GBSizerItem_Intersects(*args) |
7618 | ||
7619 | def GetEndPos(*args, **kwargs): | |
7620 | """GetEndPos(int row, int col)""" | |
7621 | return _core.GBSizerItem_GetEndPos(*args, **kwargs) | |
7622 | ||
7623 | def GetGBSizer(*args, **kwargs): | |
7624 | """GetGBSizer() -> GridBagSizer""" | |
7625 | return _core.GBSizerItem_GetGBSizer(*args, **kwargs) | |
7626 | ||
7627 | def SetGBSizer(*args, **kwargs): | |
7628 | """SetGBSizer(GridBagSizer sizer)""" | |
7629 | return _core.GBSizerItem_SetGBSizer(*args, **kwargs) | |
7630 | ||
d14a1e28 RD |
7631 | |
7632 | class GBSizerItemPtr(GBSizerItem): | |
7633 | def __init__(self, this): | |
7634 | self.this = this | |
7635 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7636 | self.__class__ = GBSizerItem | |
7637 | _core.GBSizerItem_swigregister(GBSizerItemPtr) | |
7638 | DefaultSpan = cvar.DefaultSpan | |
7639 | ||
7640 | def GBSizerItemWindow(*args, **kwargs): | |
41f1cec7 RD |
7641 | """ |
7642 | GBSizerItemWindow(Window window, GBPosition pos, GBSpan span, int flag, | |
7643 | int border, Object userData) -> GBSizerItem | |
7644 | """ | |
d14a1e28 RD |
7645 | val = _core.new_GBSizerItemWindow(*args, **kwargs) |
7646 | val.thisown = 1 | |
7647 | return val | |
7648 | ||
7649 | def GBSizerItemSizer(*args, **kwargs): | |
41f1cec7 RD |
7650 | """ |
7651 | GBSizerItemSizer(Sizer sizer, GBPosition pos, GBSpan span, int flag, | |
7652 | int border, Object userData) -> GBSizerItem | |
7653 | """ | |
d14a1e28 RD |
7654 | val = _core.new_GBSizerItemSizer(*args, **kwargs) |
7655 | val.thisown = 1 | |
7656 | return val | |
7657 | ||
7658 | def GBSizerItemSpacer(*args, **kwargs): | |
41f1cec7 RD |
7659 | """ |
7660 | GBSizerItemSpacer(int width, int height, GBPosition pos, GBSpan span, | |
7661 | int flag, int border, Object userData) -> GBSizerItem | |
7662 | """ | |
d14a1e28 RD |
7663 | val = _core.new_GBSizerItemSpacer(*args, **kwargs) |
7664 | val.thisown = 1 | |
7665 | return val | |
7666 | ||
7667 | class GridBagSizer(FlexGridSizer): | |
423f194a RD |
7668 | def __repr__(self): |
7669 | return "<%s.%s; proxy of C++ wxGridBagSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 | 7670 | def __init__(self, *args, **kwargs): |
423f194a | 7671 | """__init__(int vgap=0, int hgap=0) -> GridBagSizer""" |
d14a1e28 RD |
7672 | newobj = _core.new_GridBagSizer(*args, **kwargs) |
7673 | self.this = newobj.this | |
7674 | self.thisown = 1 | |
7675 | del newobj.thisown | |
423f194a | 7676 | def Add(*args, **kwargs): |
41f1cec7 RD |
7677 | """ |
7678 | Add(PyObject item, GBPosition pos, GBSpan span=DefaultSpan, | |
7679 | int flag=0, int border=0, PyObject userData=None) -> bool | |
7680 | """ | |
423f194a RD |
7681 | return _core.GridBagSizer_Add(*args, **kwargs) |
7682 | ||
7683 | def AddItem(*args, **kwargs): | |
7684 | """AddItem(GBSizerItem item) -> bool""" | |
7685 | return _core.GridBagSizer_AddItem(*args, **kwargs) | |
7686 | ||
7687 | def GetEmptyCellSize(*args, **kwargs): | |
7688 | """GetEmptyCellSize() -> Size""" | |
7689 | return _core.GridBagSizer_GetEmptyCellSize(*args, **kwargs) | |
7690 | ||
7691 | def SetEmptyCellSize(*args, **kwargs): | |
7692 | """SetEmptyCellSize(Size sz)""" | |
7693 | return _core.GridBagSizer_SetEmptyCellSize(*args, **kwargs) | |
7694 | ||
7695 | def GetItemPosition(*args): | |
41f1cec7 RD |
7696 | """ |
7697 | GetItemPosition(Window window) -> GBPosition | |
7698 | GetItemPosition(Sizer sizer) -> GBPosition | |
7699 | GetItemPosition(size_t index) -> GBPosition | |
7700 | """ | |
423f194a RD |
7701 | return _core.GridBagSizer_GetItemPosition(*args) |
7702 | ||
7703 | def SetItemPosition(*args): | |
41f1cec7 RD |
7704 | """ |
7705 | SetItemPosition(Window window, GBPosition pos) -> bool | |
7706 | SetItemPosition(Sizer sizer, GBPosition pos) -> bool | |
7707 | SetItemPosition(size_t index, GBPosition pos) -> bool | |
7708 | """ | |
423f194a RD |
7709 | return _core.GridBagSizer_SetItemPosition(*args) |
7710 | ||
7711 | def GetItemSpan(*args): | |
41f1cec7 RD |
7712 | """ |
7713 | GetItemSpan(Window window) -> GBSpan | |
7714 | GetItemSpan(Sizer sizer) -> GBSpan | |
7715 | GetItemSpan(size_t index) -> GBSpan | |
7716 | """ | |
423f194a RD |
7717 | return _core.GridBagSizer_GetItemSpan(*args) |
7718 | ||
7719 | def SetItemSpan(*args): | |
41f1cec7 RD |
7720 | """ |
7721 | SetItemSpan(Window window, GBSpan span) -> bool | |
7722 | SetItemSpan(Sizer sizer, GBSpan span) -> bool | |
7723 | SetItemSpan(size_t index, GBSpan span) -> bool | |
7724 | """ | |
423f194a RD |
7725 | return _core.GridBagSizer_SetItemSpan(*args) |
7726 | ||
7727 | def FindItem(*args): | |
41f1cec7 RD |
7728 | """ |
7729 | FindItem(Window window) -> GBSizerItem | |
7730 | FindItem(Sizer sizer) -> GBSizerItem | |
7731 | """ | |
423f194a RD |
7732 | return _core.GridBagSizer_FindItem(*args) |
7733 | ||
7734 | def FindItemAtPosition(*args, **kwargs): | |
7735 | """FindItemAtPosition(GBPosition pos) -> GBSizerItem""" | |
7736 | return _core.GridBagSizer_FindItemAtPosition(*args, **kwargs) | |
7737 | ||
7738 | def FindItemAtPoint(*args, **kwargs): | |
7739 | """FindItemAtPoint(Point pt) -> GBSizerItem""" | |
7740 | return _core.GridBagSizer_FindItemAtPoint(*args, **kwargs) | |
7741 | ||
7742 | def FindItemWithData(*args, **kwargs): | |
7743 | """FindItemWithData(Object userData) -> GBSizerItem""" | |
7744 | return _core.GridBagSizer_FindItemWithData(*args, **kwargs) | |
7745 | ||
7746 | def RecalcSizes(*args, **kwargs): | |
7747 | """RecalcSizes()""" | |
7748 | return _core.GridBagSizer_RecalcSizes(*args, **kwargs) | |
7749 | ||
7750 | def CalcMin(*args, **kwargs): | |
7751 | """CalcMin() -> Size""" | |
7752 | return _core.GridBagSizer_CalcMin(*args, **kwargs) | |
7753 | ||
7754 | def CheckForIntersection(*args): | |
41f1cec7 RD |
7755 | """ |
7756 | CheckForIntersection(GBSizerItem item, GBSizerItem excludeItem=None) -> bool | |
7757 | CheckForIntersection(GBPosition pos, GBSpan span, GBSizerItem excludeItem=None) -> bool | |
7758 | """ | |
423f194a RD |
7759 | return _core.GridBagSizer_CheckForIntersection(*args) |
7760 | ||
d14a1e28 RD |
7761 | |
7762 | class GridBagSizerPtr(GridBagSizer): | |
7763 | def __init__(self, this): | |
7764 | self.this = this | |
7765 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7766 | self.__class__ = GridBagSizer | |
7767 | _core.GridBagSizer_swigregister(GridBagSizerPtr) | |
7768 | ||
7769 | #--------------------------------------------------------------------------- | |
7770 | ||
7771 | Left = _core.Left | |
7772 | Top = _core.Top | |
7773 | Right = _core.Right | |
7774 | Bottom = _core.Bottom | |
7775 | Width = _core.Width | |
7776 | Height = _core.Height | |
7777 | Centre = _core.Centre | |
7778 | Center = _core.Center | |
7779 | CentreX = _core.CentreX | |
7780 | CentreY = _core.CentreY | |
7781 | Unconstrained = _core.Unconstrained | |
7782 | AsIs = _core.AsIs | |
7783 | PercentOf = _core.PercentOf | |
7784 | Above = _core.Above | |
7785 | Below = _core.Below | |
7786 | LeftOf = _core.LeftOf | |
7787 | RightOf = _core.RightOf | |
7788 | SameAs = _core.SameAs | |
7789 | Absolute = _core.Absolute | |
7790 | class IndividualLayoutConstraint(Object): | |
d14a1e28 RD |
7791 | def __init__(self): raise RuntimeError, "No constructor defined" |
7792 | def __repr__(self): | |
7793 | return "<%s.%s; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
423f194a | 7794 | def Set(*args, **kwargs): |
41f1cec7 RD |
7795 | """ |
7796 | Set(wxRelationship rel, Window otherW, wxEdge otherE, int val=0, | |
7797 | int marg=wxLAYOUT_DEFAULT_MARGIN) | |
7798 | """ | |
423f194a RD |
7799 | return _core.IndividualLayoutConstraint_Set(*args, **kwargs) |
7800 | ||
7801 | def LeftOf(*args, **kwargs): | |
7802 | """LeftOf(Window sibling, int marg=0)""" | |
7803 | return _core.IndividualLayoutConstraint_LeftOf(*args, **kwargs) | |
7804 | ||
7805 | def RightOf(*args, **kwargs): | |
7806 | """RightOf(Window sibling, int marg=0)""" | |
7807 | return _core.IndividualLayoutConstraint_RightOf(*args, **kwargs) | |
7808 | ||
7809 | def Above(*args, **kwargs): | |
7810 | """Above(Window sibling, int marg=0)""" | |
7811 | return _core.IndividualLayoutConstraint_Above(*args, **kwargs) | |
7812 | ||
7813 | def Below(*args, **kwargs): | |
7814 | """Below(Window sibling, int marg=0)""" | |
7815 | return _core.IndividualLayoutConstraint_Below(*args, **kwargs) | |
7816 | ||
7817 | def SameAs(*args, **kwargs): | |
7818 | """SameAs(Window otherW, wxEdge edge, int marg=0)""" | |
7819 | return _core.IndividualLayoutConstraint_SameAs(*args, **kwargs) | |
7820 | ||
7821 | def PercentOf(*args, **kwargs): | |
7822 | """PercentOf(Window otherW, wxEdge wh, int per)""" | |
7823 | return _core.IndividualLayoutConstraint_PercentOf(*args, **kwargs) | |
7824 | ||
7825 | def Absolute(*args, **kwargs): | |
7826 | """Absolute(int val)""" | |
7827 | return _core.IndividualLayoutConstraint_Absolute(*args, **kwargs) | |
7828 | ||
7829 | def Unconstrained(*args, **kwargs): | |
7830 | """Unconstrained()""" | |
7831 | return _core.IndividualLayoutConstraint_Unconstrained(*args, **kwargs) | |
7832 | ||
7833 | def AsIs(*args, **kwargs): | |
7834 | """AsIs()""" | |
7835 | return _core.IndividualLayoutConstraint_AsIs(*args, **kwargs) | |
7836 | ||
7837 | def GetOtherWindow(*args, **kwargs): | |
7838 | """GetOtherWindow() -> Window""" | |
7839 | return _core.IndividualLayoutConstraint_GetOtherWindow(*args, **kwargs) | |
7840 | ||
7841 | def GetMyEdge(*args, **kwargs): | |
7842 | """GetMyEdge() -> wxEdge""" | |
7843 | return _core.IndividualLayoutConstraint_GetMyEdge(*args, **kwargs) | |
7844 | ||
7845 | def SetEdge(*args, **kwargs): | |
7846 | """SetEdge(wxEdge which)""" | |
7847 | return _core.IndividualLayoutConstraint_SetEdge(*args, **kwargs) | |
7848 | ||
7849 | def SetValue(*args, **kwargs): | |
7850 | """SetValue(int v)""" | |
7851 | return _core.IndividualLayoutConstraint_SetValue(*args, **kwargs) | |
7852 | ||
7853 | def GetMargin(*args, **kwargs): | |
7854 | """GetMargin() -> int""" | |
7855 | return _core.IndividualLayoutConstraint_GetMargin(*args, **kwargs) | |
7856 | ||
7857 | def SetMargin(*args, **kwargs): | |
7858 | """SetMargin(int m)""" | |
7859 | return _core.IndividualLayoutConstraint_SetMargin(*args, **kwargs) | |
7860 | ||
7861 | def GetValue(*args, **kwargs): | |
7862 | """GetValue() -> int""" | |
7863 | return _core.IndividualLayoutConstraint_GetValue(*args, **kwargs) | |
7864 | ||
7865 | def GetPercent(*args, **kwargs): | |
7866 | """GetPercent() -> int""" | |
7867 | return _core.IndividualLayoutConstraint_GetPercent(*args, **kwargs) | |
7868 | ||
7869 | def GetOtherEdge(*args, **kwargs): | |
7870 | """GetOtherEdge() -> int""" | |
7871 | return _core.IndividualLayoutConstraint_GetOtherEdge(*args, **kwargs) | |
7872 | ||
7873 | def GetDone(*args, **kwargs): | |
7874 | """GetDone() -> bool""" | |
7875 | return _core.IndividualLayoutConstraint_GetDone(*args, **kwargs) | |
7876 | ||
7877 | def SetDone(*args, **kwargs): | |
7878 | """SetDone(bool d)""" | |
7879 | return _core.IndividualLayoutConstraint_SetDone(*args, **kwargs) | |
7880 | ||
7881 | def GetRelationship(*args, **kwargs): | |
7882 | """GetRelationship() -> wxRelationship""" | |
7883 | return _core.IndividualLayoutConstraint_GetRelationship(*args, **kwargs) | |
7884 | ||
7885 | def SetRelationship(*args, **kwargs): | |
7886 | """SetRelationship(wxRelationship r)""" | |
7887 | return _core.IndividualLayoutConstraint_SetRelationship(*args, **kwargs) | |
7888 | ||
7889 | def ResetIfWin(*args, **kwargs): | |
7890 | """ResetIfWin(Window otherW) -> bool""" | |
7891 | return _core.IndividualLayoutConstraint_ResetIfWin(*args, **kwargs) | |
7892 | ||
7893 | def SatisfyConstraint(*args, **kwargs): | |
7894 | """SatisfyConstraint(LayoutConstraints constraints, Window win) -> bool""" | |
7895 | return _core.IndividualLayoutConstraint_SatisfyConstraint(*args, **kwargs) | |
7896 | ||
7897 | def GetEdge(*args, **kwargs): | |
7898 | """GetEdge(wxEdge which, Window thisWin, Window other) -> int""" | |
7899 | return _core.IndividualLayoutConstraint_GetEdge(*args, **kwargs) | |
7900 | ||
d14a1e28 RD |
7901 | |
7902 | class IndividualLayoutConstraintPtr(IndividualLayoutConstraint): | |
7903 | def __init__(self, this): | |
7904 | self.this = this | |
7905 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7906 | self.__class__ = IndividualLayoutConstraint | |
7907 | _core.IndividualLayoutConstraint_swigregister(IndividualLayoutConstraintPtr) | |
7908 | ||
7909 | class LayoutConstraints(Object): | |
423f194a RD |
7910 | def __repr__(self): |
7911 | return "<%s.%s; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
d14a1e28 RD |
7912 | left = property(_core.LayoutConstraints_left_get) |
7913 | top = property(_core.LayoutConstraints_top_get) | |
7914 | right = property(_core.LayoutConstraints_right_get) | |
7915 | bottom = property(_core.LayoutConstraints_bottom_get) | |
7916 | width = property(_core.LayoutConstraints_width_get) | |
7917 | height = property(_core.LayoutConstraints_height_get) | |
7918 | centreX = property(_core.LayoutConstraints_centreX_get) | |
7919 | centreY = property(_core.LayoutConstraints_centreY_get) | |
7920 | def __init__(self, *args, **kwargs): | |
423f194a | 7921 | """__init__() -> LayoutConstraints""" |
d14a1e28 RD |
7922 | newobj = _core.new_LayoutConstraints(*args, **kwargs) |
7923 | self.this = newobj.this | |
7924 | self.thisown = 1 | |
7925 | del newobj.thisown | |
423f194a | 7926 | def SatisfyConstraints(*args, **kwargs): |
44127b65 | 7927 | """SatisfyConstraints(Window win) -> (areSatisfied, noChanges)""" |
423f194a RD |
7928 | return _core.LayoutConstraints_SatisfyConstraints(*args, **kwargs) |
7929 | ||
7930 | def AreSatisfied(*args, **kwargs): | |
7931 | """AreSatisfied() -> bool""" | |
7932 | return _core.LayoutConstraints_AreSatisfied(*args, **kwargs) | |
7933 | ||
d14a1e28 RD |
7934 | |
7935 | class LayoutConstraintsPtr(LayoutConstraints): | |
7936 | def __init__(self, this): | |
7937 | self.this = this | |
7938 | if not hasattr(self,"thisown"): self.thisown = 0 | |
7939 | self.__class__ = LayoutConstraints | |
7940 | _core.LayoutConstraints_swigregister(LayoutConstraintsPtr) | |
7941 | ||
7942 | #---------------------------------------------------------------------------- | |
7943 | ||
44127b65 | 7944 | # Use Python's bool constants if available, make some if not |
d14a1e28 RD |
7945 | try: |
7946 | True | |
7947 | except NameError: | |
44127b65 RD |
7948 | __builtins__.True = 1==1 |
7949 | __builtins__.False = 1==0 | |
d14a1e28 | 7950 | |
d14a1e28 RD |
7951 | |
7952 | ||
7953 | # workarounds for bad wxRTTI names | |
7954 | __wxPyPtrTypeMap['wxGauge95'] = 'wxGauge' | |
7955 | __wxPyPtrTypeMap['wxSlider95'] = 'wxSlider' | |
7956 | __wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar' | |
7957 | ||
7958 | ||
7959 | #---------------------------------------------------------------------------- | |
7960 | # Load version numbers from __version__... Ensure that major and minor | |
7961 | # versions are the same for both wxPython and wxWindows. | |
7962 | ||
7963 | from __version__ import * | |
7964 | __version__ = VERSION_STRING | |
7965 | ||
7966 | assert MAJOR_VERSION == _core.MAJOR_VERSION, "wxPython/wxWindows version mismatch" | |
7967 | assert MINOR_VERSION == _core.MINOR_VERSION, "wxPython/wxWindows version mismatch" | |
7968 | if RELEASE_VERSION != _core.RELEASE_VERSION: | |
7969 | import warnings | |
7970 | warnings.warn("wxPython/wxWindows release number mismatch") | |
7971 | ||
7972 | #---------------------------------------------------------------------------- | |
7973 | ||
7974 | class PyDeadObjectError(AttributeError): | |
7975 | pass | |
7976 | ||
7977 | ||
7978 | class _wxPyDeadObject(object): | |
7979 | """ | |
7980 | Instances of wx objects that are OOR capable will have their __class__ | |
7981 | changed to this class when the C++ object is deleted. This should help | |
7982 | prevent crashes due to referencing a bogus C++ pointer. | |
7983 | """ | |
7984 | reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)" | |
7985 | attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed." | |
7986 | ||
7987 | def __repr__( self ): | |
7988 | if not hasattr(self, "_name"): | |
7989 | self._name = "[unknown]" | |
7990 | return self.reprStr % self._name | |
7991 | ||
7992 | def __getattr__( self, *args ): | |
7993 | if not hasattr(self, "_name"): | |
7994 | self._name = "[unknown]" | |
7995 | raise PyDeadObjectError( self.attrStr % self._name ) | |
7996 | ||
7997 | def __nonzero__(self): | |
7998 | return 0 | |
7999 | ||
8000 | ||
8001 | #---------------------------------------------------------------------------- | |
8002 | _wxPyCallAfterId = None | |
8003 | ||
8004 | def CallAfter(callable, *args, **kw): | |
8005 | """ | |
8006 | Call the specified function after the current and pending event | |
8007 | handlers have been completed. This is also good for making GUI | |
8008 | method calls from non-GUI threads. | |
8009 | """ | |
8010 | app = wx.GetApp() | |
8011 | assert app, 'No wxApp created yet' | |
8012 | ||
8013 | global _wxPyCallAfterId | |
8014 | if _wxPyCallAfterId is None: | |
8015 | _wxPyCallAfterId = wx.NewEventType() | |
8016 | app.Connect(-1, -1, _wxPyCallAfterId, | |
8017 | lambda event: event.callable(*event.args, **event.kw) ) | |
8018 | evt = wx.PyEvent() | |
8019 | evt.SetEventType(_wxPyCallAfterId) | |
8020 | evt.callable = callable | |
8021 | evt.args = args | |
8022 | evt.kw = kw | |
8023 | wx.PostEvent(app, evt) | |
8024 | ||
8025 | ||
8026 | #---------------------------------------------------------------------------- | |
8027 | ||
8028 | ||
8029 | class FutureCall: | |
8030 | """ | |
8031 | A convenience class for wxTimer, that calls the given callable | |
8032 | object once after the given amount of milliseconds, passing any | |
8033 | positional or keyword args. The return value of the callable is | |
8034 | availbale after it has been run with the GetResult method. | |
8035 | ||
8036 | If you don't need to get the return value or restart the timer | |
8037 | then there is no need to hold a reference to this object. It will | |
8038 | hold a reference to itself while the timer is running (the timer | |
8039 | has a reference to self.Notify) but the cycle will be broken when | |
8040 | the timer completes, automatically cleaning up the wx.FutureCall | |
8041 | object. | |
8042 | """ | |
8043 | def __init__(self, millis, callable, *args, **kwargs): | |
8044 | self.millis = millis | |
8045 | self.callable = callable | |
8046 | self.SetArgs(*args, **kwargs) | |
8047 | self.runCount = 0 | |
8048 | self.hasRun = False | |
8049 | self.result = None | |
8050 | self.timer = None | |
8051 | self.Start() | |
8052 | ||
8053 | def __del__(self): | |
8054 | self.Stop() | |
8055 | ||
8056 | ||
8057 | def Start(self, millis=None, *args, **kwargs): | |
8058 | """ | |
8059 | (Re)start the timer | |
8060 | """ | |
8061 | self.hasRun = False | |
8062 | if millis is not None: | |
8063 | self.millis = millis | |
8064 | if args or kwargs: | |
8065 | self.SetArgs(*args, **kwargs) | |
8066 | self.Stop() | |
8067 | self.timer = wx.PyTimer(self.Notify) | |
8068 | self.timer.Start(self.millis, wx.TIMER_ONE_SHOT) | |
8069 | Restart = Start | |
8070 | ||
8071 | ||
8072 | def Stop(self): | |
8073 | """ | |
8074 | Stop and destroy the timer. | |
8075 | """ | |
8076 | if self.timer is not None: | |
8077 | self.timer.Stop() | |
8078 | self.timer = None | |
8079 | ||
8080 | ||
8081 | def GetInterval(self): | |
8082 | if self.timer is not None: | |
8083 | return self.timer.GetInterval() | |
8084 | else: | |
8085 | return 0 | |
8086 | ||
8087 | ||
8088 | def IsRunning(self): | |
8089 | return self.timer is not None and self.timer.IsRunning() | |
8090 | ||
8091 | ||
8092 | def SetArgs(self, *args, **kwargs): | |
8093 | """ | |
8094 | (Re)set the args passed to the callable object. This is | |
8095 | useful in conjunction with Restart if you want to schedule a | |
8096 | new call to the same callable object but with different | |
8097 | parameters. | |
8098 | """ | |
8099 | self.args = args | |
8100 | self.kwargs = kwargs | |
8101 | ||
8102 | ||
8103 | def HasRun(self): | |
8104 | return self.hasRun | |
8105 | ||
8106 | def GetResult(self): | |
8107 | return self.result | |
8108 | ||
8109 | def Notify(self): | |
8110 | """ | |
8111 | The timer has expired so call the callable. | |
8112 | """ | |
8113 | if self.callable and getattr(self.callable, 'im_self', True): | |
8114 | self.runCount += 1 | |
8115 | self.result = self.callable(*self.args, **self.kwargs) | |
8116 | self.hasRun = True | |
8117 | wx.CallAfter(self.Stop) | |
8118 | ||
8119 | ||
8120 | #---------------------------------------------------------------------------- | |
8121 | #---------------------------------------------------------------------------- | |
8122 | ||
8123 | # Import other modules in this package that should show up in the | |
8124 | # "core" wx namespace | |
8125 | from gdi import * | |
8126 | from windows import * | |
8127 | from controls import * | |
8128 | from misc import * | |
8129 | ||
8130 | #---------------------------------------------------------------------------- | |
8131 | #---------------------------------------------------------------------------- | |
8132 | ||
8133 |