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