]>
Commit | Line | Data |
---|---|---|
b8b8dda7 RD |
1 | # This file was created automatically by SWIG. |
2 | import wxc | |
3 | ||
4 | from misc import * | |
5 | ||
bb0054cd RD |
6 | from misc2 import * |
7 | ||
b8b8dda7 RD |
8 | from windows import * |
9 | ||
10 | from gdi import * | |
11 | ||
a323d3bd RD |
12 | from fonts import * |
13 | ||
b1462dfa RD |
14 | from clip_dnd import * |
15 | ||
b8b8dda7 RD |
16 | from events import * |
17 | ||
c368d904 RD |
18 | from streams import * |
19 | ||
08da19d7 RD |
20 | from utils import * |
21 | ||
b8b8dda7 RD |
22 | from mdi import * |
23 | ||
24 | from frames import * | |
25 | ||
26 | from stattool import * | |
27 | ||
28 | from controls import * | |
29 | ||
30 | from controls2 import * | |
31 | ||
32 | from windows2 import * | |
33 | ||
34 | from cmndlgs import * | |
35 | ||
08127323 RD |
36 | from windows3 import * |
37 | ||
cf694132 | 38 | from image import * |
bb0054cd RD |
39 | |
40 | from printfw import * | |
2f90df85 RD |
41 | |
42 | from sizers import * | |
c368d904 RD |
43 | |
44 | from filesys import * | |
b8b8dda7 RD |
45 | class wxPyAppPtr(wxEvtHandlerPtr): |
46 | def __init__(self,this): | |
47 | self.this = this | |
48 | self.thisown = 0 | |
b67a9327 RD |
49 | def __del__(self, delfunc=wxc.delete_wxPyApp): |
50 | if self.thisown == 1: | |
51 | try: | |
52 | delfunc(self) | |
53 | except: | |
54 | pass | |
55 | def _setCallbackInfo(self, *_args, **_kwargs): | |
1fded56b | 56 | val = wxc.wxPyApp__setCallbackInfo(self, *_args, **_kwargs) |
b67a9327 | 57 | return val |
1d99702e | 58 | def GetAppName(self, *_args, **_kwargs): |
1fded56b | 59 | val = wxc.wxPyApp_GetAppName(self, *_args, **_kwargs) |
b8b8dda7 | 60 | return val |
1d99702e | 61 | def GetClassName(self, *_args, **_kwargs): |
1fded56b | 62 | val = wxc.wxPyApp_GetClassName(self, *_args, **_kwargs) |
b8b8dda7 | 63 | return val |
1d99702e | 64 | def GetExitOnFrameDelete(self, *_args, **_kwargs): |
1fded56b | 65 | val = wxc.wxPyApp_GetExitOnFrameDelete(self, *_args, **_kwargs) |
b8b8dda7 | 66 | return val |
1d99702e | 67 | def GetPrintMode(self, *_args, **_kwargs): |
1fded56b | 68 | val = wxc.wxPyApp_GetPrintMode(self, *_args, **_kwargs) |
b8b8dda7 | 69 | return val |
1d99702e | 70 | def GetTopWindow(self, *_args, **_kwargs): |
1fded56b | 71 | val = wxc.wxPyApp_GetTopWindow(self, *_args, **_kwargs) |
b8b8dda7 | 72 | return val |
1d99702e | 73 | def GetVendorName(self, *_args, **_kwargs): |
1fded56b | 74 | val = wxc.wxPyApp_GetVendorName(self, *_args, **_kwargs) |
b8b8dda7 | 75 | return val |
f6bcfd97 | 76 | def GetUseBestVisual(self, *_args, **_kwargs): |
1fded56b | 77 | val = wxc.wxPyApp_GetUseBestVisual(self, *_args, **_kwargs) |
f6bcfd97 | 78 | return val |
1d99702e | 79 | def Dispatch(self, *_args, **_kwargs): |
1fded56b | 80 | val = wxc.wxPyApp_Dispatch(self, *_args, **_kwargs) |
b8b8dda7 | 81 | return val |
1d99702e | 82 | def ExitMainLoop(self, *_args, **_kwargs): |
1fded56b | 83 | val = wxc.wxPyApp_ExitMainLoop(self, *_args, **_kwargs) |
b8b8dda7 | 84 | return val |
1d99702e | 85 | def Initialized(self, *_args, **_kwargs): |
1fded56b | 86 | val = wxc.wxPyApp_Initialized(self, *_args, **_kwargs) |
b8b8dda7 | 87 | return val |
1d99702e | 88 | def MainLoop(self, *_args, **_kwargs): |
1fded56b | 89 | val = wxc.wxPyApp_MainLoop(self, *_args, **_kwargs) |
b8b8dda7 | 90 | return val |
1d99702e | 91 | def Pending(self, *_args, **_kwargs): |
1fded56b | 92 | val = wxc.wxPyApp_Pending(self, *_args, **_kwargs) |
b8b8dda7 | 93 | return val |
1d99702e | 94 | def ProcessIdle(self, *_args, **_kwargs): |
1fded56b | 95 | val = wxc.wxPyApp_ProcessIdle(self, *_args, **_kwargs) |
8bf5d46e | 96 | return val |
4eb65923 | 97 | def Yield(self, *_args, **_kwargs): |
1fded56b | 98 | val = wxc.wxPyApp_Yield(self, *_args, **_kwargs) |
4eb65923 | 99 | return val |
1d99702e | 100 | def SetAppName(self, *_args, **_kwargs): |
1fded56b | 101 | val = wxc.wxPyApp_SetAppName(self, *_args, **_kwargs) |
b8b8dda7 | 102 | return val |
1d99702e | 103 | def SetClassName(self, *_args, **_kwargs): |
1fded56b | 104 | val = wxc.wxPyApp_SetClassName(self, *_args, **_kwargs) |
b8b8dda7 | 105 | return val |
1d99702e | 106 | def SetExitOnFrameDelete(self, *_args, **_kwargs): |
1fded56b | 107 | val = wxc.wxPyApp_SetExitOnFrameDelete(self, *_args, **_kwargs) |
b8b8dda7 | 108 | return val |
1d99702e | 109 | def SetPrintMode(self, *_args, **_kwargs): |
1fded56b | 110 | val = wxc.wxPyApp_SetPrintMode(self, *_args, **_kwargs) |
b8b8dda7 | 111 | return val |
1d99702e | 112 | def SetTopWindow(self, *_args, **_kwargs): |
1fded56b | 113 | val = wxc.wxPyApp_SetTopWindow(self, *_args, **_kwargs) |
b8b8dda7 | 114 | return val |
1d99702e | 115 | def SetVendorName(self, *_args, **_kwargs): |
1fded56b | 116 | val = wxc.wxPyApp_SetVendorName(self, *_args, **_kwargs) |
b8b8dda7 | 117 | return val |
f6bcfd97 | 118 | def SetUseBestVisual(self, *_args, **_kwargs): |
1fded56b | 119 | val = wxc.wxPyApp_SetUseBestVisual(self, *_args, **_kwargs) |
f6bcfd97 | 120 | return val |
b67a9327 | 121 | def GetAssertMode(self, *_args, **_kwargs): |
1fded56b | 122 | val = wxc.wxPyApp_GetAssertMode(self, *_args, **_kwargs) |
b67a9327 RD |
123 | return val |
124 | def SetAssertMode(self, *_args, **_kwargs): | |
1fded56b | 125 | val = wxc.wxPyApp_SetAssertMode(self, *_args, **_kwargs) |
b67a9327 | 126 | return val |
b8b8dda7 | 127 | def __repr__(self): |
1fded56b | 128 | return "<%s.%s instance; proxy of C++ wxPyApp instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
b8b8dda7 | 129 | class wxPyApp(wxPyAppPtr): |
1d99702e | 130 | def __init__(self,*_args,**_kwargs): |
1fded56b | 131 | self.this = wxc.new_wxPyApp(*_args,**_kwargs) |
b8b8dda7 | 132 | self.thisown = 1 |
b67a9327 RD |
133 | self._setCallbackInfo(self, wxPyApp) |
134 | self._setOORInfo(self) | |
b8b8dda7 RD |
135 | |
136 | ||
137 | ||
138 | ||
139 | ||
140 | ||
141 | #-------------- FUNCTION WRAPPERS ------------------ | |
142 | ||
8bf5d46e RD |
143 | ptrcast = wxc.ptrcast |
144 | ||
145 | ptrvalue = wxc.ptrvalue | |
146 | ||
147 | ptrset = wxc.ptrset | |
148 | ||
149 | ptrcreate = wxc.ptrcreate | |
150 | ||
151 | ptrfree = wxc.ptrfree | |
152 | ||
153 | ptradd = wxc.ptradd | |
154 | ||
155 | ptrmap = wxc.ptrmap | |
156 | ||
b8b8dda7 RD |
157 | _wxStart = wxc._wxStart |
158 | ||
159 | _wxSetDictionary = wxc._wxSetDictionary | |
160 | ||
c368d904 | 161 | def wxGetApp(*_args, **_kwargs): |
1fded56b | 162 | val = wxc.wxGetApp(*_args,**_kwargs) |
c368d904 RD |
163 | return val |
164 | ||
b1462dfa RD |
165 | wxApp_CleanUp = wxc.wxApp_CleanUp |
166 | ||
b67a9327 RD |
167 | wxPyApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts |
168 | ||
169 | wxPyApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId | |
170 | ||
171 | wxPyApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId | |
172 | ||
173 | wxPyApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId | |
174 | ||
175 | wxPyApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName | |
176 | ||
b67a9327 RD |
177 | wxPyApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts |
178 | ||
179 | wxPyApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId | |
180 | ||
181 | wxPyApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId | |
182 | ||
183 | wxPyApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId | |
184 | ||
185 | wxPyApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName | |
186 | ||
b8b8dda7 RD |
187 | |
188 | ||
189 | #-------------- VARIABLE WRAPPERS ------------------ | |
190 | ||
191 | wxMAJOR_VERSION = wxc.wxMAJOR_VERSION | |
192 | wxMINOR_VERSION = wxc.wxMINOR_VERSION | |
193 | wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER | |
08127323 | 194 | wxNOT_FOUND = wxc.wxNOT_FOUND |
b8b8dda7 RD |
195 | wxVSCROLL = wxc.wxVSCROLL |
196 | wxHSCROLL = wxc.wxHSCROLL | |
197 | wxCAPTION = wxc.wxCAPTION | |
198 | wxDOUBLE_BORDER = wxc.wxDOUBLE_BORDER | |
199 | wxSUNKEN_BORDER = wxc.wxSUNKEN_BORDER | |
200 | wxRAISED_BORDER = wxc.wxRAISED_BORDER | |
201 | wxBORDER = wxc.wxBORDER | |
202 | wxSIMPLE_BORDER = wxc.wxSIMPLE_BORDER | |
203 | wxSTATIC_BORDER = wxc.wxSTATIC_BORDER | |
204 | wxTRANSPARENT_WINDOW = wxc.wxTRANSPARENT_WINDOW | |
205 | wxNO_BORDER = wxc.wxNO_BORDER | |
206 | wxUSER_COLOURS = wxc.wxUSER_COLOURS | |
207 | wxNO_3D = wxc.wxNO_3D | |
208 | wxTAB_TRAVERSAL = wxc.wxTAB_TRAVERSAL | |
1afc06c2 | 209 | wxWANTS_CHARS = wxc.wxWANTS_CHARS |
0220cbc1 | 210 | wxPOPUP_WINDOW = wxc.wxPOPUP_WINDOW |
b8b8dda7 RD |
211 | wxHORIZONTAL = wxc.wxHORIZONTAL |
212 | wxVERTICAL = wxc.wxVERTICAL | |
213 | wxBOTH = wxc.wxBOTH | |
214 | wxCENTER_FRAME = wxc.wxCENTER_FRAME | |
1afc06c2 RD |
215 | wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN |
216 | wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN | |
b8b8dda7 RD |
217 | wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP |
218 | wxICONIZE = wxc.wxICONIZE | |
219 | wxMINIMIZE = wxc.wxMINIMIZE | |
220 | wxMAXIMIZE = wxc.wxMAXIMIZE | |
3100de99 | 221 | wxCLOSE_BOX = wxc.wxCLOSE_BOX |
b8b8dda7 RD |
222 | wxTHICK_FRAME = wxc.wxTHICK_FRAME |
223 | wxSYSTEM_MENU = wxc.wxSYSTEM_MENU | |
224 | wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX | |
225 | wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX | |
226 | wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ | |
227 | wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT | |
228 | wxRESIZE_BOX = wxc.wxRESIZE_BOX | |
229 | wxRESIZE_BORDER = wxc.wxRESIZE_BORDER | |
230 | wxDIALOG_MODAL = wxc.wxDIALOG_MODAL | |
231 | wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS | |
2c8a649d | 232 | wxDIALOG_NO_PARENT = wxc.wxDIALOG_NO_PARENT |
b8b8dda7 RD |
233 | wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE |
234 | wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE | |
235 | wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW | |
bb0054cd | 236 | wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT |
4c9993c3 | 237 | wxFRAME_NO_WINDOW_MENU = wxc.wxFRAME_NO_WINDOW_MENU |
9c4165ad | 238 | wxFRAME_NO_TASKBAR = wxc.wxFRAME_NO_TASKBAR |
1fded56b | 239 | wxFRAME_SHAPED = wxc.wxFRAME_SHAPED |
1afc06c2 RD |
240 | wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN |
241 | wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM | |
242 | wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT | |
243 | wxED_STATIC_LINE = wxc.wxED_STATIC_LINE | |
244 | wxEXT_DIALOG_STYLE = wxc.wxEXT_DIALOG_STYLE | |
08127323 | 245 | wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN |
2c8a649d | 246 | wxCLIP_SIBLINGS = wxc.wxCLIP_SIBLINGS |
b8b8dda7 RD |
247 | wxRETAINED = wxc.wxRETAINED |
248 | wxBACKINGSTORE = wxc.wxBACKINGSTORE | |
b8b8dda7 RD |
249 | wxCOLOURED = wxc.wxCOLOURED |
250 | wxFIXED_LENGTH = wxc.wxFIXED_LENGTH | |
251 | wxALIGN_LEFT = wxc.wxALIGN_LEFT | |
694759cf RD |
252 | wxALIGN_CENTER_HORIZONTAL = wxc.wxALIGN_CENTER_HORIZONTAL |
253 | wxALIGN_CENTRE_HORIZONTAL = wxc.wxALIGN_CENTRE_HORIZONTAL | |
b8b8dda7 | 254 | wxALIGN_RIGHT = wxc.wxALIGN_RIGHT |
2f90df85 | 255 | wxALIGN_BOTTOM = wxc.wxALIGN_BOTTOM |
694759cf RD |
256 | wxALIGN_CENTER_VERTICAL = wxc.wxALIGN_CENTER_VERTICAL |
257 | wxALIGN_CENTRE_VERTICAL = wxc.wxALIGN_CENTRE_VERTICAL | |
2f90df85 | 258 | wxALIGN_TOP = wxc.wxALIGN_TOP |
694759cf RD |
259 | wxALIGN_CENTER = wxc.wxALIGN_CENTER |
260 | wxALIGN_CENTRE = wxc.wxALIGN_CENTRE | |
261 | wxSHAPED = wxc.wxSHAPED | |
9c4165ad | 262 | wxADJUST_MINSIZE = wxc.wxADJUST_MINSIZE |
b8b8dda7 RD |
263 | wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB |
264 | wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB | |
265 | wxLB_SORT = wxc.wxLB_SORT | |
266 | wxLB_SINGLE = wxc.wxLB_SINGLE | |
267 | wxLB_MULTIPLE = wxc.wxLB_MULTIPLE | |
268 | wxLB_EXTENDED = wxc.wxLB_EXTENDED | |
269 | wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW | |
270 | wxLB_HSCROLL = wxc.wxLB_HSCROLL | |
271 | wxPROCESS_ENTER = wxc.wxPROCESS_ENTER | |
272 | wxPASSWORD = wxc.wxPASSWORD | |
b8b8dda7 RD |
273 | wxCB_SIMPLE = wxc.wxCB_SIMPLE |
274 | wxCB_DROPDOWN = wxc.wxCB_DROPDOWN | |
275 | wxCB_SORT = wxc.wxCB_SORT | |
276 | wxCB_READONLY = wxc.wxCB_READONLY | |
277 | wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL | |
278 | wxRA_VERTICAL = wxc.wxRA_VERTICAL | |
62abd41e RD |
279 | wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS |
280 | wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS | |
b8b8dda7 | 281 | wxRB_GROUP = wxc.wxRB_GROUP |
b67a9327 | 282 | wxRB_SINGLE = wxc.wxRB_SINGLE |
b8b8dda7 RD |
283 | wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR |
284 | wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL | |
285 | wxGA_VERTICAL = wxc.wxGA_VERTICAL | |
bb0054cd | 286 | wxGA_SMOOTH = wxc.wxGA_SMOOTH |
b8b8dda7 RD |
287 | wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL |
288 | wxSL_VERTICAL = wxc.wxSL_VERTICAL | |
289 | wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS | |
290 | wxSL_LABELS = wxc.wxSL_LABELS | |
291 | wxSL_LEFT = wxc.wxSL_LEFT | |
292 | wxSL_TOP = wxc.wxSL_TOP | |
293 | wxSL_RIGHT = wxc.wxSL_RIGHT | |
294 | wxSL_BOTTOM = wxc.wxSL_BOTTOM | |
295 | wxSL_BOTH = wxc.wxSL_BOTH | |
296 | wxSL_SELRANGE = wxc.wxSL_SELRANGE | |
297 | wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL | |
298 | wxSB_VERTICAL = wxc.wxSB_VERTICAL | |
cf694132 | 299 | wxST_SIZEGRIP = wxc.wxST_SIZEGRIP |
2abc0a0f | 300 | wxST_NO_AUTORESIZE = wxc.wxST_NO_AUTORESIZE |
b8b8dda7 | 301 | wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW |
298ae144 RD |
302 | wxBU_AUTODRAW = wxc.wxBU_AUTODRAW |
303 | wxBU_LEFT = wxc.wxBU_LEFT | |
304 | wxBU_TOP = wxc.wxBU_TOP | |
305 | wxBU_RIGHT = wxc.wxBU_RIGHT | |
306 | wxBU_BOTTOM = wxc.wxBU_BOTTOM | |
307 | wxBU_EXACTFIT = wxc.wxBU_EXACTFIT | |
b8b8dda7 RD |
308 | wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE |
309 | wxFLOOD_BORDER = wxc.wxFLOOD_BORDER | |
310 | wxODDEVEN_RULE = wxc.wxODDEVEN_RULE | |
311 | wxWINDING_RULE = wxc.wxWINDING_RULE | |
312 | wxTOOL_TOP = wxc.wxTOOL_TOP | |
313 | wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM | |
314 | wxTOOL_LEFT = wxc.wxTOOL_LEFT | |
315 | wxTOOL_RIGHT = wxc.wxTOOL_RIGHT | |
316 | wxOK = wxc.wxOK | |
317 | wxYES_NO = wxc.wxYES_NO | |
318 | wxCANCEL = wxc.wxCANCEL | |
319 | wxYES = wxc.wxYES | |
320 | wxNO = wxc.wxNO | |
1afc06c2 RD |
321 | wxNO_DEFAULT = wxc.wxNO_DEFAULT |
322 | wxYES_DEFAULT = wxc.wxYES_DEFAULT | |
b8b8dda7 RD |
323 | wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION |
324 | wxICON_HAND = wxc.wxICON_HAND | |
325 | wxICON_QUESTION = wxc.wxICON_QUESTION | |
326 | wxICON_INFORMATION = wxc.wxICON_INFORMATION | |
327 | wxICON_STOP = wxc.wxICON_STOP | |
328 | wxICON_ASTERISK = wxc.wxICON_ASTERISK | |
329 | wxICON_MASK = wxc.wxICON_MASK | |
1afc06c2 RD |
330 | wxICON_WARNING = wxc.wxICON_WARNING |
331 | wxICON_ERROR = wxc.wxICON_ERROR | |
332 | wxFORWARD = wxc.wxFORWARD | |
333 | wxBACKWARD = wxc.wxBACKWARD | |
334 | wxRESET = wxc.wxRESET | |
335 | wxHELP = wxc.wxHELP | |
336 | wxMORE = wxc.wxMORE | |
337 | wxSETUP = wxc.wxSETUP | |
b8b8dda7 RD |
338 | wxCENTRE = wxc.wxCENTRE |
339 | wxCENTER = wxc.wxCENTER | |
340 | wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH | |
341 | wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT | |
342 | wxSIZE_AUTO = wxc.wxSIZE_AUTO | |
343 | wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING | |
344 | wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE | |
b8b8dda7 RD |
345 | wxPORTRAIT = wxc.wxPORTRAIT |
346 | wxLANDSCAPE = wxc.wxLANDSCAPE | |
bb0054cd RD |
347 | wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH |
348 | wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM | |
349 | wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW | |
350 | wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT | |
ba77f390 RD |
351 | wxID_ANY = wxc.wxID_ANY |
352 | wxID_SEPARATOR = wxc.wxID_SEPARATOR | |
b8b8dda7 RD |
353 | wxID_OPEN = wxc.wxID_OPEN |
354 | wxID_CLOSE = wxc.wxID_CLOSE | |
355 | wxID_NEW = wxc.wxID_NEW | |
356 | wxID_SAVE = wxc.wxID_SAVE | |
357 | wxID_SAVEAS = wxc.wxID_SAVEAS | |
358 | wxID_REVERT = wxc.wxID_REVERT | |
359 | wxID_EXIT = wxc.wxID_EXIT | |
360 | wxID_UNDO = wxc.wxID_UNDO | |
361 | wxID_REDO = wxc.wxID_REDO | |
362 | wxID_HELP = wxc.wxID_HELP | |
363 | wxID_PRINT = wxc.wxID_PRINT | |
364 | wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP | |
365 | wxID_PREVIEW = wxc.wxID_PREVIEW | |
366 | wxID_ABOUT = wxc.wxID_ABOUT | |
367 | wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS | |
368 | wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS | |
369 | wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES | |
370 | wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT | |
1893b029 | 371 | wxID_CLOSE_ALL = wxc.wxID_CLOSE_ALL |
1a8372ba | 372 | wxID_PREFERENCES = wxc.wxID_PREFERENCES |
b8b8dda7 RD |
373 | wxID_CUT = wxc.wxID_CUT |
374 | wxID_COPY = wxc.wxID_COPY | |
375 | wxID_PASTE = wxc.wxID_PASTE | |
376 | wxID_CLEAR = wxc.wxID_CLEAR | |
377 | wxID_FIND = wxc.wxID_FIND | |
2c8a649d RD |
378 | wxID_DUPLICATE = wxc.wxID_DUPLICATE |
379 | wxID_SELECTALL = wxc.wxID_SELECTALL | |
3ef86e32 RD |
380 | wxID_DELETE = wxc.wxID_DELETE |
381 | wxID_REPLACE = wxc.wxID_REPLACE | |
382 | wxID_REPLACE_ALL = wxc.wxID_REPLACE_ALL | |
383 | wxID_PROPERTIES = wxc.wxID_PROPERTIES | |
384 | wxID_VIEW_DETAILS = wxc.wxID_VIEW_DETAILS | |
385 | wxID_VIEW_LARGEICONS = wxc.wxID_VIEW_LARGEICONS | |
386 | wxID_VIEW_SMALLICONS = wxc.wxID_VIEW_SMALLICONS | |
387 | wxID_VIEW_LIST = wxc.wxID_VIEW_LIST | |
388 | wxID_VIEW_SORTDATE = wxc.wxID_VIEW_SORTDATE | |
389 | wxID_VIEW_SORTNAME = wxc.wxID_VIEW_SORTNAME | |
390 | wxID_VIEW_SORTSIZE = wxc.wxID_VIEW_SORTSIZE | |
391 | wxID_VIEW_SORTTYPE = wxc.wxID_VIEW_SORTTYPE | |
b8b8dda7 RD |
392 | wxID_FILE1 = wxc.wxID_FILE1 |
393 | wxID_FILE2 = wxc.wxID_FILE2 | |
394 | wxID_FILE3 = wxc.wxID_FILE3 | |
395 | wxID_FILE4 = wxc.wxID_FILE4 | |
396 | wxID_FILE5 = wxc.wxID_FILE5 | |
397 | wxID_FILE6 = wxc.wxID_FILE6 | |
398 | wxID_FILE7 = wxc.wxID_FILE7 | |
399 | wxID_FILE8 = wxc.wxID_FILE8 | |
400 | wxID_FILE9 = wxc.wxID_FILE9 | |
401 | wxID_OK = wxc.wxID_OK | |
402 | wxID_CANCEL = wxc.wxID_CANCEL | |
403 | wxID_APPLY = wxc.wxID_APPLY | |
404 | wxID_YES = wxc.wxID_YES | |
405 | wxID_NO = wxc.wxID_NO | |
cf694132 | 406 | wxID_STATIC = wxc.wxID_STATIC |
471825d7 RD |
407 | wxID_FORWARD = wxc.wxID_FORWARD |
408 | wxID_BACKWARD = wxc.wxID_BACKWARD | |
49df1f52 | 409 | wxID_DEFAULT = wxc.wxID_DEFAULT |
471825d7 | 410 | wxID_MORE = wxc.wxID_MORE |
49df1f52 RD |
411 | wxID_SETUP = wxc.wxID_SETUP |
412 | wxID_RESET = wxc.wxID_RESET | |
413 | wxID_CONTEXT_HELP = wxc.wxID_CONTEXT_HELP | |
414 | wxID_YESTOALL = wxc.wxID_YESTOALL | |
415 | wxID_NOTOALL = wxc.wxID_NOTOALL | |
416 | wxID_ABORT = wxc.wxID_ABORT | |
417 | wxID_RETRY = wxc.wxID_RETRY | |
418 | wxID_IGNORE = wxc.wxID_IGNORE | |
b8b8dda7 RD |
419 | wxOPEN = wxc.wxOPEN |
420 | wxSAVE = wxc.wxSAVE | |
421 | wxHIDE_READONLY = wxc.wxHIDE_READONLY | |
422 | wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT | |
2abc0a0f | 423 | wxFILE_MUST_EXIST = wxc.wxFILE_MUST_EXIST |
f6bcfd97 | 424 | wxMULTIPLE = wxc.wxMULTIPLE |
9c4165ad | 425 | wxCHANGE_DIR = wxc.wxCHANGE_DIR |
b8b8dda7 RD |
426 | wxACCEL_ALT = wxc.wxACCEL_ALT |
427 | wxACCEL_CTRL = wxc.wxACCEL_CTRL | |
428 | wxACCEL_SHIFT = wxc.wxACCEL_SHIFT | |
f6bcfd97 | 429 | wxACCEL_NORMAL = wxc.wxACCEL_NORMAL |
bb0054cd RD |
430 | wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE |
431 | wxPD_APP_MODAL = wxc.wxPD_APP_MODAL | |
432 | wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT | |
a08cbc01 RD |
433 | wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME |
434 | wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME | |
435 | wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME | |
301dfd67 | 436 | wxDD_NEW_DIR_BUTTON = wxc.wxDD_NEW_DIR_BUTTON |
ef12d2e2 | 437 | wxDD_DEFAULT_STYLE = wxc.wxDD_DEFAULT_STYLE |
8bf5d46e | 438 | wxMENU_TEAROFF = wxc.wxMENU_TEAROFF |
1afc06c2 | 439 | wxMB_DOCKABLE = wxc.wxMB_DOCKABLE |
8bf5d46e | 440 | wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE |
1afc06c2 RD |
441 | wxLEFT = wxc.wxLEFT |
442 | wxRIGHT = wxc.wxRIGHT | |
443 | wxUP = wxc.wxUP | |
444 | wxDOWN = wxc.wxDOWN | |
445 | wxALL = wxc.wxALL | |
446 | wxTOP = wxc.wxTOP | |
447 | wxBOTTOM = wxc.wxBOTTOM | |
448 | wxNORTH = wxc.wxNORTH | |
449 | wxSOUTH = wxc.wxSOUTH | |
450 | wxEAST = wxc.wxEAST | |
451 | wxWEST = wxc.wxWEST | |
452 | wxSTRETCH_NOT = wxc.wxSTRETCH_NOT | |
453 | wxSHRINK = wxc.wxSHRINK | |
454 | wxGROW = wxc.wxGROW | |
455 | wxEXPAND = wxc.wxEXPAND | |
1afc06c2 RD |
456 | wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL |
457 | wxLI_VERTICAL = wxc.wxLI_VERTICAL | |
2cd2fac8 RD |
458 | wxJOYSTICK1 = wxc.wxJOYSTICK1 |
459 | wxJOYSTICK2 = wxc.wxJOYSTICK2 | |
460 | wxJOY_BUTTON1 = wxc.wxJOY_BUTTON1 | |
461 | wxJOY_BUTTON2 = wxc.wxJOY_BUTTON2 | |
462 | wxJOY_BUTTON3 = wxc.wxJOY_BUTTON3 | |
463 | wxJOY_BUTTON4 = wxc.wxJOY_BUTTON4 | |
464 | wxJOY_BUTTON_ANY = wxc.wxJOY_BUTTON_ANY | |
7a446686 | 465 | wxWS_EX_VALIDATE_RECURSIVELY = wxc.wxWS_EX_VALIDATE_RECURSIVELY |
0220cbc1 | 466 | wxWS_EX_BLOCK_EVENTS = wxc.wxWS_EX_BLOCK_EVENTS |
74bcba0e | 467 | wxWS_EX_TRANSIENT = wxc.wxWS_EX_TRANSIENT |
3ef86e32 RD |
468 | wxWS_EX_THEMED_BACKGROUND = wxc.wxWS_EX_THEMED_BACKGROUND |
469 | wxWS_EX_PROCESS_IDLE = wxc.wxWS_EX_PROCESS_IDLE | |
470 | wxWS_EX_PROCESS_UI_UPDATES = wxc.wxWS_EX_PROCESS_UI_UPDATES | |
32c988a3 RD |
471 | wxMM_TEXT = wxc.wxMM_TEXT |
472 | wxMM_LOMETRIC = wxc.wxMM_LOMETRIC | |
473 | wxMM_HIMETRIC = wxc.wxMM_HIMETRIC | |
474 | wxMM_LOENGLISH = wxc.wxMM_LOENGLISH | |
475 | wxMM_HIENGLISH = wxc.wxMM_HIENGLISH | |
476 | wxMM_TWIPS = wxc.wxMM_TWIPS | |
477 | wxMM_ISOTROPIC = wxc.wxMM_ISOTROPIC | |
478 | wxMM_ANISOTROPIC = wxc.wxMM_ANISOTROPIC | |
479 | wxMM_POINTS = wxc.wxMM_POINTS | |
480 | wxMM_METRIC = wxc.wxMM_METRIC | |
c8c000ef RD |
481 | wxTIMER_CONTINUOUS = wxc.wxTIMER_CONTINUOUS |
482 | wxTIMER_ONE_SHOT = wxc.wxTIMER_ONE_SHOT | |
ba77f390 RD |
483 | wxMOUSE_BTN_ANY = wxc.wxMOUSE_BTN_ANY |
484 | wxMOUSE_BTN_NONE = wxc.wxMOUSE_BTN_NONE | |
485 | wxMOUSE_BTN_LEFT = wxc.wxMOUSE_BTN_LEFT | |
486 | wxMOUSE_BTN_MIDDLE = wxc.wxMOUSE_BTN_MIDDLE | |
487 | wxMOUSE_BTN_RIGHT = wxc.wxMOUSE_BTN_RIGHT | |
6e8a778a RD |
488 | wxBORDER_DEFAULT = wxc.wxBORDER_DEFAULT |
489 | wxBORDER_NONE = wxc.wxBORDER_NONE | |
490 | wxBORDER_STATIC = wxc.wxBORDER_STATIC | |
491 | wxBORDER_SIMPLE = wxc.wxBORDER_SIMPLE | |
492 | wxBORDER_RAISED = wxc.wxBORDER_RAISED | |
493 | wxBORDER_SUNKEN = wxc.wxBORDER_SUNKEN | |
494 | wxBORDER_DOUBLE = wxc.wxBORDER_DOUBLE | |
495 | wxBORDER_MASK = wxc.wxBORDER_MASK | |
b8b8dda7 RD |
496 | wxDEFAULT = wxc.wxDEFAULT |
497 | wxDECORATIVE = wxc.wxDECORATIVE | |
498 | wxROMAN = wxc.wxROMAN | |
499 | wxSCRIPT = wxc.wxSCRIPT | |
500 | wxSWISS = wxc.wxSWISS | |
501 | wxMODERN = wxc.wxMODERN | |
502 | wxTELETYPE = wxc.wxTELETYPE | |
503 | wxVARIABLE = wxc.wxVARIABLE | |
504 | wxFIXED = wxc.wxFIXED | |
505 | wxNORMAL = wxc.wxNORMAL | |
506 | wxLIGHT = wxc.wxLIGHT | |
507 | wxBOLD = wxc.wxBOLD | |
508 | wxITALIC = wxc.wxITALIC | |
509 | wxSLANT = wxc.wxSLANT | |
510 | wxSOLID = wxc.wxSOLID | |
511 | wxDOT = wxc.wxDOT | |
512 | wxLONG_DASH = wxc.wxLONG_DASH | |
513 | wxSHORT_DASH = wxc.wxSHORT_DASH | |
514 | wxDOT_DASH = wxc.wxDOT_DASH | |
515 | wxUSER_DASH = wxc.wxUSER_DASH | |
516 | wxTRANSPARENT = wxc.wxTRANSPARENT | |
517 | wxSTIPPLE = wxc.wxSTIPPLE | |
518 | wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH | |
519 | wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH | |
520 | wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH | |
521 | wxCROSS_HATCH = wxc.wxCROSS_HATCH | |
522 | wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH | |
523 | wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH | |
524 | wxJOIN_BEVEL = wxc.wxJOIN_BEVEL | |
525 | wxJOIN_MITER = wxc.wxJOIN_MITER | |
526 | wxJOIN_ROUND = wxc.wxJOIN_ROUND | |
527 | wxCAP_ROUND = wxc.wxCAP_ROUND | |
528 | wxCAP_PROJECTING = wxc.wxCAP_PROJECTING | |
529 | wxCAP_BUTT = wxc.wxCAP_BUTT | |
530 | wxCLEAR = wxc.wxCLEAR | |
531 | wxXOR = wxc.wxXOR | |
532 | wxINVERT = wxc.wxINVERT | |
533 | wxOR_REVERSE = wxc.wxOR_REVERSE | |
534 | wxAND_REVERSE = wxc.wxAND_REVERSE | |
535 | wxCOPY = wxc.wxCOPY | |
536 | wxAND = wxc.wxAND | |
537 | wxAND_INVERT = wxc.wxAND_INVERT | |
538 | wxNO_OP = wxc.wxNO_OP | |
539 | wxNOR = wxc.wxNOR | |
540 | wxEQUIV = wxc.wxEQUIV | |
541 | wxSRC_INVERT = wxc.wxSRC_INVERT | |
542 | wxOR_INVERT = wxc.wxOR_INVERT | |
543 | wxNAND = wxc.wxNAND | |
544 | wxOR = wxc.wxOR | |
545 | wxSET = wxc.wxSET | |
b8b8dda7 RD |
546 | WXK_BACK = wxc.WXK_BACK |
547 | WXK_TAB = wxc.WXK_TAB | |
548 | WXK_RETURN = wxc.WXK_RETURN | |
549 | WXK_ESCAPE = wxc.WXK_ESCAPE | |
550 | WXK_SPACE = wxc.WXK_SPACE | |
551 | WXK_DELETE = wxc.WXK_DELETE | |
552 | WXK_START = wxc.WXK_START | |
553 | WXK_LBUTTON = wxc.WXK_LBUTTON | |
554 | WXK_RBUTTON = wxc.WXK_RBUTTON | |
555 | WXK_CANCEL = wxc.WXK_CANCEL | |
556 | WXK_MBUTTON = wxc.WXK_MBUTTON | |
557 | WXK_CLEAR = wxc.WXK_CLEAR | |
558 | WXK_SHIFT = wxc.WXK_SHIFT | |
32c988a3 | 559 | WXK_ALT = wxc.WXK_ALT |
b8b8dda7 RD |
560 | WXK_CONTROL = wxc.WXK_CONTROL |
561 | WXK_MENU = wxc.WXK_MENU | |
562 | WXK_PAUSE = wxc.WXK_PAUSE | |
563 | WXK_CAPITAL = wxc.WXK_CAPITAL | |
564 | WXK_PRIOR = wxc.WXK_PRIOR | |
565 | WXK_NEXT = wxc.WXK_NEXT | |
566 | WXK_END = wxc.WXK_END | |
567 | WXK_HOME = wxc.WXK_HOME | |
568 | WXK_LEFT = wxc.WXK_LEFT | |
569 | WXK_UP = wxc.WXK_UP | |
570 | WXK_RIGHT = wxc.WXK_RIGHT | |
571 | WXK_DOWN = wxc.WXK_DOWN | |
572 | WXK_SELECT = wxc.WXK_SELECT | |
573 | WXK_PRINT = wxc.WXK_PRINT | |
574 | WXK_EXECUTE = wxc.WXK_EXECUTE | |
575 | WXK_SNAPSHOT = wxc.WXK_SNAPSHOT | |
576 | WXK_INSERT = wxc.WXK_INSERT | |
577 | WXK_HELP = wxc.WXK_HELP | |
578 | WXK_NUMPAD0 = wxc.WXK_NUMPAD0 | |
579 | WXK_NUMPAD1 = wxc.WXK_NUMPAD1 | |
580 | WXK_NUMPAD2 = wxc.WXK_NUMPAD2 | |
581 | WXK_NUMPAD3 = wxc.WXK_NUMPAD3 | |
582 | WXK_NUMPAD4 = wxc.WXK_NUMPAD4 | |
583 | WXK_NUMPAD5 = wxc.WXK_NUMPAD5 | |
584 | WXK_NUMPAD6 = wxc.WXK_NUMPAD6 | |
585 | WXK_NUMPAD7 = wxc.WXK_NUMPAD7 | |
586 | WXK_NUMPAD8 = wxc.WXK_NUMPAD8 | |
587 | WXK_NUMPAD9 = wxc.WXK_NUMPAD9 | |
588 | WXK_MULTIPLY = wxc.WXK_MULTIPLY | |
589 | WXK_ADD = wxc.WXK_ADD | |
590 | WXK_SEPARATOR = wxc.WXK_SEPARATOR | |
591 | WXK_SUBTRACT = wxc.WXK_SUBTRACT | |
592 | WXK_DECIMAL = wxc.WXK_DECIMAL | |
593 | WXK_DIVIDE = wxc.WXK_DIVIDE | |
594 | WXK_F1 = wxc.WXK_F1 | |
595 | WXK_F2 = wxc.WXK_F2 | |
596 | WXK_F3 = wxc.WXK_F3 | |
597 | WXK_F4 = wxc.WXK_F4 | |
598 | WXK_F5 = wxc.WXK_F5 | |
599 | WXK_F6 = wxc.WXK_F6 | |
600 | WXK_F7 = wxc.WXK_F7 | |
601 | WXK_F8 = wxc.WXK_F8 | |
602 | WXK_F9 = wxc.WXK_F9 | |
603 | WXK_F10 = wxc.WXK_F10 | |
604 | WXK_F11 = wxc.WXK_F11 | |
605 | WXK_F12 = wxc.WXK_F12 | |
606 | WXK_F13 = wxc.WXK_F13 | |
607 | WXK_F14 = wxc.WXK_F14 | |
608 | WXK_F15 = wxc.WXK_F15 | |
609 | WXK_F16 = wxc.WXK_F16 | |
610 | WXK_F17 = wxc.WXK_F17 | |
611 | WXK_F18 = wxc.WXK_F18 | |
612 | WXK_F19 = wxc.WXK_F19 | |
613 | WXK_F20 = wxc.WXK_F20 | |
614 | WXK_F21 = wxc.WXK_F21 | |
615 | WXK_F22 = wxc.WXK_F22 | |
616 | WXK_F23 = wxc.WXK_F23 | |
617 | WXK_F24 = wxc.WXK_F24 | |
618 | WXK_NUMLOCK = wxc.WXK_NUMLOCK | |
619 | WXK_SCROLL = wxc.WXK_SCROLL | |
620 | WXK_PAGEUP = wxc.WXK_PAGEUP | |
621 | WXK_PAGEDOWN = wxc.WXK_PAGEDOWN | |
32c988a3 RD |
622 | WXK_NUMPAD_SPACE = wxc.WXK_NUMPAD_SPACE |
623 | WXK_NUMPAD_TAB = wxc.WXK_NUMPAD_TAB | |
624 | WXK_NUMPAD_ENTER = wxc.WXK_NUMPAD_ENTER | |
625 | WXK_NUMPAD_F1 = wxc.WXK_NUMPAD_F1 | |
626 | WXK_NUMPAD_F2 = wxc.WXK_NUMPAD_F2 | |
627 | WXK_NUMPAD_F3 = wxc.WXK_NUMPAD_F3 | |
628 | WXK_NUMPAD_F4 = wxc.WXK_NUMPAD_F4 | |
629 | WXK_NUMPAD_HOME = wxc.WXK_NUMPAD_HOME | |
630 | WXK_NUMPAD_LEFT = wxc.WXK_NUMPAD_LEFT | |
631 | WXK_NUMPAD_UP = wxc.WXK_NUMPAD_UP | |
632 | WXK_NUMPAD_RIGHT = wxc.WXK_NUMPAD_RIGHT | |
633 | WXK_NUMPAD_DOWN = wxc.WXK_NUMPAD_DOWN | |
634 | WXK_NUMPAD_PRIOR = wxc.WXK_NUMPAD_PRIOR | |
635 | WXK_NUMPAD_PAGEUP = wxc.WXK_NUMPAD_PAGEUP | |
636 | WXK_NUMPAD_NEXT = wxc.WXK_NUMPAD_NEXT | |
637 | WXK_NUMPAD_PAGEDOWN = wxc.WXK_NUMPAD_PAGEDOWN | |
638 | WXK_NUMPAD_END = wxc.WXK_NUMPAD_END | |
639 | WXK_NUMPAD_BEGIN = wxc.WXK_NUMPAD_BEGIN | |
640 | WXK_NUMPAD_INSERT = wxc.WXK_NUMPAD_INSERT | |
641 | WXK_NUMPAD_DELETE = wxc.WXK_NUMPAD_DELETE | |
642 | WXK_NUMPAD_EQUAL = wxc.WXK_NUMPAD_EQUAL | |
643 | WXK_NUMPAD_MULTIPLY = wxc.WXK_NUMPAD_MULTIPLY | |
644 | WXK_NUMPAD_ADD = wxc.WXK_NUMPAD_ADD | |
645 | WXK_NUMPAD_SEPARATOR = wxc.WXK_NUMPAD_SEPARATOR | |
646 | WXK_NUMPAD_SUBTRACT = wxc.WXK_NUMPAD_SUBTRACT | |
647 | WXK_NUMPAD_DECIMAL = wxc.WXK_NUMPAD_DECIMAL | |
648 | WXK_NUMPAD_DIVIDE = wxc.WXK_NUMPAD_DIVIDE | |
3100de99 RD |
649 | WXK_WINDOWS_LEFT = wxc.WXK_WINDOWS_LEFT |
650 | WXK_WINDOWS_RIGHT = wxc.WXK_WINDOWS_RIGHT | |
651 | WXK_WINDOWS_MENU = wxc.WXK_WINDOWS_MENU | |
7a446686 RD |
652 | wxBITMAP_TYPE_INVALID = wxc.wxBITMAP_TYPE_INVALID |
653 | wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP | |
654 | wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE | |
655 | wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE | |
656 | wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO | |
657 | wxBITMAP_TYPE_ICO_RESOURCE = wxc.wxBITMAP_TYPE_ICO_RESOURCE | |
658 | wxBITMAP_TYPE_CUR = wxc.wxBITMAP_TYPE_CUR | |
659 | wxBITMAP_TYPE_CUR_RESOURCE = wxc.wxBITMAP_TYPE_CUR_RESOURCE | |
660 | wxBITMAP_TYPE_XBM = wxc.wxBITMAP_TYPE_XBM | |
661 | wxBITMAP_TYPE_XBM_DATA = wxc.wxBITMAP_TYPE_XBM_DATA | |
662 | wxBITMAP_TYPE_XPM = wxc.wxBITMAP_TYPE_XPM | |
663 | wxBITMAP_TYPE_XPM_DATA = wxc.wxBITMAP_TYPE_XPM_DATA | |
664 | wxBITMAP_TYPE_TIF = wxc.wxBITMAP_TYPE_TIF | |
665 | wxBITMAP_TYPE_TIF_RESOURCE = wxc.wxBITMAP_TYPE_TIF_RESOURCE | |
666 | wxBITMAP_TYPE_GIF = wxc.wxBITMAP_TYPE_GIF | |
667 | wxBITMAP_TYPE_GIF_RESOURCE = wxc.wxBITMAP_TYPE_GIF_RESOURCE | |
668 | wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG | |
669 | wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE | |
670 | wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG | |
671 | wxBITMAP_TYPE_JPEG_RESOURCE = wxc.wxBITMAP_TYPE_JPEG_RESOURCE | |
672 | wxBITMAP_TYPE_PNM = wxc.wxBITMAP_TYPE_PNM | |
673 | wxBITMAP_TYPE_PNM_RESOURCE = wxc.wxBITMAP_TYPE_PNM_RESOURCE | |
674 | wxBITMAP_TYPE_PCX = wxc.wxBITMAP_TYPE_PCX | |
675 | wxBITMAP_TYPE_PCX_RESOURCE = wxc.wxBITMAP_TYPE_PCX_RESOURCE | |
676 | wxBITMAP_TYPE_PICT = wxc.wxBITMAP_TYPE_PICT | |
677 | wxBITMAP_TYPE_PICT_RESOURCE = wxc.wxBITMAP_TYPE_PICT_RESOURCE | |
678 | wxBITMAP_TYPE_ICON = wxc.wxBITMAP_TYPE_ICON | |
679 | wxBITMAP_TYPE_ICON_RESOURCE = wxc.wxBITMAP_TYPE_ICON_RESOURCE | |
db34b2d4 | 680 | wxBITMAP_TYPE_ANI = wxc.wxBITMAP_TYPE_ANI |
85247b36 | 681 | wxBITMAP_TYPE_IFF = wxc.wxBITMAP_TYPE_IFF |
7a446686 RD |
682 | wxBITMAP_TYPE_MACCURSOR = wxc.wxBITMAP_TYPE_MACCURSOR |
683 | wxBITMAP_TYPE_MACCURSOR_RESOURCE = wxc.wxBITMAP_TYPE_MACCURSOR_RESOURCE | |
684 | wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY | |
b8b8dda7 RD |
685 | wxCURSOR_NONE = wxc.wxCURSOR_NONE |
686 | wxCURSOR_ARROW = wxc.wxCURSOR_ARROW | |
a884bee5 | 687 | wxCURSOR_RIGHT_ARROW = wxc.wxCURSOR_RIGHT_ARROW |
b8b8dda7 RD |
688 | wxCURSOR_BULLSEYE = wxc.wxCURSOR_BULLSEYE |
689 | wxCURSOR_CHAR = wxc.wxCURSOR_CHAR | |
690 | wxCURSOR_CROSS = wxc.wxCURSOR_CROSS | |
691 | wxCURSOR_HAND = wxc.wxCURSOR_HAND | |
692 | wxCURSOR_IBEAM = wxc.wxCURSOR_IBEAM | |
693 | wxCURSOR_LEFT_BUTTON = wxc.wxCURSOR_LEFT_BUTTON | |
694 | wxCURSOR_MAGNIFIER = wxc.wxCURSOR_MAGNIFIER | |
695 | wxCURSOR_MIDDLE_BUTTON = wxc.wxCURSOR_MIDDLE_BUTTON | |
696 | wxCURSOR_NO_ENTRY = wxc.wxCURSOR_NO_ENTRY | |
697 | wxCURSOR_PAINT_BRUSH = wxc.wxCURSOR_PAINT_BRUSH | |
698 | wxCURSOR_PENCIL = wxc.wxCURSOR_PENCIL | |
699 | wxCURSOR_POINT_LEFT = wxc.wxCURSOR_POINT_LEFT | |
700 | wxCURSOR_POINT_RIGHT = wxc.wxCURSOR_POINT_RIGHT | |
701 | wxCURSOR_QUESTION_ARROW = wxc.wxCURSOR_QUESTION_ARROW | |
702 | wxCURSOR_RIGHT_BUTTON = wxc.wxCURSOR_RIGHT_BUTTON | |
703 | wxCURSOR_SIZENESW = wxc.wxCURSOR_SIZENESW | |
704 | wxCURSOR_SIZENS = wxc.wxCURSOR_SIZENS | |
705 | wxCURSOR_SIZENWSE = wxc.wxCURSOR_SIZENWSE | |
706 | wxCURSOR_SIZEWE = wxc.wxCURSOR_SIZEWE | |
707 | wxCURSOR_SIZING = wxc.wxCURSOR_SIZING | |
708 | wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN | |
709 | wxCURSOR_WAIT = wxc.wxCURSOR_WAIT | |
710 | wxCURSOR_WATCH = wxc.wxCURSOR_WATCH | |
711 | wxCURSOR_BLANK = wxc.wxCURSOR_BLANK | |
7a446686 RD |
712 | wxCURSOR_DEFAULT = wxc.wxCURSOR_DEFAULT |
713 | wxCURSOR_ARROWWAIT = wxc.wxCURSOR_ARROWWAIT | |
714 | wxCURSOR_MAX = wxc.wxCURSOR_MAX | |
cf694132 RD |
715 | wxPAPER_NONE = wxc.wxPAPER_NONE |
716 | wxPAPER_LETTER = wxc.wxPAPER_LETTER | |
717 | wxPAPER_LEGAL = wxc.wxPAPER_LEGAL | |
718 | wxPAPER_A4 = wxc.wxPAPER_A4 | |
719 | wxPAPER_CSHEET = wxc.wxPAPER_CSHEET | |
720 | wxPAPER_DSHEET = wxc.wxPAPER_DSHEET | |
721 | wxPAPER_ESHEET = wxc.wxPAPER_ESHEET | |
722 | wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL | |
723 | wxPAPER_TABLOID = wxc.wxPAPER_TABLOID | |
724 | wxPAPER_LEDGER = wxc.wxPAPER_LEDGER | |
725 | wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT | |
726 | wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE | |
727 | wxPAPER_A3 = wxc.wxPAPER_A3 | |
728 | wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL | |
729 | wxPAPER_A5 = wxc.wxPAPER_A5 | |
730 | wxPAPER_B4 = wxc.wxPAPER_B4 | |
731 | wxPAPER_B5 = wxc.wxPAPER_B5 | |
732 | wxPAPER_FOLIO = wxc.wxPAPER_FOLIO | |
733 | wxPAPER_QUARTO = wxc.wxPAPER_QUARTO | |
734 | wxPAPER_10X14 = wxc.wxPAPER_10X14 | |
735 | wxPAPER_11X17 = wxc.wxPAPER_11X17 | |
736 | wxPAPER_NOTE = wxc.wxPAPER_NOTE | |
737 | wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9 | |
738 | wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10 | |
739 | wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11 | |
740 | wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12 | |
741 | wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14 | |
742 | wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL | |
743 | wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5 | |
744 | wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3 | |
745 | wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4 | |
746 | wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6 | |
747 | wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65 | |
748 | wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4 | |
749 | wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5 | |
750 | wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6 | |
751 | wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY | |
752 | wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH | |
753 | wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL | |
754 | wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US | |
755 | wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN | |
756 | wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN | |
757 | wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4 | |
758 | wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD | |
759 | wxPAPER_9X11 = wxc.wxPAPER_9X11 | |
760 | wxPAPER_10X11 = wxc.wxPAPER_10X11 | |
761 | wxPAPER_15X11 = wxc.wxPAPER_15X11 | |
762 | wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE | |
763 | wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA | |
764 | wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA | |
765 | wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA | |
766 | wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA | |
767 | wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE | |
768 | wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE | |
769 | wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE | |
770 | wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS | |
771 | wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS | |
772 | wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS | |
773 | wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS | |
774 | wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE | |
775 | wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE | |
776 | wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA | |
777 | wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA | |
778 | wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA | |
779 | wxPAPER_A2 = wxc.wxPAPER_A2 | |
780 | wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE | |
781 | wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE | |
bb0054cd RD |
782 | wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX |
783 | wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL | |
784 | wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL | |
546bfbea VS |
785 | wxITEM_SEPARATOR = wxc.wxITEM_SEPARATOR |
786 | wxITEM_NORMAL = wxc.wxITEM_NORMAL | |
787 | wxITEM_CHECK = wxc.wxITEM_CHECK | |
788 | wxITEM_RADIO = wxc.wxITEM_RADIO | |
789 | wxITEM_MAX = wxc.wxITEM_MAX | |
8cb49012 RD |
790 | wxHT_NOWHERE = wxc.wxHT_NOWHERE |
791 | wxHT_SCROLLBAR_FIRST = wxc.wxHT_SCROLLBAR_FIRST | |
792 | wxHT_SCROLLBAR_ARROW_LINE_1 = wxc.wxHT_SCROLLBAR_ARROW_LINE_1 | |
793 | wxHT_SCROLLBAR_ARROW_LINE_2 = wxc.wxHT_SCROLLBAR_ARROW_LINE_2 | |
794 | wxHT_SCROLLBAR_ARROW_PAGE_1 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_1 | |
795 | wxHT_SCROLLBAR_ARROW_PAGE_2 = wxc.wxHT_SCROLLBAR_ARROW_PAGE_2 | |
796 | wxHT_SCROLLBAR_THUMB = wxc.wxHT_SCROLLBAR_THUMB | |
797 | wxHT_SCROLLBAR_BAR_1 = wxc.wxHT_SCROLLBAR_BAR_1 | |
798 | wxHT_SCROLLBAR_BAR_2 = wxc.wxHT_SCROLLBAR_BAR_2 | |
799 | wxHT_SCROLLBAR_LAST = wxc.wxHT_SCROLLBAR_LAST | |
800 | wxHT_WINDOW_OUTSIDE = wxc.wxHT_WINDOW_OUTSIDE | |
801 | wxHT_WINDOW_INSIDE = wxc.wxHT_WINDOW_INSIDE | |
802 | wxHT_WINDOW_VERT_SCROLLBAR = wxc.wxHT_WINDOW_VERT_SCROLLBAR | |
803 | wxHT_WINDOW_HORZ_SCROLLBAR = wxc.wxHT_WINDOW_HORZ_SCROLLBAR | |
804 | wxHT_WINDOW_CORNER = wxc.wxHT_WINDOW_CORNER | |
805 | wxHT_MAX = wxc.wxHT_MAX | |
3ef86e32 RD |
806 | wxMOD_NONE = wxc.wxMOD_NONE |
807 | wxMOD_ALT = wxc.wxMOD_ALT | |
808 | wxMOD_CONTROL = wxc.wxMOD_CONTROL | |
809 | wxMOD_SHIFT = wxc.wxMOD_SHIFT | |
810 | wxMOD_WIN = wxc.wxMOD_WIN | |
811 | wxUPDATE_UI_NONE = wxc.wxUPDATE_UI_NONE | |
812 | wxUPDATE_UI_RECURSE = wxc.wxUPDATE_UI_RECURSE | |
813 | wxUPDATE_UI_FROMIDLE = wxc.wxUPDATE_UI_FROMIDLE | |
b8b8dda7 RD |
814 | wxEVT_NULL = wxc.wxEVT_NULL |
815 | wxEVT_FIRST = wxc.wxEVT_FIRST | |
816 | wxEVT_COMMAND_BUTTON_CLICKED = wxc.wxEVT_COMMAND_BUTTON_CLICKED | |
817 | wxEVT_COMMAND_CHECKBOX_CLICKED = wxc.wxEVT_COMMAND_CHECKBOX_CLICKED | |
818 | wxEVT_COMMAND_CHOICE_SELECTED = wxc.wxEVT_COMMAND_CHOICE_SELECTED | |
819 | wxEVT_COMMAND_LISTBOX_SELECTED = wxc.wxEVT_COMMAND_LISTBOX_SELECTED | |
820 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED | |
821 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED | |
3af4e610 | 822 | wxEVT_COMMAND_SPINCTRL_UPDATED = wxc.wxEVT_COMMAND_SPINCTRL_UPDATED |
b8b8dda7 RD |
823 | wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED |
824 | wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER | |
059a841c RD |
825 | wxEVT_COMMAND_TEXT_URL = wxc.wxEVT_COMMAND_TEXT_URL |
826 | wxEVT_COMMAND_TEXT_MAXLEN = wxc.wxEVT_COMMAND_TEXT_MAXLEN | |
b8b8dda7 RD |
827 | wxEVT_COMMAND_MENU_SELECTED = wxc.wxEVT_COMMAND_MENU_SELECTED |
828 | wxEVT_COMMAND_SLIDER_UPDATED = wxc.wxEVT_COMMAND_SLIDER_UPDATED | |
829 | wxEVT_COMMAND_RADIOBOX_SELECTED = wxc.wxEVT_COMMAND_RADIOBOX_SELECTED | |
830 | wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxc.wxEVT_COMMAND_RADIOBUTTON_SELECTED | |
831 | wxEVT_COMMAND_SCROLLBAR_UPDATED = wxc.wxEVT_COMMAND_SCROLLBAR_UPDATED | |
832 | wxEVT_COMMAND_VLBOX_SELECTED = wxc.wxEVT_COMMAND_VLBOX_SELECTED | |
833 | wxEVT_COMMAND_COMBOBOX_SELECTED = wxc.wxEVT_COMMAND_COMBOBOX_SELECTED | |
834 | wxEVT_COMMAND_TOOL_CLICKED = wxc.wxEVT_COMMAND_TOOL_CLICKED | |
835 | wxEVT_COMMAND_TOOL_RCLICKED = wxc.wxEVT_COMMAND_TOOL_RCLICKED | |
836 | wxEVT_COMMAND_TOOL_ENTER = wxc.wxEVT_COMMAND_TOOL_ENTER | |
837 | wxEVT_SET_FOCUS = wxc.wxEVT_SET_FOCUS | |
838 | wxEVT_KILL_FOCUS = wxc.wxEVT_KILL_FOCUS | |
3e212503 | 839 | wxEVT_CHILD_FOCUS = wxc.wxEVT_CHILD_FOCUS |
7a446686 | 840 | wxEVT_MOUSEWHEEL = wxc.wxEVT_MOUSEWHEEL |
b8b8dda7 RD |
841 | wxEVT_LEFT_DOWN = wxc.wxEVT_LEFT_DOWN |
842 | wxEVT_LEFT_UP = wxc.wxEVT_LEFT_UP | |
843 | wxEVT_MIDDLE_DOWN = wxc.wxEVT_MIDDLE_DOWN | |
844 | wxEVT_MIDDLE_UP = wxc.wxEVT_MIDDLE_UP | |
845 | wxEVT_RIGHT_DOWN = wxc.wxEVT_RIGHT_DOWN | |
846 | wxEVT_RIGHT_UP = wxc.wxEVT_RIGHT_UP | |
847 | wxEVT_MOTION = wxc.wxEVT_MOTION | |
848 | wxEVT_ENTER_WINDOW = wxc.wxEVT_ENTER_WINDOW | |
849 | wxEVT_LEAVE_WINDOW = wxc.wxEVT_LEAVE_WINDOW | |
850 | wxEVT_LEFT_DCLICK = wxc.wxEVT_LEFT_DCLICK | |
851 | wxEVT_MIDDLE_DCLICK = wxc.wxEVT_MIDDLE_DCLICK | |
852 | wxEVT_RIGHT_DCLICK = wxc.wxEVT_RIGHT_DCLICK | |
94c16279 | 853 | wxEVT_MOUSE_CAPTURE_CHANGED = wxc.wxEVT_MOUSE_CAPTURE_CHANGED |
b8b8dda7 RD |
854 | wxEVT_NC_LEFT_DOWN = wxc.wxEVT_NC_LEFT_DOWN |
855 | wxEVT_NC_LEFT_UP = wxc.wxEVT_NC_LEFT_UP | |
856 | wxEVT_NC_MIDDLE_DOWN = wxc.wxEVT_NC_MIDDLE_DOWN | |
857 | wxEVT_NC_MIDDLE_UP = wxc.wxEVT_NC_MIDDLE_UP | |
858 | wxEVT_NC_RIGHT_DOWN = wxc.wxEVT_NC_RIGHT_DOWN | |
859 | wxEVT_NC_RIGHT_UP = wxc.wxEVT_NC_RIGHT_UP | |
860 | wxEVT_NC_MOTION = wxc.wxEVT_NC_MOTION | |
861 | wxEVT_NC_ENTER_WINDOW = wxc.wxEVT_NC_ENTER_WINDOW | |
862 | wxEVT_NC_LEAVE_WINDOW = wxc.wxEVT_NC_LEAVE_WINDOW | |
863 | wxEVT_NC_LEFT_DCLICK = wxc.wxEVT_NC_LEFT_DCLICK | |
864 | wxEVT_NC_MIDDLE_DCLICK = wxc.wxEVT_NC_MIDDLE_DCLICK | |
865 | wxEVT_NC_RIGHT_DCLICK = wxc.wxEVT_NC_RIGHT_DCLICK | |
298ae144 | 866 | wxEVT_SET_CURSOR = wxc.wxEVT_SET_CURSOR |
b8b8dda7 | 867 | wxEVT_CHAR = wxc.wxEVT_CHAR |
8bf5d46e RD |
868 | wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN |
869 | wxEVT_KEY_UP = wxc.wxEVT_KEY_UP | |
870 | wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK | |
3ef86e32 | 871 | wxEVT_HOTKEY = wxc.wxEVT_HOTKEY |
b8b8dda7 RD |
872 | wxEVT_SCROLL_TOP = wxc.wxEVT_SCROLL_TOP |
873 | wxEVT_SCROLL_BOTTOM = wxc.wxEVT_SCROLL_BOTTOM | |
874 | wxEVT_SCROLL_LINEUP = wxc.wxEVT_SCROLL_LINEUP | |
875 | wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN | |
876 | wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP | |
877 | wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN | |
878 | wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK | |
26b9cf27 | 879 | wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE |
123908fc | 880 | wxEVT_SCROLL_ENDSCROLL = wxc.wxEVT_SCROLL_ENDSCROLL |
bb0054cd RD |
881 | wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP |
882 | wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM | |
883 | wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP | |
884 | wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN | |
885 | wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP | |
886 | wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN | |
887 | wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK | |
26b9cf27 | 888 | wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE |
b8b8dda7 RD |
889 | wxEVT_SIZE = wxc.wxEVT_SIZE |
890 | wxEVT_MOVE = wxc.wxEVT_MOVE | |
3ef86e32 RD |
891 | wxEVT_SIZING = wxc.wxEVT_SIZING |
892 | wxEVT_MOVING = wxc.wxEVT_MOVING | |
b8b8dda7 RD |
893 | wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW |
894 | wxEVT_END_SESSION = wxc.wxEVT_END_SESSION | |
895 | wxEVT_QUERY_END_SESSION = wxc.wxEVT_QUERY_END_SESSION | |
896 | wxEVT_ACTIVATE_APP = wxc.wxEVT_ACTIVATE_APP | |
897 | wxEVT_POWER = wxc.wxEVT_POWER | |
b8b8dda7 RD |
898 | wxEVT_ACTIVATE = wxc.wxEVT_ACTIVATE |
899 | wxEVT_CREATE = wxc.wxEVT_CREATE | |
900 | wxEVT_DESTROY = wxc.wxEVT_DESTROY | |
901 | wxEVT_SHOW = wxc.wxEVT_SHOW | |
902 | wxEVT_ICONIZE = wxc.wxEVT_ICONIZE | |
903 | wxEVT_MAXIMIZE = wxc.wxEVT_MAXIMIZE | |
b8b8dda7 RD |
904 | wxEVT_PAINT = wxc.wxEVT_PAINT |
905 | wxEVT_ERASE_BACKGROUND = wxc.wxEVT_ERASE_BACKGROUND | |
906 | wxEVT_NC_PAINT = wxc.wxEVT_NC_PAINT | |
907 | wxEVT_PAINT_ICON = wxc.wxEVT_PAINT_ICON | |
4152e8b9 RD |
908 | wxEVT_MENU_OPEN = wxc.wxEVT_MENU_OPEN |
909 | wxEVT_MENU_CLOSE = wxc.wxEVT_MENU_CLOSE | |
b8b8dda7 | 910 | wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT |
f0972d1e | 911 | wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU |
b8b8dda7 | 912 | wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED |
ef2060fa | 913 | wxEVT_DISPLAY_CHANGED = wxc.wxEVT_DISPLAY_CHANGED |
b8b8dda7 RD |
914 | wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED |
915 | wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE | |
916 | wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED | |
917 | wxEVT_JOY_BUTTON_DOWN = wxc.wxEVT_JOY_BUTTON_DOWN | |
918 | wxEVT_JOY_BUTTON_UP = wxc.wxEVT_JOY_BUTTON_UP | |
919 | wxEVT_JOY_MOVE = wxc.wxEVT_JOY_MOVE | |
920 | wxEVT_JOY_ZMOVE = wxc.wxEVT_JOY_ZMOVE | |
921 | wxEVT_DROP_FILES = wxc.wxEVT_DROP_FILES | |
922 | wxEVT_DRAW_ITEM = wxc.wxEVT_DRAW_ITEM | |
923 | wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM | |
924 | wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM | |
925 | wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG | |
926 | wxEVT_IDLE = wxc.wxEVT_IDLE | |
927 | wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI | |
928 | wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK | |
929 | wxEVT_COMMAND_LEFT_DCLICK = wxc.wxEVT_COMMAND_LEFT_DCLICK | |
930 | wxEVT_COMMAND_RIGHT_CLICK = wxc.wxEVT_COMMAND_RIGHT_CLICK | |
931 | wxEVT_COMMAND_RIGHT_DCLICK = wxc.wxEVT_COMMAND_RIGHT_DCLICK | |
932 | wxEVT_COMMAND_SET_FOCUS = wxc.wxEVT_COMMAND_SET_FOCUS | |
933 | wxEVT_COMMAND_KILL_FOCUS = wxc.wxEVT_COMMAND_KILL_FOCUS | |
934 | wxEVT_COMMAND_ENTER = wxc.wxEVT_COMMAND_ENTER | |
2f90df85 | 935 | wxEVT_NAVIGATION_KEY = wxc.wxEVT_NAVIGATION_KEY |
f6bcfd97 | 936 | wxEVT_TIMER = wxc.wxEVT_TIMER |
b8b8dda7 | 937 | cvar = wxc.cvar |
b68dc582 RD |
938 | wxDefaultPosition = wxPointPtr(wxc.cvar.wxDefaultPosition) |
939 | wxDefaultSize = wxSizePtr(wxc.cvar.wxDefaultSize) | |
b67a9327 RD |
940 | wxPYAPP_ASSERT_SUPPRESS = wxc.wxPYAPP_ASSERT_SUPPRESS |
941 | wxPYAPP_ASSERT_EXCEPTION = wxc.wxPYAPP_ASSERT_EXCEPTION | |
942 | wxPYAPP_ASSERT_DIALOG = wxc.wxPYAPP_ASSERT_DIALOG | |
943 | wxPYAPP_ASSERT_LOG = wxc.wxPYAPP_ASSERT_LOG | |
b8b8dda7 RD |
944 | |
945 | ||
946 | #-------------- USER INCLUDE ----------------------- | |
947 | ||
948 | #---------------------------------------------------------------------------- | |
949 | # Name: _extra.py | |
b67a9327 | 950 | # Purpose: This file is appended to the shadow class file generated |
b8b8dda7 RD |
951 | # by SWIG. We add some unSWIGable things here. |
952 | # | |
953 | # Author: Robin Dunn | |
954 | # | |
955 | # Created: 6/30/97 | |
b8b8dda7 RD |
956 | # Copyright: (c) 1998 by Total Control Software |
957 | # Licence: wxWindows license | |
958 | #---------------------------------------------------------------------------- | |
959 | ||
960 | import sys | |
961 | ||
962 | #---------------------------------------------------------------------- | |
963 | # This gives this module's dictionary to the C++ extension code... | |
964 | ||
965 | _wxSetDictionary(vars()) | |
966 | ||
967 | ||
968 | #---------------------------------------------------------------------- | |
969 | #---------------------------------------------------------------------- | |
970 | # Helper function to link python methods to wxWindows virtual | |
971 | # functions by name. | |
972 | ||
973 | def _checkForCallback(obj, name, event, theID=-1): | |
974 | try: cb = getattr(obj, name) | |
975 | except: pass | |
976 | else: obj.Connect(theID, -1, event, cb) | |
977 | ||
b8b8dda7 RD |
978 | |
979 | #---------------------------------------------------------------------- | |
980 | #---------------------------------------------------------------------- | |
981 | # functions that look and act like the C++ Macros of the same name | |
982 | ||
983 | ||
984 | # Miscellaneous | |
985 | def EVT_SIZE(win, func): | |
986 | win.Connect(-1, -1, wxEVT_SIZE, func) | |
987 | ||
988 | def EVT_MOVE(win, func): | |
989 | win.Connect(-1, -1, wxEVT_MOVE, func) | |
990 | ||
3ef86e32 RD |
991 | def EVT_SIZING(win, func): |
992 | win.Connect(-1, -1, wxEVT_SIZING, func) | |
993 | ||
994 | def EVT_MOVING(win, func): | |
995 | win.Connect(-1, -1, wxEVT_MOVING, func) | |
996 | ||
b8b8dda7 RD |
997 | def EVT_CLOSE(win, func): |
998 | win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func) | |
999 | ||
1000 | def EVT_PAINT(win, func): | |
1001 | win.Connect(-1, -1, wxEVT_PAINT, func) | |
1002 | ||
1003 | def EVT_ERASE_BACKGROUND(win, func): | |
1004 | win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func) | |
1005 | ||
1006 | def EVT_CHAR(win, func): | |
1007 | win.Connect(-1, -1, wxEVT_CHAR, func) | |
1008 | ||
1009 | def EVT_CHAR_HOOK(win, func): | |
1010 | win.Connect(-1, -1, wxEVT_CHAR_HOOK, func) | |
1011 | ||
8bf5d46e RD |
1012 | def EVT_KEY_DOWN(win, func): |
1013 | win.Connect(-1, -1, wxEVT_KEY_DOWN, func) | |
1014 | ||
1015 | def EVT_KEY_UP(win, func): | |
1016 | win.Connect(-1, -1, wxEVT_KEY_UP, func) | |
1017 | ||
3ef86e32 RD |
1018 | def EVT_HOTKEY(win, func): |
1019 | win.Connect(-1, -1, wxEVT_HOTKEY, func) | |
1020 | ||
4152e8b9 RD |
1021 | def EVT_MENU_OPEN(win, func): |
1022 | win.Connect(-1, -1, wxEVT_MENU_OPEN, func) | |
1023 | ||
1024 | def EVT_MENU_CLOSE(win, func): | |
1025 | win.Connect(-1, -1, wxEVT_MENU_CLOSE, func) | |
1026 | ||
b8b8dda7 RD |
1027 | def EVT_MENU_HIGHLIGHT(win, id, func): |
1028 | win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func) | |
1029 | ||
1030 | def EVT_MENU_HIGHLIGHT_ALL(win, func): | |
1031 | win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func) | |
1032 | ||
1033 | def EVT_SET_FOCUS(win, func): | |
1034 | win.Connect(-1, -1, wxEVT_SET_FOCUS, func) | |
1035 | ||
1036 | def EVT_KILL_FOCUS(win, func): | |
1037 | win.Connect(-1, -1, wxEVT_KILL_FOCUS, func) | |
1038 | ||
3e212503 RD |
1039 | def EVT_CHILD_FOCUS(win, func): |
1040 | win.Connect(-1, -1, wxEVT_CHILD_FOCUS, func) | |
1041 | ||
b8b8dda7 RD |
1042 | def EVT_ACTIVATE(win, func): |
1043 | win.Connect(-1, -1, wxEVT_ACTIVATE, func) | |
1044 | ||
1045 | def EVT_ACTIVATE_APP(win, func): | |
1046 | win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func) | |
1047 | ||
1048 | def EVT_END_SESSION(win, func): | |
1049 | win.Connect(-1, -1, wxEVT_END_SESSION, func) | |
1050 | ||
1051 | def EVT_QUERY_END_SESSION(win, func): | |
1052 | win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func) | |
1053 | ||
1054 | def EVT_DROP_FILES(win, func): | |
1055 | win.Connect(-1, -1, wxEVT_DROP_FILES, func) | |
1056 | ||
1057 | def EVT_INIT_DIALOG(win, func): | |
1058 | win.Connect(-1, -1, wxEVT_INIT_DIALOG, func) | |
1059 | ||
1060 | def EVT_SYS_COLOUR_CHANGED(win, func): | |
1061 | win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func) | |
1062 | ||
ef2060fa RD |
1063 | def EVT_DISPLAY_CHANGED(win, func): |
1064 | win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func) | |
1065 | ||
b8b8dda7 RD |
1066 | def EVT_SHOW(win, func): |
1067 | win.Connect(-1, -1, wxEVT_SHOW, func) | |
1068 | ||
1069 | def EVT_MAXIMIZE(win, func): | |
1070 | win.Connect(-1, -1, wxEVT_MAXIMIZE, func) | |
1071 | ||
1072 | def EVT_ICONIZE(win, func): | |
1073 | win.Connect(-1, -1, wxEVT_ICONIZE, func) | |
1074 | ||
1075 | def EVT_NAVIGATION_KEY(win, func): | |
1076 | win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func) | |
1077 | ||
3af4e610 RD |
1078 | def EVT_PALETTE_CHANGED(win, func): |
1079 | win.Connect(-1, -1, wxEVT_PALETTE_CHANGED, func) | |
1080 | ||
1081 | def EVT_QUERY_NEW_PALETTE(win, func): | |
1082 | win.Connect(-1, -1, wxEVT_QUERY_NEW_PALETTE, func) | |
1083 | ||
1084 | def EVT_WINDOW_CREATE(win, func): | |
b7e72427 | 1085 | win.Connect(-1, -1, wxEVT_CREATE, func) |
3af4e610 RD |
1086 | |
1087 | def EVT_WINDOW_DESTROY(win, func): | |
b7e72427 | 1088 | win.Connect(-1, -1, wxEVT_DESTROY, func) |
3af4e610 | 1089 | |
b67a9327 RD |
1090 | def EVT_WINDOW_CREATE_ID(win, id, func): |
1091 | win.Connect(id, -1, wxEVT_CREATE, func) | |
1092 | ||
1093 | def EVT_WINDOW_DESTROY_ID(win, id, func): | |
1094 | win.Connect(id, -1, wxEVT_DESTROY, func) | |
1095 | ||
298ae144 RD |
1096 | def EVT_SET_CURSOR(win, func): |
1097 | win.Connect(-1, -1, wxEVT_SET_CURSOR, func) | |
1098 | ||
3af4e610 RD |
1099 | |
1100 | ||
cf694132 RD |
1101 | def EVT_IDLE(win, func): |
1102 | win.Connect(-1, -1, wxEVT_IDLE, func) | |
1103 | ||
bb0054cd RD |
1104 | def EVT_UPDATE_UI(win, id, func): |
1105 | win.Connect(id, -1, wxEVT_UPDATE_UI, func) | |
1106 | ||
eb715945 RD |
1107 | def EVT_UPDATE_UI_RANGE(win, id, id2, func): |
1108 | win.Connect(id, id2, wxEVT_UPDATE_UI, func) | |
1109 | ||
b8b8dda7 RD |
1110 | |
1111 | # Mouse Events | |
1112 | def EVT_LEFT_DOWN(win, func): | |
1113 | win.Connect(-1, -1, wxEVT_LEFT_DOWN, func) | |
1114 | ||
1115 | def EVT_LEFT_UP(win, func): | |
1116 | win.Connect(-1, -1, wxEVT_LEFT_UP, func) | |
1117 | ||
1118 | def EVT_MIDDLE_DOWN(win, func): | |
1119 | win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func) | |
1120 | ||
1121 | def EVT_MIDDLE_UP(win, func): | |
1122 | win.Connect(-1, -1, wxEVT_MIDDLE_UP, func) | |
1123 | ||
1124 | def EVT_RIGHT_DOWN(win, func): | |
1125 | win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func) | |
1126 | ||
1127 | def EVT_RIGHT_UP(win, func): | |
1128 | win.Connect(-1, -1, wxEVT_RIGHT_UP, func) | |
1129 | ||
1130 | def EVT_MOTION(win, func): | |
1131 | win.Connect(-1, -1, wxEVT_MOTION, func) | |
1132 | ||
1133 | def EVT_LEFT_DCLICK(win, func): | |
1134 | win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func) | |
1135 | ||
1136 | def EVT_MIDDLE_DCLICK(win, func): | |
1137 | win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func) | |
1138 | ||
1139 | def EVT_RIGHT_DCLICK(win, func): | |
1140 | win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func) | |
1141 | ||
1142 | def EVT_LEAVE_WINDOW(win, func): | |
1143 | win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func) | |
1144 | ||
1145 | def EVT_ENTER_WINDOW(win, func): | |
1146 | win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func) | |
1147 | ||
7a446686 RD |
1148 | def EVT_MOUSEWHEEL(win, func): |
1149 | win.Connect(-1, -1, wxEVT_MOUSEWHEEL, func) | |
b8b8dda7 RD |
1150 | |
1151 | # all mouse events | |
1152 | def EVT_MOUSE_EVENTS(win, func): | |
1153 | win.Connect(-1, -1, wxEVT_LEFT_DOWN, func) | |
1154 | win.Connect(-1, -1, wxEVT_LEFT_UP, func) | |
1155 | win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func) | |
1156 | win.Connect(-1, -1, wxEVT_MIDDLE_UP, func) | |
1157 | win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func) | |
1158 | win.Connect(-1, -1, wxEVT_RIGHT_UP, func) | |
1159 | win.Connect(-1, -1, wxEVT_MOTION, func) | |
1160 | win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func) | |
1161 | win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func) | |
1162 | win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func) | |
1163 | win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func) | |
1164 | win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func) | |
1165 | ||
94c16279 RD |
1166 | def EVT_MOUSE_CAPTURE_CHANGED(win, func): |
1167 | win.Connect(-1, -1, wxEVT_MOUSE_CAPTURE_CHANGED, func) | |
1168 | ||
b8b8dda7 RD |
1169 | # EVT_COMMAND |
1170 | def EVT_COMMAND(win, id, cmd, func): | |
1171 | win.Connect(id, -1, cmd, func) | |
1172 | ||
1173 | def EVT_COMMAND_RANGE(win, id1, id2, cmd, func): | |
1174 | win.Connect(id1, id2, cmd, func) | |
1175 | ||
26b9cf27 | 1176 | |
b8b8dda7 RD |
1177 | # Scrolling |
1178 | def EVT_SCROLL(win, func): | |
123908fc RD |
1179 | win.Connect(-1, -1, wxEVT_SCROLL_TOP, func) |
1180 | win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func) | |
1181 | win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func) | |
1182 | win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1183 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func) | |
1184 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1185 | win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func) | |
26b9cf27 | 1186 | win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func) |
123908fc | 1187 | win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func) |
b8b8dda7 RD |
1188 | |
1189 | def EVT_SCROLL_TOP(win, func): | |
1190 | win.Connect(-1, -1, wxEVT_SCROLL_TOP, func) | |
1191 | ||
1192 | def EVT_SCROLL_BOTTOM(win, func): | |
1193 | win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func) | |
1194 | ||
1195 | def EVT_SCROLL_LINEUP(win, func): | |
1196 | win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func) | |
1197 | ||
1198 | def EVT_SCROLL_LINEDOWN(win, func): | |
1199 | win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1200 | ||
1201 | def EVT_SCROLL_PAGEUP(win, func): | |
1202 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func) | |
1203 | ||
1204 | def EVT_SCROLL_PAGEDOWN(win, func): | |
1205 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1206 | ||
1207 | def EVT_SCROLL_THUMBTRACK(win, func): | |
1208 | win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func) | |
1209 | ||
26b9cf27 RD |
1210 | def EVT_SCROLL_THUMBRELEASE(win, func): |
1211 | win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func) | |
1212 | ||
123908fc RD |
1213 | def EVT_SCROLL_ENDSCROLL(win, func): |
1214 | win.Connect(-1, -1, wxEVT_SCROLL_ENDSCROLL, func) | |
1215 | ||
b8b8dda7 RD |
1216 | |
1217 | ||
1218 | # Scrolling, with an id | |
1219 | def EVT_COMMAND_SCROLL(win, id, func): | |
1220 | win.Connect(id, -1, wxEVT_SCROLL_TOP, func) | |
1221 | win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func) | |
1222 | win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func) | |
1223 | win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1224 | win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func) | |
1225 | win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1226 | win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func) | |
26b9cf27 | 1227 | win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func) |
b67a9327 | 1228 | win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func) |
b8b8dda7 RD |
1229 | |
1230 | def EVT_COMMAND_SCROLL_TOP(win, id, func): | |
1231 | win.Connect(id, -1, wxEVT_SCROLL_TOP, func) | |
1232 | ||
1233 | def EVT_COMMAND_SCROLL_BOTTOM(win, id, func): | |
1234 | win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func) | |
1235 | ||
1236 | def EVT_COMMAND_SCROLL_LINEUP(win, id, func): | |
1237 | win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func) | |
1238 | ||
1239 | def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func): | |
1240 | win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1241 | ||
1242 | def EVT_COMMAND_SCROLL_PAGEUP(win, id, func): | |
1243 | win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func) | |
1244 | ||
1245 | def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func): | |
1246 | win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1247 | ||
1248 | def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func): | |
1249 | win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func) | |
1250 | ||
26b9cf27 RD |
1251 | def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func): |
1252 | win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func) | |
1253 | ||
123908fc RD |
1254 | def EVT_COMMAND_SCROLL_ENDSCROLL(win, id, func): |
1255 | win.Connect(id, -1, wxEVT_SCROLL_ENDSCROLL, func) | |
1256 | ||
d426c97e RD |
1257 | #--- |
1258 | def EVT_SCROLLWIN(win, func): | |
26b9cf27 RD |
1259 | win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func) |
1260 | win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1261 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1262 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1263 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1264 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1265 | win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func) | |
1266 | win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func) | |
d426c97e RD |
1267 | |
1268 | def EVT_SCROLLWIN_TOP(win, func): | |
1269 | win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func) | |
1270 | ||
1271 | def EVT_SCROLLWIN_BOTTOM(win, func): | |
1272 | win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1273 | ||
1274 | def EVT_SCROLLWIN_LINEUP(win, func): | |
1275 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1276 | ||
1277 | def EVT_SCROLLWIN_LINEDOWN(win, func): | |
1278 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1279 | ||
1280 | def EVT_SCROLLWIN_PAGEUP(win, func): | |
1281 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1282 | ||
1283 | def EVT_SCROLLWIN_PAGEDOWN(win, func): | |
1284 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1285 | ||
1286 | def EVT_SCROLLWIN_THUMBTRACK(win, func): | |
1287 | win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func) | |
1288 | ||
26b9cf27 RD |
1289 | def EVT_SCROLLWIN_THUMBRELEASE(win, func): |
1290 | win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func) | |
1291 | ||
d426c97e RD |
1292 | |
1293 | ||
1294 | # Scrolling, with an id | |
1295 | def EVT_COMMAND_SCROLLWIN(win, id, func): | |
26b9cf27 RD |
1296 | win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func) |
1297 | win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1298 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1299 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1300 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1301 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1302 | win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func) | |
1303 | win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func) | |
d426c97e RD |
1304 | |
1305 | def EVT_COMMAND_SCROLLWIN_TOP(win, id, func): | |
1306 | win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func) | |
1307 | ||
1308 | def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func): | |
1309 | win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1310 | ||
1311 | def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func): | |
1312 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1313 | ||
1314 | def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func): | |
1315 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1316 | ||
1317 | def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func): | |
1318 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1319 | ||
1320 | def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func): | |
1321 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1322 | ||
1323 | def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func): | |
1324 | win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func) | |
b8b8dda7 | 1325 | |
26b9cf27 RD |
1326 | def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func): |
1327 | win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func) | |
1328 | ||
1329 | ||
b8b8dda7 RD |
1330 | # Convenience commands |
1331 | def EVT_BUTTON(win, id, func): | |
1332 | win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func) | |
1333 | ||
1334 | def EVT_CHECKBOX(win, id, func): | |
1335 | win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func) | |
1336 | ||
1337 | def EVT_CHOICE(win, id, func): | |
1338 | win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func) | |
1339 | ||
1340 | def EVT_LISTBOX(win, id, func): | |
1341 | win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func) | |
1342 | ||
1343 | def EVT_LISTBOX_DCLICK(win, id, func): | |
1344 | win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func) | |
1345 | ||
1346 | def EVT_TEXT(win, id, func): | |
1347 | win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func) | |
1348 | ||
1349 | def EVT_TEXT_ENTER(win, id, func): | |
1350 | win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func) | |
1351 | ||
059a841c RD |
1352 | def EVT_TEXT_URL(win, id, func): |
1353 | win.Connect(id, -1, wxEVT_COMMAND_TEXT_URL, func) | |
1354 | ||
1355 | def EVT_TEXT_MAXLEN(win, id, func): | |
1356 | win.Connect(id, -1, wxEVT_COMMAND_TEXT_MAXLEN, func) | |
1357 | ||
b8b8dda7 RD |
1358 | def EVT_MENU(win, id, func): |
1359 | win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func) | |
1360 | ||
1361 | def EVT_MENU_RANGE(win, id1, id2, func): | |
1362 | win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func) | |
1363 | ||
1364 | def EVT_SLIDER(win, id, func): | |
1365 | win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func) | |
1366 | ||
1367 | def EVT_RADIOBOX(win, id, func): | |
1368 | win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func) | |
1369 | ||
1370 | def EVT_RADIOBUTTON(win, id, func): | |
1371 | win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func) | |
1372 | ||
1373 | def EVT_VLBOX(win, id, func): | |
1374 | win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func) | |
1375 | ||
1376 | def EVT_COMBOBOX(win, id, func): | |
1377 | win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func) | |
1378 | ||
1379 | def EVT_TOOL(win, id, func): | |
1380 | win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func) | |
1381 | ||
3af4e610 RD |
1382 | def EVT_TOOL_RANGE(win, id, id2, func): |
1383 | win.Connect(id, id2, wxEVT_COMMAND_TOOL_CLICKED, func) | |
1384 | ||
b8b8dda7 RD |
1385 | def EVT_TOOL_RCLICKED(win, id, func): |
1386 | win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func) | |
1387 | ||
3af4e610 RD |
1388 | def EVT_TOOL_RCLICKED_RANGE(win, id, id2, func): |
1389 | win.Connect(id, id2, wxEVT_COMMAND_TOOL_RCLICKED, func) | |
1390 | ||
b8b8dda7 RD |
1391 | def EVT_TOOL_ENTER(win, id, func): |
1392 | win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func) | |
1393 | ||
1394 | def EVT_CHECKLISTBOX(win, id, func): | |
1395 | win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func) | |
1396 | ||
3af4e610 RD |
1397 | def EVT_SPINCTRL(win, id, func): |
1398 | win.Connect(id, -1, wxEVT_COMMAND_SPINCTRL_UPDATED, func) | |
1399 | ||
1400 | ||
b8b8dda7 RD |
1401 | |
1402 | # Generic command events | |
1403 | ||
1404 | def EVT_COMMAND_LEFT_CLICK(win, id, func): | |
1405 | win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func) | |
1406 | ||
1407 | def EVT_COMMAND_LEFT_DCLICK(win, id, func): | |
1408 | win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func) | |
1409 | ||
1410 | def EVT_COMMAND_RIGHT_CLICK(win, id, func): | |
1411 | win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func) | |
1412 | ||
1413 | def EVT_COMMAND_RIGHT_DCLICK(win, id, func): | |
1414 | win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func) | |
1415 | ||
1416 | def EVT_COMMAND_SET_FOCUS(win, id, func): | |
1417 | win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func) | |
1418 | ||
1419 | def EVT_COMMAND_KILL_FOCUS(win, id, func): | |
1420 | win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func) | |
1421 | ||
1422 | def EVT_COMMAND_ENTER(win, id, func): | |
1423 | win.Connect(id, -1, wxEVT_COMMAND_ENTER, func) | |
1424 | ||
1425 | ||
b8b8dda7 RD |
1426 | # wxSpinButton |
1427 | def EVT_SPIN_UP(win, id, func): | |
1428 | win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func) | |
1429 | ||
1430 | def EVT_SPIN_DOWN(win, id, func): | |
f6bcfd97 | 1431 | win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func) |
b8b8dda7 RD |
1432 | |
1433 | def EVT_SPIN(win, id, func): | |
b8b8dda7 RD |
1434 | win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func) |
1435 | ||
1436 | ||
08127323 RD |
1437 | # wxSashWindow |
1438 | def EVT_SASH_DRAGGED(win, id, func): | |
1439 | win.Connect(id, -1, wxEVT_SASH_DRAGGED, func) | |
1440 | ||
1441 | def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func): | |
1442 | win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func) | |
1443 | ||
1444 | def EVT_QUERY_LAYOUT_INFO(win, func): | |
1fded56b | 1445 | win.Connect(-1, -1, wxEVT_QUERY_LAYOUT_INFO, func) |
08127323 RD |
1446 | |
1447 | def EVT_CALCULATE_LAYOUT(win, func): | |
1fded56b | 1448 | win.Connect(-1, -1, wxEVT_CALCULATE_LAYOUT, func) |
08127323 RD |
1449 | |
1450 | ||
bb0054cd RD |
1451 | #wxSplitterWindow |
1452 | def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func): | |
1453 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func) | |
1454 | ||
1455 | def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func): | |
1456 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func) | |
1457 | ||
1458 | def EVT_SPLITTER_UNSPLIT(win, id, func): | |
1459 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func) | |
1460 | ||
1461 | def EVT_SPLITTER_DOUBLECLICKED(win, id, func): | |
1462 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func) | |
1463 | ||
b8b8dda7 | 1464 | |
f6bcfd97 BP |
1465 | # wxTimer |
1466 | def EVT_TIMER(win, id, func): | |
1467 | win.Connect(id, -1, wxEVT_TIMER, func) | |
1468 | ||
c368d904 RD |
1469 | # wxProcess |
1470 | def EVT_END_PROCESS(eh, id, func): | |
1471 | eh.Connect(id, -1, wxEVT_END_PROCESS, func) | |
f6bcfd97 | 1472 | |
2cd2fac8 RD |
1473 | |
1474 | # wxJoyStick | |
1475 | def EVT_JOY_DOWN(win, func): | |
25d73e0f | 1476 | win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func) |
2cd2fac8 RD |
1477 | |
1478 | def EVT_JOY_UP(win, func): | |
25d73e0f | 1479 | win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func) |
2cd2fac8 RD |
1480 | |
1481 | def EVT_JOY_MOVE(win, func): | |
1482 | win.Connect(-1, -1, wxEVT_JOY_MOVE, func) | |
1483 | ||
1484 | def EVT_JOY_ZMOVE(win, func): | |
1485 | win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func) | |
1486 | ||
1487 | def EVT_JOYSTICK_EVENTS(win, func): | |
25d73e0f RD |
1488 | win.Connect(-1, -1, wxEVT_JOY_BUTTON_DOWN, func) |
1489 | win.Connect(-1, -1, wxEVT_JOY_BUTTON_UP, func) | |
2cd2fac8 RD |
1490 | win.Connect(-1, -1, wxEVT_JOY_MOVE, func) |
1491 | win.Connect(-1, -1, wxEVT_JOY_ZMOVE, func) | |
1492 | ||
7a446686 RD |
1493 | |
1494 | def EVT_TOGGLEBUTTON(win, id, func): | |
1495 | win.Connect(id, -1, wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, func) | |
1496 | ||
1497 | ||
059a841c | 1498 | |
059a841c RD |
1499 | def EVT_CONTEXT_MENU(win, func): |
1500 | win.Connect(-1, -1, wxEVT_CONTEXT_MENU, func) | |
1501 | ||
1502 | ||
b8b8dda7 RD |
1503 | #---------------------------------------------------------------------- |
1504 | ||
1505 | class wxTimer(wxPyTimer): | |
2cd2fac8 RD |
1506 | def __init__(self, evtHandler = None, id = -1): |
1507 | if evtHandler is None: | |
1508 | wxPyTimer.__init__(self, self.Notify) # derived class must provide | |
1509 | # Notify(self) method. | |
1510 | else: | |
1511 | wxPyTimer.__init__(self, None) | |
1512 | self.SetOwner(evtHandler, id) | |
b8b8dda7 | 1513 | |
b8b8dda7 RD |
1514 | #---------------------------------------------------------------------- |
1515 | # aliases | |
1516 | ||
1517 | wxColor = wxColour | |
1518 | wxNamedColor = wxNamedColour | |
32c988a3 | 1519 | wxPen = wxPyPen |
85247b36 | 1520 | wxScrollbar = wxScrollBar |
b67a9327 RD |
1521 | wxPoint2D = wxPoint2DDouble |
1522 | ||
1523 | wxPyAssertionError = wxc.wxPyAssertionError | |
85247b36 | 1524 | |
11765138 | 1525 | |
9b3d3bc4 | 1526 | # backwards compatibility |
b67a9327 RD |
1527 | wxNoRefBitmap = wxBitmap |
1528 | wxPyDefaultPosition = wxDefaultPosition | |
1529 | wxPyDefaultSize = wxDefaultSize | |
1530 | NULL = None | |
db34b2d4 RD |
1531 | wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour |
1532 | wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont | |
1533 | wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric | |
059a841c | 1534 | |
b67a9327 RD |
1535 | |
1536 | # workarounds for bad wxRTTI names | |
1537 | __wxPyPtrTypeMap['wxGauge95'] = 'wxGauge' | |
1fded56b RD |
1538 | __wxPyPtrTypeMap['wxSlider95'] = 'wxSlider' |
1539 | __wxPyPtrTypeMap['wxStatusBar95'] = 'wxStatusBar' | |
b67a9327 RD |
1540 | |
1541 | ||
1542 | ||
1543 | def NewId(): | |
1544 | import warnings | |
1545 | warnings.warn("Use wxNewId instead", DeprecationWarning, 2) | |
1546 | return wxNewId() | |
1547 | ||
1548 | def RegisterId(ID): | |
1549 | import warnings | |
1550 | warnings.warn("Use wxRegisterId instead", DeprecationWarning, 2) | |
1551 | return wxRegisterId(ID) | |
1552 | ||
1553 | ||
1554 | ||
1555 | # Use Python's bool constants if available, make aliases if not | |
1556 | try: | |
1557 | True | |
1558 | except NameError: | |
1559 | True = 1==1 | |
1560 | False = 1==0 | |
1561 | ||
1562 | # Backwards compaatible | |
1563 | TRUE = true = True | |
1564 | FALSE = false = False | |
1565 | ||
1566 | ||
059a841c RD |
1567 | #---------------------------------------------------------------------- |
1568 | # wxGTK sets the locale when initialized. Doing this at the Python | |
1569 | # level should set it up to match what GTK is doing at the C level. | |
85247b36 RD |
1570 | if wxPlatform == "__WXGTK__": |
1571 | try: | |
1572 | import locale | |
1573 | locale.setlocale(locale.LC_ALL, "") | |
1574 | except: | |
1575 | pass | |
059a841c | 1576 | |
1fded56b RD |
1577 | # On MSW add the directory where the wxWindows catalogs were installed |
1578 | # to the default catalog path. | |
b67a9327 RD |
1579 | if wxPlatform == "__WXMSW__": |
1580 | import os | |
1581 | localedir = os.path.join(os.path.split(__file__)[0], "locale") | |
1582 | wxLocale_AddCatalogLookupPathPrefix(localedir) | |
1583 | del os | |
059a841c RD |
1584 | |
1585 | #---------------------------------------------------------------------- | |
1fded56b RD |
1586 | # Load version numbers from __version__... Ensure that major and minor |
1587 | # versions are the same for both wxPython and wxWindows. | |
059a841c | 1588 | |
1fded56b RD |
1589 | from wxPython.__version__ import * |
1590 | __version__ = wxVERSION_STRING | |
059a841c | 1591 | |
1fded56b RD |
1592 | assert wxMAJOR_VERSION == wxc.wxMAJOR_VERSION, "wxPython/wxWindows version mismatch" |
1593 | assert wxMINOR_VERSION == wxc.wxMINOR_VERSION, "wxPython/wxWindows version mismatch" | |
1594 | if wxRELEASE_VERSION != wxc.wxRELEASE_VERSION: | |
1595 | import warnings | |
1596 | warnings.warn("wxPython/wxWindows release number mismatch") | |
059a841c RD |
1597 | |
1598 | ||
8bf5d46e RD |
1599 | #---------------------------------------------------------------------- |
1600 | # This helper function will take a wxPython object and convert it to | |
1601 | # another wxPython object type. This will not be able to create objects | |
f581a26d | 1602 | # that are derived from wxPython classes by the user, only those that are |
8bf5d46e RD |
1603 | # actually part of wxPython and directly corespond to C++ objects. |
1604 | # | |
1605 | # This is useful in situations where some method returns a generic | |
1606 | # type such as wxWindow, but you know that it is actually some | |
1607 | # derived type such as a wxTextCtrl. You can't call wxTextCtrl specific | |
1608 | # methods on a wxWindow object, but you can use this function to | |
1609 | # create a wxTextCtrl object that will pass the same pointer to | |
1610 | # the C++ code. You use it like this: | |
1611 | # | |
1612 | # textCtrl = wxPyTypeCast(window, "wxTextCtrl") | |
1613 | # | |
1614 | # | |
1615 | # WARNING: Using this function to type cast objects into types that | |
1616 | # they are not is not recommended and is likely to cause your | |
1617 | # program to crash... Hard. | |
1618 | # | |
1619 | ||
1620 | def wxPyTypeCast(obj, typeStr): | |
c9482eba RD |
1621 | if obj is None: |
1622 | return None | |
9df61a29 RD |
1623 | theClass = globals()[typeStr+"Ptr"] |
1624 | typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr) | |
8bf5d46e | 1625 | if hasattr(obj, "this"): |
5c0282d5 RD |
1626 | # if already the right type then just return it |
1627 | if isinstance(obj, theClass) or obj.__class__ is theClass: | |
9df61a29 | 1628 | return obj |
8bf5d46e RD |
1629 | newPtr = ptrcast(obj.this, typeStr+"_p") |
1630 | else: | |
1631 | newPtr = ptrcast(obj, typeStr+"_p") | |
8bf5d46e | 1632 | theObj = theClass(newPtr) |
9b3d3bc4 RD |
1633 | if hasattr(obj, "this"): |
1634 | theObj.thisown = obj.thisown | |
8bf5d46e RD |
1635 | return theObj |
1636 | ||
b67a9327 RD |
1637 | #---------------------------------------------------------------------------- |
1638 | # An isinstance for Pythons < 2.2 that can check a sequence of class objects | |
1639 | # like the one in 2.2 can. | |
1640 | ||
1641 | def wxPy_isinstance(obj, klasses): | |
1642 | import types | |
1643 | if sys.version[:3] < "2.2" and type(klasses) in [types.TupleType, types.ListType]: | |
1644 | for klass in klasses: | |
1645 | if isinstance(obj, klass): return True | |
1646 | return False | |
1647 | else: | |
1648 | return isinstance(obj, klasses) | |
8bf5d46e | 1649 | |
301dfd67 | 1650 | #---------------------------------------------------------------------------- |
8f8b0a8d RD |
1651 | _wxCallAfterId = None |
1652 | ||
1653 | def wxCallAfter(callable, *args, **kw): | |
1654 | """ | |
1655 | Call the specified function after the current and pending event | |
ba77f390 RD |
1656 | handlers have been completed. This is also good for making GUI |
1657 | method calls from non-GUI threads. | |
8f8b0a8d RD |
1658 | """ |
1659 | app = wxGetApp() | |
1660 | assert app, 'No wxApp created yet' | |
1661 | ||
1662 | global _wxCallAfterId | |
1663 | if _wxCallAfterId is None: | |
1fded56b | 1664 | _wxCallAfterId = wxNewEventType() |
8f8b0a8d | 1665 | app.Connect(-1, -1, _wxCallAfterId, |
1fded56b | 1666 | lambda event: event.callable(*event.args, **event.kw) ) |
8f8b0a8d RD |
1667 | evt = wxPyEvent() |
1668 | evt.SetEventType(_wxCallAfterId) | |
1669 | evt.callable = callable | |
1670 | evt.args = args | |
1671 | evt.kw = kw | |
1672 | wxPostEvent(app, evt) | |
1673 | ||
1fded56b RD |
1674 | |
1675 | #---------------------------------------------------------------------- | |
1676 | ||
1677 | ||
1678 | class wxFutureCall: | |
1679 | """ | |
1680 | A convenience class for wxTimer, that calls the given callable | |
1681 | object once after the given amount of milliseconds, passing any | |
1682 | positional or keyword args. The return value of the callable is | |
1683 | availbale after it has been run with the GetResult method. | |
1684 | ||
1685 | If you don't need to get the return value or restart the timer | |
1686 | then there is no need to hold a reference to this object. It will | |
1687 | hold a reference to itself while the timer is running (the timer | |
1688 | has a reference to self.Notify) but the cycle will be broken when | |
1689 | the timer completes, automatically cleaning up the wxFutureCall | |
1690 | object. | |
1691 | """ | |
1692 | def __init__(self, millis, callable, *args, **kwargs): | |
1693 | self.millis = millis | |
1694 | self.callable = callable | |
1695 | self.SetArgs(*args, **kwargs) | |
1696 | self.runCount = 0 | |
1697 | self.hasRun = False | |
1698 | self.result = None | |
1699 | self.timer = None | |
1700 | self.Start() | |
1701 | ||
1702 | def __del__(self): | |
1703 | self.Stop() | |
1704 | ||
1705 | ||
1706 | def Start(self, millis=None): | |
1707 | """ | |
1708 | (Re)start the timer | |
1709 | """ | |
1710 | self.hasRun = False | |
1711 | if millis is not None: | |
1712 | self.millis = millis | |
1713 | self.Stop() | |
1714 | self.timer = wxPyTimer(self.Notify) | |
1715 | self.timer.Start(self.millis, wxTIMER_ONE_SHOT) | |
1716 | Restart = Start | |
1717 | ||
1718 | ||
1719 | def Stop(self): | |
1720 | """ | |
1721 | Stop and destroy the timer. | |
1722 | """ | |
1723 | if self.timer is not None: | |
1724 | self.timer.Stop() | |
1725 | self.timer = None | |
1726 | ||
1727 | ||
1728 | def GetInterval(self): | |
1729 | if self.timer is not None: | |
1730 | return self.timer.GetInterval() | |
1731 | else: | |
1732 | return 0 | |
1733 | ||
1734 | ||
1735 | def IsRunning(self): | |
1736 | return self.timer is not None and self.timer.IsRunning() | |
1737 | ||
1738 | ||
1739 | def SetArgs(self, *args, **kwargs): | |
1740 | """ | |
1741 | (Re)set the args passed to the callable object. This is | |
1742 | useful in conjunction with Restart if you want to schedule a | |
1743 | new call to the same callable object but with different | |
1744 | parameters. | |
1745 | """ | |
1746 | self.args = args | |
1747 | self.kwargs = kwargs | |
1748 | ||
1749 | def HasRun(self): | |
1750 | return self.hasRun | |
1751 | ||
1752 | def GetResult(self): | |
1753 | return self.result | |
1754 | ||
1755 | def Notify(self): | |
1756 | """ | |
1757 | The timer has expired so call the callable. | |
1758 | """ | |
1759 | if self.callable and getattr(self.callable, 'im_self', True): | |
1760 | self.runCount += 1 | |
1761 | self.result = self.callable(*self.args, **self.kwargs) | |
1762 | self.hasRun = True | |
1763 | wxCallAfter(self.Stop) | |
1764 | ||
b67a9327 | 1765 | |
8f8b0a8d | 1766 | #---------------------------------------------------------------------- |
301dfd67 RD |
1767 | |
1768 | class wxPyDeadObjectError(AttributeError): | |
1769 | pass | |
1770 | ||
1771 | class _wxPyDeadObject: | |
1772 | """ | |
1773 | Instances of wx objects that are OOR capable will have their __class__ | |
1774 | changed to this class when the C++ object is deleted. This should help | |
1775 | prevent crashes due to referencing a bogus C++ pointer. | |
1776 | """ | |
1777 | reprStr = "wxPython wrapper for DELETED %s object! (The C++ object no longer exists.)" | |
94c16279 | 1778 | attrStr = "The C++ part of the %s object has been deleted, attribute access no longer allowed." |
301dfd67 RD |
1779 | |
1780 | def __repr__( self ): | |
1781 | if not hasattr(self, "_name"): | |
1782 | self._name = "[unknown]" | |
1783 | return self.reprStr % self._name | |
1784 | ||
1785 | def __getattr__( self, *args ): | |
1786 | if not hasattr(self, "_name"): | |
1787 | self._name = "[unknown]" | |
1788 | raise wxPyDeadObjectError( self.attrStr % self._name ) | |
1789 | ||
1790 | def __nonzero__(self): | |
1791 | return 0 | |
1792 | ||
1793 | ||
1fded56b RD |
1794 | #---------------------------------------------------------------------- |
1795 | ||
1796 | class wxNotebookPage(wxPanel): | |
1797 | """ | |
1798 | There is an old (and apparently unsolvable) bug when placing a | |
1799 | window with a nonstandard background colour in a wxNotebook on | |
1800 | wxGTK, as the notbooks's background colour would always be used | |
1801 | when the window is refreshed. The solution is to place a panel in | |
1802 | the notbook and the coloured window on the panel, sized to cover | |
1803 | the panel. This simple class does that for you, just put an | |
1804 | instance of this in the notebook and make your regular window a | |
1805 | child of this one and it will handle the resize for you. | |
1806 | """ | |
1807 | def __init__(self, parent, id=-1, | |
1808 | pos=wxDefaultPosition, size=wxDefaultSize, | |
1809 | style=wxTAB_TRAVERSAL, name="panel"): | |
1810 | wxPanel.__init__(self, parent, id, pos, size, style, name) | |
1811 | self.child = None | |
1812 | EVT_SIZE(self, self.OnSize) | |
1813 | def OnSize(self, evt): | |
1814 | if self.child is None: | |
1815 | children = self.GetChildren() | |
1816 | if len(children): | |
1817 | self.child = children[0] | |
1818 | if self.child: | |
1819 | self.child.SetPosition((0,0)) | |
1820 | self.child.SetSize(self.GetSize()) | |
1821 | ||
1822 | ||
c9482eba | 1823 | #---------------------------------------------------------------------- |
b8b8dda7 RD |
1824 | #---------------------------------------------------------------------- |
1825 | ||
2f90df85 RD |
1826 | class wxPyOnDemandOutputWindow: |
1827 | def __init__(self, title = "wxPython: stdout/stderr"): | |
1828 | self.frame = None | |
1829 | self.title = title | |
c9482eba | 1830 | self.parent = None |
cf694132 | 1831 | |
2f90df85 RD |
1832 | def SetParent(self, parent): |
1833 | self.parent = parent | |
b8b8dda7 | 1834 | |
2f90df85 RD |
1835 | def OnCloseWindow(self, event): |
1836 | if self.frame != None: | |
1837 | self.frame.Destroy() | |
1838 | self.frame = None | |
1839 | self.text = None | |
1840 | ||
471825d7 | 1841 | # These methods provide the file-like output behaviour. |
2f90df85 | 1842 | def write(self, str): |
471825d7 RD |
1843 | if not wxThread_IsMain(): |
1844 | # Aquire the GUI mutex before making GUI calls. Mutex is released | |
7a446686 | 1845 | # when locker is deleted at the end of this function. |
471825d7 RD |
1846 | locker = wxMutexGuiLocker() |
1847 | ||
2f90df85 | 1848 | if not self.frame: |
7a446686 RD |
1849 | self.frame = wxFrame(self.parent, -1, self.title, |
1850 | style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE) | |
2f90df85 RD |
1851 | self.text = wxTextCtrl(self.frame, -1, "", |
1852 | style = wxTE_MULTILINE|wxTE_READONLY) | |
1853 | self.frame.SetSize(wxSize(450, 300)) | |
b67a9327 | 1854 | self.frame.Show(True) |
2f90df85 RD |
1855 | EVT_CLOSE(self.frame, self.OnCloseWindow) |
1856 | self.text.AppendText(str) | |
1857 | ||
1858 | def close(self): | |
eec92d76 | 1859 | if self.frame != None: |
471825d7 RD |
1860 | if not wxThread_IsMain(): |
1861 | locker = wxMutexGuiLocker() | |
c9482eba | 1862 | self.frame.Close() |
b8b8dda7 | 1863 | |
b8b8dda7 | 1864 | |
298ae144 | 1865 | _defRedirect = (wxPlatform == '__WXMSW__' or wxPlatform == '__WXMAC__') |
b8b8dda7 RD |
1866 | |
1867 | #---------------------------------------------------------------------- | |
1868 | # The main application class. Derive from this and implement an OnInit | |
1869 | # method that creates a frame and then calls self.SetTopWindow(frame) | |
1870 | ||
1871 | class wxApp(wxPyApp): | |
1872 | error = 'wxApp.error' | |
2f90df85 | 1873 | outputWindowClass = wxPyOnDemandOutputWindow |
b8b8dda7 | 1874 | |
b67a9327 | 1875 | def __init__(self, redirect=_defRedirect, filename=None, useBestVisual=False): |
b8b8dda7 | 1876 | wxPyApp.__init__(self) |
1fded56b RD |
1877 | |
1878 | if wx.wxPlatform == "__WXMAC__": | |
1879 | try: | |
1880 | import MacOS | |
1881 | if not MacOS.WMAvailable(): | |
1882 | print """This program needs access to the screen. Please run with | |
1883 | 'pythonw', not 'python', and only when you are logged in on the main display | |
1884 | of your Mac.""" | |
1885 | sys.exit(1) | |
1886 | except: | |
1887 | pass | |
1888 | ||
b8b8dda7 RD |
1889 | self.stdioWin = None |
1890 | self.saveStdio = (sys.stdout, sys.stderr) | |
b67a9327 RD |
1891 | |
1892 | # This has to be done before OnInit | |
1893 | self.SetUseBestVisual(useBestVisual) | |
1894 | ||
b8b8dda7 RD |
1895 | if redirect: |
1896 | self.RedirectStdio(filename) | |
b67a9327 | 1897 | |
3ef86e32 RD |
1898 | # Set the default handler for SIGINT. This fixes a problem |
1899 | # where if Ctrl-C is pressed in the console that started this | |
1900 | # app then it will not appear to do anything, (not even send | |
1901 | # KeyboardInterrupt???) but will later segfault on exit. By | |
1902 | # setting the default handler then the app will exit, as | |
1903 | # expected (depending on platform.) | |
1904 | import signal | |
1905 | signal.signal(signal.SIGINT, signal.SIG_DFL) | |
1906 | ||
b8b8dda7 RD |
1907 | # this initializes wxWindows and then calls our OnInit |
1908 | _wxStart(self.OnInit) | |
1909 | ||
1910 | ||
1911 | def __del__(self): | |
1912 | try: | |
1913 | self.RestoreStdio() | |
1914 | except: | |
1915 | pass | |
1916 | ||
2f90df85 RD |
1917 | |
1918 | def SetTopWindow(self, frame): | |
1919 | if self.stdioWin: | |
1920 | self.stdioWin.SetParent(frame) | |
2f90df85 RD |
1921 | wxPyApp.SetTopWindow(self, frame) |
1922 | ||
eec92d76 | 1923 | |
2f90df85 RD |
1924 | def MainLoop(self): |
1925 | wxPyApp.MainLoop(self) | |
1926 | self.RestoreStdio() | |
1927 | ||
eec92d76 | 1928 | |
b8b8dda7 RD |
1929 | def RedirectStdio(self, filename): |
1930 | if filename: | |
1931 | sys.stdout = sys.stderr = open(filename, 'a') | |
1932 | else: | |
b67a9327 | 1933 | self.stdioWin = self.outputWindowClass() |
c9482eba | 1934 | sys.stdout = sys.stderr = self.stdioWin |
b8b8dda7 | 1935 | |
eec92d76 | 1936 | |
b8b8dda7 RD |
1937 | def RestoreStdio(self): |
1938 | sys.stdout, sys.stderr = self.saveStdio | |
c9482eba | 1939 | |
b8b8dda7 | 1940 | |
b67a9327 | 1941 | # change from wxPyApp_ to wxApp_ |
b67a9327 RD |
1942 | wxApp_GetMacSupportPCMenuShortcuts = wxc.wxPyApp_GetMacSupportPCMenuShortcuts |
1943 | wxApp_GetMacAboutMenuItemId = wxc.wxPyApp_GetMacAboutMenuItemId | |
1944 | wxApp_GetMacPreferencesMenuItemId = wxc.wxPyApp_GetMacPreferencesMenuItemId | |
1945 | wxApp_GetMacExitMenuItemId = wxc.wxPyApp_GetMacExitMenuItemId | |
1946 | wxApp_GetMacHelpMenuTitleName = wxc.wxPyApp_GetMacHelpMenuTitleName | |
b67a9327 RD |
1947 | wxApp_SetMacSupportPCMenuShortcuts = wxc.wxPyApp_SetMacSupportPCMenuShortcuts |
1948 | wxApp_SetMacAboutMenuItemId = wxc.wxPyApp_SetMacAboutMenuItemId | |
1949 | wxApp_SetMacPreferencesMenuItemId = wxc.wxPyApp_SetMacPreferencesMenuItemId | |
1950 | wxApp_SetMacExitMenuItemId = wxc.wxPyApp_SetMacExitMenuItemId | |
1951 | wxApp_SetMacHelpMenuTitleName = wxc.wxPyApp_SetMacHelpMenuTitleName | |
1952 | ||
1953 | ||
9b3d3bc4 RD |
1954 | #---------------------------------------------------------------------------- |
1955 | ||
1956 | class wxPySimpleApp(wxApp): | |
c9482eba RD |
1957 | def __init__(self, flag=0): |
1958 | wxApp.__init__(self, flag) | |
9b3d3bc4 | 1959 | def OnInit(self): |
57ee4c3b | 1960 | wxInitAllImageHandlers() |
b67a9327 | 1961 | return True |
b8b8dda7 | 1962 | |
2f90df85 | 1963 | |
f6bcfd97 BP |
1964 | class wxPyWidgetTester(wxApp): |
1965 | def __init__(self, size = (250, 100)): | |
1966 | self.size = size | |
1967 | wxApp.__init__(self, 0) | |
1968 | ||
1969 | def OnInit(self): | |
1970 | self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size) | |
1971 | self.SetTopWindow(self.frame) | |
b67a9327 | 1972 | return True |
f6bcfd97 BP |
1973 | |
1974 | def SetWidget(self, widgetClass, *args): | |
1fded56b | 1975 | w = widgetClass(self.frame, *args) |
b67a9327 | 1976 | self.frame.Show(True) |
f6bcfd97 | 1977 | |
b8b8dda7 | 1978 | #---------------------------------------------------------------------------- |
301dfd67 RD |
1979 | # DO NOT hold any other references to this object. This is how we |
1980 | # know when to cleanup system resources that wxWin is holding. When | |
1981 | # the sys module is unloaded, the refcount on sys.__wxPythonCleanup | |
1982 | # goes to zero and it calls the wxApp_CleanUp function. | |
b1462dfa RD |
1983 | |
1984 | class __wxPyCleanup: | |
1985 | def __init__(self): | |
1986 | self.cleanup = wxc.wxApp_CleanUp | |
1987 | def __del__(self): | |
1988 | self.cleanup() | |
1989 | ||
ef2060fa RD |
1990 | sys.__wxPythonCleanup = __wxPyCleanup() |
1991 | ||
1992 | ## # another possible solution, but it gets called too early... | |
1993 | ## if sys.version[0] == '2': | |
1994 | ## import atexit | |
1995 | ## atexit.register(wxc.wxApp_CleanUp) | |
1996 | ## else: | |
1997 | ## sys.exitfunc = wxc.wxApp_CleanUp | |
1998 | ||
9df61a29 RD |
1999 | |
2000 | #---------------------------------------------------------------------------- | |
8bf5d46e | 2001 | #---------------------------------------------------------------------------- |