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