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