]>
Commit | Line | Data |
---|---|---|
70551f47 | 1 | # This file was created automatically by SWIG. |
105e45b9 | 2 | import wxc |
70551f47 RD |
3 | |
4 | from misc import * | |
5 | ||
d24a34bb RD |
6 | from misc2 import * |
7 | ||
70551f47 RD |
8 | from windows import * |
9 | ||
10 | from gdi import * | |
11 | ||
12 | from events import * | |
13 | ||
14 | from mdi import * | |
15 | ||
b26e2dc4 RD |
16 | from frames import * |
17 | ||
18 | from stattool import * | |
19 | ||
70551f47 RD |
20 | from controls import * |
21 | ||
22 | from controls2 import * | |
23 | ||
24 | from windows2 import * | |
25 | ||
26 | from cmndlgs import * | |
105e45b9 | 27 | |
dd9a3de8 RD |
28 | from windows3 import * |
29 | ||
ab9bc19b | 30 | from image import * |
d24a34bb RD |
31 | |
32 | from printfw import * | |
70551f47 RD |
33 | class wxPyAppPtr(wxEvtHandlerPtr): |
34 | def __init__(self,this): | |
35 | self.this = this | |
36 | self.thisown = 0 | |
2d091820 | 37 | def __del__(self,wxc=wxc): |
8bf5d46e | 38 | if self.thisown == 1 : |
2d091820 RD |
39 | wxc.delete_wxPyApp(self) |
40 | def GetAppName(self, *_args, **_kwargs): | |
41 | val = apply(wxc.wxPyApp_GetAppName,(self,) + _args, _kwargs) | |
70551f47 | 42 | return val |
2d091820 RD |
43 | def GetClassName(self, *_args, **_kwargs): |
44 | val = apply(wxc.wxPyApp_GetClassName,(self,) + _args, _kwargs) | |
70551f47 | 45 | return val |
2d091820 RD |
46 | def GetExitOnFrameDelete(self, *_args, **_kwargs): |
47 | val = apply(wxc.wxPyApp_GetExitOnFrameDelete,(self,) + _args, _kwargs) | |
70551f47 | 48 | return val |
2d091820 RD |
49 | def GetPrintMode(self, *_args, **_kwargs): |
50 | val = apply(wxc.wxPyApp_GetPrintMode,(self,) + _args, _kwargs) | |
70551f47 | 51 | return val |
2d091820 RD |
52 | def GetTopWindow(self, *_args, **_kwargs): |
53 | val = apply(wxc.wxPyApp_GetTopWindow,(self,) + _args, _kwargs) | |
54 | if val: val = wxWindowPtr(val) | |
70551f47 | 55 | return val |
2d091820 RD |
56 | def GetVendorName(self, *_args, **_kwargs): |
57 | val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs) | |
70551f47 | 58 | return val |
2d091820 RD |
59 | def Dispatch(self, *_args, **_kwargs): |
60 | val = apply(wxc.wxPyApp_Dispatch,(self,) + _args, _kwargs) | |
70551f47 | 61 | return val |
2d091820 RD |
62 | def ExitMainLoop(self, *_args, **_kwargs): |
63 | val = apply(wxc.wxPyApp_ExitMainLoop,(self,) + _args, _kwargs) | |
70551f47 | 64 | return val |
2d091820 RD |
65 | def Initialized(self, *_args, **_kwargs): |
66 | val = apply(wxc.wxPyApp_Initialized,(self,) + _args, _kwargs) | |
70551f47 | 67 | return val |
2d091820 RD |
68 | def MainLoop(self, *_args, **_kwargs): |
69 | val = apply(wxc.wxPyApp_MainLoop,(self,) + _args, _kwargs) | |
70551f47 | 70 | return val |
2d091820 RD |
71 | def Pending(self, *_args, **_kwargs): |
72 | val = apply(wxc.wxPyApp_Pending,(self,) + _args, _kwargs) | |
70551f47 | 73 | return val |
2d091820 RD |
74 | def ProcessIdle(self, *_args, **_kwargs): |
75 | val = apply(wxc.wxPyApp_ProcessIdle,(self,) + _args, _kwargs) | |
8bf5d46e | 76 | return val |
2d091820 RD |
77 | def SetAppName(self, *_args, **_kwargs): |
78 | val = apply(wxc.wxPyApp_SetAppName,(self,) + _args, _kwargs) | |
70551f47 | 79 | return val |
2d091820 RD |
80 | def SetClassName(self, *_args, **_kwargs): |
81 | val = apply(wxc.wxPyApp_SetClassName,(self,) + _args, _kwargs) | |
70551f47 | 82 | return val |
2d091820 RD |
83 | def SetExitOnFrameDelete(self, *_args, **_kwargs): |
84 | val = apply(wxc.wxPyApp_SetExitOnFrameDelete,(self,) + _args, _kwargs) | |
70551f47 | 85 | return val |
2d091820 RD |
86 | def SetPrintMode(self, *_args, **_kwargs): |
87 | val = apply(wxc.wxPyApp_SetPrintMode,(self,) + _args, _kwargs) | |
70551f47 | 88 | return val |
2d091820 RD |
89 | def SetTopWindow(self, *_args, **_kwargs): |
90 | val = apply(wxc.wxPyApp_SetTopWindow,(self,) + _args, _kwargs) | |
70551f47 | 91 | return val |
2d091820 RD |
92 | def SetVendorName(self, *_args, **_kwargs): |
93 | val = apply(wxc.wxPyApp_SetVendorName,(self,) + _args, _kwargs) | |
70551f47 | 94 | return val |
2d091820 RD |
95 | def GetStdIcon(self, *_args, **_kwargs): |
96 | val = apply(wxc.wxPyApp_GetStdIcon,(self,) + _args, _kwargs) | |
97 | if val: val = wxIconPtr(val) ; val.thisown = 1 | |
6bddd8c5 | 98 | return val |
70551f47 | 99 | def __repr__(self): |
2d091820 | 100 | return "<C wxPyApp instance at %s>" % (self.this,) |
70551f47 | 101 | class wxPyApp(wxPyAppPtr): |
2d091820 RD |
102 | def __init__(self,*_args,**_kwargs): |
103 | self.this = apply(wxc.new_wxPyApp,_args,_kwargs) | |
70551f47 RD |
104 | self.thisown = 1 |
105 | ||
106 | ||
107 | ||
108 | ||
8bf5d46e RD |
109 | class __wxPyCleanupPtr : |
110 | def __init__(self,this): | |
111 | self.this = this | |
112 | self.thisown = 0 | |
2d091820 | 113 | def __del__(self,wxc=wxc): |
8bf5d46e | 114 | if self.thisown == 1 : |
2d091820 | 115 | wxc.delete___wxPyCleanup(self) |
8bf5d46e | 116 | def __repr__(self): |
2d091820 | 117 | return "<C __wxPyCleanup instance at %s>" % (self.this,) |
8bf5d46e | 118 | class __wxPyCleanup(__wxPyCleanupPtr): |
2d091820 RD |
119 | def __init__(self,*_args,**_kwargs): |
120 | self.this = apply(wxc.new___wxPyCleanup,_args,_kwargs) | |
8bf5d46e RD |
121 | self.thisown = 1 |
122 | ||
123 | ||
124 | ||
125 | ||
70551f47 RD |
126 | |
127 | ||
128 | #-------------- FUNCTION WRAPPERS ------------------ | |
129 | ||
8bf5d46e RD |
130 | ptrcast = wxc.ptrcast |
131 | ||
132 | ptrvalue = wxc.ptrvalue | |
133 | ||
134 | ptrset = wxc.ptrset | |
135 | ||
136 | ptrcreate = wxc.ptrcreate | |
137 | ||
138 | ptrfree = wxc.ptrfree | |
139 | ||
140 | ptradd = wxc.ptradd | |
141 | ||
142 | ptrmap = wxc.ptrmap | |
143 | ||
105e45b9 | 144 | _wxStart = wxc._wxStart |
70551f47 | 145 | |
105e45b9 | 146 | _wxSetDictionary = wxc._wxSetDictionary |
70551f47 RD |
147 | |
148 | ||
149 | ||
150 | #-------------- VARIABLE WRAPPERS ------------------ | |
151 | ||
105e45b9 RD |
152 | wxMAJOR_VERSION = wxc.wxMAJOR_VERSION |
153 | wxMINOR_VERSION = wxc.wxMINOR_VERSION | |
154 | wxRELEASE_NUMBER = wxc.wxRELEASE_NUMBER | |
dd9a3de8 | 155 | wxNOT_FOUND = wxc.wxNOT_FOUND |
105e45b9 RD |
156 | wxVSCROLL = wxc.wxVSCROLL |
157 | wxHSCROLL = wxc.wxHSCROLL | |
158 | wxCAPTION = wxc.wxCAPTION | |
159 | wxDOUBLE_BORDER = wxc.wxDOUBLE_BORDER | |
160 | wxSUNKEN_BORDER = wxc.wxSUNKEN_BORDER | |
161 | wxRAISED_BORDER = wxc.wxRAISED_BORDER | |
162 | wxBORDER = wxc.wxBORDER | |
163 | wxSIMPLE_BORDER = wxc.wxSIMPLE_BORDER | |
164 | wxSTATIC_BORDER = wxc.wxSTATIC_BORDER | |
165 | wxTRANSPARENT_WINDOW = wxc.wxTRANSPARENT_WINDOW | |
166 | wxNO_BORDER = wxc.wxNO_BORDER | |
167 | wxUSER_COLOURS = wxc.wxUSER_COLOURS | |
168 | wxNO_3D = wxc.wxNO_3D | |
169 | wxTAB_TRAVERSAL = wxc.wxTAB_TRAVERSAL | |
9cce9de1 | 170 | wxWANTS_CHARS = wxc.wxWANTS_CHARS |
105e45b9 RD |
171 | wxHORIZONTAL = wxc.wxHORIZONTAL |
172 | wxVERTICAL = wxc.wxVERTICAL | |
173 | wxBOTH = wxc.wxBOTH | |
174 | wxCENTER_FRAME = wxc.wxCENTER_FRAME | |
9cce9de1 RD |
175 | wxCENTRE_ON_SCREEN = wxc.wxCENTRE_ON_SCREEN |
176 | wxCENTER_ON_SCREEN = wxc.wxCENTER_ON_SCREEN | |
105e45b9 RD |
177 | wxSTAY_ON_TOP = wxc.wxSTAY_ON_TOP |
178 | wxICONIZE = wxc.wxICONIZE | |
179 | wxMINIMIZE = wxc.wxMINIMIZE | |
180 | wxMAXIMIZE = wxc.wxMAXIMIZE | |
181 | wxTHICK_FRAME = wxc.wxTHICK_FRAME | |
182 | wxSYSTEM_MENU = wxc.wxSYSTEM_MENU | |
183 | wxMINIMIZE_BOX = wxc.wxMINIMIZE_BOX | |
184 | wxMAXIMIZE_BOX = wxc.wxMAXIMIZE_BOX | |
185 | wxTINY_CAPTION_HORIZ = wxc.wxTINY_CAPTION_HORIZ | |
186 | wxTINY_CAPTION_VERT = wxc.wxTINY_CAPTION_VERT | |
187 | wxRESIZE_BOX = wxc.wxRESIZE_BOX | |
188 | wxRESIZE_BORDER = wxc.wxRESIZE_BORDER | |
189 | wxDIALOG_MODAL = wxc.wxDIALOG_MODAL | |
190 | wxDIALOG_MODELESS = wxc.wxDIALOG_MODELESS | |
191 | wxDEFAULT_FRAME_STYLE = wxc.wxDEFAULT_FRAME_STYLE | |
192 | wxDEFAULT_DIALOG_STYLE = wxc.wxDEFAULT_DIALOG_STYLE | |
193 | wxFRAME_TOOL_WINDOW = wxc.wxFRAME_TOOL_WINDOW | |
d24a34bb | 194 | wxFRAME_FLOAT_ON_PARENT = wxc.wxFRAME_FLOAT_ON_PARENT |
9cce9de1 RD |
195 | wxED_CLIENT_MARGIN = wxc.wxED_CLIENT_MARGIN |
196 | wxED_BUTTONS_BOTTOM = wxc.wxED_BUTTONS_BOTTOM | |
197 | wxED_BUTTONS_RIGHT = wxc.wxED_BUTTONS_RIGHT | |
198 | wxED_STATIC_LINE = wxc.wxED_STATIC_LINE | |
199 | wxEXT_DIALOG_STYLE = wxc.wxEXT_DIALOG_STYLE | |
dd9a3de8 | 200 | wxCLIP_CHILDREN = wxc.wxCLIP_CHILDREN |
105e45b9 RD |
201 | wxRETAINED = wxc.wxRETAINED |
202 | wxBACKINGSTORE = wxc.wxBACKINGSTORE | |
203 | wxTB_3DBUTTONS = wxc.wxTB_3DBUTTONS | |
204 | wxTB_HORIZONTAL = wxc.wxTB_HORIZONTAL | |
205 | wxTB_VERTICAL = wxc.wxTB_VERTICAL | |
206 | wxTB_FLAT = wxc.wxTB_FLAT | |
207 | wxCOLOURED = wxc.wxCOLOURED | |
208 | wxFIXED_LENGTH = wxc.wxFIXED_LENGTH | |
209 | wxALIGN_LEFT = wxc.wxALIGN_LEFT | |
210 | wxALIGN_CENTER = wxc.wxALIGN_CENTER | |
211 | wxALIGN_CENTRE = wxc.wxALIGN_CENTRE | |
212 | wxALIGN_RIGHT = wxc.wxALIGN_RIGHT | |
213 | wxLB_NEEDED_SB = wxc.wxLB_NEEDED_SB | |
214 | wxLB_ALWAYS_SB = wxc.wxLB_ALWAYS_SB | |
215 | wxLB_SORT = wxc.wxLB_SORT | |
216 | wxLB_SINGLE = wxc.wxLB_SINGLE | |
217 | wxLB_MULTIPLE = wxc.wxLB_MULTIPLE | |
218 | wxLB_EXTENDED = wxc.wxLB_EXTENDED | |
219 | wxLB_OWNERDRAW = wxc.wxLB_OWNERDRAW | |
220 | wxLB_HSCROLL = wxc.wxLB_HSCROLL | |
221 | wxPROCESS_ENTER = wxc.wxPROCESS_ENTER | |
222 | wxPASSWORD = wxc.wxPASSWORD | |
223 | wxTE_PROCESS_ENTER = wxc.wxTE_PROCESS_ENTER | |
224 | wxTE_PASSWORD = wxc.wxTE_PASSWORD | |
225 | wxTE_READONLY = wxc.wxTE_READONLY | |
8bf5d46e | 226 | wxTE_RICH = wxc.wxTE_RICH |
105e45b9 RD |
227 | wxTE_MULTILINE = wxc.wxTE_MULTILINE |
228 | wxCB_SIMPLE = wxc.wxCB_SIMPLE | |
229 | wxCB_DROPDOWN = wxc.wxCB_DROPDOWN | |
230 | wxCB_SORT = wxc.wxCB_SORT | |
231 | wxCB_READONLY = wxc.wxCB_READONLY | |
232 | wxRA_HORIZONTAL = wxc.wxRA_HORIZONTAL | |
233 | wxRA_VERTICAL = wxc.wxRA_VERTICAL | |
b8c99a93 RD |
234 | wxRA_SPECIFY_ROWS = wxc.wxRA_SPECIFY_ROWS |
235 | wxRA_SPECIFY_COLS = wxc.wxRA_SPECIFY_COLS | |
105e45b9 RD |
236 | wxRB_GROUP = wxc.wxRB_GROUP |
237 | wxGA_PROGRESSBAR = wxc.wxGA_PROGRESSBAR | |
238 | wxGA_HORIZONTAL = wxc.wxGA_HORIZONTAL | |
239 | wxGA_VERTICAL = wxc.wxGA_VERTICAL | |
d24a34bb | 240 | wxGA_SMOOTH = wxc.wxGA_SMOOTH |
105e45b9 RD |
241 | wxSL_HORIZONTAL = wxc.wxSL_HORIZONTAL |
242 | wxSL_VERTICAL = wxc.wxSL_VERTICAL | |
243 | wxSL_AUTOTICKS = wxc.wxSL_AUTOTICKS | |
244 | wxSL_LABELS = wxc.wxSL_LABELS | |
245 | wxSL_LEFT = wxc.wxSL_LEFT | |
246 | wxSL_TOP = wxc.wxSL_TOP | |
247 | wxSL_RIGHT = wxc.wxSL_RIGHT | |
248 | wxSL_BOTTOM = wxc.wxSL_BOTTOM | |
249 | wxSL_BOTH = wxc.wxSL_BOTH | |
250 | wxSL_SELRANGE = wxc.wxSL_SELRANGE | |
251 | wxSB_HORIZONTAL = wxc.wxSB_HORIZONTAL | |
252 | wxSB_VERTICAL = wxc.wxSB_VERTICAL | |
ab9bc19b | 253 | wxST_SIZEGRIP = wxc.wxST_SIZEGRIP |
105e45b9 RD |
254 | wxBU_AUTODRAW = wxc.wxBU_AUTODRAW |
255 | wxBU_NOAUTODRAW = wxc.wxBU_NOAUTODRAW | |
256 | wxTR_HAS_BUTTONS = wxc.wxTR_HAS_BUTTONS | |
257 | wxTR_EDIT_LABELS = wxc.wxTR_EDIT_LABELS | |
258 | wxTR_LINES_AT_ROOT = wxc.wxTR_LINES_AT_ROOT | |
8bf5d46e | 259 | wxTR_MULTIPLE = wxc.wxTR_MULTIPLE |
9cce9de1 | 260 | wxTR_SINGLE = wxc.wxTR_SINGLE |
8bf5d46e | 261 | wxTR_HAS_VARIABLE_ROW_HEIGHT = wxc.wxTR_HAS_VARIABLE_ROW_HEIGHT |
105e45b9 RD |
262 | wxLC_ICON = wxc.wxLC_ICON |
263 | wxLC_SMALL_ICON = wxc.wxLC_SMALL_ICON | |
264 | wxLC_LIST = wxc.wxLC_LIST | |
265 | wxLC_REPORT = wxc.wxLC_REPORT | |
266 | wxLC_ALIGN_TOP = wxc.wxLC_ALIGN_TOP | |
267 | wxLC_ALIGN_LEFT = wxc.wxLC_ALIGN_LEFT | |
268 | wxLC_AUTOARRANGE = wxc.wxLC_AUTOARRANGE | |
269 | wxLC_USER_TEXT = wxc.wxLC_USER_TEXT | |
270 | wxLC_EDIT_LABELS = wxc.wxLC_EDIT_LABELS | |
271 | wxLC_NO_HEADER = wxc.wxLC_NO_HEADER | |
272 | wxLC_NO_SORT_HEADER = wxc.wxLC_NO_SORT_HEADER | |
273 | wxLC_SINGLE_SEL = wxc.wxLC_SINGLE_SEL | |
274 | wxLC_SORT_ASCENDING = wxc.wxLC_SORT_ASCENDING | |
275 | wxLC_SORT_DESCENDING = wxc.wxLC_SORT_DESCENDING | |
276 | wxLC_MASK_TYPE = wxc.wxLC_MASK_TYPE | |
277 | wxLC_MASK_ALIGN = wxc.wxLC_MASK_ALIGN | |
278 | wxLC_MASK_SORT = wxc.wxLC_MASK_SORT | |
279 | wxSP_VERTICAL = wxc.wxSP_VERTICAL | |
280 | wxSP_HORIZONTAL = wxc.wxSP_HORIZONTAL | |
281 | wxSP_ARROW_KEYS = wxc.wxSP_ARROW_KEYS | |
282 | wxSP_WRAP = wxc.wxSP_WRAP | |
283 | wxSP_NOBORDER = wxc.wxSP_NOBORDER | |
284 | wxSP_3D = wxc.wxSP_3D | |
285 | wxSP_BORDER = wxc.wxSP_BORDER | |
105e45b9 RD |
286 | wxFLOOD_SURFACE = wxc.wxFLOOD_SURFACE |
287 | wxFLOOD_BORDER = wxc.wxFLOOD_BORDER | |
288 | wxODDEVEN_RULE = wxc.wxODDEVEN_RULE | |
289 | wxWINDING_RULE = wxc.wxWINDING_RULE | |
290 | wxTOOL_TOP = wxc.wxTOOL_TOP | |
291 | wxTOOL_BOTTOM = wxc.wxTOOL_BOTTOM | |
292 | wxTOOL_LEFT = wxc.wxTOOL_LEFT | |
293 | wxTOOL_RIGHT = wxc.wxTOOL_RIGHT | |
294 | wxOK = wxc.wxOK | |
295 | wxYES_NO = wxc.wxYES_NO | |
296 | wxCANCEL = wxc.wxCANCEL | |
297 | wxYES = wxc.wxYES | |
298 | wxNO = wxc.wxNO | |
9cce9de1 RD |
299 | wxNO_DEFAULT = wxc.wxNO_DEFAULT |
300 | wxYES_DEFAULT = wxc.wxYES_DEFAULT | |
105e45b9 RD |
301 | wxICON_EXCLAMATION = wxc.wxICON_EXCLAMATION |
302 | wxICON_HAND = wxc.wxICON_HAND | |
303 | wxICON_QUESTION = wxc.wxICON_QUESTION | |
304 | wxICON_INFORMATION = wxc.wxICON_INFORMATION | |
305 | wxICON_STOP = wxc.wxICON_STOP | |
306 | wxICON_ASTERISK = wxc.wxICON_ASTERISK | |
307 | wxICON_MASK = wxc.wxICON_MASK | |
9cce9de1 RD |
308 | wxICON_WARNING = wxc.wxICON_WARNING |
309 | wxICON_ERROR = wxc.wxICON_ERROR | |
310 | wxFORWARD = wxc.wxFORWARD | |
311 | wxBACKWARD = wxc.wxBACKWARD | |
312 | wxRESET = wxc.wxRESET | |
313 | wxHELP = wxc.wxHELP | |
314 | wxMORE = wxc.wxMORE | |
315 | wxSETUP = wxc.wxSETUP | |
105e45b9 RD |
316 | wxCENTRE = wxc.wxCENTRE |
317 | wxCENTER = wxc.wxCENTER | |
318 | wxSIZE_AUTO_WIDTH = wxc.wxSIZE_AUTO_WIDTH | |
319 | wxSIZE_AUTO_HEIGHT = wxc.wxSIZE_AUTO_HEIGHT | |
320 | wxSIZE_AUTO = wxc.wxSIZE_AUTO | |
321 | wxSIZE_USE_EXISTING = wxc.wxSIZE_USE_EXISTING | |
322 | wxSIZE_ALLOW_MINUS_ONE = wxc.wxSIZE_ALLOW_MINUS_ONE | |
105e45b9 RD |
323 | wxPORTRAIT = wxc.wxPORTRAIT |
324 | wxLANDSCAPE = wxc.wxLANDSCAPE | |
d24a34bb RD |
325 | wxPRINT_QUALITY_HIGH = wxc.wxPRINT_QUALITY_HIGH |
326 | wxPRINT_QUALITY_MEDIUM = wxc.wxPRINT_QUALITY_MEDIUM | |
327 | wxPRINT_QUALITY_LOW = wxc.wxPRINT_QUALITY_LOW | |
328 | wxPRINT_QUALITY_DRAFT = wxc.wxPRINT_QUALITY_DRAFT | |
105e45b9 RD |
329 | wxID_OPEN = wxc.wxID_OPEN |
330 | wxID_CLOSE = wxc.wxID_CLOSE | |
331 | wxID_NEW = wxc.wxID_NEW | |
332 | wxID_SAVE = wxc.wxID_SAVE | |
333 | wxID_SAVEAS = wxc.wxID_SAVEAS | |
334 | wxID_REVERT = wxc.wxID_REVERT | |
335 | wxID_EXIT = wxc.wxID_EXIT | |
336 | wxID_UNDO = wxc.wxID_UNDO | |
337 | wxID_REDO = wxc.wxID_REDO | |
338 | wxID_HELP = wxc.wxID_HELP | |
339 | wxID_PRINT = wxc.wxID_PRINT | |
340 | wxID_PRINT_SETUP = wxc.wxID_PRINT_SETUP | |
341 | wxID_PREVIEW = wxc.wxID_PREVIEW | |
342 | wxID_ABOUT = wxc.wxID_ABOUT | |
343 | wxID_HELP_CONTENTS = wxc.wxID_HELP_CONTENTS | |
344 | wxID_HELP_COMMANDS = wxc.wxID_HELP_COMMANDS | |
345 | wxID_HELP_PROCEDURES = wxc.wxID_HELP_PROCEDURES | |
346 | wxID_HELP_CONTEXT = wxc.wxID_HELP_CONTEXT | |
347 | wxID_CUT = wxc.wxID_CUT | |
348 | wxID_COPY = wxc.wxID_COPY | |
349 | wxID_PASTE = wxc.wxID_PASTE | |
350 | wxID_CLEAR = wxc.wxID_CLEAR | |
351 | wxID_FIND = wxc.wxID_FIND | |
352 | wxID_FILE1 = wxc.wxID_FILE1 | |
353 | wxID_FILE2 = wxc.wxID_FILE2 | |
354 | wxID_FILE3 = wxc.wxID_FILE3 | |
355 | wxID_FILE4 = wxc.wxID_FILE4 | |
356 | wxID_FILE5 = wxc.wxID_FILE5 | |
357 | wxID_FILE6 = wxc.wxID_FILE6 | |
358 | wxID_FILE7 = wxc.wxID_FILE7 | |
359 | wxID_FILE8 = wxc.wxID_FILE8 | |
360 | wxID_FILE9 = wxc.wxID_FILE9 | |
361 | wxID_OK = wxc.wxID_OK | |
362 | wxID_CANCEL = wxc.wxID_CANCEL | |
363 | wxID_APPLY = wxc.wxID_APPLY | |
364 | wxID_YES = wxc.wxID_YES | |
365 | wxID_NO = wxc.wxID_NO | |
ab9bc19b | 366 | wxID_STATIC = wxc.wxID_STATIC |
105e45b9 RD |
367 | wxBITMAP_TYPE_BMP = wxc.wxBITMAP_TYPE_BMP |
368 | wxBITMAP_TYPE_BMP_RESOURCE = wxc.wxBITMAP_TYPE_BMP_RESOURCE | |
369 | wxBITMAP_TYPE_ICO = wxc.wxBITMAP_TYPE_ICO | |
370 | wxBITMAP_TYPE_ICO_RESOURCE = wxc.wxBITMAP_TYPE_ICO_RESOURCE | |
371 | wxBITMAP_TYPE_CUR = wxc.wxBITMAP_TYPE_CUR | |
372 | wxBITMAP_TYPE_CUR_RESOURCE = wxc.wxBITMAP_TYPE_CUR_RESOURCE | |
373 | wxBITMAP_TYPE_XBM = wxc.wxBITMAP_TYPE_XBM | |
374 | wxBITMAP_TYPE_XBM_DATA = wxc.wxBITMAP_TYPE_XBM_DATA | |
375 | wxBITMAP_TYPE_XPM = wxc.wxBITMAP_TYPE_XPM | |
376 | wxBITMAP_TYPE_XPM_DATA = wxc.wxBITMAP_TYPE_XPM_DATA | |
377 | wxBITMAP_TYPE_TIF = wxc.wxBITMAP_TYPE_TIF | |
378 | wxBITMAP_TYPE_TIF_RESOURCE = wxc.wxBITMAP_TYPE_TIF_RESOURCE | |
379 | wxBITMAP_TYPE_GIF = wxc.wxBITMAP_TYPE_GIF | |
380 | wxBITMAP_TYPE_GIF_RESOURCE = wxc.wxBITMAP_TYPE_GIF_RESOURCE | |
381 | wxBITMAP_TYPE_PNG = wxc.wxBITMAP_TYPE_PNG | |
382 | wxBITMAP_TYPE_PNG_RESOURCE = wxc.wxBITMAP_TYPE_PNG_RESOURCE | |
383 | wxBITMAP_TYPE_ANY = wxc.wxBITMAP_TYPE_ANY | |
384 | wxBITMAP_TYPE_RESOURCE = wxc.wxBITMAP_TYPE_RESOURCE | |
ab9bc19b | 385 | wxBITMAP_TYPE_JPEG = wxc.wxBITMAP_TYPE_JPEG |
105e45b9 RD |
386 | wxOPEN = wxc.wxOPEN |
387 | wxSAVE = wxc.wxSAVE | |
388 | wxHIDE_READONLY = wxc.wxHIDE_READONLY | |
389 | wxOVERWRITE_PROMPT = wxc.wxOVERWRITE_PROMPT | |
390 | wxACCEL_ALT = wxc.wxACCEL_ALT | |
391 | wxACCEL_CTRL = wxc.wxACCEL_CTRL | |
392 | wxACCEL_SHIFT = wxc.wxACCEL_SHIFT | |
d24a34bb RD |
393 | wxPD_AUTO_HIDE = wxc.wxPD_AUTO_HIDE |
394 | wxPD_APP_MODAL = wxc.wxPD_APP_MODAL | |
395 | wxPD_CAN_ABORT = wxc.wxPD_CAN_ABORT | |
64be6958 RD |
396 | wxPD_ELAPSED_TIME = wxc.wxPD_ELAPSED_TIME |
397 | wxPD_ESTIMATED_TIME = wxc.wxPD_ESTIMATED_TIME | |
398 | wxPD_REMAINING_TIME = wxc.wxPD_REMAINING_TIME | |
8bf5d46e | 399 | wxMENU_TEAROFF = wxc.wxMENU_TEAROFF |
9cce9de1 | 400 | wxMB_DOCKABLE = wxc.wxMB_DOCKABLE |
8bf5d46e | 401 | wxNO_FULL_REPAINT_ON_RESIZE = wxc.wxNO_FULL_REPAINT_ON_RESIZE |
9cce9de1 RD |
402 | wxLEFT = wxc.wxLEFT |
403 | wxRIGHT = wxc.wxRIGHT | |
404 | wxUP = wxc.wxUP | |
405 | wxDOWN = wxc.wxDOWN | |
406 | wxALL = wxc.wxALL | |
407 | wxTOP = wxc.wxTOP | |
408 | wxBOTTOM = wxc.wxBOTTOM | |
409 | wxNORTH = wxc.wxNORTH | |
410 | wxSOUTH = wxc.wxSOUTH | |
411 | wxEAST = wxc.wxEAST | |
412 | wxWEST = wxc.wxWEST | |
413 | wxSTRETCH_NOT = wxc.wxSTRETCH_NOT | |
414 | wxSHRINK = wxc.wxSHRINK | |
415 | wxGROW = wxc.wxGROW | |
416 | wxEXPAND = wxc.wxEXPAND | |
417 | wxNB_FIXEDWIDTH = wxc.wxNB_FIXEDWIDTH | |
418 | wxLI_HORIZONTAL = wxc.wxLI_HORIZONTAL | |
419 | wxLI_VERTICAL = wxc.wxLI_VERTICAL | |
420 | wxHW_SCROLLBAR_NEVER = wxc.wxHW_SCROLLBAR_NEVER | |
421 | wxHW_SCROLLBAR_AUTO = wxc.wxHW_SCROLLBAR_AUTO | |
105e45b9 RD |
422 | wxDEFAULT = wxc.wxDEFAULT |
423 | wxDECORATIVE = wxc.wxDECORATIVE | |
424 | wxROMAN = wxc.wxROMAN | |
425 | wxSCRIPT = wxc.wxSCRIPT | |
426 | wxSWISS = wxc.wxSWISS | |
427 | wxMODERN = wxc.wxMODERN | |
428 | wxTELETYPE = wxc.wxTELETYPE | |
429 | wxVARIABLE = wxc.wxVARIABLE | |
430 | wxFIXED = wxc.wxFIXED | |
431 | wxNORMAL = wxc.wxNORMAL | |
432 | wxLIGHT = wxc.wxLIGHT | |
433 | wxBOLD = wxc.wxBOLD | |
434 | wxITALIC = wxc.wxITALIC | |
435 | wxSLANT = wxc.wxSLANT | |
436 | wxSOLID = wxc.wxSOLID | |
437 | wxDOT = wxc.wxDOT | |
438 | wxLONG_DASH = wxc.wxLONG_DASH | |
439 | wxSHORT_DASH = wxc.wxSHORT_DASH | |
440 | wxDOT_DASH = wxc.wxDOT_DASH | |
441 | wxUSER_DASH = wxc.wxUSER_DASH | |
442 | wxTRANSPARENT = wxc.wxTRANSPARENT | |
443 | wxSTIPPLE = wxc.wxSTIPPLE | |
444 | wxBDIAGONAL_HATCH = wxc.wxBDIAGONAL_HATCH | |
445 | wxCROSSDIAG_HATCH = wxc.wxCROSSDIAG_HATCH | |
446 | wxFDIAGONAL_HATCH = wxc.wxFDIAGONAL_HATCH | |
447 | wxCROSS_HATCH = wxc.wxCROSS_HATCH | |
448 | wxHORIZONTAL_HATCH = wxc.wxHORIZONTAL_HATCH | |
449 | wxVERTICAL_HATCH = wxc.wxVERTICAL_HATCH | |
450 | wxJOIN_BEVEL = wxc.wxJOIN_BEVEL | |
451 | wxJOIN_MITER = wxc.wxJOIN_MITER | |
452 | wxJOIN_ROUND = wxc.wxJOIN_ROUND | |
453 | wxCAP_ROUND = wxc.wxCAP_ROUND | |
454 | wxCAP_PROJECTING = wxc.wxCAP_PROJECTING | |
455 | wxCAP_BUTT = wxc.wxCAP_BUTT | |
456 | wxCLEAR = wxc.wxCLEAR | |
457 | wxXOR = wxc.wxXOR | |
458 | wxINVERT = wxc.wxINVERT | |
459 | wxOR_REVERSE = wxc.wxOR_REVERSE | |
460 | wxAND_REVERSE = wxc.wxAND_REVERSE | |
461 | wxCOPY = wxc.wxCOPY | |
462 | wxAND = wxc.wxAND | |
463 | wxAND_INVERT = wxc.wxAND_INVERT | |
464 | wxNO_OP = wxc.wxNO_OP | |
465 | wxNOR = wxc.wxNOR | |
466 | wxEQUIV = wxc.wxEQUIV | |
467 | wxSRC_INVERT = wxc.wxSRC_INVERT | |
468 | wxOR_INVERT = wxc.wxOR_INVERT | |
469 | wxNAND = wxc.wxNAND | |
470 | wxOR = wxc.wxOR | |
471 | wxSET = wxc.wxSET | |
472 | wxSRC_OR = wxc.wxSRC_OR | |
473 | wxSRC_AND = wxc.wxSRC_AND | |
474 | WXK_BACK = wxc.WXK_BACK | |
475 | WXK_TAB = wxc.WXK_TAB | |
476 | WXK_RETURN = wxc.WXK_RETURN | |
477 | WXK_ESCAPE = wxc.WXK_ESCAPE | |
478 | WXK_SPACE = wxc.WXK_SPACE | |
479 | WXK_DELETE = wxc.WXK_DELETE | |
480 | WXK_START = wxc.WXK_START | |
481 | WXK_LBUTTON = wxc.WXK_LBUTTON | |
482 | WXK_RBUTTON = wxc.WXK_RBUTTON | |
483 | WXK_CANCEL = wxc.WXK_CANCEL | |
484 | WXK_MBUTTON = wxc.WXK_MBUTTON | |
485 | WXK_CLEAR = wxc.WXK_CLEAR | |
486 | WXK_SHIFT = wxc.WXK_SHIFT | |
487 | WXK_CONTROL = wxc.WXK_CONTROL | |
488 | WXK_MENU = wxc.WXK_MENU | |
489 | WXK_PAUSE = wxc.WXK_PAUSE | |
490 | WXK_CAPITAL = wxc.WXK_CAPITAL | |
491 | WXK_PRIOR = wxc.WXK_PRIOR | |
492 | WXK_NEXT = wxc.WXK_NEXT | |
493 | WXK_END = wxc.WXK_END | |
494 | WXK_HOME = wxc.WXK_HOME | |
495 | WXK_LEFT = wxc.WXK_LEFT | |
496 | WXK_UP = wxc.WXK_UP | |
497 | WXK_RIGHT = wxc.WXK_RIGHT | |
498 | WXK_DOWN = wxc.WXK_DOWN | |
499 | WXK_SELECT = wxc.WXK_SELECT | |
500 | WXK_PRINT = wxc.WXK_PRINT | |
501 | WXK_EXECUTE = wxc.WXK_EXECUTE | |
502 | WXK_SNAPSHOT = wxc.WXK_SNAPSHOT | |
503 | WXK_INSERT = wxc.WXK_INSERT | |
504 | WXK_HELP = wxc.WXK_HELP | |
505 | WXK_NUMPAD0 = wxc.WXK_NUMPAD0 | |
506 | WXK_NUMPAD1 = wxc.WXK_NUMPAD1 | |
507 | WXK_NUMPAD2 = wxc.WXK_NUMPAD2 | |
508 | WXK_NUMPAD3 = wxc.WXK_NUMPAD3 | |
509 | WXK_NUMPAD4 = wxc.WXK_NUMPAD4 | |
510 | WXK_NUMPAD5 = wxc.WXK_NUMPAD5 | |
511 | WXK_NUMPAD6 = wxc.WXK_NUMPAD6 | |
512 | WXK_NUMPAD7 = wxc.WXK_NUMPAD7 | |
513 | WXK_NUMPAD8 = wxc.WXK_NUMPAD8 | |
514 | WXK_NUMPAD9 = wxc.WXK_NUMPAD9 | |
515 | WXK_MULTIPLY = wxc.WXK_MULTIPLY | |
516 | WXK_ADD = wxc.WXK_ADD | |
517 | WXK_SEPARATOR = wxc.WXK_SEPARATOR | |
518 | WXK_SUBTRACT = wxc.WXK_SUBTRACT | |
519 | WXK_DECIMAL = wxc.WXK_DECIMAL | |
520 | WXK_DIVIDE = wxc.WXK_DIVIDE | |
521 | WXK_F1 = wxc.WXK_F1 | |
522 | WXK_F2 = wxc.WXK_F2 | |
523 | WXK_F3 = wxc.WXK_F3 | |
524 | WXK_F4 = wxc.WXK_F4 | |
525 | WXK_F5 = wxc.WXK_F5 | |
526 | WXK_F6 = wxc.WXK_F6 | |
527 | WXK_F7 = wxc.WXK_F7 | |
528 | WXK_F8 = wxc.WXK_F8 | |
529 | WXK_F9 = wxc.WXK_F9 | |
530 | WXK_F10 = wxc.WXK_F10 | |
531 | WXK_F11 = wxc.WXK_F11 | |
532 | WXK_F12 = wxc.WXK_F12 | |
533 | WXK_F13 = wxc.WXK_F13 | |
534 | WXK_F14 = wxc.WXK_F14 | |
535 | WXK_F15 = wxc.WXK_F15 | |
536 | WXK_F16 = wxc.WXK_F16 | |
537 | WXK_F17 = wxc.WXK_F17 | |
538 | WXK_F18 = wxc.WXK_F18 | |
539 | WXK_F19 = wxc.WXK_F19 | |
540 | WXK_F20 = wxc.WXK_F20 | |
541 | WXK_F21 = wxc.WXK_F21 | |
542 | WXK_F22 = wxc.WXK_F22 | |
543 | WXK_F23 = wxc.WXK_F23 | |
544 | WXK_F24 = wxc.WXK_F24 | |
545 | WXK_NUMLOCK = wxc.WXK_NUMLOCK | |
546 | WXK_SCROLL = wxc.WXK_SCROLL | |
547 | WXK_PAGEUP = wxc.WXK_PAGEUP | |
548 | WXK_PAGEDOWN = wxc.WXK_PAGEDOWN | |
549 | wxCURSOR_NONE = wxc.wxCURSOR_NONE | |
550 | wxCURSOR_ARROW = wxc.wxCURSOR_ARROW | |
551 | wxCURSOR_BULLSEYE = wxc.wxCURSOR_BULLSEYE | |
552 | wxCURSOR_CHAR = wxc.wxCURSOR_CHAR | |
553 | wxCURSOR_CROSS = wxc.wxCURSOR_CROSS | |
554 | wxCURSOR_HAND = wxc.wxCURSOR_HAND | |
555 | wxCURSOR_IBEAM = wxc.wxCURSOR_IBEAM | |
556 | wxCURSOR_LEFT_BUTTON = wxc.wxCURSOR_LEFT_BUTTON | |
557 | wxCURSOR_MAGNIFIER = wxc.wxCURSOR_MAGNIFIER | |
558 | wxCURSOR_MIDDLE_BUTTON = wxc.wxCURSOR_MIDDLE_BUTTON | |
559 | wxCURSOR_NO_ENTRY = wxc.wxCURSOR_NO_ENTRY | |
560 | wxCURSOR_PAINT_BRUSH = wxc.wxCURSOR_PAINT_BRUSH | |
561 | wxCURSOR_PENCIL = wxc.wxCURSOR_PENCIL | |
562 | wxCURSOR_POINT_LEFT = wxc.wxCURSOR_POINT_LEFT | |
563 | wxCURSOR_POINT_RIGHT = wxc.wxCURSOR_POINT_RIGHT | |
564 | wxCURSOR_QUESTION_ARROW = wxc.wxCURSOR_QUESTION_ARROW | |
565 | wxCURSOR_RIGHT_BUTTON = wxc.wxCURSOR_RIGHT_BUTTON | |
566 | wxCURSOR_SIZENESW = wxc.wxCURSOR_SIZENESW | |
567 | wxCURSOR_SIZENS = wxc.wxCURSOR_SIZENS | |
568 | wxCURSOR_SIZENWSE = wxc.wxCURSOR_SIZENWSE | |
569 | wxCURSOR_SIZEWE = wxc.wxCURSOR_SIZEWE | |
570 | wxCURSOR_SIZING = wxc.wxCURSOR_SIZING | |
571 | wxCURSOR_SPRAYCAN = wxc.wxCURSOR_SPRAYCAN | |
572 | wxCURSOR_WAIT = wxc.wxCURSOR_WAIT | |
573 | wxCURSOR_WATCH = wxc.wxCURSOR_WATCH | |
574 | wxCURSOR_BLANK = wxc.wxCURSOR_BLANK | |
ab9bc19b RD |
575 | wxPAPER_NONE = wxc.wxPAPER_NONE |
576 | wxPAPER_LETTER = wxc.wxPAPER_LETTER | |
577 | wxPAPER_LEGAL = wxc.wxPAPER_LEGAL | |
578 | wxPAPER_A4 = wxc.wxPAPER_A4 | |
579 | wxPAPER_CSHEET = wxc.wxPAPER_CSHEET | |
580 | wxPAPER_DSHEET = wxc.wxPAPER_DSHEET | |
581 | wxPAPER_ESHEET = wxc.wxPAPER_ESHEET | |
582 | wxPAPER_LETTERSMALL = wxc.wxPAPER_LETTERSMALL | |
583 | wxPAPER_TABLOID = wxc.wxPAPER_TABLOID | |
584 | wxPAPER_LEDGER = wxc.wxPAPER_LEDGER | |
585 | wxPAPER_STATEMENT = wxc.wxPAPER_STATEMENT | |
586 | wxPAPER_EXECUTIVE = wxc.wxPAPER_EXECUTIVE | |
587 | wxPAPER_A3 = wxc.wxPAPER_A3 | |
588 | wxPAPER_A4SMALL = wxc.wxPAPER_A4SMALL | |
589 | wxPAPER_A5 = wxc.wxPAPER_A5 | |
590 | wxPAPER_B4 = wxc.wxPAPER_B4 | |
591 | wxPAPER_B5 = wxc.wxPAPER_B5 | |
592 | wxPAPER_FOLIO = wxc.wxPAPER_FOLIO | |
593 | wxPAPER_QUARTO = wxc.wxPAPER_QUARTO | |
594 | wxPAPER_10X14 = wxc.wxPAPER_10X14 | |
595 | wxPAPER_11X17 = wxc.wxPAPER_11X17 | |
596 | wxPAPER_NOTE = wxc.wxPAPER_NOTE | |
597 | wxPAPER_ENV_9 = wxc.wxPAPER_ENV_9 | |
598 | wxPAPER_ENV_10 = wxc.wxPAPER_ENV_10 | |
599 | wxPAPER_ENV_11 = wxc.wxPAPER_ENV_11 | |
600 | wxPAPER_ENV_12 = wxc.wxPAPER_ENV_12 | |
601 | wxPAPER_ENV_14 = wxc.wxPAPER_ENV_14 | |
602 | wxPAPER_ENV_DL = wxc.wxPAPER_ENV_DL | |
603 | wxPAPER_ENV_C5 = wxc.wxPAPER_ENV_C5 | |
604 | wxPAPER_ENV_C3 = wxc.wxPAPER_ENV_C3 | |
605 | wxPAPER_ENV_C4 = wxc.wxPAPER_ENV_C4 | |
606 | wxPAPER_ENV_C6 = wxc.wxPAPER_ENV_C6 | |
607 | wxPAPER_ENV_C65 = wxc.wxPAPER_ENV_C65 | |
608 | wxPAPER_ENV_B4 = wxc.wxPAPER_ENV_B4 | |
609 | wxPAPER_ENV_B5 = wxc.wxPAPER_ENV_B5 | |
610 | wxPAPER_ENV_B6 = wxc.wxPAPER_ENV_B6 | |
611 | wxPAPER_ENV_ITALY = wxc.wxPAPER_ENV_ITALY | |
612 | wxPAPER_ENV_MONARCH = wxc.wxPAPER_ENV_MONARCH | |
613 | wxPAPER_ENV_PERSONAL = wxc.wxPAPER_ENV_PERSONAL | |
614 | wxPAPER_FANFOLD_US = wxc.wxPAPER_FANFOLD_US | |
615 | wxPAPER_FANFOLD_STD_GERMAN = wxc.wxPAPER_FANFOLD_STD_GERMAN | |
616 | wxPAPER_FANFOLD_LGL_GERMAN = wxc.wxPAPER_FANFOLD_LGL_GERMAN | |
617 | wxPAPER_ISO_B4 = wxc.wxPAPER_ISO_B4 | |
618 | wxPAPER_JAPANESE_POSTCARD = wxc.wxPAPER_JAPANESE_POSTCARD | |
619 | wxPAPER_9X11 = wxc.wxPAPER_9X11 | |
620 | wxPAPER_10X11 = wxc.wxPAPER_10X11 | |
621 | wxPAPER_15X11 = wxc.wxPAPER_15X11 | |
622 | wxPAPER_ENV_INVITE = wxc.wxPAPER_ENV_INVITE | |
623 | wxPAPER_LETTER_EXTRA = wxc.wxPAPER_LETTER_EXTRA | |
624 | wxPAPER_LEGAL_EXTRA = wxc.wxPAPER_LEGAL_EXTRA | |
625 | wxPAPER_TABLOID_EXTRA = wxc.wxPAPER_TABLOID_EXTRA | |
626 | wxPAPER_A4_EXTRA = wxc.wxPAPER_A4_EXTRA | |
627 | wxPAPER_LETTER_TRANSVERSE = wxc.wxPAPER_LETTER_TRANSVERSE | |
628 | wxPAPER_A4_TRANSVERSE = wxc.wxPAPER_A4_TRANSVERSE | |
629 | wxPAPER_LETTER_EXTRA_TRANSVERSE = wxc.wxPAPER_LETTER_EXTRA_TRANSVERSE | |
630 | wxPAPER_A_PLUS = wxc.wxPAPER_A_PLUS | |
631 | wxPAPER_B_PLUS = wxc.wxPAPER_B_PLUS | |
632 | wxPAPER_LETTER_PLUS = wxc.wxPAPER_LETTER_PLUS | |
633 | wxPAPER_A4_PLUS = wxc.wxPAPER_A4_PLUS | |
634 | wxPAPER_A5_TRANSVERSE = wxc.wxPAPER_A5_TRANSVERSE | |
635 | wxPAPER_B5_TRANSVERSE = wxc.wxPAPER_B5_TRANSVERSE | |
636 | wxPAPER_A3_EXTRA = wxc.wxPAPER_A3_EXTRA | |
637 | wxPAPER_A5_EXTRA = wxc.wxPAPER_A5_EXTRA | |
638 | wxPAPER_B5_EXTRA = wxc.wxPAPER_B5_EXTRA | |
639 | wxPAPER_A2 = wxc.wxPAPER_A2 | |
640 | wxPAPER_A3_TRANSVERSE = wxc.wxPAPER_A3_TRANSVERSE | |
641 | wxPAPER_A3_EXTRA_TRANSVERSE = wxc.wxPAPER_A3_EXTRA_TRANSVERSE | |
d24a34bb RD |
642 | wxDUPLEX_SIMPLEX = wxc.wxDUPLEX_SIMPLEX |
643 | wxDUPLEX_HORIZONTAL = wxc.wxDUPLEX_HORIZONTAL | |
644 | wxDUPLEX_VERTICAL = wxc.wxDUPLEX_VERTICAL | |
105e45b9 RD |
645 | FALSE = wxc.FALSE |
646 | false = wxc.false | |
647 | TRUE = wxc.TRUE | |
648 | true = wxc.true | |
21f8d7ea | 649 | wxVERSION_STRING = wxc.wxVERSION_STRING |
105e45b9 RD |
650 | wxEVT_NULL = wxc.wxEVT_NULL |
651 | wxEVT_FIRST = wxc.wxEVT_FIRST | |
652 | wxEVT_COMMAND_BUTTON_CLICKED = wxc.wxEVT_COMMAND_BUTTON_CLICKED | |
653 | wxEVT_COMMAND_CHECKBOX_CLICKED = wxc.wxEVT_COMMAND_CHECKBOX_CLICKED | |
654 | wxEVT_COMMAND_CHOICE_SELECTED = wxc.wxEVT_COMMAND_CHOICE_SELECTED | |
655 | wxEVT_COMMAND_LISTBOX_SELECTED = wxc.wxEVT_COMMAND_LISTBOX_SELECTED | |
656 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED = wxc.wxEVT_COMMAND_LISTBOX_DOUBLECLICKED | |
657 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED = wxc.wxEVT_COMMAND_CHECKLISTBOX_TOGGLED | |
658 | wxEVT_COMMAND_TEXT_UPDATED = wxc.wxEVT_COMMAND_TEXT_UPDATED | |
659 | wxEVT_COMMAND_TEXT_ENTER = wxc.wxEVT_COMMAND_TEXT_ENTER | |
660 | wxEVT_COMMAND_MENU_SELECTED = wxc.wxEVT_COMMAND_MENU_SELECTED | |
661 | wxEVT_COMMAND_SLIDER_UPDATED = wxc.wxEVT_COMMAND_SLIDER_UPDATED | |
662 | wxEVT_COMMAND_RADIOBOX_SELECTED = wxc.wxEVT_COMMAND_RADIOBOX_SELECTED | |
663 | wxEVT_COMMAND_RADIOBUTTON_SELECTED = wxc.wxEVT_COMMAND_RADIOBUTTON_SELECTED | |
664 | wxEVT_COMMAND_SCROLLBAR_UPDATED = wxc.wxEVT_COMMAND_SCROLLBAR_UPDATED | |
665 | wxEVT_COMMAND_VLBOX_SELECTED = wxc.wxEVT_COMMAND_VLBOX_SELECTED | |
666 | wxEVT_COMMAND_COMBOBOX_SELECTED = wxc.wxEVT_COMMAND_COMBOBOX_SELECTED | |
667 | wxEVT_COMMAND_TOOL_CLICKED = wxc.wxEVT_COMMAND_TOOL_CLICKED | |
668 | wxEVT_COMMAND_TOOL_RCLICKED = wxc.wxEVT_COMMAND_TOOL_RCLICKED | |
669 | wxEVT_COMMAND_TOOL_ENTER = wxc.wxEVT_COMMAND_TOOL_ENTER | |
670 | wxEVT_SET_FOCUS = wxc.wxEVT_SET_FOCUS | |
671 | wxEVT_KILL_FOCUS = wxc.wxEVT_KILL_FOCUS | |
672 | wxEVT_LEFT_DOWN = wxc.wxEVT_LEFT_DOWN | |
673 | wxEVT_LEFT_UP = wxc.wxEVT_LEFT_UP | |
674 | wxEVT_MIDDLE_DOWN = wxc.wxEVT_MIDDLE_DOWN | |
675 | wxEVT_MIDDLE_UP = wxc.wxEVT_MIDDLE_UP | |
676 | wxEVT_RIGHT_DOWN = wxc.wxEVT_RIGHT_DOWN | |
677 | wxEVT_RIGHT_UP = wxc.wxEVT_RIGHT_UP | |
678 | wxEVT_MOTION = wxc.wxEVT_MOTION | |
679 | wxEVT_ENTER_WINDOW = wxc.wxEVT_ENTER_WINDOW | |
680 | wxEVT_LEAVE_WINDOW = wxc.wxEVT_LEAVE_WINDOW | |
681 | wxEVT_LEFT_DCLICK = wxc.wxEVT_LEFT_DCLICK | |
682 | wxEVT_MIDDLE_DCLICK = wxc.wxEVT_MIDDLE_DCLICK | |
683 | wxEVT_RIGHT_DCLICK = wxc.wxEVT_RIGHT_DCLICK | |
684 | wxEVT_NC_LEFT_DOWN = wxc.wxEVT_NC_LEFT_DOWN | |
685 | wxEVT_NC_LEFT_UP = wxc.wxEVT_NC_LEFT_UP | |
686 | wxEVT_NC_MIDDLE_DOWN = wxc.wxEVT_NC_MIDDLE_DOWN | |
687 | wxEVT_NC_MIDDLE_UP = wxc.wxEVT_NC_MIDDLE_UP | |
688 | wxEVT_NC_RIGHT_DOWN = wxc.wxEVT_NC_RIGHT_DOWN | |
689 | wxEVT_NC_RIGHT_UP = wxc.wxEVT_NC_RIGHT_UP | |
690 | wxEVT_NC_MOTION = wxc.wxEVT_NC_MOTION | |
691 | wxEVT_NC_ENTER_WINDOW = wxc.wxEVT_NC_ENTER_WINDOW | |
692 | wxEVT_NC_LEAVE_WINDOW = wxc.wxEVT_NC_LEAVE_WINDOW | |
693 | wxEVT_NC_LEFT_DCLICK = wxc.wxEVT_NC_LEFT_DCLICK | |
694 | wxEVT_NC_MIDDLE_DCLICK = wxc.wxEVT_NC_MIDDLE_DCLICK | |
695 | wxEVT_NC_RIGHT_DCLICK = wxc.wxEVT_NC_RIGHT_DCLICK | |
696 | wxEVT_CHAR = wxc.wxEVT_CHAR | |
8bf5d46e RD |
697 | wxEVT_KEY_DOWN = wxc.wxEVT_KEY_DOWN |
698 | wxEVT_KEY_UP = wxc.wxEVT_KEY_UP | |
699 | wxEVT_CHAR_HOOK = wxc.wxEVT_CHAR_HOOK | |
105e45b9 RD |
700 | wxEVT_SCROLL_TOP = wxc.wxEVT_SCROLL_TOP |
701 | wxEVT_SCROLL_BOTTOM = wxc.wxEVT_SCROLL_BOTTOM | |
702 | wxEVT_SCROLL_LINEUP = wxc.wxEVT_SCROLL_LINEUP | |
703 | wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN | |
704 | wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP | |
705 | wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN | |
706 | wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK | |
d24a34bb RD |
707 | wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP |
708 | wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM | |
709 | wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP | |
710 | wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN | |
711 | wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP | |
712 | wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN | |
713 | wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK | |
105e45b9 RD |
714 | wxEVT_SIZE = wxc.wxEVT_SIZE |
715 | wxEVT_MOVE = wxc.wxEVT_MOVE | |
716 | wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW | |
717 | wxEVT_END_SESSION = wxc.wxEVT_END_SESSION | |
718 | wxEVT_QUERY_END_SESSION = wxc.wxEVT_QUERY_END_SESSION | |
719 | wxEVT_ACTIVATE_APP = wxc.wxEVT_ACTIVATE_APP | |
720 | wxEVT_POWER = wxc.wxEVT_POWER | |
105e45b9 RD |
721 | wxEVT_ACTIVATE = wxc.wxEVT_ACTIVATE |
722 | wxEVT_CREATE = wxc.wxEVT_CREATE | |
723 | wxEVT_DESTROY = wxc.wxEVT_DESTROY | |
724 | wxEVT_SHOW = wxc.wxEVT_SHOW | |
725 | wxEVT_ICONIZE = wxc.wxEVT_ICONIZE | |
726 | wxEVT_MAXIMIZE = wxc.wxEVT_MAXIMIZE | |
727 | wxEVT_MOUSE_CAPTURE_CHANGED = wxc.wxEVT_MOUSE_CAPTURE_CHANGED | |
728 | wxEVT_PAINT = wxc.wxEVT_PAINT | |
729 | wxEVT_ERASE_BACKGROUND = wxc.wxEVT_ERASE_BACKGROUND | |
730 | wxEVT_NC_PAINT = wxc.wxEVT_NC_PAINT | |
731 | wxEVT_PAINT_ICON = wxc.wxEVT_PAINT_ICON | |
732 | wxEVT_MENU_CHAR = wxc.wxEVT_MENU_CHAR | |
733 | wxEVT_MENU_INIT = wxc.wxEVT_MENU_INIT | |
734 | wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT | |
735 | wxEVT_POPUP_MENU_INIT = wxc.wxEVT_POPUP_MENU_INIT | |
736 | wxEVT_CONTEXT_MENU = wxc.wxEVT_CONTEXT_MENU | |
737 | wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED | |
738 | wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED | |
739 | wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE | |
740 | wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED | |
741 | wxEVT_JOY_BUTTON_DOWN = wxc.wxEVT_JOY_BUTTON_DOWN | |
742 | wxEVT_JOY_BUTTON_UP = wxc.wxEVT_JOY_BUTTON_UP | |
743 | wxEVT_JOY_MOVE = wxc.wxEVT_JOY_MOVE | |
744 | wxEVT_JOY_ZMOVE = wxc.wxEVT_JOY_ZMOVE | |
745 | wxEVT_DROP_FILES = wxc.wxEVT_DROP_FILES | |
746 | wxEVT_DRAW_ITEM = wxc.wxEVT_DRAW_ITEM | |
747 | wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM | |
748 | wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM | |
749 | wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG | |
750 | wxEVT_IDLE = wxc.wxEVT_IDLE | |
751 | wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI | |
752 | wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK | |
753 | wxEVT_COMMAND_LEFT_DCLICK = wxc.wxEVT_COMMAND_LEFT_DCLICK | |
754 | wxEVT_COMMAND_RIGHT_CLICK = wxc.wxEVT_COMMAND_RIGHT_CLICK | |
755 | wxEVT_COMMAND_RIGHT_DCLICK = wxc.wxEVT_COMMAND_RIGHT_DCLICK | |
756 | wxEVT_COMMAND_SET_FOCUS = wxc.wxEVT_COMMAND_SET_FOCUS | |
757 | wxEVT_COMMAND_KILL_FOCUS = wxc.wxEVT_COMMAND_KILL_FOCUS | |
758 | wxEVT_COMMAND_ENTER = wxc.wxEVT_COMMAND_ENTER | |
759 | wxEVT_COMMAND_TREE_BEGIN_DRAG = wxc.wxEVT_COMMAND_TREE_BEGIN_DRAG | |
760 | wxEVT_COMMAND_TREE_BEGIN_RDRAG = wxc.wxEVT_COMMAND_TREE_BEGIN_RDRAG | |
761 | wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT = wxc.wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT | |
762 | wxEVT_COMMAND_TREE_END_LABEL_EDIT = wxc.wxEVT_COMMAND_TREE_END_LABEL_EDIT | |
763 | wxEVT_COMMAND_TREE_DELETE_ITEM = wxc.wxEVT_COMMAND_TREE_DELETE_ITEM | |
764 | wxEVT_COMMAND_TREE_GET_INFO = wxc.wxEVT_COMMAND_TREE_GET_INFO | |
765 | wxEVT_COMMAND_TREE_SET_INFO = wxc.wxEVT_COMMAND_TREE_SET_INFO | |
766 | wxEVT_COMMAND_TREE_ITEM_EXPANDED = wxc.wxEVT_COMMAND_TREE_ITEM_EXPANDED | |
767 | wxEVT_COMMAND_TREE_ITEM_EXPANDING = wxc.wxEVT_COMMAND_TREE_ITEM_EXPANDING | |
768 | wxEVT_COMMAND_TREE_ITEM_COLLAPSED = wxc.wxEVT_COMMAND_TREE_ITEM_COLLAPSED | |
769 | wxEVT_COMMAND_TREE_ITEM_COLLAPSING = wxc.wxEVT_COMMAND_TREE_ITEM_COLLAPSING | |
770 | wxEVT_COMMAND_TREE_SEL_CHANGED = wxc.wxEVT_COMMAND_TREE_SEL_CHANGED | |
771 | wxEVT_COMMAND_TREE_SEL_CHANGING = wxc.wxEVT_COMMAND_TREE_SEL_CHANGING | |
772 | wxEVT_COMMAND_TREE_KEY_DOWN = wxc.wxEVT_COMMAND_TREE_KEY_DOWN | |
773 | wxEVT_COMMAND_LIST_BEGIN_DRAG = wxc.wxEVT_COMMAND_LIST_BEGIN_DRAG | |
774 | wxEVT_COMMAND_LIST_BEGIN_RDRAG = wxc.wxEVT_COMMAND_LIST_BEGIN_RDRAG | |
775 | wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT = wxc.wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT | |
776 | wxEVT_COMMAND_LIST_END_LABEL_EDIT = wxc.wxEVT_COMMAND_LIST_END_LABEL_EDIT | |
777 | wxEVT_COMMAND_LIST_DELETE_ITEM = wxc.wxEVT_COMMAND_LIST_DELETE_ITEM | |
778 | wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS = wxc.wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS | |
779 | wxEVT_COMMAND_LIST_GET_INFO = wxc.wxEVT_COMMAND_LIST_GET_INFO | |
780 | wxEVT_COMMAND_LIST_SET_INFO = wxc.wxEVT_COMMAND_LIST_SET_INFO | |
781 | wxEVT_COMMAND_LIST_ITEM_SELECTED = wxc.wxEVT_COMMAND_LIST_ITEM_SELECTED | |
782 | wxEVT_COMMAND_LIST_ITEM_DESELECTED = wxc.wxEVT_COMMAND_LIST_ITEM_DESELECTED | |
783 | wxEVT_COMMAND_LIST_KEY_DOWN = wxc.wxEVT_COMMAND_LIST_KEY_DOWN | |
784 | wxEVT_COMMAND_LIST_INSERT_ITEM = wxc.wxEVT_COMMAND_LIST_INSERT_ITEM | |
785 | wxEVT_COMMAND_LIST_COL_CLICK = wxc.wxEVT_COMMAND_LIST_COL_CLICK | |
d24a34bb | 786 | wxEVT_COMMAND_LIST_ITEM_ACTIVATED = wxc.wxEVT_COMMAND_LIST_ITEM_ACTIVATED |
105e45b9 RD |
787 | wxEVT_COMMAND_TAB_SEL_CHANGED = wxc.wxEVT_COMMAND_TAB_SEL_CHANGED |
788 | wxEVT_COMMAND_TAB_SEL_CHANGING = wxc.wxEVT_COMMAND_TAB_SEL_CHANGING | |
789 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED | |
790 | wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxc.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING | |
d24a34bb RD |
791 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = wxc.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING |
792 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = wxc.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED | |
793 | wxEVT_COMMAND_SPLITTER_UNSPLIT = wxc.wxEVT_COMMAND_SPLITTER_UNSPLIT | |
794 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = wxc.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED | |
105e45b9 RD |
795 | __version__ = wxc.__version__ |
796 | cvar = wxc.cvar | |
797 | wxPyDefaultPosition = wxPointPtr(wxc.cvar.wxPyDefaultPosition) | |
798 | wxPyDefaultSize = wxSizePtr(wxc.cvar.wxPyDefaultSize) | |
70551f47 RD |
799 | |
800 | ||
801 | #-------------- USER INCLUDE ----------------------- | |
802 | ||
803 | #---------------------------------------------------------------------------- | |
804 | # Name: _extra.py | |
805 | # Purpose: This file is appended to the shadow class file generated | |
806 | # by SWIG. We add some unSWIGable things here. | |
807 | # | |
808 | # Author: Robin Dunn | |
809 | # | |
810 | # Created: 6/30/97 | |
811 | # RCS-ID: $Id$ | |
812 | # Copyright: (c) 1998 by Total Control Software | |
813 | # Licence: wxWindows license | |
814 | #---------------------------------------------------------------------------- | |
815 | ||
816 | import sys | |
817 | ||
818 | #---------------------------------------------------------------------- | |
819 | # This gives this module's dictionary to the C++ extension code... | |
820 | ||
821 | _wxSetDictionary(vars()) | |
822 | ||
823 | ||
824 | #---------------------------------------------------------------------- | |
825 | #---------------------------------------------------------------------- | |
826 | # Helper function to link python methods to wxWindows virtual | |
827 | # functions by name. | |
828 | ||
829 | def _checkForCallback(obj, name, event, theID=-1): | |
830 | try: cb = getattr(obj, name) | |
831 | except: pass | |
832 | else: obj.Connect(theID, -1, event, cb) | |
833 | ||
d24a34bb RD |
834 | ## def _checkClassCallback(obj, name): |
835 | ## try: cb = getattr(obj, name) | |
836 | ## except: pass | |
837 | ## else: obj._addCallback(name, cb) | |
838 | ||
839 | ||
70551f47 RD |
840 | def _StdWindowCallbacks(win): |
841 | _checkForCallback(win, "OnChar", wxEVT_CHAR) | |
842 | _checkForCallback(win, "OnSize", wxEVT_SIZE) | |
843 | _checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND) | |
844 | _checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED) | |
845 | _checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG) | |
70551f47 | 846 | _checkForCallback(win, "OnPaint", wxEVT_PAINT) |
ab9bc19b RD |
847 | _checkForCallback(win, "OnIdle", wxEVT_IDLE) |
848 | ||
70551f47 RD |
849 | |
850 | def _StdFrameCallbacks(win): | |
851 | _StdWindowCallbacks(win) | |
852 | _checkForCallback(win, "OnActivate", wxEVT_ACTIVATE) | |
853 | _checkForCallback(win, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT) | |
854 | _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW) | |
855 | ||
856 | ||
b26e2dc4 RD |
857 | def _StdDialogCallbacks(win): |
858 | _StdWindowCallbacks(win) | |
859 | _checkForCallback(win, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK) | |
860 | _checkForCallback(win, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED, wxID_APPLY) | |
861 | _checkForCallback(win, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL) | |
862 | _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW) | |
863 | _checkForCallback(win, "OnCharHook", wxEVT_CHAR_HOOK) | |
864 | ||
865 | ||
ab9bc19b | 866 | def _StdOnScrollCallbacks(win): |
70551f47 RD |
867 | try: cb = getattr(win, "OnScroll") |
868 | except: pass | |
869 | else: EVT_SCROLL(win, cb) | |
870 | ||
871 | ||
872 | ||
873 | #---------------------------------------------------------------------- | |
874 | #---------------------------------------------------------------------- | |
875 | # functions that look and act like the C++ Macros of the same name | |
876 | ||
877 | ||
878 | # Miscellaneous | |
879 | def EVT_SIZE(win, func): | |
880 | win.Connect(-1, -1, wxEVT_SIZE, func) | |
881 | ||
882 | def EVT_MOVE(win, func): | |
883 | win.Connect(-1, -1, wxEVT_MOVE, func) | |
884 | ||
885 | def EVT_CLOSE(win, func): | |
886 | win.Connect(-1, -1, wxEVT_CLOSE_WINDOW, func) | |
887 | ||
888 | def EVT_PAINT(win, func): | |
889 | win.Connect(-1, -1, wxEVT_PAINT, func) | |
890 | ||
891 | def EVT_ERASE_BACKGROUND(win, func): | |
892 | win.Connect(-1, -1, wxEVT_ERASE_BACKGROUND, func) | |
893 | ||
894 | def EVT_CHAR(win, func): | |
895 | win.Connect(-1, -1, wxEVT_CHAR, func) | |
896 | ||
897 | def EVT_CHAR_HOOK(win, func): | |
898 | win.Connect(-1, -1, wxEVT_CHAR_HOOK, func) | |
899 | ||
8bf5d46e RD |
900 | def EVT_KEY_DOWN(win, func): |
901 | win.Connect(-1, -1, wxEVT_KEY_DOWN, func) | |
902 | ||
903 | def EVT_KEY_UP(win, func): | |
904 | win.Connect(-1, -1, wxEVT_KEY_UP, func) | |
905 | ||
70551f47 RD |
906 | def EVT_MENU_HIGHLIGHT(win, id, func): |
907 | win.Connect(id, -1, wxEVT_MENU_HIGHLIGHT, func) | |
908 | ||
909 | def EVT_MENU_HIGHLIGHT_ALL(win, func): | |
910 | win.Connect(-1, -1, wxEVT_MENU_HIGHLIGHT, func) | |
911 | ||
912 | def EVT_SET_FOCUS(win, func): | |
913 | win.Connect(-1, -1, wxEVT_SET_FOCUS, func) | |
914 | ||
915 | def EVT_KILL_FOCUS(win, func): | |
916 | win.Connect(-1, -1, wxEVT_KILL_FOCUS, func) | |
917 | ||
918 | def EVT_ACTIVATE(win, func): | |
919 | win.Connect(-1, -1, wxEVT_ACTIVATE, func) | |
920 | ||
921 | def EVT_ACTIVATE_APP(win, func): | |
922 | win.Connect(-1, -1, wxEVT_ACTIVATE_APP, func) | |
923 | ||
924 | def EVT_END_SESSION(win, func): | |
925 | win.Connect(-1, -1, wxEVT_END_SESSION, func) | |
926 | ||
927 | def EVT_QUERY_END_SESSION(win, func): | |
928 | win.Connect(-1, -1, wxEVT_QUERY_END_SESSION, func) | |
929 | ||
930 | def EVT_DROP_FILES(win, func): | |
931 | win.Connect(-1, -1, wxEVT_DROP_FILES, func) | |
932 | ||
933 | def EVT_INIT_DIALOG(win, func): | |
934 | win.Connect(-1, -1, wxEVT_INIT_DIALOG, func) | |
935 | ||
936 | def EVT_SYS_COLOUR_CHANGED(win, func): | |
937 | win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func) | |
938 | ||
939 | def EVT_SHOW(win, func): | |
940 | win.Connect(-1, -1, wxEVT_SHOW, func) | |
941 | ||
942 | def EVT_MAXIMIZE(win, func): | |
943 | win.Connect(-1, -1, wxEVT_MAXIMIZE, func) | |
944 | ||
945 | def EVT_ICONIZE(win, func): | |
946 | win.Connect(-1, -1, wxEVT_ICONIZE, func) | |
947 | ||
948 | def EVT_NAVIGATION_KEY(win, func): | |
949 | win.Connect(-1, -1, wxEVT_NAVIGATION_KEY, func) | |
950 | ||
ab9bc19b RD |
951 | def EVT_IDLE(win, func): |
952 | win.Connect(-1, -1, wxEVT_IDLE, func) | |
953 | ||
d24a34bb RD |
954 | def EVT_UPDATE_UI(win, id, func): |
955 | win.Connect(id, -1, wxEVT_UPDATE_UI, func) | |
956 | ||
70551f47 RD |
957 | |
958 | # Mouse Events | |
959 | def EVT_LEFT_DOWN(win, func): | |
960 | win.Connect(-1, -1, wxEVT_LEFT_DOWN, func) | |
961 | ||
962 | def EVT_LEFT_UP(win, func): | |
963 | win.Connect(-1, -1, wxEVT_LEFT_UP, func) | |
964 | ||
965 | def EVT_MIDDLE_DOWN(win, func): | |
966 | win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func) | |
967 | ||
968 | def EVT_MIDDLE_UP(win, func): | |
969 | win.Connect(-1, -1, wxEVT_MIDDLE_UP, func) | |
970 | ||
971 | def EVT_RIGHT_DOWN(win, func): | |
972 | win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func) | |
973 | ||
974 | def EVT_RIGHT_UP(win, func): | |
975 | win.Connect(-1, -1, wxEVT_RIGHT_UP, func) | |
976 | ||
977 | def EVT_MOTION(win, func): | |
978 | win.Connect(-1, -1, wxEVT_MOTION, func) | |
979 | ||
980 | def EVT_LEFT_DCLICK(win, func): | |
981 | win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func) | |
982 | ||
983 | def EVT_MIDDLE_DCLICK(win, func): | |
984 | win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func) | |
985 | ||
986 | def EVT_RIGHT_DCLICK(win, func): | |
987 | win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func) | |
988 | ||
989 | def EVT_LEAVE_WINDOW(win, func): | |
990 | win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func) | |
991 | ||
992 | def EVT_ENTER_WINDOW(win, func): | |
993 | win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func) | |
994 | ||
995 | ||
996 | # all mouse events | |
997 | def EVT_MOUSE_EVENTS(win, func): | |
998 | win.Connect(-1, -1, wxEVT_LEFT_DOWN, func) | |
999 | win.Connect(-1, -1, wxEVT_LEFT_UP, func) | |
1000 | win.Connect(-1, -1, wxEVT_MIDDLE_DOWN, func) | |
1001 | win.Connect(-1, -1, wxEVT_MIDDLE_UP, func) | |
1002 | win.Connect(-1, -1, wxEVT_RIGHT_DOWN, func) | |
1003 | win.Connect(-1, -1, wxEVT_RIGHT_UP, func) | |
1004 | win.Connect(-1, -1, wxEVT_MOTION, func) | |
1005 | win.Connect(-1, -1, wxEVT_LEFT_DCLICK, func) | |
1006 | win.Connect(-1, -1, wxEVT_MIDDLE_DCLICK, func) | |
1007 | win.Connect(-1, -1, wxEVT_RIGHT_DCLICK, func) | |
1008 | win.Connect(-1, -1, wxEVT_LEAVE_WINDOW, func) | |
1009 | win.Connect(-1, -1, wxEVT_ENTER_WINDOW, func) | |
1010 | ||
1011 | # EVT_COMMAND | |
1012 | def EVT_COMMAND(win, id, cmd, func): | |
1013 | win.Connect(id, -1, cmd, func) | |
1014 | ||
1015 | def EVT_COMMAND_RANGE(win, id1, id2, cmd, func): | |
1016 | win.Connect(id1, id2, cmd, func) | |
1017 | ||
1018 | # Scrolling | |
1019 | def EVT_SCROLL(win, func): | |
1020 | win.Connect(-1, -1, wxEVT_SCROLL_TOP, func) | |
1021 | win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func) | |
1022 | win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func) | |
1023 | win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1024 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func) | |
1025 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1026 | win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func) | |
1027 | ||
1028 | def EVT_SCROLL_TOP(win, func): | |
1029 | win.Connect(-1, -1, wxEVT_SCROLL_TOP, func) | |
1030 | ||
1031 | def EVT_SCROLL_BOTTOM(win, func): | |
1032 | win.Connect(-1, -1, wxEVT_SCROLL_BOTTOM, func) | |
1033 | ||
1034 | def EVT_SCROLL_LINEUP(win, func): | |
1035 | win.Connect(-1, -1, wxEVT_SCROLL_LINEUP, func) | |
1036 | ||
1037 | def EVT_SCROLL_LINEDOWN(win, func): | |
1038 | win.Connect(-1, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1039 | ||
1040 | def EVT_SCROLL_PAGEUP(win, func): | |
1041 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func) | |
1042 | ||
1043 | def EVT_SCROLL_PAGEDOWN(win, func): | |
1044 | win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1045 | ||
1046 | def EVT_SCROLL_THUMBTRACK(win, func): | |
1047 | win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func) | |
1048 | ||
1049 | ||
1050 | ||
1051 | # Scrolling, with an id | |
1052 | def EVT_COMMAND_SCROLL(win, id, func): | |
1053 | win.Connect(id, -1, wxEVT_SCROLL_TOP, func) | |
1054 | win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func) | |
1055 | win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func) | |
1056 | win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1057 | win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func) | |
1058 | win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1059 | win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func) | |
1060 | ||
1061 | def EVT_COMMAND_SCROLL_TOP(win, id, func): | |
1062 | win.Connect(id, -1, wxEVT_SCROLL_TOP, func) | |
1063 | ||
1064 | def EVT_COMMAND_SCROLL_BOTTOM(win, id, func): | |
1065 | win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func) | |
1066 | ||
1067 | def EVT_COMMAND_SCROLL_LINEUP(win, id, func): | |
1068 | win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func) | |
1069 | ||
1070 | def EVT_COMMAND_SCROLL_LINEDOWN(win, id, func): | |
1071 | win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1072 | ||
1073 | def EVT_COMMAND_SCROLL_PAGEUP(win, id, func): | |
1074 | win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func) | |
1075 | ||
1076 | def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func): | |
1077 | win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1078 | ||
1079 | def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func): | |
1080 | win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func) | |
1081 | ||
9cce9de1 RD |
1082 | #--- |
1083 | def EVT_SCROLLWIN(win, func): | |
1084 | win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func) | |
1085 | win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1086 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1087 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1088 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1089 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1090 | win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK,func) | |
1091 | ||
1092 | def EVT_SCROLLWIN_TOP(win, func): | |
1093 | win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func) | |
1094 | ||
1095 | def EVT_SCROLLWIN_BOTTOM(win, func): | |
1096 | win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1097 | ||
1098 | def EVT_SCROLLWIN_LINEUP(win, func): | |
1099 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1100 | ||
1101 | def EVT_SCROLLWIN_LINEDOWN(win, func): | |
1102 | win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1103 | ||
1104 | def EVT_SCROLLWIN_PAGEUP(win, func): | |
1105 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1106 | ||
1107 | def EVT_SCROLLWIN_PAGEDOWN(win, func): | |
1108 | win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1109 | ||
1110 | def EVT_SCROLLWIN_THUMBTRACK(win, func): | |
1111 | win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func) | |
1112 | ||
1113 | ||
1114 | ||
1115 | # Scrolling, with an id | |
1116 | def EVT_COMMAND_SCROLLWIN(win, id, func): | |
1117 | win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func) | |
1118 | win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1119 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1120 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1121 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1122 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1123 | win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK,func) | |
1124 | ||
1125 | def EVT_COMMAND_SCROLLWIN_TOP(win, id, func): | |
1126 | win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func) | |
1127 | ||
1128 | def EVT_COMMAND_SCROLLWIN_BOTTOM(win, id, func): | |
1129 | win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func) | |
1130 | ||
1131 | def EVT_COMMAND_SCROLLWIN_LINEUP(win, id, func): | |
1132 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func) | |
1133 | ||
1134 | def EVT_COMMAND_SCROLLWIN_LINEDOWN(win, id, func): | |
1135 | win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func) | |
1136 | ||
1137 | def EVT_COMMAND_SCROLLWIN_PAGEUP(win, id, func): | |
1138 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func) | |
1139 | ||
1140 | def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func): | |
1141 | win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func) | |
1142 | ||
1143 | def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func): | |
1144 | win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func) | |
70551f47 RD |
1145 | |
1146 | # Convenience commands | |
1147 | def EVT_BUTTON(win, id, func): | |
1148 | win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func) | |
1149 | ||
1150 | def EVT_CHECKBOX(win, id, func): | |
1151 | win.Connect(id, -1, wxEVT_COMMAND_CHECKBOX_CLICKED, func) | |
1152 | ||
1153 | def EVT_CHOICE(win, id, func): | |
1154 | win.Connect(id, -1, wxEVT_COMMAND_CHOICE_SELECTED, func) | |
1155 | ||
1156 | def EVT_LISTBOX(win, id, func): | |
1157 | win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_SELECTED, func) | |
1158 | ||
1159 | def EVT_LISTBOX_DCLICK(win, id, func): | |
1160 | win.Connect(id, -1, wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, func) | |
1161 | ||
1162 | def EVT_TEXT(win, id, func): | |
1163 | win.Connect(id, -1, wxEVT_COMMAND_TEXT_UPDATED, func) | |
1164 | ||
1165 | def EVT_TEXT_ENTER(win, id, func): | |
1166 | win.Connect(id, -1, wxEVT_COMMAND_TEXT_ENTER, func) | |
1167 | ||
1168 | def EVT_MENU(win, id, func): | |
1169 | win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func) | |
1170 | ||
1171 | def EVT_MENU_RANGE(win, id1, id2, func): | |
1172 | win.Connect(id1, id2, wxEVT_COMMAND_MENU_SELECTED, func) | |
1173 | ||
1174 | def EVT_SLIDER(win, id, func): | |
1175 | win.Connect(id, -1, wxEVT_COMMAND_SLIDER_UPDATED, func) | |
1176 | ||
1177 | def EVT_RADIOBOX(win, id, func): | |
1178 | win.Connect(id, -1, wxEVT_COMMAND_RADIOBOX_SELECTED, func) | |
1179 | ||
1180 | def EVT_RADIOBUTTON(win, id, func): | |
1181 | win.Connect(id, -1, wxEVT_COMMAND_RADIOBUTTON_SELECTED, func) | |
1182 | ||
1183 | def EVT_VLBOX(win, id, func): | |
1184 | win.Connect(id, -1, wxEVT_COMMAND_VLBOX_SELECTED, func) | |
1185 | ||
1186 | def EVT_COMBOBOX(win, id, func): | |
1187 | win.Connect(id, -1, wxEVT_COMMAND_COMBOBOX_SELECTED, func) | |
1188 | ||
1189 | def EVT_TOOL(win, id, func): | |
1190 | win.Connect(id, -1, wxEVT_COMMAND_TOOL_CLICKED, func) | |
1191 | ||
1192 | def EVT_TOOL_RCLICKED(win, id, func): | |
1193 | win.Connect(id, -1, wxEVT_COMMAND_TOOL_RCLICKED, func) | |
1194 | ||
1195 | def EVT_TOOL_ENTER(win, id, func): | |
1196 | win.Connect(id, -1, wxEVT_COMMAND_TOOL_ENTER, func) | |
1197 | ||
1198 | def EVT_CHECKLISTBOX(win, id, func): | |
1199 | win.Connect(id, -1, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, func) | |
1200 | ||
1201 | ||
1202 | # Generic command events | |
1203 | ||
1204 | def EVT_COMMAND_LEFT_CLICK(win, id, func): | |
1205 | win.Connect(id, -1, wxEVT_COMMAND_LEFT_CLICK, func) | |
1206 | ||
1207 | def EVT_COMMAND_LEFT_DCLICK(win, id, func): | |
1208 | win.Connect(id, -1, wxEVT_COMMAND_LEFT_DCLICK, func) | |
1209 | ||
1210 | def EVT_COMMAND_RIGHT_CLICK(win, id, func): | |
1211 | win.Connect(id, -1, wxEVT_COMMAND_RIGHT_CLICK, func) | |
1212 | ||
1213 | def EVT_COMMAND_RIGHT_DCLICK(win, id, func): | |
1214 | win.Connect(id, -1, wxEVT_COMMAND_RIGHT_DCLICK, func) | |
1215 | ||
1216 | def EVT_COMMAND_SET_FOCUS(win, id, func): | |
1217 | win.Connect(id, -1, wxEVT_COMMAND_SET_FOCUS, func) | |
1218 | ||
1219 | def EVT_COMMAND_KILL_FOCUS(win, id, func): | |
1220 | win.Connect(id, -1, wxEVT_COMMAND_KILL_FOCUS, func) | |
1221 | ||
1222 | def EVT_COMMAND_ENTER(win, id, func): | |
1223 | win.Connect(id, -1, wxEVT_COMMAND_ENTER, func) | |
1224 | ||
1225 | ||
78bba745 | 1226 | # wxNotebook events |
70551f47 RD |
1227 | def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func): |
1228 | win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func) | |
1229 | ||
1230 | def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func): | |
1231 | win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func) | |
1232 | ||
1233 | ||
105e45b9 | 1234 | # wxTreeCtrl events |
78bba745 RD |
1235 | def EVT_TREE_BEGIN_DRAG(win, id, func): |
1236 | win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG, func) | |
1237 | ||
1238 | def EVT_TREE_BEGIN_RDRAG(win, id, func): | |
1239 | win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG, func) | |
1240 | ||
1241 | def EVT_TREE_BEGIN_LABEL_EDIT(win, id, func): | |
1242 | win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, func) | |
1243 | ||
1244 | def EVT_TREE_END_LABEL_EDIT(win, id, func): | |
1245 | win.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT, func) | |
1246 | ||
1247 | def EVT_TREE_GET_INFO(win, id, func): | |
1248 | win.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO, func) | |
1249 | ||
1250 | def EVT_TREE_SET_INFO(win, id, func): | |
1251 | win.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO, func) | |
1252 | ||
1253 | def EVT_TREE_ITEM_EXPANDED(win, id, func): | |
1254 | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED, func) | |
1255 | ||
1256 | def EVT_TREE_ITEM_EXPANDING(win, id, func): | |
1257 | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING, func) | |
1258 | ||
1259 | def EVT_TREE_ITEM_COLLAPSED(win, id, func): | |
1260 | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func) | |
1261 | ||
1262 | def EVT_TREE_ITEM_COLLAPSING(win, id, func): | |
1263 | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING, func) | |
1264 | ||
1265 | def EVT_TREE_SEL_CHANGED(win, id, func): | |
1266 | win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED, func) | |
1267 | ||
1268 | def EVT_TREE_SEL_CHANGING(win, id, func): | |
1269 | win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING, func) | |
1270 | ||
1271 | def EVT_TREE_KEY_DOWN(win, id, func): | |
1272 | win.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN, func) | |
1273 | ||
1274 | def EVT_TREE_DELETE_ITEM(win, id, func): | |
1275 | win.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM, func) | |
1276 | ||
1277 | ||
105e45b9 | 1278 | # wxSpinButton |
62bd0874 RD |
1279 | def EVT_SPIN_UP(win, id, func): |
1280 | win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func) | |
1281 | ||
1282 | def EVT_SPIN_DOWN(win, id, func): | |
1283 | win.Connect(id, -1,wxEVT_SCROLL_LINEDOWN, func) | |
1284 | ||
1285 | def EVT_SPIN(win, id, func): | |
1286 | win.Connect(id, -1, wxEVT_SCROLL_TOP, func) | |
1287 | win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func) | |
1288 | win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func) | |
1289 | win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func) | |
1290 | win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func) | |
1291 | win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func) | |
1292 | win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func) | |
1293 | ||
1294 | ||
70551f47 | 1295 | |
105e45b9 RD |
1296 | |
1297 | # wxTaskBarIcon | |
1298 | def EVT_TASKBAR_MOVE(win, func): | |
1299 | win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func) | |
1300 | ||
1301 | def EVT_TASKBAR_LEFT_DOWN(win, func): | |
1302 | win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func) | |
1303 | ||
1304 | def EVT_TASKBAR_LEFT_UP(win, func): | |
1305 | win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func) | |
1306 | ||
1307 | def EVT_TASKBAR_RIGHT_DOWN(win, func): | |
1308 | win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func) | |
1309 | ||
1310 | def EVT_TASKBAR_RIGHT_UP(win, func): | |
1311 | win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func) | |
1312 | ||
1313 | def EVT_TASKBAR_LEFT_DCLICK(win, func): | |
1314 | win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func) | |
1315 | ||
1316 | def EVT_TASKBAR_RIGHT_DCLICK(win, func): | |
1317 | win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func) | |
1318 | ||
1319 | ||
1320 | # wxGrid | |
1321 | def EVT_GRID_SELECT_CELL(win, fn): | |
1322 | win.Connect(-1, -1, wxEVT_GRID_SELECT_CELL, fn) | |
1323 | ||
1324 | def EVT_GRID_CREATE_CELL(win, fn): | |
1325 | win.Connect(-1, -1, wxEVT_GRID_CREATE_CELL, fn) | |
1326 | ||
1327 | def EVT_GRID_CHANGE_LABELS(win, fn): | |
1328 | win.Connect(-1, -1, wxEVT_GRID_CHANGE_LABELS, fn) | |
1329 | ||
1330 | def EVT_GRID_CHANGE_SEL_LABEL(win, fn): | |
1331 | win.Connect(-1, -1, wxEVT_GRID_CHANGE_SEL_LABEL, fn) | |
1332 | ||
1333 | def EVT_GRID_CELL_CHANGE(win, fn): | |
1334 | win.Connect(-1, -1, wxEVT_GRID_CELL_CHANGE, fn) | |
1335 | ||
1336 | def EVT_GRID_CELL_LCLICK(win, fn): | |
1337 | win.Connect(-1, -1, wxEVT_GRID_CELL_LCLICK, fn) | |
1338 | ||
1339 | def EVT_GRID_CELL_RCLICK(win, fn): | |
1340 | win.Connect(-1, -1, wxEVT_GRID_CELL_RCLICK, fn) | |
1341 | ||
1342 | def EVT_GRID_LABEL_LCLICK(win, fn): | |
1343 | win.Connect(-1, -1, wxEVT_GRID_LABEL_LCLICK, fn) | |
1344 | ||
1345 | def EVT_GRID_LABEL_RCLICK(win, fn): | |
1346 | win.Connect(-1, -1, wxEVT_GRID_LABEL_RCLICK, fn) | |
1347 | ||
1348 | ||
dd9a3de8 RD |
1349 | # wxSashWindow |
1350 | def EVT_SASH_DRAGGED(win, id, func): | |
1351 | win.Connect(id, -1, wxEVT_SASH_DRAGGED, func) | |
1352 | ||
1353 | def EVT_SASH_DRAGGED_RANGE(win, id1, id2, func): | |
1354 | win.Connect(id1, id2, wxEVT_SASH_DRAGGED, func) | |
1355 | ||
1356 | def EVT_QUERY_LAYOUT_INFO(win, func): | |
1357 | win.Connect(-1, -1, wxEVT_EVT_QUERY_LAYOUT_INFO, func) | |
1358 | ||
1359 | def EVT_CALCULATE_LAYOUT(win, func): | |
1360 | win.Connect(-1, -1, wxEVT_EVT_CALCULATE_LAYOUT, func) | |
1361 | ||
1362 | ||
f4f55a01 RD |
1363 | # wxListCtrl |
1364 | def EVT_LIST_BEGIN_DRAG(win, id, func): | |
1365 | win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_DRAG, func) | |
1366 | ||
1367 | def EVT_LIST_BEGIN_RDRAG(win, id, func): | |
1368 | win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_RDRAG, func) | |
1369 | ||
1370 | def EVT_LIST_BEGIN_LABEL_EDIT(win, id, func): | |
1371 | win.Connect(id, -1, wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, func) | |
1372 | ||
1373 | def EVT_LIST_END_LABEL_EDIT(win, id, func): | |
1374 | win.Connect(id, -1, wxEVT_COMMAND_LIST_END_LABEL_EDIT, func) | |
1375 | ||
1376 | def EVT_LIST_DELETE_ITEM(win, id, func): | |
1377 | win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ITEM, func) | |
1378 | ||
1379 | def EVT_LIST_DELETE_ALL_ITEMS(win, id, func): | |
1380 | win.Connect(id, -1, wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, func) | |
1381 | ||
1382 | def EVT_LIST_GET_INFO(win, id, func): | |
1383 | win.Connect(id, -1, wxEVT_COMMAND_LIST_GET_INFO, func) | |
1384 | ||
1385 | def EVT_LIST_SET_INFO(win, id, func): | |
1386 | win.Connect(id, -1, wxEVT_COMMAND_LIST_SET_INFO, func) | |
1387 | ||
1388 | def EVT_LIST_ITEM_SELECTED(win, id, func): | |
1389 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED, func) | |
1390 | ||
d24a34bb RD |
1391 | def EVT_LIST_ITEM_ACTIVATED(win, id, func): |
1392 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func) | |
1393 | ||
f4f55a01 RD |
1394 | def EVT_LIST_ITEM_DESELECTED(win, id, func): |
1395 | win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED, func) | |
1396 | ||
1397 | def EVT_LIST_KEY_DOWN(win, id, func): | |
1398 | win.Connect(id, -1, wxEVT_COMMAND_LIST_KEY_DOWN, func) | |
1399 | ||
1400 | def EVT_LIST_INSERT_ITEM(win, id, func): | |
1401 | win.Connect(id, -1, wxEVT_COMMAND_LIST_INSERT_ITEM, func) | |
1402 | ||
1403 | def EVT_LIST_COL_CLICK(win, id, func): | |
1404 | win.Connect(id, -1, wxEVT_COMMAND_LIST_COL_CLICK, func) | |
105e45b9 | 1405 | |
d24a34bb RD |
1406 | #wxSplitterWindow |
1407 | def EVT_SPLITTER_SASH_POS_CHANGING(win, id, func): | |
1408 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, func) | |
1409 | ||
1410 | def EVT_SPLITTER_SASH_POS_CHANGED(win, id, func): | |
1411 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, func) | |
1412 | ||
1413 | def EVT_SPLITTER_UNSPLIT(win, id, func): | |
1414 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_UNSPLIT, func) | |
1415 | ||
1416 | def EVT_SPLITTER_DOUBLECLICKED(win, id, func): | |
1417 | win.Connect(id, -1, wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, func) | |
1418 | ||
105e45b9 | 1419 | |
b26e2dc4 | 1420 | #---------------------------------------------------------------------- |
70551f47 RD |
1421 | |
1422 | class wxTimer(wxPyTimer): | |
1423 | def __init__(self): | |
1424 | wxPyTimer.__init__(self, self.Notify) # derived class must provide | |
1425 | # Notify(self) method. | |
1426 | ||
1427 | #---------------------------------------------------------------------- | |
1428 | # Some wxWin methods can take "NULL" as parameters, but the shadow classes | |
1429 | # expect an object with the SWIG pointer as a 'this' member. This class | |
1430 | # and instance fools the shadow into passing the NULL pointer. | |
1431 | ||
1432 | class NullObj: | |
1433 | this = 'NULL' # SWIG converts this to (void*)0 | |
1434 | ||
1435 | NULL = NullObj() | |
1436 | ||
1437 | ||
1438 | #---------------------------------------------------------------------- | |
1439 | # aliases | |
1440 | ||
105e45b9 | 1441 | wxColor = wxColour |
70551f47 RD |
1442 | wxNamedColor = wxNamedColour |
1443 | ||
1444 | wxPyDefaultPosition.Set(-1,-1) | |
1445 | wxPyDefaultSize.Set(-1,-1) | |
1446 | ||
dd9a3de8 RD |
1447 | # aliases so that C++ documentation applies: |
1448 | wxDefaultPosition = wxPyDefaultPosition | |
1449 | wxDefaultSize = wxPyDefaultSize | |
1450 | ||
21f8d7ea RD |
1451 | |
1452 | # This is to cover up a bug in SWIG. We are redefining | |
1453 | # the shadow class that is generated for wxAcceleratorTable | |
1454 | # because SWIG incorrectly uses "arg0.this" | |
1455 | class wxAcceleratorTable(wxAcceleratorTablePtr): | |
1456 | def __init__(self,arg0) : | |
1457 | self.this = miscc.new_wxAcceleratorTable(arg0) | |
1458 | self.thisown = 1 | |
1459 | ||
8bf5d46e RD |
1460 | #---------------------------------------------------------------------- |
1461 | # This helper function will take a wxPython object and convert it to | |
1462 | # another wxPython object type. This will not be able to create objects | |
3f0be3ec | 1463 | # that are derived from wxPython classes by the user, only those that are |
8bf5d46e RD |
1464 | # actually part of wxPython and directly corespond to C++ objects. |
1465 | # | |
1466 | # This is useful in situations where some method returns a generic | |
1467 | # type such as wxWindow, but you know that it is actually some | |
1468 | # derived type such as a wxTextCtrl. You can't call wxTextCtrl specific | |
1469 | # methods on a wxWindow object, but you can use this function to | |
1470 | # create a wxTextCtrl object that will pass the same pointer to | |
1471 | # the C++ code. You use it like this: | |
1472 | # | |
1473 | # textCtrl = wxPyTypeCast(window, "wxTextCtrl") | |
1474 | # | |
1475 | # | |
1476 | # WARNING: Using this function to type cast objects into types that | |
1477 | # they are not is not recommended and is likely to cause your | |
1478 | # program to crash... Hard. | |
1479 | # | |
1480 | ||
1481 | def wxPyTypeCast(obj, typeStr): | |
1482 | if hasattr(obj, "this"): | |
1483 | newPtr = ptrcast(obj.this, typeStr+"_p") | |
1484 | else: | |
1485 | newPtr = ptrcast(obj, typeStr+"_p") | |
1486 | theClass = globals()[typeStr+"Ptr"] | |
1487 | theObj = theClass(newPtr) | |
1488 | theObj.thisown = obj.thisown | |
1489 | return theObj | |
1490 | ||
1491 | ||
70551f47 RD |
1492 | #---------------------------------------------------------------------- |
1493 | ||
ab9bc19b RD |
1494 | ## class wxPyStdOutWindow: |
1495 | ## def __init__(self, title = "wxPython: stdout/stderr"): | |
1496 | ## self.frame = None | |
1497 | ## self.title = title | |
1498 | ||
1499 | ## def write(self, str): | |
1500 | ## if not self.frame: | |
1501 | ## self.frame = wxFrame(NULL, -1, self.title) | |
1502 | ## self.text = wxTextCtrl(self.frame, -1, "", wxPoint(0,0), wxDefaultSize, | |
1503 | ## wxTE_MULTILINE|wxTE_READONLY) | |
1504 | ## self.frame.SetSize(wxSize(450, 300)) | |
1505 | ## self.frame.Show(true) | |
1506 | ## EVT_CLOSE(self.frame, self.OnCloseWindow) | |
1507 | ## self.text.AppendText(str) | |
70551f47 | 1508 | |
ab9bc19b RD |
1509 | ## def OnCloseWindow(self, event): |
1510 | ## wxBell() | |
1511 | ## self.frame.Destroy() | |
1512 | ## self.frame = None | |
1513 | ## self.text = None | |
70551f47 | 1514 | |
70551f47 | 1515 | |
ab9bc19b RD |
1516 | ## def close(self): |
1517 | ## if self.frame: | |
1518 | ## self.frame.Close(true) | |
70551f47 RD |
1519 | |
1520 | _defRedirect = (wxPlatform == '__WXMSW__') | |
1521 | ||
1522 | #---------------------------------------------------------------------- | |
1523 | # The main application class. Derive from this and implement an OnInit | |
1524 | # method that creates a frame and then calls self.SetTopWindow(frame) | |
1525 | ||
1526 | class wxApp(wxPyApp): | |
1527 | error = 'wxApp.error' | |
1528 | ||
1529 | def __init__(self, redirect=_defRedirect, filename=None): | |
1530 | wxPyApp.__init__(self) | |
1531 | self.stdioWin = None | |
1532 | self.saveStdio = (sys.stdout, sys.stderr) | |
1533 | if redirect: | |
1534 | self.RedirectStdio(filename) | |
1535 | ||
1536 | # this initializes wxWindows and then calls our OnInit | |
1537 | _wxStart(self.OnInit) | |
1538 | ||
1539 | ||
1540 | def __del__(self): | |
1541 | try: | |
1542 | self.RestoreStdio() | |
1543 | except: | |
1544 | pass | |
1545 | ||
1546 | def RedirectStdio(self, filename): | |
1547 | if filename: | |
1548 | sys.stdout = sys.stderr = open(filename, 'a') | |
1549 | else: | |
3f0be3ec RD |
1550 | raise self.error, 'wxPyStdOutWindow not yet implemented.' |
1551 | #self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow() | |
70551f47 RD |
1552 | |
1553 | def RestoreStdio(self): | |
1554 | sys.stdout, sys.stderr = self.saveStdio | |
1555 | if self.stdioWin != None: | |
ab9bc19b | 1556 | self.stdioWin.close() |
70551f47 RD |
1557 | |
1558 | ||
1559 | #---------------------------------------------------------------------------- | |
8bf5d46e RD |
1560 | # DO NOT hold any other references to this object. This is how we know when |
1561 | # to cleanup system resources that wxWin is holding... | |
1562 | __cleanMeUp = __wxPyCleanup() | |
1563 | #---------------------------------------------------------------------------- | |
1564 | ||
1565 | ||
1566 |