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