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